types.go 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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 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. }
  70. type MessageListReq struct {
  71. UserId string `header:"mgoUserId"`
  72. AppId string `header:"appId"`
  73. EntId int64 `header:"entId,optional"`
  74. SortSize int64 `json:"sortSize,optional"` //分类获取数
  75. Offset int64 `json:"offset"` //
  76. Size int64 `json:"size,optional"`
  77. MsgType int64 `json:"msgType,optional"`
  78. IsRead int64 `json:"isRead,optional"`
  79. NewUserId int64 `header:"newUserId,optional"` //私信相关
  80. PositionId int64 `header:"positionId,optional"` //私信相关
  81. IsColumn bool `json:"isColumn"` //是否需要获取栏目
  82. IsColumnNewMsg bool `json:"isColumnNewMsg"` //是否需各栏目获取最新消息
  83. IsMsgList bool `json:"isMsgList"` //是否需要列表信息
  84. }
  85. type MessageListResp struct {
  86. Code int64 `json:"code"`
  87. Message string `json:"message"`
  88. Data []map[string]interface{} `json:"data"`
  89. Last map[string]interface{} `json:"last"`
  90. Total int64 `json:"total"`
  91. Column []map[string]interface{} `json:"column"`
  92. Unread int64 `json:"unread"`
  93. RollingTiming int64 `json:"rollingTiming"`
  94. }
  95. type UnreadMessageReq struct {
  96. UserId string `header:"mgoUserId"`
  97. AppId string `header:"appId"`
  98. Offset int64 `json:"offset"` //
  99. PageSize int64 `json:"pageSize"`
  100. IsNeedData int64 `json:"isNeedData"` //是否需要未读消息数据 0 不需要 1 需要
  101. }
  102. type UnreadMessageResp struct {
  103. Code int64 `json:"code"`
  104. Message string `json:"message"`
  105. Data []map[string]interface{} `json:"data"`
  106. Total int64 `json:"total"`
  107. }
  108. type WxTmplMessageReq struct {
  109. UserIds string `json:"userIds,optional"` // 用户id如果是多个就逗号分割
  110. PositionIds string `json:"positionIds,optional"` //用户职位id
  111. Title string `json:"title"`
  112. Date string `json:"date"`
  113. Detail string `json:"detail"`
  114. Class string `json:"class"`
  115. Url string `json:"url"`
  116. }
  117. type WxTmplMessageResponse struct {
  118. Code int64 `json:"code"`
  119. Total int64 `json:"total"`
  120. Message string `json:"message"`
  121. }