types.go 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. type MessageDeleteReq struct {
  4. Id string `form:"id"`
  5. AppId string `form:"appId"`
  6. }
  7. type Response struct {
  8. Code int64 `json:"code"`
  9. Message string `json:"message"`
  10. }
  11. type MessageDetailReq struct {
  12. Id string `form:"id"`
  13. }
  14. type MessageDetailResp struct {
  15. Code int64 `json:"code"`
  16. Message string `json:"message"`
  17. Data map[string]interface{} `json:"data"`
  18. }
  19. type MessageGetLastReq struct {
  20. UserId string `form:"userId"`
  21. AppId string `form:"appId"`
  22. MsgType int64 `form:"msgType"`
  23. IsRead int64 `form:"isRead"` // 1 0 -1
  24. }
  25. type MessageGetLastRes struct {
  26. Code int64 `json:"code"`
  27. Message string `json:"message"`
  28. Data map[string]interface{} `json:"data"`
  29. }
  30. type MessageFindReq struct {
  31. UserId string `form:"userId"`
  32. AppId string `form:"appId"`
  33. ReceiveUserId string `form:"receiveUserId"`
  34. MsgType int64 `form:"msgType"` // 是否限制消息类型 -1 不限制
  35. IsRead int64 `form:"isRead"` // 是否限制未读 -1 不限制
  36. Offset int64 `form:"offset"` // 页数
  37. PageSize int64 `form:"pageSize"` //
  38. }
  39. type MessageFindRes struct {
  40. Code int64 `json:"code"`
  41. Message string `json:"message"`
  42. Data []map[string]interface{} `json:"data"`
  43. Total int64 `json:"total"`
  44. }
  45. type MessageUnreadClassCountReq struct {
  46. UserId string `form:"userId"`
  47. AppId string `form:"appId"`
  48. }
  49. type MessageUnreadClassCountRes struct {
  50. Code int64 `json:"code"`
  51. Message string `json:"message"`
  52. Data []map[string]interface{} `json:"data"`
  53. }
  54. type MessageUnreadCountReq struct {
  55. UserId string `form:"userId"`
  56. AppId string `form:"appId"`
  57. }
  58. type MessageUnreadCountRes struct {
  59. Code int64 `json:"code"`
  60. Message string `json:"message"`
  61. Data map[string]interface{} `json:"data"`
  62. }
  63. type MessageTypeReq struct {
  64. UserId string `form:"userId"`
  65. AppId string `form:"appId"`
  66. }
  67. type MessageTypeRes struct {
  68. Code int64 `json:"code"`
  69. Message string `json:"message"`
  70. Data []int64 `json:"data"`
  71. }
  72. type MsgReadStatusReq struct {
  73. UserId string `form:"userId"`
  74. AppId string `form:"appId"`
  75. MsgType int `form:"msgType"`
  76. }
  77. type MsgReadStatusResp struct {
  78. Code int64 `json:"code"`
  79. Message string `json:"message"`
  80. Status int64 `json:"status"`
  81. }
  82. type MarkReadReq struct {
  83. MsgId string `form:"msgId"`
  84. AppId string `form:"appId"`
  85. }
  86. type MarkReadRes struct {
  87. Code int64 `json:"code"`
  88. Message string `json:"message"`
  89. Data int64 `json:"data"`
  90. }
  91. type SendMsgReq struct {
  92. ReceiveUserId string `form:"receiveUserId"` //接收方的用户id
  93. ReceiveName string `form:"receiveName,optional"` //接收方的用户名
  94. SendUserId string `form:"sendUserId"` //发送方的用户id
  95. SendName string `form:"sendName"` //发送方的用户名
  96. Title string `form:"title"` //标题
  97. Content string `form:"content"` //内容
  98. MsgType int64 `form:"msgType"` // 消息类型
  99. Link string `form:"link,optional"` //连接
  100. CiteId int64 `form:"citeId,optional"` //应用id
  101. Appid string `form:"appid"`
  102. }
  103. type SendMsgResp struct {
  104. Code int64 `json:"code"`
  105. Message string `json:"message"`
  106. Status int64 `json:"status"`
  107. }
  108. type MultipleSaveMsgReq struct {
  109. MsgInfo map[string]interface{} `json:"msgInfo"`
  110. UserIds string `json:"userIds"`
  111. UserNames string `json:"userNames"`
  112. }
  113. type MultipleSaveMsgResp struct {
  114. Code int64 `json:"code"`
  115. Message string `json:"message"`
  116. ErrCount int64 `json:"errCount"`
  117. }