zone_index.go 620 B

1234567891011121314151617181920212223
  1. package model
  2. // IdxSeason is the struct of season in zone index page
  3. type IdxSeason struct {
  4. SeasonID int64 `json:"season_id"`
  5. Title string `json:"title"`
  6. Cover string `json:"cover"`
  7. Upinfo string `json:"upinfo"`
  8. }
  9. // IdxData is the zone index data struct in http response
  10. type IdxData struct {
  11. List []*IdxSeason `json:"list"`
  12. Pager *IdxPager `json:"pager"`
  13. }
  14. // IdxPager is the pager struct to return in zone index page
  15. type IdxPager struct {
  16. CurrentPage int `json:"current_page"`
  17. TotalItems int `json:"total_items"`
  18. TotalPages int `json:"total_pages"`
  19. PageSize int `json:"page_size"`
  20. }