types.go 5.0 KB

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