golang-im聊天
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.
 
 
 
 

29 rivejä
513 B

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