interface > any
This commit is contained in:
14
mysubaru.go
14
mysubaru.go
@ -8,10 +8,10 @@ import (
|
|||||||
|
|
||||||
// Response .
|
// Response .
|
||||||
type Response struct {
|
type Response struct {
|
||||||
Success bool `json:"success"` // true | false
|
Success bool `json:"success"` // true | false
|
||||||
ErrorCode string `json:"errorCode,omitempty"` // string | Error message if Success is false
|
ErrorCode string `json:"errorCode,omitempty"` // string | Error message if Success is false
|
||||||
DataName string `json:"dataName"` // string | Describes the structure which is incleded in Data field
|
DataName string `json:"dataName"` // string | Describes the structure which is incleded in Data field
|
||||||
Data interface{} `json:"data"` // Data struct
|
Data any `json:"data"` // Data struct
|
||||||
}
|
}
|
||||||
|
|
||||||
// Account .
|
// Account .
|
||||||
@ -270,7 +270,7 @@ type ServiceRequest struct {
|
|||||||
// "dataName":"errorResponse"
|
// "dataName":"errorResponse"
|
||||||
type ErrorResponse struct {
|
type ErrorResponse struct {
|
||||||
ErrorLabel string `json:"errorLabel"` // "404-soa-unableToParseResponseBody"
|
ErrorLabel string `json:"errorLabel"` // "404-soa-unableToParseResponseBody"
|
||||||
ErrorDescription *string `json:"errorDescription,omitempty"` //null
|
ErrorDescription *string `json:"errorDescription,omitempty"` // null
|
||||||
}
|
}
|
||||||
|
|
||||||
// climateSettings: [ climateSettings ]
|
// climateSettings: [ climateSettings ]
|
||||||
@ -283,8 +283,8 @@ type ErrorResponse struct {
|
|||||||
// outerAirCirculation: [ outsideAir, recirculation ]
|
// outerAirCirculation: [ outsideAir, recirculation ]
|
||||||
// airConditionOn: [ false | true ]
|
// airConditionOn: [ false | true ]
|
||||||
// heatedRearWindowActive: [ false | true ]
|
// heatedRearWindowActive: [ false | true ]
|
||||||
// startConfiguration: [ start_Climate_Control_only_allow_key_in_ignition | START_ENGINE_ALLOW_KEY_IN_IGNITION ]
|
// startConfiguration: [ START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION | START_ENGINE_ALLOW_KEY_IN_IGNITION ]
|
||||||
// runTimeMinutes: [ 10 ],
|
// runTimeMinutes: [ 10 ]
|
||||||
|
|
||||||
type VehicleHealthItem struct {
|
type VehicleHealthItem struct {
|
||||||
B2cCode string `json:"b2cCode"`
|
B2cCode string `json:"b2cCode"`
|
||||||
|
Reference in New Issue
Block a user