changing TrimBadging from string to NullString

This commit is contained in:
Tobias Lindberg
2021-02-15 19:11:09 +01:00
parent 9e063e3d7a
commit 5135acd4a2
+6 -6
View File
@@ -13,12 +13,12 @@ func TeslaMateAPICars() (string, bool) {
// 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 string `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 float64 `json:"efficiency"` // double precision
}
// CarExterior struct - child of Cars
type CarExterior struct {