[st] - feat: realgrid 셀 편집 체크 설정 수정, 컴포넌트 url 방식 테스트 중
This commit is contained in:
+48
@@ -3,7 +3,15 @@ import { ENDPOINT } from "@/shared/config";
|
||||
|
||||
import type {
|
||||
SewagePipeMaintainDredgingResponse,
|
||||
SewagePipeMaintainDredgingSaveRequest,
|
||||
SewagePipeMaintainDredgingSaveResponse,
|
||||
SewagePipeMaintainDredgingSubmitRequest,
|
||||
SewagePipeMaintainDredgingSubmitResponse,
|
||||
SewagePipeMaintainRepairResponse,
|
||||
SewagePipeMaintainRepairSaveRequest,
|
||||
SewagePipeMaintainRepairSaveResponse,
|
||||
SewagePipeMaintainRepairSubmitRequest,
|
||||
SewagePipeMaintainRepairSubmitResponse,
|
||||
SewagePipeMaintainRequestParams,
|
||||
SewagePipeMaintainService,
|
||||
} from "../../model/input/statistics-input-sewage-pipe-maintain-interface";
|
||||
@@ -24,6 +32,46 @@ export class SewagePipeMaintainApiService implements SewagePipeMaintainService {
|
||||
);
|
||||
return response.data;
|
||||
};
|
||||
|
||||
public async saveSewagePipeMaintainRepair(
|
||||
param: SewagePipeMaintainRepairSaveRequest,
|
||||
): Promise<SewagePipeMaintainRepairSaveResponse> {
|
||||
const response = await stClient.put<SewagePipeMaintainRepairSaveResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe-maintain/repair/save`,
|
||||
param,
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async submitSewagePipeMaintainRepair(
|
||||
param: SewagePipeMaintainRepairSubmitRequest,
|
||||
): Promise<SewagePipeMaintainRepairSubmitResponse> {
|
||||
const response = await stClient.put<SewagePipeMaintainRepairSubmitResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe-maintain/repair/submit`,
|
||||
param,
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async saveSewagePipeMaintainDredging(
|
||||
param: SewagePipeMaintainDredgingSaveRequest,
|
||||
): Promise<SewagePipeMaintainDredgingSaveResponse> {
|
||||
const response = await stClient.put<SewagePipeMaintainDredgingSaveResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe-maintain/dredging/save`,
|
||||
param,
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async submitSewagePipeMaintainDredging(
|
||||
param: SewagePipeMaintainDredgingSubmitRequest,
|
||||
): Promise<SewagePipeMaintainDredgingSubmitResponse> {
|
||||
const response = await stClient.put<SewagePipeMaintainDredgingSubmitResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe-maintain/dredging/submit`,
|
||||
param,
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
}
|
||||
|
||||
export const sewagePipeMaintainApiService = new SewagePipeMaintainApiService();
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
import { stClient } from "@/shared/api/client";
|
||||
import { ENDPOINT } from "@/shared/config";
|
||||
|
||||
import {
|
||||
type StatisticsInputSewageReservoirPumpService,
|
||||
type SewageReservoirApiResponse,
|
||||
type SewageReservoirRequestParams,
|
||||
type RainfallPumpStationApiResponse,
|
||||
} from "../../model/input/statistics-input-sewage-reservoir-pump-interface";
|
||||
|
||||
export class StatisticsInputSewageReservoirPumpApiService implements StatisticsInputSewageReservoirPumpService {
|
||||
/** 하수저류시설 조회 — ST00040001 */
|
||||
public async getSewageReservoirList(params: SewageReservoirRequestParams): Promise<SewageReservoirApiResponse> {
|
||||
const response = await stClient.get<SewageReservoirApiResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-reservoir-pump/sewage-reservoir`,
|
||||
{ params },
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/** 빗물펌프장 조회 — ST00040002 */
|
||||
public async getRainfallPumpStationList(
|
||||
params: SewageReservoirRequestParams,
|
||||
): Promise<RainfallPumpStationApiResponse> {
|
||||
const response = await stClient.get<RainfallPumpStationApiResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-reservoir-pump/rainfall-pump`,
|
||||
{ params },
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
}
|
||||
|
||||
export const statisticsInputSewageReservoirPumpApi = new StatisticsInputSewageReservoirPumpApiService();
|
||||
Reference in New Issue
Block a user