Skip to content

Commit

Permalink
fixed standings model.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Hill committed Jul 22, 2018
1 parent 8f6be23 commit 8c6d2be
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions models.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ type PlayersIO struct {
}

type StandingsIO struct {
LastUpdatedOn string `json:"lastUpdatedOn"`
Teams *[]Teams `json:"players"`
References *[]References `json:"references"`
LastUpdatedOn string `json:"lastUpdatedOn"`
Teams *[]Teams `json:"teams"`
References *References `json:"references"`
}

// Sub Models
Expand Down Expand Up @@ -157,16 +157,16 @@ type References struct {
}

type TeamReference struct {
ID int `json:"id"`
City string `json:"city"`
Name string `json:"name"`
Abbreviation string `json:"abbreviation"`
HomeVenue HomeVenue `json:"homeVenue"`
ID *int `json:"id"`
City *string `json:"city"`
Name *string `json:"name"`
Abbreviation *string `json:"abbreviation"`
HomeVenue *HomeVenue `json:"homeVenue"`
}

type HomeVenue struct {
ID int `json:"id"`
Name string `json:"name"`
ID *int `json:"id"`
Name *string `json:"name"`
}

type VenueReference struct {
Expand Down Expand Up @@ -336,7 +336,7 @@ type Batting struct {

type Pitching struct {
EarnedRunAvg *float64 `json:"earnedRunAvg"`
InningsPitched *int `json:"inningsPitched"`
InningsPitched *float64 `json:"inningsPitched"`
HitsAllowed *int `json:"hitsAllowed"`
SecondBaseHitsAllowed *int `json:"secondBaseHitsAllowed"`
ThirdBaseHitsAllowed *int `json:"thirdBaseHitsAllowed"`
Expand Down

0 comments on commit 8c6d2be

Please sign in to comment.