refactor(go): keep protocol realtime snapshots lightweight

This commit is contained in:
lingniu
2026-07-02 21:12:33 +08:00
parent d1e28b9e64
commit 04ca0d15d8
5 changed files with 20 additions and 8 deletions

View File

@@ -21,6 +21,11 @@ type Snapshot struct {
UpdatedAtMS int64 `json:"updated_at_ms"`
}
func (s Snapshot) Lightweight() Snapshot {
s.Parsed = nil
return s
}
type OnlineStatus struct {
VehicleKey string `json:"vehicle_key"`
VIN string `json:"vin"`