types.go 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. }
  40. type MarkReadRes struct {
  41. Code int64 `json:"code"`
  42. Message string `json:"message"`
  43. Data int64 `json:"data"`
  44. }
  45. type MultipleSaveMsgReq struct {
  46. MsgInfo map[string]interface{} `json:"msgInfo"`
  47. UserIds string `json:"userIds"`
  48. UserNames string `json:"userNames"`
  49. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  50. }
  51. type MultipleSaveMsgResp struct {
  52. Code int64 `json:"code"`
  53. Message string `json:"message"`
  54. ErrCount int64 `json:"errCount"`
  55. }
  56. type GetBuoyMsgReq struct {
  57. UserId string `header:"mgoUserId"`
  58. AppId string `header:"appId"`
  59. Size int64 `json:"size,optional"`
  60. }
  61. type GetBuoyMsgResp struct {
  62. Code int64 `json:"error_code"`
  63. Message string `json:"error_msg"`
  64. Data []map[string]interface{} `json:"data"`
  65. }
  66. type ClearUnreadMsgReq struct {
  67. UserId string `header:"mgoUserId"`
  68. AppId string `header:"appId"`
  69. EntId int64 `header:"entId,optional"`
  70. PositionId int64 `header:"positionId,optional"`
  71. NewUserId int64 `header:"newUserId,optional"`
  72. }
  73. type MessageListReq struct {
  74. UserId string `header:"mgoUserId"`
  75. AppId string `header:"appId"`
  76. EntId int64 `header:"entId,optional"`
  77. SortSize int64 `json:"sortSize,optional"` //分类获取数
  78. Offset int64 `json:"offset,optional"` //
  79. Size int64 `json:"size,optional"`
  80. MsgType int64 `json:"msgType,optional"`
  81. IsRead int64 `json:"isRead,optional"`
  82. NewUserId int64 `header:"newUserId,optional"` //私信相关
  83. PositionId int64 `header:"positionId,optional"` //私信相关
  84. IsColumn bool `json:"isColumn"` //是否需要获取栏目
  85. IsColumnNewMsg bool `json:"isColumnNewMsg"` //是否需各栏目获取最新消息
  86. IsMsgList bool `json:"isMsgList"` //是否需要列表信息
  87. IsContainLetter bool `json:"isContainLetter,optional,default=true"` //是否未读数包含私信
  88. IsClassSearch bool `json:"isClassSearch,optional"` // 是否为具体分类查询
  89. }
  90. type MessageListResp struct {
  91. Code int64 `json:"code"`
  92. Message string `json:"message"`
  93. Data []map[string]interface{} `json:"data"`
  94. Last map[string]interface{} `json:"last"`
  95. Total int64 `json:"total"`
  96. Column []map[string]interface{} `json:"column"`
  97. Unread int64 `json:"unread"`
  98. RollingTiming int64 `json:"rollingTiming"`
  99. }
  100. type UnreadMessageReq struct {
  101. UserId string `header:"mgoUserId"`
  102. AppId string `header:"appId"`
  103. Offset int64 `json:"offset"` //
  104. PageSize int64 `json:"pageSize"`
  105. IsNeedData int64 `json:"isNeedData"` //是否需要未读消息数据 0 不需要 1 需要
  106. }
  107. type UnreadMessageResp struct {
  108. Code int64 `json:"code"`
  109. Message string `json:"message"`
  110. Data []map[string]interface{} `json:"data"`
  111. Total int64 `json:"total"`
  112. }
  113. type WxTmplMessageReq struct {
  114. UserIds string `json:"userIds,optional"` // 用户id如果是多个就逗号分割
  115. PositionIds string `json:"positionIds,optional"` //用户职位id
  116. Title string `json:"title"`
  117. Date string `json:"date"`
  118. Detail string `json:"detail"`
  119. Row4 string `json:"row4"`
  120. Class int64 `json:"class"` //msg_type
  121. Url string `json:"url"`
  122. }
  123. type WxTmplMessageResponse struct {
  124. Code int64 `json:"code"`
  125. Total int64 `json:"total"`
  126. Message string `json:"message"`
  127. }
  128. type MsgOpenLogReq struct {
  129. MsgLogId int64 `json:"msgLogId"`
  130. Platform int64 `json:"platform"` //1pc 2 app 3 微信
  131. UserId string `header:"mgoUserId"`
  132. AppId string `header:"appId"`
  133. }