team.go 790 B

123456789101112131415161718192021222324252627
  1. package model
  2. // Team .
  3. type Team struct {
  4. ID int64 `json:"id" form:"id"`
  5. Title string `json:"title" form:"title" validate:"required"`
  6. SubTitle string `json:"sub_title" form:"sub_title"`
  7. ETitle string `json:"e_title" form:"e_title"`
  8. CreateTime int64 `json:"create_time" form:"create_time"`
  9. Area string `json:"area" form:"area"`
  10. Logo string `json:"logo" form:"logo" validate:"required"`
  11. UID int64 `json:"uid" form:"uid" gorm:"column:uid"`
  12. Members string `json:"members" form:"members"`
  13. Dic string `json:"dic" form:"dic"`
  14. IsDeleted int `json:"is_deleted" form:"is_deleted"`
  15. }
  16. // TeamInfo .
  17. type TeamInfo struct {
  18. *Team
  19. Games []*Game `json:"games"`
  20. }
  21. // TableName .
  22. func (t Team) TableName() string {
  23. return "es_teams"
  24. }