mq.go 2.5 KB

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