types.go 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 int64 `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. }
  24. type MessageGetLastRes struct {
  25. Code int64 `json:"code"`
  26. Message string `json:"message"`
  27. Data map[string]interface{} `json:"data"`
  28. }
  29. type MessageFindReq struct {
  30. UserId string `form:"userId"`
  31. AppId string `form:"appId"`
  32. ReceiveUserId string `form:"receiveUserId"`
  33. MsgType int64 `form:"msgType"` // 是否限制消息类型 -1 不限制
  34. IsRead int64 `form:"isRead"` // 是否限制未读 -1 不限制
  35. Offset int64 `form:"offset"` // 页数
  36. PageSize int64 `form:"pageSize"` //
  37. }
  38. type MessageFindRes struct {
  39. Code int64 `json:"code"`
  40. Message string `json:"message"`
  41. Data []map[string]interface{} `json:"data"`
  42. Total int64 `json:"total"`
  43. }
  44. type MessageUnreadClassCountReq struct {
  45. UserId string `form:"userId"`
  46. AppId string `form:"appId"`
  47. NeedMsg bool `form:"needMsg"`
  48. }
  49. type MessageUnreadClassCountRes struct {
  50. Code int64 `json:"code"`
  51. Message string `json:"message"`
  52. Data []map[string]interface{} `json:"data"`
  53. Info []map[string]interface{} `json:"info"`
  54. }
  55. type MessageUnreadCountReq struct {
  56. UserId string `form:"userId"`
  57. AppId string `form:"appId"`
  58. }
  59. type MessageUnreadCountRes struct {
  60. Code int64 `json:"code"`
  61. Message string `json:"message"`
  62. Data map[string]interface{} `json:"data"`
  63. }
  64. type MessageTypeReq struct {
  65. UserId string `form:"userId"`
  66. AppId string `form:"appId"`
  67. }
  68. type MessageTypeRes struct {
  69. Code int64 `json:"code"`
  70. Message string `json:"message"`
  71. Data []int64 `json:"data"`
  72. }
  73. type MsgReadStatusReq struct {
  74. UserId string `form:"userId"`
  75. AppId string `form:"appId"`
  76. MsgType int `form:"msgType"`
  77. }
  78. type MsgReadStatusResp struct {
  79. Code int64 `json:"code"`
  80. Message string `json:"message"`
  81. Status int64 `json:"status"`
  82. }
  83. type MarkReadReq struct {
  84. MsgId int64 `form:"msgId"`
  85. AppId string `form:"appId"`
  86. }
  87. type MarkReadRes struct {
  88. Code int64 `json:"code"`
  89. Message string `json:"message"`
  90. Data int64 `json:"data"`
  91. }
  92. type SendMsgReq struct {
  93. ReceiveUserId string `form:"receiveUserId"` //接收方的用户id
  94. ReceiveName string `form:"receiveName"` //接收方的用户名
  95. SendUserId string `form:"sendUserId"` //发送方的用户id
  96. SendName string `form:"sendName"` //发送方的用户名
  97. Title string `form:"title"` //标题
  98. Content string `form:"content"` //内容
  99. MsgType int64 `form:"msgType"` // 消息类型
  100. Link string `form:"link"` //连接
  101. CiteId int64 `form:"citeId,optional"` //应用id
  102. Appid string `form:"appid"`
  103. }
  104. type SendMsgResp struct {
  105. Code int64 `json:"code"`
  106. Message string `json:"message"`
  107. Status int64 `json:"status"`
  108. }