types.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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 string `json:"id"`
  9. }
  10. type MessageDetailResp struct {
  11. Code int64 `json:"code"`
  12. Message string `json:"message"`
  13. Data map[string]interface{} `json:"data"`
  14. }
  15. type MessageUnreadCountReq struct {
  16. UserId string `header:"mgoUserId"`
  17. AppId string `header:"appId"`
  18. }
  19. type MessageUnreadCountRes struct {
  20. Code int64 `json:"code"`
  21. Message string `json:"message"`
  22. Data map[string]interface{} `json:"data"`
  23. }
  24. type GetMsgTypeReq struct {
  25. UserId string `header:"mgoUserId"`
  26. AppId string `header:"appId"`
  27. }
  28. type GetMsgTypeRes struct {
  29. Code int64 `json:"code"`
  30. Message string `json:"message"`
  31. Data []map[string]interface{} `json:"data"`
  32. }
  33. type MsgReadStatusReq struct {
  34. UserId string `form:"userId"`
  35. AppId string `form:"appId"`
  36. MsgType int `form:"msgType"`
  37. }
  38. type MsgReadStatusResp struct {
  39. Code int64 `json:"code"`
  40. Message string `json:"message"`
  41. Status int64 `json:"status"`
  42. }
  43. type MarkReadReq struct {
  44. MsgId int64 `json:"msgId"`
  45. AppId string `header:"appId"`
  46. }
  47. type MarkReadRes struct {
  48. Code int64 `json:"code"`
  49. Message string `json:"message"`
  50. Data int64 `json:"data"`
  51. }
  52. type MultipleSaveMsgReq struct {
  53. MsgInfo map[string]interface{} `json:"msgInfo"`
  54. UserIds string `json:"userIds"`
  55. UserNames string `json:"userNames"`
  56. PositionIds string `json:"positionIds,optional"` // 职位id 如果是多个就逗号分割 和用户id一一对应
  57. }
  58. type MultipleSaveMsgResp struct {
  59. Code int64 `json:"code"`
  60. Message string `json:"message"`
  61. ErrCount int64 `json:"errCount"`
  62. }
  63. type GetBuoyMsgReq struct {
  64. UserId string `header:"mgoUserId"`
  65. AppId string `header:"appId"`
  66. Size int64 `json:"size,optional"`
  67. }
  68. type GetBuoyMsgResp struct {
  69. Code int64 `json:"error_code"`
  70. Message string `json:"error_msg"`
  71. Data []map[string]interface{} `json:"data"`
  72. }
  73. type ClearUnreadMsgReq struct {
  74. UserId string `header:"mgoUserId"`
  75. AppId string `header:"appId"`
  76. EntId int64 `header:"entId,optional"`
  77. PositionId int64 `header:"positionId,optional"`
  78. }
  79. type MessageListReq struct {
  80. UserId string `header:"mgoUserId"`
  81. AppId string `header:"appId"`
  82. EntId int64 `header:"entId,optional"`
  83. SortSize int64 `json:"sortSize,optional"` //分类获取数
  84. Offset int64 `json:"offset"` //
  85. Size int64 `json:"size,optional"`
  86. MsgType int64 `json:"msgType,optional"`
  87. IsRead int64 `json:"isRead,optional"`
  88. NewUserId int64 `header:"newUserId,optional"` //私信相关
  89. PositionId int64 `header:"positionId,optional"` //私信相关
  90. IsColumn bool `json:"isColumn"` //是否需要获取栏目
  91. IsColumnNewMsg bool `json:"isColumnNewMsg"` //是否需各栏目获取最新消息
  92. IsMsgList bool `json:"isMsgList"` //是否需要列表信息
  93. }
  94. type MessageListResp struct {
  95. Code int64 `json:"code"`
  96. Message string `json:"message"`
  97. Data []map[string]interface{} `json:"data"`
  98. Last map[string]interface{} `json:"last"`
  99. Total int64 `json:"total"`
  100. Column []map[string]interface{} `json:"column"`
  101. Unread int64 `json:"unread"`
  102. }
  103. type UnreadMessageReq struct {
  104. UserId string `header:"mgoUserId"`
  105. AppId string `header:"appId"`
  106. Offset int64 `json:"offset"` //
  107. PageSize int64 `json:"pageSize"`
  108. IsNeedData int64 `json:"isNeedData"` //是否需要未读消息数据 0 不需要 1 需要
  109. }
  110. type UnreadMessageResp struct {
  111. Code int64 `json:"code"`
  112. Message string `json:"message"`
  113. Data []map[string]interface{} `json:"data"`
  114. Total int64 `json:"total"`
  115. }
  116. type WxTmplMessageReq struct {
  117. UserIds string `json:"userIds,optional"` // 用户id如果是多个就逗号分割
  118. PositionIds string `json:"positionIds,optional"` //用户职位id
  119. Title string `json:"title"`
  120. Date string `json:"date"`
  121. Detail string `json:"detail"`
  122. Class string `json:"class"`
  123. Url string `json:"url"`
  124. }
  125. type WxTmplMessageResponse struct {
  126. Code int64 `json:"code"`
  127. Total int64 `json:"total"`
  128. Message string `json:"message"`
  129. }