add card supplies to player

This commit is contained in:
Laurent Le Houerou 2024-04-04 21:24:26 +04:00
parent 8637b0a854
commit f3f6899de0

View File

@ -30,6 +30,16 @@ type Suspension struct {
} `graphql:"competition"`
}
type CardSeasonSupply struct {
Season struct {
StartYear int `graphql:"startYear"`
} `graphql:"season"`
Limited int `graphql:"limited"`
Rare int `graphql:"rare"`
SuperRare int `graphql:"superRare"`
Unique int `graphql:"unique"`
}
type Player struct {
ActiveClub struct {
Slug string `graphql:"slug"`
@ -41,19 +51,20 @@ type Player struct {
ActiveNationalTeam struct {
Slug string `graphql:"slug"`
} `graphql:"activeNationalTeam"`
ActiveInjuries []Injury `graphql:"activeInjuries"`
ActiveSuspensions []Suspension `graphql:"activeSuspensions"`
Age int `graphql:"age"`
Appearances int `graphql:"appearances"`
BestFoot string `graphql:"bestFoot"`
BirthDate time.Time `graphql:"birthDate"`
CardPositions []types.Position `graphql:"cardPositions"`
Id graphql.Id `graphql:"id"`
Slug string `graphql:"slug"`
DisplayName string `graphql:"displayName"`
FirstName string `graphql:"firstName"`
Height int `graphql:"height"`
Injuries []Injury `graphql:"injuries"`
ActiveInjuries []Injury `graphql:"activeInjuries"`
ActiveSuspensions []Suspension `graphql:"activeSuspensions"`
Age int `graphql:"age"`
Appearances int `graphql:"appearances"`
BestFoot string `graphql:"bestFoot"`
BirthDate time.Time `graphql:"birthDate"`
CardPositions []types.Position `graphql:"cardPositions"`
CardSupply []CardSeasonSupply `graphql:"cardSupply"`
Id graphql.Id `graphql:"id"`
Slug string `graphql:"slug"`
DisplayName string `graphql:"displayName"`
FirstName string `graphql:"firstName"`
Height int `graphql:"height"`
Injuries []Injury `graphql:"injuries"`
LastClub struct {
Slug string `graphql:"slug"`
} `graphql:"lastClub"`