feat(platform): summarize vehicle source status

This commit is contained in:
lingniu
2026-07-03 21:47:30 +08:00
parent a3a91ef1f8
commit 6352289c25
5 changed files with 147 additions and 28 deletions

View File

@@ -42,12 +42,23 @@ export interface VehicleDetail {
vin: string;
identity?: VehicleRow;
sources: string[];
sourceStatus: VehicleSourceStatus[];
realtime: RealtimeLocationRow[];
history: Page<HistoryLocationRow>;
raw: Page<RawFrameRow>;
mileage: Page<DailyMileageRow>;
}
export interface VehicleSourceStatus {
protocol: string;
online: boolean;
lastSeen: string;
hasRealtime: boolean;
hasHistory: boolean;
hasRaw: boolean;
hasMileage: boolean;
}
export interface RealtimeLocationRow {
vin: string;
plate: string;