93 lines
2.4 KiB
Go
93 lines
2.4 KiB
Go
package domain
|
||
|
||
type League struct {
|
||
ID int64 `json:"id" example:"1"`
|
||
Name string `json:"name" example:"BPL"`
|
||
CountryCode string `json:"cc" example:"uk"`
|
||
Bet365ID int32 `json:"bet365_id" example:"1121"`
|
||
IsActive bool `json:"is_active" example:"false"`
|
||
SportID int32 `json:"sport_id" example:"1"`
|
||
IsFeatured bool `json:"is_featured" example:"false"`
|
||
}
|
||
|
||
type UpdateLeague struct {
|
||
ID int64 `json:"id" example:"1"`
|
||
Name ValidString `json:"name" example:"BPL"`
|
||
CountryCode ValidString `json:"cc" example:"uk"`
|
||
Bet365ID ValidInt32 `json:"bet365_id" example:"1121"`
|
||
IsActive ValidBool `json:"is_active" example:"false"`
|
||
IsFeatured ValidBool `json:"is_featured" example:"false"`
|
||
SportID ValidInt32 `json:"sport_id" example:"1"`
|
||
}
|
||
|
||
type LeagueFilter struct {
|
||
CountryCode ValidString
|
||
SportID ValidInt32
|
||
IsActive ValidBool
|
||
IsFeatured ValidBool
|
||
Limit ValidInt64
|
||
Offset ValidInt64
|
||
}
|
||
|
||
// These leagues are automatically featured when the league is created
|
||
var FeaturedLeagues = []int64{
|
||
// Football
|
||
10044469, // Ethiopian Premier League
|
||
10041282, //Premier League
|
||
10083364, //La Liga
|
||
10041095, //German Bundesliga
|
||
10041100, //Ligue 1
|
||
10041809, //UEFA Champions League
|
||
10041957, //UEFA Europa League
|
||
10079560, //UEFA Conference League
|
||
10050282, //UEFA Nations League
|
||
10044685, //FIFA Club World Cup
|
||
10050346, //UEFA Super Cup
|
||
10081269, //CONCACAF Champions Cup
|
||
10070189, //CONCACAF Gold Cup
|
||
10076185, //UEFA Regions Cup
|
||
|
||
10067913, //Europe - World Cup Qualifying
|
||
10040162, //Asia - World Cup Qualifying
|
||
10067624, //South America - World Cup Qualifying
|
||
10073057, //North & Central America - World Cup Qualifying
|
||
|
||
10037075, //International Match
|
||
10077480, //Women’s International
|
||
10037109, //Europe Friendlies
|
||
10068837, //Euro U21
|
||
|
||
10041315, //Italian Serie A
|
||
10036538, //Spain Segunda
|
||
10047168, // US MLS
|
||
|
||
10043156, //England FA Cup
|
||
10042103, //France Cup
|
||
10041088, //Premier League 2
|
||
10084250, //Turkiye Super League
|
||
10041187, //Kenya Super League
|
||
10041391, //Netherlands Eredivisie
|
||
|
||
// Basketball
|
||
10041830, //NBA
|
||
10049984, //WNBA
|
||
10037165, //German Bundesliga
|
||
10036608, //Italian Lega 1
|
||
10040795, //EuroLeague
|
||
10041534, //Basketball Africa League
|
||
|
||
// Ice Hockey
|
||
10037477, //NHL
|
||
10037447, //AHL
|
||
10069385, //IIHF World Championship
|
||
|
||
// AMERICAN FOOTBALL
|
||
10037219, //NFL
|
||
|
||
// BASEBALL
|
||
10037485, // MLB
|
||
|
||
// VOLLEYBALL
|
||
10069666, //FIVB Nations League
|
||
}
|