types.go 4.7 KB

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