mqdata.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package types
  2. type MsgChatTransfer struct {
  3. MsgId string `mapstructure:"msgId"`
  4. ConversationId string `json:"conversationId"`
  5. ChatType `json:"chatType"`
  6. SendID int64 `json:"sendId"` //发送者
  7. RecvID int64 `json:"recvId"` //接收者
  8. RecvIDs []int64 `json:"recvIds"` //多个接收者
  9. SendTime int64 `json:"sendTime"`
  10. MType `json:"mType"`
  11. Content string `json:"content"`
  12. }
  13. type MsgMarkRead struct {
  14. ConversationId string `json:"conversationId"`
  15. ChatType `json:"chatType"`
  16. SendID int64 `json:"sendId"` //发送者
  17. RecvID int64 `json:"recvId"` //接收者
  18. MsgIds []string `json:"msgIds"`
  19. }
  20. type MsgTweetData struct {
  21. ID int64 `json:"id"`
  22. UserID int64 `json:"user_id"`
  23. CommentCount int64 `json:"comment_count"`
  24. CollectionCount int64 `json:"collection_count"`
  25. ShareCount int64 `json:"share_count"`
  26. UpvoteCount int64 `json:"upvote_count"`
  27. Visibility PostVisibleT `json:"visibility"`
  28. IsTop int `json:"is_top"`
  29. IsEssence int `json:"is_essence"`
  30. IsLock int `json:"is_lock"`
  31. LatestRepliedOn int64 `json:"latest_replied_on"`
  32. Tags string `json:"tags"`
  33. AttachmentPrice int64 `json:"attachment_price"`
  34. IP string `json:"ip"`
  35. IPLoc string `json:"ip_loc"`
  36. Contents []MsgTweetContentData `json:"contents"`
  37. CreatedOn int64 `json:"created_on"`
  38. ModifiedOn int64 `json:"modified_on"`
  39. DeletedOn int64 `json:"deleted_on"`
  40. IsDel int64 `json:"is_del"`
  41. }
  42. type MsgTweetContentData struct {
  43. ID int64 `json:"id"`
  44. PostID int64 `json:"post_id"`
  45. UserID int64 `json:"user_id"`
  46. Content string `json:"content"`
  47. Type PostContentT `json:"type"`
  48. Sort int64 `json:"sort"`
  49. }
  50. type UserBillContentData struct {
  51. PostID int64 `json:"post_id"` // 咨询id
  52. UserID int64 `json:"user_id"` // 用户id
  53. ProfitUserID int64 `json:"profit_user_id"` // 受益者id
  54. Price int64 `json:"price"` // 购买价格
  55. }