types.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. type Response struct {
  4. Code int64 `json:"code"`
  5. Message string `json:"message"`
  6. }
  7. type MessageDetailReq struct {
  8. Id string `json:"id"`
  9. }
  10. type MessageDetailResp struct {
  11. Code int64 `json:"code"`
  12. Message string `json:"message"`
  13. Data map[string]interface{} `json:"data"`
  14. }
  15. type MessageUnreadCountReq struct {
  16. UserId string `header:"mgoUserId"`
  17. AppId string `header:"appId"`
  18. }
  19. type MessageUnreadCountRes struct {
  20. Code int64 `json:"code"`
  21. Message string `json:"message"`
  22. Data map[string]interface{} `json:"data"`
  23. }
  24. type GetMsgTypeReq struct {
  25. UserId string `header:"userId"`
  26. AppId string `header:"appId"`
  27. }
  28. type GetMsgTypeRes struct {
  29. Code int64 `json:"code"`
  30. Message string `json:"message"`
  31. Data []map[string]interface{} `json:"data"`
  32. }
  33. type MsgReadStatusReq struct {
  34. UserId string `form:"userId"`
  35. AppId string `form:"appId"`
  36. MsgType int `form:"msgType"`
  37. }
  38. type MsgReadStatusResp struct {
  39. Code int64 `json:"code"`
  40. Message string `json:"message"`
  41. Status int64 `json:"status"`
  42. }
  43. type MarkReadReq struct {
  44. MsgId string `form:"msgId"`
  45. AppId string `form:"appId"`
  46. }
  47. type MarkReadRes struct {
  48. Code int64 `json:"code"`
  49. Message string `json:"message"`
  50. Data int64 `json:"data"`
  51. }
  52. type MultipleSaveMsgReq struct {
  53. MsgInfo map[string]interface{} `json:"msgInfo"`
  54. UserIds string `json:"userIds"`
  55. UserNames string `json:"userNames"`
  56. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  57. }
  58. type MultipleSaveMsgResp struct {
  59. Code int64 `json:"code"`
  60. Message string `json:"message"`
  61. ErrCount int64 `json:"errCount"`
  62. }
  63. type GetBuoyMsgReq struct {
  64. UserId string `header:"mgoUserId"`
  65. AppId string `header:"appId"`
  66. Size int64 `json:"size,optional"`
  67. }
  68. type GetBuoyMsgResp struct {
  69. Code int64 `json:"error_code"`
  70. Message string `json:"error_msg"`
  71. Data []map[string]interface{} `json:"data"`
  72. }
  73. type ClearUnreadMsgReq struct {
  74. UserId string `header:"mgoUserId"`
  75. AppId string `header:"appId"`
  76. EntId int64 `header:"entId,optional"`
  77. PositionId int64 `header:"positionId,optional"`
  78. }
  79. type MessageListReq struct {
  80. UserId string `header:"mgoUserId"`
  81. AppId string `header:"appId"`
  82. EntId int64 `header:"entId,optional"`
  83. SortSize int64 `json:"sortSize,optional"` //分类获取数
  84. Offset int64 `json:"offset"` //
  85. Size int64 `json:"size,optional"`
  86. MsgType int64 `json:"msgType,optional"`
  87. IsRead int64 `json:"isRead,optional"`
  88. IsColumn bool `json:"isColumn"` //是否需要获取栏目
  89. IsColumnNewMsg bool `json:"isColumnNewMsg"` //是否需各栏目获取最新消息
  90. IsMsgList bool `json:"isMsgList"` //是否需要列表信息
  91. }
  92. type MessageListResp struct {
  93. Code int64 `json:"code"`
  94. Message string `json:"message"`
  95. Data []map[string]interface{} `json:"data"`
  96. Last map[string]interface{} `json:"last"`
  97. Total int64 `json:"total"`
  98. Column []map[string]interface{} `json:"column"`
  99. Unread int64 `json:"unread"`
  100. }
  101. type UnreadMessageReq struct {
  102. UserId string `header:"mgoUserId"`
  103. AppId string `header:"appId"`
  104. Offset int64 `json:"offset"` //
  105. PageSize int64 `json:"pageSize"`
  106. }
  107. type UnreadMessageResp struct {
  108. Code int64 `json:"code"`
  109. Message string `json:"message"`
  110. Data []map[string]interface{} `json:"data"`
  111. Total int64 `json:"total"`
  112. }