types.go 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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 SendMsgReq struct {
  92. ReceiveUserId string `form:"receiveUserId"` //接收方的用户id
  93. ReceiveName string `form:"receiveName,optional"` //接收方的用户名
  94. SendUserId string `form:"sendUserId"` //发送方的用户id
  95. SendName string `form:"sendName"` //发送方的用户名
  96. Title string `form:"title"` //标题
  97. Content string `form:"content"` //内容
  98. MsgType int64 `form:"msgType"` // 消息类型
  99. Link string `form:"link,optional"` //连接
  100. CiteId int64 `form:"citeId,optional"` //应用id
  101. Appid string `form:"appid"`
  102. }
  103. type SendMsgResp struct {
  104. Code int64 `json:"code"`
  105. Message string `json:"message"`
  106. Status int64 `json:"status"`
  107. }
  108. type MultipleSaveMsgReq struct {
  109. MsgInfo map[string]interface{} `json:"msgInfo"`
  110. UserIds string `json:"userIds"`
  111. UserNames string `json:"userNames"`
  112. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  113. }
  114. type MultipleSaveMsgResp struct {
  115. Code int64 `json:"code"`
  116. Message string `json:"message"`
  117. ErrCount int64 `json:"errCount"`
  118. }
  119. type GetBuoyMsgReq struct {
  120. UserId string `header:"mgoUserId"`
  121. AppId string `header:"appId"`
  122. Size int64 `json:"size,optional"`
  123. }
  124. type GetBuoyMsgResp struct {
  125. Code int64 `json:"error_code"`
  126. Message string `json:"error_msg"`
  127. Data []map[string]interface{} `json:"data"`
  128. }
  129. type ClearUnreadMsgReq struct {
  130. UserId string `header:"mgoUserId"`
  131. AppId string `header:"appId"`
  132. EntId int64 `header:"entId,optional"`
  133. PositionId int64 `header:"positionId,optional"`
  134. }
  135. type MessageListReq struct {
  136. UserId string `header:"mgoUserId"`
  137. AppId string `header:"appId"`
  138. EntId int64 `header:"entId,optional"`
  139. SortSize int64 `json:"sortSize,optional"` //分类获取数
  140. Offset int64 `json:"offset"` //
  141. Size int64 `json:"size,optional"`
  142. MsgType int64 `json:"msgType,optional"`
  143. IsRead int64 `json:"isRead,optional"`
  144. IsPc bool `json:"isPc"`
  145. MobileHome bool `json:"mobileHome"`
  146. }
  147. type MessageListResp struct {
  148. Code int64 `json:"code"`
  149. Message string `json:"message"`
  150. Data []map[string]interface{} `json:"data"`
  151. Last map[string]interface{} `json:"last"`
  152. Total int64 `json:"total"`
  153. Column []map[string]interface{} `json:"column"`
  154. Unread int64 `json:"unread"`
  155. }
  156. type UnreadMessageReq struct {
  157. UserId string `header:"mgoUserId"`
  158. AppId string `header:"appId"`
  159. Offset int64 `json:"offset"` //
  160. PageSize int64 `json:"pageSize"`
  161. }
  162. type UnreadMessageResp struct {
  163. Code int64 `json:"code"`
  164. Message string `json:"message"`
  165. Data []map[string]interface{} `json:"data"`
  166. Total int64 `json:"total"`
  167. }