You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
653 B
25 lines
653 B
package model |
|
|
|
// Match . |
|
type Match struct { |
|
ID int64 `json:"id" form:"id"` |
|
Title string `json:"title" form:"title"` |
|
SubTitle string `json:"sub_title" form:"sub_title"` |
|
CYear int `json:"c_year" form:"c_year"` |
|
Sponsor string `json:"sponsor" form:"sponsor"` |
|
Logo string `json:"logo" form:"logo" validate:"required"` |
|
Dic string `json:"dic" form:"dic"` |
|
Status int `json:"status" form:"status"` |
|
Rank int `json:"rank" form:"rank" validate:"min=0,max=99"` |
|
} |
|
|
|
// MatchInfo . |
|
type MatchInfo struct { |
|
*Match |
|
Games []*Game `json:"games"` |
|
} |
|
|
|
// TableName . |
|
func (m Match) TableName() string { |
|
return "es_matchs" |
|
}
|
|
|