types.go 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. }
  91. type MessageListResp struct {
  92. Code int64 `json:"code"`
  93. Message string `json:"message"`
  94. Data []map[string]interface{} `json:"data"`
  95. Last map[string]interface{} `json:"last"`
  96. Total int64 `json:"total"`
  97. Column []map[string]interface{} `json:"column"`
  98. Unread int64 `json:"unread"`
  99. RollingTiming int64 `json:"rollingTiming"`
  100. }
  101. type WxTmplMessageReq struct {
  102. UserIds string `json:"userIds,optional"` // 用户id如果是多个就逗号分割
  103. PositionIds string `json:"positionIds,optional"` //用户职位id
  104. Title string `json:"title"`
  105. Date string `json:"date"`
  106. Detail string `json:"detail"`
  107. Row4 string `json:"row4"`
  108. Class int64 `json:"class"` //msg_type
  109. Url string `json:"url"`
  110. }
  111. type WxTmplMessageResponse struct {
  112. Code int64 `json:"code"`
  113. Total int64 `json:"total"`
  114. Message string `json:"message"`
  115. }
  116. type MsgOpenLogReq struct {
  117. MsgLogId int64 `json:"msgLogId"`
  118. Platform int64 `json:"platform"` //1pc 2 app 3 微信
  119. UserId string `header:"mgoUserId"`
  120. AppId string `header:"appId"`
  121. }
  122. type NewUserSaveMsgReq struct {
  123. MsgInfo map[string]interface{} `json:"msgInfo"`
  124. UserIds string `json:"userIds"`
  125. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  126. }
  127. type NewUserSaveMsgResp struct {
  128. Code int64 `json:"code"`
  129. Message string `json:"message"`
  130. }
  131. type UpdateMsgSummaryReq struct {
  132. MsgLogId int64 `json:"msgLogId"`
  133. GroupId int64 `json:"groupId"`
  134. MsgType int64 `json:"msgType"`
  135. }
  136. type BitmapSaveMsgReq struct {
  137. MsgInfo map[string]interface{} `json:"msgInfo"`
  138. UserIds string `json:"userIds"`
  139. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  140. }