You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

emoticon.go 487 B

3 days ago
2 days ago
3 days ago
123456789101112131415161718192021222324252627
  1. package model
  2. import "egg-im/pkg/pb"
  3. type Emoticon struct {
  4. Id int64
  5. Name string // 名称
  6. ImgUrl string // 图片地址
  7. Memo string // 备注
  8. Sort int // 排序
  9. State int // 状态0关闭,1开启
  10. CreateAt string // 创建时间
  11. UpdateAt string // 更新时间
  12. }
  13. func (e *Emoticon) ToProto() *pb.Emoticon {
  14. if e == nil {
  15. return nil
  16. }
  17. return &pb.Emoticon{
  18. Name: e.Name,
  19. ImgUrl: e.ImgUrl,
  20. Memo: e.Memo,
  21. Sort: int32(e.Sort),
  22. }
  23. }