Compare commits

..

4 Commits

Author SHA1 Message Date
a803671a3c Updated go.mod
All checks were successful
Golan Testing / testing (1.24.x, ubuntu-latest) (push) Successful in 22s
2025-05-21 01:23:08 -04:00
b851468de2 removed named import 2025-05-21 01:22:53 -04:00
988c7a1d20 interface > any 2025-05-21 01:22:31 -04:00
a8e9fd3a3c Added some bad values to the const 2025-05-21 01:22:07 -04:00
4 changed files with 18 additions and 10 deletions

View File

@ -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"

View File

@ -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"
)

View File

@ -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

View File

@ -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"`