types.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 MessageDeleteResp struct {
  8. Code int64 `json:"code"`
  9. Message string `json:"message"`
  10. Status int64 `json:"isOk"`
  11. }
  12. type MessageGetLastReq struct {
  13. UserId string `form:"userId"`
  14. AppId string `form:"appId"`
  15. MsgType int64 `form:"msgType"`
  16. }
  17. type MessageGetLastRes struct {
  18. Code int64 `json:"code"`
  19. Message string `json:"message"`
  20. Data map[string]interface{} `json:"data"`
  21. Status int64 `json:"isOk"`
  22. }
  23. type MessageFindReq struct {
  24. UserId string `form:"userId"`
  25. AppId string `form:"appId"`
  26. MsgType int64 `form:"msgType"` // 是否限制消息类型 -1 不限制
  27. IsRead int64 `form:"isRead"` // 是否限制未读 -1 不限制
  28. Offset int64 `form:"offset"` // 页数
  29. PageSize int64 `form:"pageSize"` //
  30. }
  31. type MessageFindRes struct {
  32. Code int64 `json:"code"`
  33. Message string `json:"message"`
  34. Status int64 `json:"isOk"`
  35. Data []map[string]interface{} `json:"data"`
  36. Total int64 `json:"total"`
  37. }
  38. type MessageUnreadClassCountReq struct {
  39. UserId string `form:"userId"`
  40. AppId string `form:"appId"`
  41. }
  42. type MessageUnreadClassCountRes struct {
  43. Code int64 `json:"code"`
  44. Status int64 `json:"isOk"`
  45. Message string `json:"message"`
  46. Data []map[string]interface{} `json:"data"`
  47. Info []map[string]interface{} `json:"info"`
  48. }