[st] - 입력단 메뉴 작업중

This commit is contained in:
2026-06-15 10:38:33 +09:00
parent 49e42757bc
commit e3eb542e59
43 changed files with 7637 additions and 947 deletions
@@ -0,0 +1,53 @@
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import {
type ExcretaTreatmentFacilityApiResponse,
type ExcretaTreatmentFacilityRequestParams,
type ExcretaTreatmentFacilitySaveRequest,
type ExcretaTreatmentFacilitySaveResponse,
type ExcretaTreatmentFacilitySubmitRequest,
type ExcretaTreatmentFacilitySubmitResponse,
type StatisticsInputExcretaTreatmentFacilityService,
} from "../../model/input/statistics-input-excreta-treatment-facility-interface";
export class StatisticsInputExcretaTreatmentFacilityApiService
implements StatisticsInputExcretaTreatmentFacilityService
{
/** 분뇨처리시설 조회 — ST00070001 */
public async getExcretaTreatmentFacilityList(
params: ExcretaTreatmentFacilityRequestParams,
): Promise<ExcretaTreatmentFacilityApiResponse> {
const response = await stClient.get<ExcretaTreatmentFacilityApiResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/excreta-treatment-facility`,
withAuthHeader({ params }),
);
return response.data;
}
/** 분뇨처리시설 저장 — ST00070001 */
public async saveExcretaTreatmentFacilityList(
request: ExcretaTreatmentFacilitySaveRequest,
): Promise<ExcretaTreatmentFacilitySaveResponse> {
const response = await stClient.put<ExcretaTreatmentFacilitySaveResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/excreta-treatment-facility/save`,
request,
);
return response.data;
}
/** 분뇨처리시설 제출 — ST00070001 */
public async submitExcretaTreatmentFacilityList(
request: ExcretaTreatmentFacilitySubmitRequest,
): Promise<ExcretaTreatmentFacilitySubmitResponse> {
const response = await stClient.put<ExcretaTreatmentFacilitySubmitResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/excreta-treatment-facility/submit`,
request,
);
return response.data;
}
}
export const statisticsInputExcretaTreatmentFacilityApi =
new StatisticsInputExcretaTreatmentFacilityApiService();
@@ -0,0 +1,133 @@
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import {
type PrivateSewageDesigStatusApiResponse,
type PrivateSewageDesigStatusRequestParams,
type PrivateSewageDesigStatusSaveRequest,
type PrivateSewageDesigStatusSaveResponse,
type PrivateSewageDesigStatusSubmitRequest,
type PrivateSewageDesigStatusSubmitResponse,
type SepticTankStatusApiResponse,
type SepticTankStatusRequestParams,
type SepticTankStatusSaveRequest,
type SepticTankStatusSaveResponse,
type SepticTankStatusSubmitRequest,
type SepticTankStatusSubmitResponse,
type SewageTreatFactStatusApiResponse,
type SewageTreatFactStatusRequestParams,
type SewageTreatFactStatusSaveRequest,
type SewageTreatFactStatusSaveResponse,
type SewageTreatFactStatusSubmitRequest,
type SewageTreatFactStatusSubmitResponse,
type StatisticsInputPrivateSewageFacilityService,
} from "../../model/input/statistics-input-private-sewage-facility-interface";
const BASE = `${ENDPOINT.ST_SERVICE.INPUT}/private-sewage-facility`;
export class StatisticsInputPrivateSewageFacilityApiService
implements StatisticsInputPrivateSewageFacilityService
{
/** 처리용량별 오수처리시설 현황 조회 — ST00080001 */
public async getSewageTreatFactStatusList(
params: SewageTreatFactStatusRequestParams,
): Promise<SewageTreatFactStatusApiResponse> {
const response = await stClient.get<SewageTreatFactStatusApiResponse>(
`${BASE}/sewage-treat-fact-status`,
withAuthHeader({ params }),
);
return response.data;
}
/** 처리용량별 오수처리시설 현황 저장 — ST00080001 */
public async saveSewageTreatFactStatus(
request: SewageTreatFactStatusSaveRequest,
): Promise<SewageTreatFactStatusSaveResponse> {
const response = await stClient.put<SewageTreatFactStatusSaveResponse>(
`${BASE}/sewage-treat-fact-status/save`,
request,
);
return response.data;
}
/** 처리용량별 오수처리시설 현황 제출 — ST00080001 */
public async submitSewageTreatFactStatus(
request: SewageTreatFactStatusSubmitRequest,
): Promise<SewageTreatFactStatusSubmitResponse> {
const response = await stClient.put<SewageTreatFactStatusSubmitResponse>(
`${BASE}/sewage-treat-fact-status/submit`,
request,
);
return response.data;
}
/** 정화조 현황 조회 — ST00080002 */
public async getSepticTankStatusList(
params: SepticTankStatusRequestParams,
): Promise<SepticTankStatusApiResponse> {
const response = await stClient.get<SepticTankStatusApiResponse>(
`${BASE}/septic-tank-status`,
withAuthHeader({ params }),
);
return response.data;
}
/** 정화조 현황 저장 — ST00080002 */
public async saveSepticTankStatus(
request: SepticTankStatusSaveRequest,
): Promise<SepticTankStatusSaveResponse> {
const response = await stClient.put<SepticTankStatusSaveResponse>(
`${BASE}/septic-tank-status/save`,
request,
);
return response.data;
}
/** 정화조 현황 제출 — ST00080002 */
public async submitSepticTankStatus(
request: SepticTankStatusSubmitRequest,
): Promise<SepticTankStatusSubmitResponse> {
const response = await stClient.put<SepticTankStatusSubmitResponse>(
`${BASE}/septic-tank-status/submit`,
request,
);
return response.data;
}
/** 개인하수도 관리지역 지정공고 현황 조회 — ST00080003 */
public async getPrivateSewageDesigStatusList(
params: PrivateSewageDesigStatusRequestParams,
): Promise<PrivateSewageDesigStatusApiResponse> {
const response = await stClient.get<PrivateSewageDesigStatusApiResponse>(
`${BASE}/desig-status`,
withAuthHeader({ params }),
);
return response.data;
}
/** 개인하수도 관리지역 지정공고 현황 저장 — ST00080003 */
public async savePrivateSewageDesigStatus(
request: PrivateSewageDesigStatusSaveRequest,
): Promise<PrivateSewageDesigStatusSaveResponse> {
const response = await stClient.put<PrivateSewageDesigStatusSaveResponse>(
`${BASE}/desig-status/save`,
request,
);
return response.data;
}
/** 개인하수도 관리지역 지정공고 현황 제출 — ST00080003 */
public async submitPrivateSewageDesigStatus(
request: PrivateSewageDesigStatusSubmitRequest,
): Promise<PrivateSewageDesigStatusSubmitResponse> {
const response = await stClient.put<PrivateSewageDesigStatusSubmitResponse>(
`${BASE}/desig-status/submit`,
request,
);
return response.data;
}
}
export const statisticsInputPrivateSewageFacilityApi =
new StatisticsInputPrivateSewageFacilityApiService();
@@ -0,0 +1,50 @@
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import {
type PumpingStationApiResponse,
type PumpingStationRequestParams,
type PumpingStationSaveRequest,
type PumpingStationSaveResponse,
type PumpingStationSubmitRequest,
type PumpingStationSubmitResponse,
type StatisticsInputPumpingStationService,
} from "../../model/input/statistics-input-pumping-station-interface";
export class StatisticsInputPumpingStationApiService implements StatisticsInputPumpingStationService {
/** 펌프장 조회 — ST00050001 */
public async getPumpingStationList(
params: PumpingStationRequestParams,
): Promise<PumpingStationApiResponse> {
const response = await stClient.get<PumpingStationApiResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/pumping-station`,
withAuthHeader({ params }),
);
return response.data;
}
/** 펌프장 저장 — ST00050001 */
public async savePumpingStationList(
request: PumpingStationSaveRequest,
): Promise<PumpingStationSaveResponse> {
const response = await stClient.put<PumpingStationSaveResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/pumping-station/save`,
request,
);
return response.data;
}
/** 펌프장 제출 — ST00050001 */
public async submitPumpingStationList(
request: PumpingStationSubmitRequest,
): Promise<PumpingStationSubmitResponse> {
const response = await stClient.put<PumpingStationSubmitResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/pumping-station/submit`,
request,
);
return response.data;
}
}
export const statisticsInputPumpingStationApi = new StatisticsInputPumpingStationApiService();
@@ -1,5 +1,6 @@
import { ENDPOINT } from "@/shared/config";
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import {
type StatisticsInputSewSupplyRateService,
@@ -15,7 +16,7 @@ export class StatisticsInputSewSupplyRateApiService implements StatisticsInputSe
public async getSewerageSupplyRateList(params: SewerageSupplyRateRequestParams): Promise<SewerageSupplyRateApiResponse> {
const response = await stClient.get<SewerageSupplyRateApiResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewerage-supply-rate`,
{ params }
withAuthHeader({ params }),
);
return response.data;
}
@@ -1,4 +1,5 @@
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import type {
@@ -20,7 +21,7 @@ export class SewagePipeMaintainApiService implements SewagePipeMaintainService {
public async getSewagePipeMaintainRepair(param: SewagePipeMaintainRequestParams): Promise<SewagePipeMaintainRepairResponse> {
const response = await stClient.get<SewagePipeMaintainRepairResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe-maintain/repair`,
{ params: param }
withAuthHeader({ params: param })
);
return response.data;
};
@@ -28,7 +29,7 @@ export class SewagePipeMaintainApiService implements SewagePipeMaintainService {
public async getSewagePipeMaintainDredging(param: SewagePipeMaintainRequestParams): Promise<SewagePipeMaintainDredgingResponse> {
const response = await stClient.get<SewagePipeMaintainDredgingResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe-maintain/dredging`,
{ params: param }
withAuthHeader({ params: param })
);
return response.data;
};
@@ -1,4 +1,5 @@
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import {
@@ -7,7 +8,13 @@ import {
type SewageReservoirRequestParams,
type SewageReservoirSaveRequest,
type SewageReservoirSaveResponse,
type SewageReservoirSubmitRequest,
type SewageReservoirSubmitResponse,
type RainfallPumpStationApiResponse,
type RainfallPumpStationSaveRequest,
type RainfallPumpStationSaveResponse,
type RainfallPumpStationSubmitRequest,
type RainfallPumpStationSubmitResponse,
} from "../../model/input/statistics-input-sewage-reservoir-pump-interface";
export class StatisticsInputSewageReservoirPumpApiService implements StatisticsInputSewageReservoirPumpService {
@@ -15,7 +22,7 @@ export class StatisticsInputSewageReservoirPumpApiService implements StatisticsI
public async getSewageReservoirList(params: SewageReservoirRequestParams): Promise<SewageReservoirApiResponse> {
const response = await stClient.get<SewageReservoirApiResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-reservoir-pump/sewage-reservoir`,
{ params },
withAuthHeader({ params }),
);
return response.data;
}
@@ -26,7 +33,7 @@ export class StatisticsInputSewageReservoirPumpApiService implements StatisticsI
): Promise<RainfallPumpStationApiResponse> {
const response = await stClient.get<RainfallPumpStationApiResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-reservoir-pump/rainfall-pump`,
{ params },
withAuthHeader({ params }),
);
return response.data;
}
@@ -41,6 +48,39 @@ export class StatisticsInputSewageReservoirPumpApiService implements StatisticsI
);
return response.data;
}
/** 하수저류시설 제출 — ST00040001 */
public async submitSewageReservoir(
request: SewageReservoirSubmitRequest,
): Promise<SewageReservoirSubmitResponse> {
const response = await stClient.put<SewageReservoirSubmitResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-reservoir-pump/sewage-reservoir/submit`,
request,
);
return response.data;
}
/** 빗물펌프장 저장 — ST00040002 */
public async saveRainfallPumpStation(
request: RainfallPumpStationSaveRequest,
): Promise<RainfallPumpStationSaveResponse> {
const response = await stClient.put<RainfallPumpStationSaveResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-reservoir-pump/rainfall-pump/save`,
request,
);
return response.data;
}
/** 빗물펌프장 제출 — ST00040002 */
public async submitRainfallPumpStation(
request: RainfallPumpStationSubmitRequest,
): Promise<RainfallPumpStationSubmitResponse> {
const response = await stClient.put<RainfallPumpStationSubmitResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-reservoir-pump/rainfall-pump/submit`,
request,
);
return response.data;
}
}
export const statisticsInputSewageReservoirPumpApi = new StatisticsInputSewageReservoirPumpApiService();
@@ -0,0 +1,68 @@
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import {
type CauserBurdenApiResponse,
type CauserBurdenRequestParams,
type SewerageChargeApiResponse,
type SewerageChargeRequestParams,
type SewerageFinanceSettleApiResponse,
type SewerageFinanceSettleRequestParams,
type SewerageUsageFeeApiResponse,
type SewerageUsageFeeRequestParams,
type StatisticsInputSewerageFinanceService,
} from "../../model/input/statistics-input-sewerage-finance-interface";
const BASE = `${ENDPOINT.ST_SERVICE.INPUT}/sewerage-finance`;
export class StatisticsInputSewerageFinanceApiService
implements StatisticsInputSewerageFinanceService
{
/** 하수도재정 결산 조회 — ST00090001 */
public async getSewerageFinanceSettleList(
params: SewerageFinanceSettleRequestParams,
): Promise<SewerageFinanceSettleApiResponse> {
const response = await stClient.get<SewerageFinanceSettleApiResponse>(
`${BASE}/settle`,
withAuthHeader({ params }),
);
return response.data;
}
/** 하수도 요금 조회 — ST00090002 */
public async getSewerageChargeList(
params: SewerageChargeRequestParams,
): Promise<SewerageChargeApiResponse> {
const response = await stClient.get<SewerageChargeApiResponse>(
`${BASE}/charge`,
withAuthHeader({ params }),
);
return response.data;
}
/** 하수도 사용료 조회 — ST00090003 */
public async getSewerageUsageFeeList(
params: SewerageUsageFeeRequestParams,
): Promise<SewerageUsageFeeApiResponse> {
const response = await stClient.get<SewerageUsageFeeApiResponse>(
`${BASE}/usage-fee`,
withAuthHeader({ params }),
);
return response.data;
}
/** 원인자 부담금 조회 — ST00090004 */
public async getCauserBurdenList(
params: CauserBurdenRequestParams,
): Promise<CauserBurdenApiResponse> {
const response = await stClient.get<CauserBurdenApiResponse>(
`${BASE}/causer-burden`,
withAuthHeader({ params }),
);
return response.data;
}
}
export const statisticsInputSewerageFinanceApi =
new StatisticsInputSewerageFinanceApiService();
@@ -1,4 +1,5 @@
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import type {
@@ -20,7 +21,7 @@ export class StatisticsInputPublicSewageFacilityApiService implements Statistics
public async getPublicSewageFacility(param: PublicSewageFacilityRequestParams): Promise<PublicSewageFacilityResponse> {
const response = await stClient.get<PublicSewageFacilityResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/public-sewage-facility/facility`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -28,7 +29,7 @@ export class StatisticsInputPublicSewageFacilityApiService implements Statistics
public async getPublicSewageMainFacility(param: PublicSewageFacilityRequestParams): Promise<PublicSewageMainFacilityResponse> {
const response = await stClient.get<PublicSewageMainFacilityResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/public-sewage-facility/main-facility`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -38,7 +39,7 @@ export class StatisticsInputPublicSewageFacilityApiService implements Statistics
): Promise<PublicSewageMappingTargetsResponse> {
const response = await stClient.get<PublicSewageMappingTargetsResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/public-sewage-facility/main-facility/mapping-targets`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -1,5 +1,6 @@
import { ENDPOINT } from "@/shared/config";
import { stClient } from "@/shared/api/client";
import { withAuthHeader } from "@/shared/api/with-auth-header";
import { ENDPOINT } from "@/shared/config";
import type {
SeweragePipeFacilityAdminAreaListRequest,
SeweragePipeFacilityAdminAreaListResponse,
@@ -39,7 +40,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getRegionalFactStatus(param: SeweragePipeRequestParams): Promise<SeweragePipeInputRegionalResponse> {
const response = await stClient.get<SeweragePipeInputRegionalResponse> (
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/regional-facility-status`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -47,7 +48,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getFactInstallStatus(param: SeweragePipeRequestParams): Promise<SeweragePipeInputFactInstallResponse> {
const response = await stClient.get<SeweragePipeInputFactInstallResponse> (
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/facility-install-status`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -55,7 +56,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getPipeTypeStatus(param: SeweragePipeRequestParams): Promise<SeweragePipeInputPipeTypeResponse> {
const response = await stClient.get<SeweragePipeInputPipeTypeResponse> (
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/pipe-type-status`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -63,7 +64,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getPipeDiameterStatus(param: SeweragePipeRequestParams): Promise<SeweragePipeInputPipeDiameterResponse> {
const response = await stClient.get<SeweragePipeInputPipeDiameterResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/pipe-diameter-status`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -71,7 +72,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getManholeStatus(param: SeweragePipeRequestParams): Promise<SeweragePipeInputManholeResponse> {
const response = await stClient.get<SeweragePipeInputManholeResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/manhole-status`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -79,7 +80,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getConnectionStatus(param: SeweragePipeRequestParams): Promise<SeweragePipeInputConnectionStatusResponse> {
const response = await stClient.get<SeweragePipeInputConnectionStatusResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/facility-connection-status`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -87,7 +88,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getFacilitiesList(param: SeweragePipeFacilitiesListRequest): Promise<SeweragePipeFacilitiesListResponse> {
const response = await stClient.get<SeweragePipeFacilitiesListResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/facility-connection-status/popup/facilities`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}
@@ -95,7 +96,7 @@ export class StatisticsInputSewPipeApiService implements StatisticsInputSewPipeS
public async getFacilityAdminAreaList(param: SeweragePipeFacilityAdminAreaListRequest): Promise<SeweragePipeFacilityAdminAreaListResponse> {
const response = await stClient.get<SeweragePipeFacilityAdminAreaListResponse>(
`${ENDPOINT.ST_SERVICE.INPUT}/sewage-pipe/facility-connection-status/popup/areas`,
{ params: param },
withAuthHeader({ params: param }),
);
return response.data;
}