|
@@ -0,0 +1,61 @@
|
|
|
|
|
+import NetService from '@/services/net.service'
|
|
|
|
|
+import { injectable, Service } from '@/services/service'
|
|
|
|
|
+
|
|
|
|
|
+@injectable
|
|
|
|
|
+export default class FacilityManagementService extends Service {
|
|
|
|
|
+ private netService = new NetService()
|
|
|
|
|
+
|
|
|
|
|
+ /** 区域设施统计 /facilityStatistics/getFacilityStatistics */
|
|
|
|
|
+ async getFacilityStatistics() {
|
|
|
|
|
+ const { success, data } = await this.netService.get('/facilityStatistics/getFacilityStatistics')
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ return data || []
|
|
|
|
|
+ }
|
|
|
|
|
+ return []
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 车型展示 /facilityStatistics/getFacilityVehicleModel */
|
|
|
|
|
+ async getFacilityVehicleModel() {
|
|
|
|
|
+ const { success, data } = await this.netService.get('/facilityStatistics/getFacilityVehicleModel')
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ return data || []
|
|
|
|
|
+ }
|
|
|
|
|
+ return []
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 电子站牌 /facilityStatistics/getFacilityStation */
|
|
|
|
|
+ async getFacilityStation() {
|
|
|
|
|
+ const { success, data } = await this.netService.get('/facilityStatistics/getFacilityStation')
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ return data || []
|
|
|
|
|
+ }
|
|
|
|
|
+ return []
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 洗车机 /facilityStatistics/getFacilityCarWasher */
|
|
|
|
|
+ async getFacilityCarWasher() {
|
|
|
|
|
+ const { success, data } = await this.netService.get('/facilityStatistics/getFacilityCarWasher')
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ return data || []
|
|
|
|
|
+ }
|
|
|
|
|
+ return []
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 充电站 /facilityStatistics/getFacilityChargingStation */
|
|
|
|
|
+ async getFacilityChargingStation() {
|
|
|
|
|
+ const { success, data } = await this.netService.get('/facilityStatistics/getFacilityChargingStation')
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ return data || []
|
|
|
|
|
+ }
|
|
|
|
|
+ return []
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /** 车载部件 /facilityStatistics/getFacilityVehicleComponents */
|
|
|
|
|
+ async getFacilityVehicleComponents() {
|
|
|
|
|
+ const { success, data } = await this.netService.get('/facilityStatistics/getFacilityVehicleComponents')
|
|
|
|
|
+ if (success) {
|
|
|
|
|
+ return data || []
|
|
|
|
|
+ }
|
|
|
|
|
+ return []
|
|
|
|
|
+ }
|
|
|
|
|
+}
|