feat(platform): add lightweight vehicle overview api

This commit is contained in:
lingniu
2026-07-04 02:52:56 +08:00
parent 38e1bf422a
commit 6c745bf48b
5 changed files with 111 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import type {
VehicleCoverageRow,
VehicleDetail,
VehicleIdentityResolution,
VehicleServiceOverview,
VehicleRow
} from './types';
@@ -75,6 +76,7 @@ export const api = {
vehicleResolve: (params = new URLSearchParams()) => request<VehicleIdentityResolution>(`/api/vehicles/resolve?${params.toString()}`),
vehicleCoverage: (params = new URLSearchParams()) => request<Page<VehicleCoverageRow>>(`/api/vehicles/coverage?${params.toString()}`),
vehicleDetail: (params = new URLSearchParams()) => request<VehicleDetail>(`/api/vehicle-service?${params.toString()}`),
vehicleServiceOverview: (params = new URLSearchParams()) => request<VehicleServiceOverview>(`/api/vehicle-service/overview?${params.toString()}`),
vehicleRealtime: (params = new URLSearchParams()) => request<Page<VehicleRealtimeRow>>(`/api/realtime/vehicles?${params.toString()}`),
realtimeLocations: (params = new URLSearchParams()) => request<Page<RealtimeLocationRow>>(`/api/realtime/locations?${params.toString()}`),
historyLocations: (params = new URLSearchParams()) => request<Page<HistoryLocationRow>>(`/api/history/locations?${params.toString()}`),