add club memberships to player
This commit is contained in:
parent
f3f6899de0
commit
60a51063be
@ -40,6 +40,15 @@ type CardSeasonSupply struct {
|
|||||||
Unique int `graphql:"unique"`
|
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 {
|
type Player struct {
|
||||||
ActiveClub struct {
|
ActiveClub struct {
|
||||||
Slug string `graphql:"slug"`
|
Slug string `graphql:"slug"`
|
||||||
@ -59,6 +68,7 @@ type Player struct {
|
|||||||
BirthDate time.Time `graphql:"birthDate"`
|
BirthDate time.Time `graphql:"birthDate"`
|
||||||
CardPositions []types.Position `graphql:"cardPositions"`
|
CardPositions []types.Position `graphql:"cardPositions"`
|
||||||
CardSupply []CardSeasonSupply `graphql:"cardSupply"`
|
CardSupply []CardSeasonSupply `graphql:"cardSupply"`
|
||||||
|
ClubMemberships []ClubMembership `graphql:"clubMemberships"`
|
||||||
Id graphql.Id `graphql:"id"`
|
Id graphql.Id `graphql:"id"`
|
||||||
Slug string `graphql:"slug"`
|
Slug string `graphql:"slug"`
|
||||||
DisplayName string `graphql:"displayName"`
|
DisplayName string `graphql:"displayName"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user