Compare commits
4 Commits
dd2fd1532b
...
a803671a3c
Author | SHA1 | Date | |
---|---|---|---|
a803671a3c | |||
b851468de2 | |||
988c7a1d20 | |||
a8e9fd3a3c |
@ -167,6 +167,14 @@ var modelCodes = map[string]string{
|
||||
"PCL": "Ascent Limited 7-Passenger",
|
||||
}
|
||||
|
||||
var badValues = map[string]any{
|
||||
"remainingFuelPercent": 101,
|
||||
"tyreStatusFrontLeft": "UNKNOWN",
|
||||
"tyreStatusFrontRight": "UNKNOWN",
|
||||
"tyreStatusRearLeft": "UNKNOWN",
|
||||
"tyreStatusRearRight": "UNKNOWN",
|
||||
}
|
||||
|
||||
const (
|
||||
GET = "GET"
|
||||
POST = "POST"
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"log/slog"
|
||||
"os"
|
||||
|
||||
mysubaru "git.savin.nyc/alex/mysubaru"
|
||||
"git.savin.nyc/alex/mysubaru"
|
||||
"git.savin.nyc/alex/mysubaru/config"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ module example
|
||||
|
||||
go 1.24
|
||||
|
||||
require git.savin.nyc/alex/mysubaru v0.0.0-20250520201343-455e885a2cf3
|
||||
require git.savin.nyc/alex/mysubaru v0.0.0-20250521042901-f241375645e3
|
||||
|
||||
require (
|
||||
github.com/Jeffail/gabs/v2 v2.7.0 // indirect
|
||||
|
@ -11,7 +11,7 @@ type Response struct {
|
||||
Success bool `json:"success"` // true | 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
|
||||
Data interface{} `json:"data"` // Data struct
|
||||
Data any `json:"data"` // Data struct
|
||||
}
|
||||
|
||||
// Account .
|
||||
@ -283,8 +283,8 @@ type ErrorResponse struct {
|
||||
// outerAirCirculation: [ outsideAir, recirculation ]
|
||||
// airConditionOn: [ false | true ]
|
||||
// heatedRearWindowActive: [ false | true ]
|
||||
// startConfiguration: [ start_Climate_Control_only_allow_key_in_ignition | START_ENGINE_ALLOW_KEY_IN_IGNITION ]
|
||||
// runTimeMinutes: [ 10 ],
|
||||
// startConfiguration: [ START_CLIMATE_CONTROL_ONLY_ALLOW_KEY_IN_IGNITION | START_ENGINE_ALLOW_KEY_IN_IGNITION ]
|
||||
// runTimeMinutes: [ 10 ]
|
||||
|
||||
type VehicleHealthItem struct {
|
||||
B2cCode string `json:"b2cCode"`
|
||||
|
Reference in New Issue
Block a user