param.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package http
  2. // Histroy Histroy.
  3. type Histroy struct {
  4. Pn int `form:"pn"`
  5. Ps int `form:"ps"`
  6. TP int8 `form:"type"`
  7. }
  8. // AddHistory AddHistory.
  9. type AddHistory struct {
  10. Aid int64 `form:"aid" validate:"required,gt=0"`
  11. Cid int64 `form:"cid"`
  12. Epid int64 `form:"epid"`
  13. TP int8 `form:"type"`
  14. SubTP int8 `form:"sub_type"`
  15. DT int8 `form:"dt"`
  16. Sid int64 `form:"sid"`
  17. Platform string `form:"platform"`
  18. Device string `form:"device"`
  19. }
  20. // HistoryReport HistoryReport.
  21. type HistoryReport struct {
  22. Mid int64 `form:"mid"`
  23. Aid int64 `form:"aid"`
  24. Type int8 `form:"type"`
  25. Cid int64 `form:"cid"`
  26. Epid int64 `form:"epid"`
  27. Sid int64 `form:"sid"`
  28. SubTP int8 `form:"subtype"`
  29. SubType int8 `form:"sub_type"`
  30. DT int8 `form:"dt"`
  31. Realtime int64 `form:"realtime"`
  32. Source int64 `form:"source"`
  33. Progress int64 `form:"progress"`
  34. Platform string `form:"platform"`
  35. Device string `form:"device"`
  36. PlayTime int64 `form:"play_time"`
  37. MobileApp string `form:"mobi_app"`
  38. }
  39. // Page Page.
  40. type Page struct {
  41. Pn int `form:"pn"`
  42. Ps int `form:"ps"`
  43. }