|
| 1 | +package types |
| 2 | + |
| 3 | +type ScheduleResp struct { |
| 4 | + Data ScheduleData `json:"data"` |
| 5 | +} |
| 6 | + |
| 7 | +type ScheduleData struct { |
| 8 | + Event Event `json:"event"` |
| 9 | + LastEvent LastEvent `json:"last_event"` |
| 10 | +} |
| 11 | + |
| 12 | +type Event struct { |
| 13 | + Title string `json:"title"` |
| 14 | + Zones Zones `json:"zones"` |
| 15 | +} |
| 16 | + |
| 17 | +type Zones struct { |
| 18 | + Nodes []ZoneNode `json:"nodes"` |
| 19 | +} |
| 20 | + |
| 21 | +type ZoneNode struct { |
| 22 | + ID string `json:"id"` |
| 23 | + MatchDates []string `json:"matchDates"` |
| 24 | + Name string `json:"name"` |
| 25 | + ZoneType string `json:"zoneType"` |
| 26 | + Groups Groups `json:"groups"` |
| 27 | + GroupMatches Matches `json:"groupMatches"` |
| 28 | + KnockoutMatches Matches `json:"knockoutMatches"` |
| 29 | +} |
| 30 | + |
| 31 | +type Groups struct { |
| 32 | + Nodes []GroupNode `json:"nodes"` |
| 33 | +} |
| 34 | + |
| 35 | +type GroupNode struct { |
| 36 | + ID string `json:"id"` |
| 37 | + Name string `json:"name"` |
| 38 | + Players Players `json:"players"` |
| 39 | +} |
| 40 | + |
| 41 | +type Players struct { |
| 42 | + Nodes []PlayerNode `json:"nodes"` |
| 43 | +} |
| 44 | + |
| 45 | +type PlayerNode struct { |
| 46 | + ID string `json:"id"` |
| 47 | + Name string `json:"name"` |
| 48 | + Rank int `json:"rank"` |
| 49 | + Score int `json:"score"` |
| 50 | + TeamID *string `json:"teamId,omitempty"` |
| 51 | + Team *Team `json:"team,omitempty"` |
| 52 | +} |
| 53 | + |
| 54 | +type Team struct { |
| 55 | + ID string `json:"id"` |
| 56 | + Name string `json:"name"` |
| 57 | + CollegeLogo string `json:"collegeLogo"` |
| 58 | + CollegeName string `json:"collegeName"` |
| 59 | +} |
| 60 | + |
| 61 | +type Matches struct { |
| 62 | + Nodes []MatchNode `json:"nodes"` |
| 63 | +} |
| 64 | + |
| 65 | +type MatchNode struct { |
| 66 | + ID string `json:"id"` |
| 67 | + GroupID string `json:"groupId"` |
| 68 | + MatchType string `json:"matchType"` |
| 69 | + OrderNumber int `json:"orderNumber"` |
| 70 | + PlanGameCount int `json:"planGameCount"` |
| 71 | + PlanStartedAt string `json:"planStartedAt"` |
| 72 | + Result string `json:"result"` |
| 73 | + Slug interface{} `json:"slug"` |
| 74 | + SlugName string `json:"slugName"` |
| 75 | + Status string `json:"status"` |
| 76 | + WinnerPlaceholdName interface{} `json:"winnerPlaceholdName"` |
| 77 | + LoserPlaceholdName interface{} `json:"loserPlaceholdName"` |
| 78 | + BlueSideID string `json:"blueSideId"` |
| 79 | + BlueSideScore int `json:"blueSideScore"` |
| 80 | + BlueSideWinGameCount int `json:"blueSideWinGameCount"` |
| 81 | + BlueSide BlueSide `json:"blueSide"` |
| 82 | + RedSideID string `json:"redSideId"` |
| 83 | + RedSideScore int `json:"redSideScore"` |
| 84 | + RedSideWinGameCount int `json:"redSideWinGameCount"` |
| 85 | + RedSide RedSide `json:"redSide"` |
| 86 | +} |
| 87 | + |
| 88 | +type BlueSide struct { |
| 89 | + ID string `json:"id"` |
| 90 | + PreparedStatus string `json:"preparedStatus"` |
| 91 | + FillSourceID *string `json:"fillSourceId,omitempty"` |
| 92 | + FillSourceType *string `json:"fillSourceType,omitempty"` |
| 93 | + FillSourceNumber *int `json:"fillSourceNumber,omitempty"` |
| 94 | + FillStatus string `json:"fillStatus"` |
| 95 | + PlayerID *string `json:"playerId,omitempty"` |
| 96 | + Player *Player `json:"player,omitempty"` |
| 97 | + UpdatedAt string `json:"updatedAt"` |
| 98 | +} |
| 99 | + |
| 100 | +type Player struct { |
| 101 | + ID string `json:"id"` |
| 102 | + Name string `json:"name"` |
| 103 | + Rank int `json:"rank"` |
| 104 | + Score int `json:"score"` |
| 105 | + TeamID *string `json:"teamId,omitempty"` |
| 106 | + Team *Team `json:"team,omitempty"` |
| 107 | +} |
| 108 | + |
| 109 | +type PlayerWithMatch struct { |
| 110 | + Player Player `json:"player"` |
| 111 | + Match MatchNode `json:"match"` |
| 112 | +} |
| 113 | + |
| 114 | +type RedSide struct { |
| 115 | + ID string `json:"id"` |
| 116 | + PreparedStatus string `json:"preparedStatus"` |
| 117 | + FillSourceID *string `json:"fillSourceId,omitempty"` |
| 118 | + FillSourceType *string `json:"fillSourceType,omitempty"` |
| 119 | + FillSourceNumber *int `json:"fillSourceNumber,omitempty"` |
| 120 | + FillStatus string `json:"fillStatus"` |
| 121 | + PlayerID *string `json:"playerId,omitempty"` |
| 122 | + Player *Player `json:"player,omitempty"` |
| 123 | + UpdatedAt string `json:"updatedAt"` |
| 124 | +} |
| 125 | + |
| 126 | +type LastEvent struct { |
| 127 | + Title string `json:"title"` |
| 128 | + Zones Zones `json:"zones"` |
| 129 | +} |
0 commit comments