From 60a51063be6d2d41926b92d04df101168f66a1a8 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Fri, 5 Apr 2024 21:47:05 +0400 Subject: [PATCH] add club memberships to player --- football/player.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/football/player.go b/football/player.go index 43257fe..b7a1372 100644 --- a/football/player.go +++ b/football/player.go @@ -40,6 +40,15 @@ type CardSeasonSupply struct { 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"` @@ -59,6 +68,7 @@ type Player struct { BirthDate time.Time `graphql:"birthDate"` CardPositions []types.Position `graphql:"cardPositions"` CardSupply []CardSeasonSupply `graphql:"cardSupply"` + ClubMemberships []ClubMembership `graphql:"clubMemberships"` Id graphql.Id `graphql:"id"` Slug string `graphql:"slug"` DisplayName string `graphql:"displayName"`