types.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 MarkReadReq struct {
  74. MsgId int64 `form:"msgId"`
  75. AppId string `form:"appId"`
  76. }
  77. type MarkReadRes struct {
  78. Code int64 `json:"code"`
  79. Message string `json:"message"`
  80. Data int64 `json:"data"`
  81. }