57 lines
1.5 KiB
Go
57 lines
1.5 KiB
Go
package domain
|
|
|
|
import "time"
|
|
|
|
type Event struct {
|
|
ID string
|
|
SportID string
|
|
MatchName string
|
|
HomeTeam string
|
|
AwayTeam string
|
|
HomeTeamID string
|
|
AwayTeamID string
|
|
HomeKitImage string
|
|
AwayKitImage string
|
|
LeagueID string
|
|
LeagueName string
|
|
LeagueCC string
|
|
StartTime string
|
|
Score string
|
|
MatchMinute int
|
|
TimerStatus string
|
|
AddedTime int
|
|
MatchPeriod int
|
|
IsLive bool
|
|
Status string
|
|
}
|
|
type UpcomingEvent struct {
|
|
ID string // Event ID
|
|
SportID string // Sport ID
|
|
MatchName string // Match or event name
|
|
HomeTeam string // Home team name (if available)
|
|
AwayTeam string // Away team name (can be empty/null)
|
|
HomeTeamID string // Home team ID
|
|
AwayTeamID string // Away team ID (can be empty/null)
|
|
HomeKitImage string // Kit or image for home team (optional)
|
|
AwayKitImage string // Kit or image for away team (optional)
|
|
LeagueID string // League ID
|
|
LeagueName string // League name
|
|
LeagueCC string // League country code
|
|
StartTime time.Time // Converted from "time" field in UNIX format
|
|
}
|
|
type MatchResult struct {
|
|
EventID string
|
|
FullScore string
|
|
HalfScore string
|
|
Status string
|
|
Scores map[string]map[string]string
|
|
}
|
|
|
|
type Odds struct {
|
|
ID int64 `json:"id"`
|
|
EventID string `json:"event_id"`
|
|
MarketType string `json:"market_type"`
|
|
Name string `json:"name"`
|
|
HitStatus string `json:"hit_status"`
|
|
}
|