feat(platform): add filtered vehicle coverage summary
This commit is contained in:
@@ -12,6 +12,7 @@ type Store interface {
|
||||
DashboardSummary(context.Context) (DashboardSummary, error)
|
||||
Vehicles(context.Context, url.Values) (Page[VehicleRow], error)
|
||||
VehicleCoverage(context.Context, url.Values) (Page[VehicleCoverageRow], error)
|
||||
VehicleCoverageSummary(context.Context, url.Values) (VehicleCoverageSummary, error)
|
||||
VehicleServiceSummary(context.Context) (VehicleServiceSummary, error)
|
||||
VehicleRealtime(context.Context, url.Values) (Page[VehicleRealtimeRow], error)
|
||||
RealtimeLocations(context.Context, url.Values) (Page[RealtimeLocationRow], error)
|
||||
@@ -89,6 +90,10 @@ func (s *Service) VehicleCoverage(ctx context.Context, query url.Values) (Page[V
|
||||
return s.store.VehicleCoverage(ctx, query)
|
||||
}
|
||||
|
||||
func (s *Service) VehicleCoverageSummary(ctx context.Context, query url.Values) (VehicleCoverageSummary, error) {
|
||||
return s.store.VehicleCoverageSummary(ctx, query)
|
||||
}
|
||||
|
||||
func (s *Service) VehicleServiceSummary(ctx context.Context) (VehicleServiceSummary, error) {
|
||||
return s.store.VehicleServiceSummary(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user