season.go 1000 B

12345678910111213141516171819202122232425262728293031
  1. package model
  2. // Season .
  3. type Season struct {
  4. ID int64 `json:"id" form:"id"`
  5. Mid int64 `json:"mid" form:"mid" validate:"required"`
  6. Title string `json:"title" form:"title" validate:"required"`
  7. SubTitle string `json:"sub_title" form:"sub_title"`
  8. Stime int64 `json:"stime" form:"stime"`
  9. Etime int64 `json:"etime" form:"etime"`
  10. Sponsor string `json:"sponsor" form:"sponsor"`
  11. Logo string `json:"logo" form:"logo" validate:"required"`
  12. Dic string `json:"dic" form:"dic"`
  13. Status int `json:"status" form:"is_deleted"`
  14. IsApp int `json:"is_app" form:"is_app"`
  15. Rank int `json:"rank" form:"rank" validate:"min=0,max=10"`
  16. URL string `json:"url" form:"url"`
  17. DataFocus string `json:"data_focus" form:"data_focus"`
  18. FocusURL string `json:"focus_url" form:"focus_url"`
  19. }
  20. // SeasonInfo .
  21. type SeasonInfo struct {
  22. *Season
  23. Games []*Game `json:"games"`
  24. }
  25. // TableName .
  26. func (s Season) TableName() string {
  27. return "es_seasons"
  28. }