match.go 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package model
  2. import (
  3. "time"
  4. )
  5. // ActMatchs def.
  6. type ActMatchs struct {
  7. ID int64 `json:"id" form:"id"`
  8. Name string `json:"name" form:"name"`
  9. URL string `json:"url" form:"url"`
  10. Cover string `json:"cover" form:"cover"`
  11. SID int64 `json:"sid" form:"sid" gorm:"column:sid"`
  12. MaxStake int64 `json:"max_stake" form:"max_stake"`
  13. Stake int8 `json:"stake" form:"stake"`
  14. Status int8 `json:"status" form:"status"`
  15. Ctime time.Time `json:"ctime"`
  16. Mtime time.Time `json:"mtime"`
  17. }
  18. // ActMatchsObject def.
  19. type ActMatchsObject struct {
  20. ID int64 `json:"id" form:"id"`
  21. HomeName string `json:"home_name" form:"home_name"`
  22. HomeLogo string `json:"home_logo" form:"home_logo"`
  23. HomeScore int64 `json:"home_score" form:"home_score"`
  24. AwayName string `json:"away_name" form:"away_name"`
  25. AwayLogo string `json:"away_logo" form:"away_logo"`
  26. AwayScore int64 `json:"away_score" form:"away_score"`
  27. SID int64 `json:"sid" gorm:"column:sid" form:"sid"`
  28. MatchID int64 `json:"match_id" form:"match_id"`
  29. GameStime time.Time `json:"game_stime" form:"game_stime" time_format:"2006-01-02 15:04:05"`
  30. Stime time.Time `json:"stime" form:"stime" time_format:"2006-01-02 15:04:05"`
  31. Etime time.Time `json:"etime" form:"etime" time_format:"2006-01-02 15:04:05"`
  32. Ctime time.Time `json:"ctime"`
  33. Mtime time.Time `json:"mtime"`
  34. Result int8 `json:"result" form:"result"`
  35. Status int8 `json:"status" form:"status"`
  36. }
  37. // TableName ActMatchsObject def.
  38. func (ActMatchsObject) TableName() string {
  39. return "act_matchs_object"
  40. }