import { ApiClientFactory } from '../core/api.client.factory'; export class VehicleGateService { constructor(private factory: ApiClientFactory) {} //分页查询车辆备案数据接口 2020年09月23日10:21:40 JC async getVehicleGatePreparePage(projectId: string, data: any): Promise { const result = await this.factory.entity.post( `/api/web/projects/vehicleGatePrePare/${projectId}/getVehicleGatePreparePage`, data ); return result; } //保存车辆备案数据接口 2020年09月23日11:17:37 JC async saveVehicleGatePrepare(projectId: string, data: any): Promise { const result = await this.factory.entity.post( `/api/web/projects/vehicleGatePrePare/${projectId}/saveVehicleGatePrepare`, data ); return result; } // 删除车辆备案数据接口 2020年09月23日14:29:43 JC async deleteCar(projectId: string, data: any): Promise { const result = await this.factory.entity.post( `/api/web/projects/vehicleGatePrePare/${projectId}/deleteVehicleGatePrePare`, data ); return result; } // 编辑车辆备案数据接口 2020年09月23日14:29:43 JC async updataCar(projectId: string, data: any): Promise { const result = await this.factory.entity.post( `/api/web/projects/vehicleGatePrePare/${projectId}/updateVehicleGatePrePare`, data ); return result; } // 车辆备案数据模板导出 2020年09月23日15:01:46 JC async downloadData(projectId: string): Promise { const result = await this.factory.entity.exportFile( `/api/web/projects/vehicleGatePrePare/${projectId}/exportExcel`, {}, { ignoreHeaders: false }, 'gssToken' ); return result; } // 车辆备案数据导入Excel 2020年09月23日15:01:46 JC async uploadExcel(projectId: string): Promise { const result = await this.factory.entity.post(`/api/web/projects/vehicleGatePrePare/${projectId}/importExcel`); return result; } // 车辆未备案预警 async getVehicleGateEarlyWarns(projectId: string, data: any): Promise { const result = await this.factory.entity.post( `/api/web/projects/vehicleGatePrePare/${projectId}/getVehicleGateEarlyWarns`, data ); return result; } // 分页查询车辆未备案历史预警接口 async getHistoryVehicleGateEarlyWarn(projectId: string, data: any): Promise { const result = await this.factory.entity.post( `/api/web/projects/vehicleGatePrePare/${projectId}/getHistoryVehicleGateEarlyWarn`, data ); return result; } }