import { ApiClientFactory } from '../core/api.client.factory'; export class ScientificConstructionService { constructor(private factory: ApiClientFactory) { } async loadWeatherMonitoringTody(projectId: string) { // 环境天气 当天天气状况 const result = await this.factory.entity.get(`/api/web/projects/${projectId}/sciences/today`); return result; } async loadWeatherMonitoringReadTime(projectId: string) { // 环境天气 工薪科学施工已读时间 const result = await this.factory.entity.get(`/api/web/projects/${projectId}/weatherImage/updateScienceConstructionReadedTime`); return result; } async loadWeatherMonitoringMonth(projectId: string) { // 环境天气 当月影响施工 const result = await this.factory.entity.get(`/api/web/projects/${projectId}/weatherImage/currentMonthAffectProjectDays`); return result; } async loadWeatherMonitoringInfo(projectId: string) { // 环境天气 科学施工提示 const result = await this.factory.entity.get(`/api/web/projects/${projectId}/weatherImage/getScientificConstructionData`); return result; } async loadWeatherMonitoring(projectId: string) { // 环境天气 const result = await this.factory.entity.get(`/api/web/projects/${projectId}/weatherImage/getWeatherImage`); return result; } /** * 获取科学施工列表 * @param projectId * @param data */ async loadConstructionList( projectId: string, data: any ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/sciences/`, data ); return result; } }