constant.go 751 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package types
  2. type MType int
  3. const (
  4. TextMType MType = iota
  5. )
  6. type ChatType int
  7. const (
  8. GroupChatType ChatType = iota + 1
  9. SingleChatType
  10. )
  11. type ContentType int
  12. const (
  13. ContentChatMsg ContentType = iota
  14. ContentMakeRead
  15. )
  16. type PostVisibleT uint8
  17. const (
  18. PostVisitPublic PostVisibleT = 90
  19. PostVisitPrivate PostVisibleT = 0
  20. PostVisitFriend PostVisibleT = 50
  21. PostVisitFollowing PostVisibleT = 60
  22. )
  23. type PostContentT int
  24. const (
  25. // 类型,1标题,2文字段落,3图片地址,4视频地址,5语音地址,6链接地址,7附件资源
  26. ContentTypeTitle PostContentT = iota + 1
  27. ContentTypeText
  28. ContentTypeImage
  29. ContentTypeVideo
  30. ContentTypeAudio
  31. ContentTypeLink
  32. ContentTypeAttachment
  33. ContentTypeChargeAttachment
  34. )