types.go 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. }
  102. type WxTmplMessageReq struct {
  103. UserIds string `json:"userIds,optional"` // 用户id如果是多个就逗号分割
  104. PositionIds string `json:"positionIds,optional"` //用户职位id
  105. Title string `json:"title"`
  106. Date string `json:"date"`
  107. Detail string `json:"detail"`
  108. Row4 string `json:"row4"`
  109. Class int64 `json:"class"` //msg_type
  110. Url string `json:"url"`
  111. }
  112. type WxTmplMessageResponse struct {
  113. Code int64 `json:"code"`
  114. Total int64 `json:"total"`
  115. Message string `json:"message"`
  116. }
  117. type MsgOpenLogReq struct {
  118. MsgLogId int64 `json:"msgLogId"`
  119. Platform int64 `json:"platform"` //1pc 2 app 3 微信
  120. UserId string `header:"mgoUserId"`
  121. AppId string `header:"appId"`
  122. }
  123. type NewUserSaveMsgReq struct {
  124. MsgInfo map[string]interface{} `json:"msgInfo"`
  125. UserIds string `json:"userIds"`
  126. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  127. }
  128. type NewUserSaveMsgResp struct {
  129. Code int64 `json:"code"`
  130. Message string `json:"message"`
  131. }
  132. type UpdateMsgSummaryReq struct {
  133. MsgLogId int64 `json:"msgLogId"`
  134. GroupId int64 `json:"groupId"`
  135. MsgType int64 `json:"msgType"`
  136. }
  137. type BitmapSaveMsgReq struct {
  138. MsgInfo map[string]interface{} `json:"msgInfo"`
  139. UserIds string `json:"userIds"`
  140. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  141. }
  142. type WorkDeskListReq struct {
  143. UserId string `header:"mgoUserId"`
  144. AppId string `header:"appId"`
  145. Offset int64 `json:"offset"`
  146. PageSize int64 `json:"size"`
  147. MsgType int64 `json:"msgType"`
  148. NeedDealtWithCount bool `json:"needDealtWithCount"`
  149. }
  150. type WorkDeskListResp struct {
  151. Code int64 `json:"code"`
  152. Message string `json:"message"`
  153. BusData []map[string]interface{} `json:"busData"`
  154. NeedDoData []map[string]interface{} `json:"needDoData"`
  155. }