types.go 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 int64 `json:"id,optional"`
  9. MsgLogId int64 `json:"msgLogId,optional"`
  10. UserId string `header:"mgoUserId,optional"`
  11. }
  12. type MessageDetailResp struct {
  13. Code int64 `json:"code"`
  14. Message string `json:"message"`
  15. Data map[string]interface{} `json:"data"`
  16. }
  17. type GetMsgTypeReq struct {
  18. UserId string `header:"mgoUserId"`
  19. AppId string `header:"appId"`
  20. }
  21. type GetMsgTypeRes struct {
  22. Code int64 `json:"code"`
  23. Message string `json:"message"`
  24. Data []map[string]interface{} `json:"data"`
  25. }
  26. type MsgReadStatusReq struct {
  27. UserId string `form:"userId"`
  28. AppId string `form:"appId"`
  29. MsgType int `form:"msgType"`
  30. }
  31. type MsgReadStatusResp struct {
  32. Code int64 `json:"code"`
  33. Message string `json:"message"`
  34. Status int64 `json:"status"`
  35. }
  36. type MarkReadReq struct {
  37. MsgId int64 `json:"msgId"`
  38. AppId string `header:"appId"`
  39. UserId string `header:"mgoUserId"`
  40. }
  41. type MarkReadRes struct {
  42. Code int64 `json:"code"`
  43. Message string `json:"message"`
  44. Data int64 `json:"data"`
  45. }
  46. type MultipleSaveMsgReq struct {
  47. MsgInfo map[string]interface{} `json:"msgInfo"`
  48. UserIds string `json:"userIds"`
  49. UserNames string `json:"userNames"`
  50. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  51. }
  52. type MultipleSaveMsgResp struct {
  53. Code int64 `json:"code"`
  54. Message string `json:"message"`
  55. ErrCount int64 `json:"errCount"`
  56. }
  57. type GetBuoyMsgReq struct {
  58. UserId string `header:"mgoUserId"`
  59. AppId string `header:"appId"`
  60. Size int64 `json:"size,optional"`
  61. }
  62. type GetBuoyMsgResp struct {
  63. Code int64 `json:"error_code"`
  64. Message string `json:"error_msg"`
  65. Data []map[string]interface{} `json:"data"`
  66. }
  67. type ClearUnreadMsgReq struct {
  68. UserId string `header:"mgoUserId"`
  69. AppId string `header:"appId"`
  70. EntId int64 `header:"entId,optional"`
  71. PositionId int64 `header:"positionId,optional"`
  72. NewUserId int64 `header:"newUserId,optional"`
  73. }
  74. type MessageListReq struct {
  75. UserId string `header:"mgoUserId"`
  76. AppId string `header:"appId"`
  77. EntId int64 `header:"entId,optional"`
  78. SortSize int64 `json:"sortSize,optional"` //分类获取数
  79. Offset int64 `json:"offset,optional"` //
  80. Size int64 `json:"size,optional"`
  81. MsgType int64 `json:"msgType,optional"`
  82. IsRead int64 `json:"isRead,optional"`
  83. NewUserId int64 `header:"newUserId,optional"` //私信相关
  84. PositionId int64 `header:"positionId,optional"` //私信相关
  85. IsColumn bool `json:"isColumn"` //是否需要获取栏目
  86. IsColumnNewMsg bool `json:"isColumnNewMsg"` //是否需各栏目获取最新消息
  87. IsMsgList bool `json:"isMsgList"` //是否需要列表信息
  88. IsContainLetter bool `json:"isContainLetter,optional,default=true"` //是否未读数包含私信
  89. IsClassSearch bool `json:"isClassSearch,optional"` // 是否为具体分类查询
  90. IsfilterActive bool `json:"isfilterActive,optional"` //是否过滤活动通知消息
  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. RollingTiming int64 `json:"rollingTiming"`
  101. ToDoUnread int64 `json:"toDoUnread"`
  102. }
  103. type WxTmplMessageReq struct {
  104. UserIds string `json:"userIds,optional"` // 用户id如果是多个就逗号分割
  105. PositionIds string `json:"positionIds,optional"` //用户职位id
  106. Title string `json:"title"`
  107. Date string `json:"date"`
  108. Detail string `json:"detail"`
  109. Row4 string `json:"row4"`
  110. Class int64 `json:"class"` //msg_type
  111. Url string `json:"url"`
  112. }
  113. type WxTmplMessageResponse struct {
  114. Code int64 `json:"code"`
  115. Total int64 `json:"total"`
  116. Message string `json:"message"`
  117. }
  118. type MsgOpenLogReq struct {
  119. MsgLogId int64 `json:"msgLogId"`
  120. Platform int64 `json:"platform"` //1pc 2 app 3 微信
  121. UserId string `header:"mgoUserId"`
  122. AppId string `header:"appId"`
  123. }
  124. type NewUserSaveMsgReq struct {
  125. MsgInfo map[string]interface{} `json:"msgInfo"`
  126. UserIds string `json:"userIds"`
  127. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  128. }
  129. type NewUserSaveMsgResp struct {
  130. Code int64 `json:"code"`
  131. Message string `json:"message"`
  132. }
  133. type UpdateMsgSummaryReq struct {
  134. MsgLogId int64 `json:"msgLogId"`
  135. GroupId int64 `json:"groupId"`
  136. MsgType int64 `json:"msgType"`
  137. }
  138. type BitmapSaveMsgReq struct {
  139. MsgInfo map[string]interface{} `json:"msgInfo"`
  140. UserIds string `json:"userIds"`
  141. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  142. }
  143. type WorkDeskListReq struct {
  144. UserId string `header:"mgoUserId"`
  145. AppId string `header:"appId"`
  146. Offset int64 `json:"offset"`
  147. PageSize int64 `json:"size"`
  148. MsgType int64 `json:"msgType"`
  149. NeedDealtWithCount bool `json:"needDealtWithCount"`
  150. }
  151. type WorkDeskListResp struct {
  152. Code int64 `json:"code"`
  153. Message string `json:"message"`
  154. BusData []map[string]interface{} `json:"busData"`
  155. NeedDoData []map[string]interface{} `json:"needDoData"`
  156. }
  157. type MaterialDetailReq struct {
  158. Id int64 `json:"id"`
  159. MsgLogId int64 `json:"msgLogId"`
  160. UserId string `header:"mgoUserId,optional"`
  161. PositionId int64 `header:"positionId,optional"`
  162. }
  163. type MaterialDetailResp struct {
  164. Code int64 `json:"code"`
  165. Err_msg string `json:"errMsg"`
  166. Data map[string]interface{} `json:"data"`
  167. }