41 lines
1.1 KiB
Go
41 lines
1.1 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
|
|
} |