match.go 653 B

12345678910111213141516171819202122232425
  1. package model
  2. // Match .
  3. type Match struct {
  4. ID int64 `json:"id" form:"id"`
  5. Title string `json:"title" form:"title"`
  6. SubTitle string `json:"sub_title" form:"sub_title"`
  7. CYear int `json:"c_year" form:"c_year"`
  8. Sponsor string `json:"sponsor" form:"sponsor"`
  9. Logo string `json:"logo" form:"logo" validate:"required"`
  10. Dic string `json:"dic" form:"dic"`
  11. Status int `json:"status" form:"status"`
  12. Rank int `json:"rank" form:"rank" validate:"min=0,max=99"`
  13. }
  14. // MatchInfo .
  15. type MatchInfo struct {
  16. *Match
  17. Games []*Game `json:"games"`
  18. }
  19. // TableName .
  20. func (m Match) TableName() string {
  21. return "es_matchs"
  22. }