Skip to content

Commit

Permalink
changing float64 to NullFloat64 on efficiency (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasehlert authored Dec 28, 2021
1 parent 083b88b commit dbb0793
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/v1_TeslaMateAPICars.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ func TeslaMateAPICarsV1(c *gin.Context) {
// creating structs for /cars
// CarDetails struct - child of Cars
type CarDetails struct {
EID int64 `json:"eid"` // bigint
VID int64 `json:"vid"` // bigint
Vin string `json:"vin"` // text
Model string `json:"model"` // character varying(255)
TrimBadging NullString `json:"trim_badging"` // text
Efficiency float64 `json:"efficiency"` // double precision
EID int64 `json:"eid"` // bigint
VID int64 `json:"vid"` // bigint
Vin string `json:"vin"` // text
Model string `json:"model"` // character varying(255)
TrimBadging NullString `json:"trim_badging"` // text
Efficiency NullFloat64 `json:"efficiency"` // double precision
}
// CarExterior struct - child of Cars
type CarExterior struct {
Expand Down

0 comments on commit dbb0793

Please sign in to comment.