add card supply & club memberships to player

This commit is contained in:
Laurent Le Houerou 2024-04-05 22:01:48 +04:00
parent 8637b0a854
commit 06c49983aa

View File

@ -30,6 +30,25 @@ type Suspension struct {
} `graphql:"competition"`
}
type CardSupply 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 ClubMembership struct {
Id graphql.Id `graphql:"id"`
Club struct {
Slug string `graphql:"slug"`
} `graphql:"club"`
StartDate time.Time `graphql:"startDate"`
EndDate *time.Time `graphql:"endDate"`
}
type Player struct {
ActiveClub struct {
Slug string `graphql:"slug"`
@ -48,6 +67,8 @@ type Player struct {
BestFoot string `graphql:"bestFoot"`
BirthDate time.Time `graphql:"birthDate"`
CardPositions []types.Position `graphql:"cardPositions"`
CardSupply []CardSupply `graphql:"cardSupply"`
ClubMemberships []ClubMembership `graphql:"clubMemberships"`
Id graphql.Id `graphql:"id"`
Slug string `graphql:"slug"`
DisplayName string `graphql:"displayName"`