import { ApiClientFactory } from '../core/api.client.factory'; import { Type, CuringChamber, CuringChamberList } from '../model/curingChamber.model'; export class CuringChamberService { constructor(private factory: ApiClientFactory) { } // 养护室监测-查询规则配置信息 async getCuringChamberList(projectId: string, type: Type): Promise { const result = await this.factory.entity.get(`/api/web/projects/${projectId}/curingRoom/config/${type}`); return result; } // 养护室监测-保存规则配置信息 async saveCuringChamberInfo(projectId: string, type: Type, data: CuringChamber): Promise { const result = await this.factory.entity.post(`/api/web/projects/${projectId}/curingRoom/config/${type}`, data); return result; } // 养护室监测-删除配置信息 async deleteCuringChamberInfo(projectId: string, id: string): Promise { const result = await this.factory.entity.delete(`/api/web/projects/${projectId}/curingRoom/config?id=${id}`); return result; } }