Merge remote-tracking branch 'origin/feature/review-skeleton-sein' into iipbs/st/dev

This commit is contained in:
2026-02-25 14:42:10 +09:00
17 changed files with 2254 additions and 897 deletions
@@ -5,16 +5,31 @@ import { ENDPOINT } from "@/shared/config";
import {
type StatsInputStatusReviewApiResponse
} from "../model/statistics-input-review-interface";
import {
type SewagePipeReviewRegionalApiResponse
} from "../model/statistics-sewage-pipe-review-interface";
import {
type SewerageSupplyRateReviewRequestParams,
type SewerageSupplyRateReviewApiResponse,
} from "../model/statistics-sewerage-penetration-review-interface";
import {
type SewagePipeFacilityApiResponse
type SewagePipeReviewRequestParams,
type SewagePipeReviewRegionalApiResponse ,
type SewagePipeFacilityApiResponse,
type SewerPipeTypeApiResponse,
type SewerPipeDiamApiResponse,
type SewagePipeReviewService
} from "../model/statistics-sewage-pipe-review-interface";
import {
type SewerPipeMtcApiResponse,
type SewerPipeDrdgApiResponse,
type SewerPipeMtcRequestParams
} from "../model/statistics-sewage-pipe-mtc-review-interface";
import {
type SewerReservoirRegionalApiResponse,
type PumpingStationRegionalApiResponse
} from "../model/sewage-reservoir-pump-review-interface";
import {
type MediationPumpStationApiResponse,
} from "../model/statistics-pumping-station-review-interface";
export class StatisticsManagementApiService {
/**
@@ -62,12 +77,7 @@ export class StatisticsManagementApiService {
* @param params (sido, gugun, yr, bsnmCd)
*/
public async getSewagePipeReviewRegionalList(
params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}
params: SewagePipeReviewRequestParams
): Promise<SewagePipeReviewRegionalApiResponse> {
const response = await axios.get<SewagePipeReviewRegionalApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/regional-status`,
@@ -75,17 +85,13 @@ export class StatisticsManagementApiService {
);
return response.data;
}
/**
* 02. 하수관로 시설별 설치현황 목록 조회 (Tab2)
* @param params (sido, gugun, yr, bsnmCd)
*/
public async getSewagePipeFacilityList(
params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}
params: SewagePipeReviewRequestParams
): Promise<SewagePipeFacilityApiResponse> {
const response = await axios.get<SewagePipeFacilityApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/facility-status`,
@@ -93,6 +99,135 @@ export class StatisticsManagementApiService {
);
return response.data;
}
/**
* 02. 하수관로 관종별 시설현황 조회 (Tab3)
* @param params (sido, gugun, yr, bsnmCd)
*/
public async getSewagePipeTypeList(
params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}
): Promise<SewerPipeTypeApiResponse> {
const response = await axios.get<SewerPipeTypeApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/type-status`,
{ params }
);
return response.data;
}
/**
* 02. 하수관로 관경별 시설현황 조회 (Tab 4)
* @param params (sido, gugun, yr, bsnmCd)
*/
public async getSewagePipeDiamList(
params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}
): Promise<SewerPipeDiamApiResponse> {
const response = await axios.get<SewerPipeDiamApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/diam-status`,
{ params }
);
return response.data;
}
/**
* 03. 하수관로 유지관리 개보수 현황 조회
* @param params (yr, bsnmCd, sido, gugun)
*/
public async getSewerPipeMtcList(
params: SewerPipeMtcRequestParams
): Promise<SewerPipeMtcApiResponse> {
const response = await axios.get<SewerPipeMtcApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe-mtc/repair`,
{ params }
);
return response.data;
}
/**
* 03. 하수관로 유지관리 관로준설 현황 조회 (Tab B)
* @param params (yr, bsnmCd, sido, gugun)
*/
public async getSewerPipeDrdgList(
params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}
): Promise<SewerPipeDrdgApiResponse> {
const response = await axios.get<SewerPipeDrdgApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe-mtc/dredging`,
{ params }
);
return response.data;
}
/**
* 04. 하수저류시설 tab1. 시설현황 조회
* @param params (yr, bsnmCd, sido, gugun)
*/
public async getSewerReservoirList(
params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}
): Promise<SewerReservoirRegionalApiResponse> {
const response = await axios.get<SewerReservoirRegionalApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-reservoir/facilities`,
{ params }
);
return response.data;
}
/**
* 04. 빗물펌프장 tab2. 조회
* @param params (yr, bsnmCd, sido, gugun)
*/
public async getPumpStationList(
params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}
): Promise<PumpingStationRegionalApiResponse> {
const response = await axios.get<PumpingStationRegionalApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-reservoir/pumping-stations`,
{ params }
);
return response.data;
}
/**
* 05. 중계펌프장 통계관리 조회
* @param params (yr, bsnmCd, sido, gugun, bscFctNm)
*/
public async getMediationPumpStationList(
params: {
yr?: string; // 조회 연도
bsnmCd?: string; // 사업소 코드
sido?: string; // 시도
gugun?: string; // 구군
bscFctNm?: string; // 펌프장명 (시설명)
}
): Promise<MediationPumpStationApiResponse> {
const response = await axios.get<MediationPumpStationApiResponse>(
`${ENDPOINT.ST_SERVICE.REVIEW}/mediation-pump-stations`,
{ params }
);
return response.data;
}
}
// 통합 인스턴스 수출
@@ -0,0 +1,171 @@
import type { ApiResponse } from "./statistics-interface";
/**
* 04. 하수저류시설 tab1. 시설현황 아이템 인터페이스 (Tab1)
*/
export interface SewerReservoirRegionalItem {
// 1. 기본 정보 및 행 제어
sido: string; // 시도
gugun: string; // 시군구
adstCd: string; // 행정코드
swgeStrgeNm: string; // 시설명
addr: string; // 위치(주소)
yr: string; // 연도
rowType: 'OLD' | 'CURR'; // 전년도/당해년도 구분
displayYear: string; // 구분 표시용 (2024년, 2023년확정 등)
// 2. 시설 제원
rnDt: string; // 가동개시일 (yyyyMMdd)
plDsgnFrqnc: string; // 계획설계빈도
insPer1: string; // 설치목적: 침수예방
insPer2: string; // 설치목적: 수질오염저감
insPer3: string; // 설치목적: 하수재이용
facRes: string; // 시설구조
dgrAr: number; // 집수구역면적
swgeSgbsCpcty: number; // 시설용량
totCpcty: number; // 총양수량
// 3. 펌프시설 상세 (1호기)
pumpCalbr: string; // 구경
wpCpcty: number; // 대당 양수량
pumpCo: number; // 펌프대수
pumpPreparCo: number; // 예비펌프대수
// 4. 펌프시설 상세 (2호기) - 추가
pumpCalbr2: string; // 구경2
wpCpcty2: number; // 대당 양수량2
pumpCo2: number; // 펌프대수2
pumpPreparCo2: number; // 예비펌프대수2
// 5. 펌프시설 상세 (3호기) - 추가
pumpCalbr3: string; // 구경3
wpCpcty3: number; // 대당 양수량3
pumpCo3: number; // 펌프대수3
pumpPreparCo3: number; // 예비펌프대수3
// 6. 부대시설 및 방식 - 추가
freFnnc: string; // 전처리시설유무
dorzeqpFnnc: string; // 탈취설비유무
selfEtrqFnnc: string; // 자가발전유무
draMth: string; // 배수방식
elecMth: string; // 저류방식
elecProMat: string; // 저류수 처리방법
disWat: string; // 방류수역
// 7. 최종처분량 및 방법 - 추가
sdmtTreCpcty: number; // 침사량
iprtTreCpcty: number; // 협잡물량
sdmtTreMth: string; // 침사 처분방법
iprtTreMth: string; // 협잡물 처분방법
// 8. 운영 실적
yrstpRnDyn: number; // 가동일수
dsplcmntAmnt: number; // 총배수량
rmk: string; // 비고
// 9. 상태 체크용 (그리드 배경색 제어용) - 추가
lcnt: number; // 신규 여부 (1/0)
ocnt: number; // 기존 여부 (1/0)
}
/**
* 하수저류시설 응답 데이터 구조
*/
export interface SewerReservoirResponseData {
reservoirList: SewerReservoirRegionalItem[];
}
/**
* 하수저류시설 서비스 인터페이스
*/
export interface SewerReservoirService {
/**
* 하수저류시설 리스트 조회 (Tab1)
*/
getSewerReservoirList(params: {
yr?: string; // 조회 연도
bsnmCd?: string; // 사업장 코드
sido?: string; // 시도
gugun?: string; // 구군
}): Promise<SewerReservoirRegionalApiResponse>;
}
/**
* 04. 빗물펌프장 tab2. 시설현황 아이템 인터페이스 (Tab2)
*/
export interface PumpingStationRegionalItem {
// --- 기본 정보 ---
sido: string; // 시도
gugun: string; // 시군구
adstCd: string; // 행정코드
swgeStrgeNm: string; // 시설명
addr: string; // 위치
yr: string; // 연도
rowType: 'OLD' | 'CURR'; // 전년도/당해년도 구분
displayYear: string; // 구분 표시용
// --- 시설 제원 ---
fctKnd: string; // 시설물종류
rnDt: string; // 가동개시일
plDsgnFrqnc: string; // 계획설계빈도
dgrAr: number; // 집수구역면적
revFnnc: string; // 유수지유무
revCpcty: number; // 유수지저류량
absCpcty: number; // 흡수정저류량
swgeSgbsCpcty: number; // 시설용량
totCpcty: number; // 총양수량
// --- 펌프시설 상세 (1, 2, 3호기) ---
pumpCalbr: string; wpCpcty: number; pumpCo: number; pumpPreparCo: number;
pumpCalbr2: string; wpCpcty2: number; pumpCo2: number; pumpPreparCo2: number;
pumpCalbr3: string; wpCpcty3: number; pumpCo3: number; pumpPreparCo3: number;
// --- 부대시설 및 방식 ---
freFnnc: string; // 전처리시설유무
dorzeqpFnnc: string; // 탈취설비유무
selfEtrqFnnc: string; // 자가발전유무
disWat: string; // 방류수역
// --- 최종처분량 및 방법 ---
sdmtTreCpcty: number; // 침사 처분량
iprtTreCpcty: number; // 협잡물 처분량
sdmtTreMth: string; // 침사 처분방법
iprtTreMth: string; // 협잡물 처분방법
// --- 운영실적 ---
yrstpRnDyn: number; // 가동일수
dsplcmntAmnt: number; // 총배수량
rmk: string; // 비고
}
/**
* 응답 타입 정의
*/
export type SewerReservoirRegionalApiResponse = ApiResponse<SewerReservoirRegionalItem[]>;
export type PumpingStationRegionalApiResponse = ApiResponse<PumpingStationRegionalItem[]>;
/**
* 하수저류시설 및 빗물펌프장 서비스 인터페이스
*/
export interface SewerReservoirService {
/**
* 하수저류시설 리스트 조회 (Tab1)
*/
getSewerReservoirList(params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}): Promise<SewerReservoirRegionalApiResponse>;
/**
* 빗물펌프장 리스트 조회 (Tab2)
*/
getPumpStationList(params: {
yr?: string;
bsnmCd?: string;
sido?: string;
gugun?: string;
}): Promise<PumpingStationRegionalApiResponse>;
}
@@ -0,0 +1,86 @@
import type { ApiResponse } from "./statistics-interface";
/**
* 중계펌프장 통계관리 아이템 인터페이스
*/
export interface MediationPumpStationItem {
// 기본 정보 및 행 제어
sido: string; // 시도
gugun: string; // 시군구
adstCd: string; // 행정코드
pumpNm: string; // 펌프장명
yr: string; // 연도
displayYear: string; // 구분 표시용 (2024년확정 등)
rowType: 'OLD' | 'CURR'; // 전년도/당해년도 구분
// 주요 제원
bscFctNm: string; // 처리장명
pumpCls: string; // 구분 (합류식/분류식)
addr: string; // 위치
rnDt: string; // 가동년월일
planDrhgAr: number; // 계획배수면적(㎢)
finewtDrngVl: number; // 계획시간대최대배수량 - 청천시(A)
rainwtDrngVl: number; // 계획시간대최대배수량 - 우천시(B)
vlWtr: number; // 계획시간대최대배수량 - 우수량(B-A)
// 오수펌프 상세 (PLTWTR)
pltwtrTotCpcty: number; // 오수 총양수량(㎥/min)
pltwtrPumpCalbr1: number; // 오수펌프1 구경(mm)
pltwtrPumpCpcty1: number; // 오수펌프1 양수량(㎥/min)
pltwtrPumpCnt1: number; // 오수펌프1 펌프대수
pltwtrPumpPreparCnt1: number; // 오수펌프1 예비대수
pltwtrPumpCalbr2: number; // 오수펌프2 구경(mm)
pltwtrPumpCpcty2: number; // 오수펌프2 양수량(㎥/min)
pltwtrPumpCnt2: number; // 오수펌프2 펌프대수
pltwtrPumpPreparCnt2: number; // 오수펌프2 예비대수
pltwtrPumpCalbr3: number; // 오수펌프3 구경(mm)
pltwtrPumpCpcty3: number; // 오수펌프3 양수량(㎥/min)
pltwtrPumpCnt3: number; // 오수펌프3 펌프대수
pltwtrPumpPreparCnt3: number; // 오수펌프3 예비대수
// 우수펌프 상세 (RAINWTR)
rainwtrTotCpcty: number; // 우수 총양수량(㎥/min)
rainwtrPumpCalbr1: number; // 우수펌프1 구경(mm)
rainwtrPumpCpcty1: number; // 우수펌프1 양수량(㎥/min)
rainwtrPumpCnt1: number; // 우수펌프1 펌프대수
rainwtrPumpPreparCnt1: number; // 우수펌프1 예비대수
rainwtrPumpCalbr2: number; // 우수펌프2 구경(mm)
rainwtrPumpCpcty2: number; // 우수펌프2 양수량(㎥/min)
rainwtrPumpCnt2: number; // 우수펌프2 펌프대수
rainwtrPumpPreparCnt2: number; // 우수펌프2 예비대수
rainwtrPumpCalbr3: number; // 우수펌프3 구경(mm)
rainwtrPumpCpcty3: number; // 우수펌프3 양수량(㎥/min)
rainwtrPumpCnt3: number; // 우수펌프3 펌프대수
rainwtrPumpPreparCnt3: number; // 우수펌프3 예비대수
// 기타
elcpwAmnt: number; // 연간전력사용량(kWh/년)
rmk: string; // 비고
lcnt: string; // 당해 존재 여부 ('1'|'0')
ocnt: string; // 전년 존재 여부 ('1'|'0')
}
export interface MediationPumpStationResponseData {
pumpStationList: MediationPumpStationItem[];
}
export type MediationPumpStationApiResponse = ApiResponse<MediationPumpStationItem[]> & {
message: string;
};
export interface MediationPumpStationService {
getMediationPumpStationList(params: {
yr?: string; // 조회 연도
bsnmCd?: string; // 사업소 코드
sido?: string; // 시도
gugun?: string; // 구군
bscFctNm?: string; // 펌프장명
}): Promise<MediationPumpStationApiResponse>;
}
@@ -0,0 +1,103 @@
import type { ApiResponse } from "./statistics-interface";
/**
* 03. 하수관로 유지관리 개보수 아이템
*/
export interface SewerPipeMtcItem {
ctpvNm: string;
sggNm: string;
statsYr: string;
rowType: 'OLD' | 'CURR';
displayYear: string;
sewerBzmnCd: string;
admdstNm:string;
mendngWhol: number;
cbsysMendngPrlg: number;
sprsysDrtwPrlg: number;
sprsysExlnPrlg: number;
partMendngWhol: number;
cbsysPartMendngPrlg: number;
sprsysDrtwMendngPrlg: number;
sprsysExlnMendngPrlg: number;
cbsysMnhlCnt: number;
sprsysDrtwMnhlCnt: number;
sprsysExlnMnhlCnt: number;
exlnRcvprpCnt: number;
drtwRcvprpCnt: number;
stofcbrCnt: number;
otflCnt: number;
cctvExmnPrlg: number;
rmrk: string | null;
}
export interface SewerPipeMtcResponseData {
mtcStatusList: SewerPipeMtcItem[];
}
export interface SewerPipeMtcRequestParams {
ctpvNm?: string;
sggNm?: string;
statsYr?: string;
sewerBzmnCd?: string;
}
export type SewerPipeMtcApiResponse = ApiResponse<SewerPipeMtcResponseData>;
export interface SewagePipeMtcService {
getSewerPipeMtcYearlyStatus(params: SewerPipeMtcRequestParams): Promise<SewerPipeMtcApiResponse>;
}
/**
* 03. 하수관로 유지관리 관로준설 아이템 (Tab 2)
*/
export interface SewerPipeDrdgItem {
// 1. 기본 정보
sido: string; // 시도
gugun: string; // 시군구
yr: string; // 연도
displayYear: string; // 화면 표시용 (예: 2024년, 2023년확정)
rowType: 'OLD' | 'CURR'; // OLD / CURR 구분
bsnmCd: string; // 사업소코드
// 2. 시설 현황
piplFcltyExtn: number; // 관로연장 (m)
// 3. 준설 실적 - 관로 (m)
drdgPipeSm: number; // 준설계
drdgCmbnPipe: number; // 합류식
drdgPltwtrPipe: number; // 분류식-오수
drdgRainwtrPipe: number; // 분류식-우수
// 4. 준설 실적 - 부속시설 (개소)
mnhleSite: number; // 맨홀
pltwtrRcvrSite: number; // 오수받이
soilspllSoilholeSite: number; // 토실/토구
// 5. 준설 효율 및 성과
drdgTrgetExtn: number; // 준설대상 연장 (m)
drdgTrgetRt: number; // 준설대상 대비 준설률 (%)
piplFcltyRt: number; // 시설연장 대비 준설률 (%)
drdgAcmsltQy: number; // 준설실적 - 양 (m3)
drdgAcmsltAmount: number; // 준설실적 - 금액 (천원)
drdgAcmsltUntpc: number; // 준설실적 - 단가 (원/m3)
// 6. 준설토 처리 (톤)
drdgEtndSm: number; // 처리량 계
rclm: number; // 매립
oceanDpsl: number; // 해양투기
ruse: number; // 재활용
etc: number; // 기타
// 7. 기타 및 상태값
rmk: string; // 비고
}
export interface SewerPipeDrdgResponseData {
drdgStatusList: SewerPipeDrdgItem[];
}
export type SewerPipeDrdgApiResponse = ApiResponse<SewerPipeDrdgResponseData>;
@@ -4,131 +4,132 @@ import type { ApiResponse } from "./statistics-interface";
* 02. 하수관로 tab1.지역별 시설현황 아이템 인터페이스 (Tab1)
*/
export interface SewagePipeReviewrRegionalItem {
// 기본 정보 및 행 제어
sido: string; // 시도
gugun: string; // 시군구
adstDong: string; // 행정구역명
adstCd: string; // 행정코드
yr: string; // 연도
rowType: 'OLD' | 'CURR'; // 전년도/당해년도 구분
displayYear: string; // 구분 표시용 (2024년확정 등)
// 하수정비 기본계획
targetYr: number; // 하수정보기본계획목표년도
piplImprmnPlanExtn: number; // 총관로정비 계획연장(m)
piplPlanExtn: number; // 총계획연장(m)
piplFcltyExtn: number; // 총시설연장(m)
piplSupprt: number; // 하수관로 보급률(%)
/* --- 기본 정보 및 행 제어 --- */
ctpvNm: string; // 시도명
sggNm: string; // 시군구명
admdstNm: string; // 행정구역명
admdstCd: string; // 행정구역코드
statsYr: string; // 통계 연도
rowType: 'OLD' | 'CURR'; // 데이터 구분 (OLD: 확정분, CURR: 당해년도)
displayYear: string; // 화면 표시용 연도
// 합류식 (CMBN)
cmbnPlanAr: number; // 관로정비 계획면적(㎢)
cmbnImprmnPlanExtn: number; // 관로정비 계획연장(m)
cmbnPlanExtn: number; // 계획연장(m)
cmbnFcltyExtn: number; // 시설연장(m)
cmbnRctglExtn: number; // 사각형(m)
cmbnCicleExtn: number; // 원형(m)
cmbnOpswrExtn: number; // 개거(m)
cmbnSdgttrExtn: number; // 측구(m)
/* --- 하수정비 기본계획 --- */
targetYr: number; // 하수정보기본계획 목표년도
swrgPipeMntnPlanExtn: number; // 총 관로정비 계획연장(m)
swrgPipePlanExtn: number; // 총 계획연장(m)
swrgPipeFcltyExtn: number; // 총 시설연장(m)
swrgPipePsplyRt: number; // 하수관로 보급률(%)
// 분류식 - 오수관로 (PLTWTR)
pltwtrPlanAr: number; // 관로정비 계획면적(㎢)
pltwtrImprmnPlanExtn: number; // 관로정비 계획연장(m)
pltwtrPlanExtn: number; // 계획연장(m)
pltwtrFlctyExtn: number; // 시설연장(m)
pltwtrSqreExtn: number; // 사각형(m)
pltwtrCiclExtn: number; // 원형(m)
/* --- 합류식 (Combined System) --- */
cmbnMntnPlanAr: number; // 관로정비 계획면적(㎢)
cmbnMntnPlanExtn: number; // 관로정비 계획연장(m)
cmbnPlanExtn: number; // 계획연장(m)
cmbnFcltyExtn: number; // 시설연장(m)
cmbnRctglExtn: number; // 사각형 암거 연장(m)
cmbnCicleExtn: number; // 원형 암거 연장(m)
cmbnOpswrExtn: number; // 개거 연장(m)
cmbnSdgttrExtn: number; // 측구 연장(m)
// 분류식 - 우수관로 (RAINWTR)
rainwtrPlanAr: number; // 관로정비 계획면적(㎢)
rainwtrImprmnPlanExtn: number; // 관로정비 계획연장(m)
rainwtrPlanExtn: number; // 계획연장(m)
rainwtrFlctyExtn: number; // 시설연장(m)
rainwtrSqreExtn: number; // 사각형(m)
rainwtrCiclExtn: number; // 원형(m)
rainwtrOpswrExtn: number; // 개거(m)
rainwtrSdgttrExtn: number; // 측구(m)
/* --- 분류식 - 오수관로 (Foul Water Pipe) --- */
pltwtrMntnPlanAr: number; // 관로정비 계획면적(㎢)
pltwtrMntnPlanExtn: number; // 관로정비 계획연장(m)
pltwtrPlanExtn: number; // 계획연장(m)
pltwtrFcltyExtn: number; // 시설연장(m)
pltwtrRctglExtn: number; // 사각형 암거 연장(m)
pltwtrCicleExtn: number; // 원형 암거 연장(m)
// 부속시설 (개소)
mnhleSite: number; // 합류식맨홀
pltwtrMnhleSite: number; // 오수맨홀
rainwtrMnhleSite: number; // 우수맨홀
pltwtrRcvrSite: number; // 오수받이
rainwtrRcvrSite: number; // 빗물받이
soilspllSite: number; // 우수토실
soilholeSite: number; // 우수토구
/* --- 분류식 - 우수관로 (Rain Water Pipe) --- */
rainwtrMntnPlanAr: number; // 관로정비 계획면적(㎢)
rainwtrMntnPlanExtn: number; // 관로정비 계획연장(m)
rainwtrPlanExtn: number; // 계획연장(m)
rainwtrFcltyExtn: number; // 시설연장(m)
rainwtrRctglExtn: number; // 사각형 암거 연장(m)
rainwtrCicleExtn: number; // 원형 암거 연장(m)
rainwtrOpswrExtn: number; // 개거 연장(m)
rainwtrSdgttrExtn: number; // 측구 연장(m)
/* --- 부속시설 (개소) --- */
cmbnMnhleCnt: number; // 합류식 맨홀 수
pltwtrMnhleCnt: number; // 오수 맨홀 수
rainwtrMnhleCnt: number; // 우수 맨홀 수
pltwtrRcvrCnt: number; // 오수받이 수
rainwtrRcvrCnt: number; // 우수받이(빗물받이) 수
rainwtrChmbrCnt: number; // 우수토실 수
rainwtrOutltCnt: number; // 우수토구 수
/* --- 대장 및 기타 --- */
swrgRegstrCmptExtn: number; // 하수도대장 전산화 연장(m)
swrgRegstrCmptRt: number; // 하수도대장 전산화율(%)
rmrk: string; // 비고
// 대장 및 기타
sewerRegstrCmptExtn: number; // 하수도대장 전산화연장(m)
sewerRegstrCmptRt: number; // 하수도대장 전산화율(%)
rmk: string; // 비고
}
export interface SewagePipeReviewResponseData {
sewagePipeList: SewagePipeReviewrRegionalItem[];
}
export interface SewagePipeReviewRequestParams {
ctpvNm?: string; // 시도명
sggNm?: string; // 시군구명
statsYr?: string; // 통계 연도
sewerBzmnCd?: string; // 하수도사업자 코드
}
export type SewagePipeReviewRegionalApiResponse = ApiResponse<SewagePipeReviewrRegionalItem[]> & {
message: string;
};
export interface SewagePipeReviewService {
getSewagePipeReviewList(params: {
yr?: string; // 조회 연도
bsnmCd?: string; // 사업장 코드
sido?: string; // 시도
gugun?: string; // 구군
}): Promise<SewagePipeReviewRegionalApiResponse>;
getSewagePipeReviewRegionalList(params: SewagePipeReviewRequestParams): Promise<SewagePipeReviewRegionalApiResponse>;
}
/**
* 02. 하수관로 시설별 설치현황 데이터 항목 (Tab 2)
*/
export interface SewagePipeReviewFacilityItem {
// 1. 행정구역 및 기본 정보
sido: string; // 시도
gugun: string; // 시군구
adstCd: string; // 행정코드
adstDong: string; // 행정구역명
yr: string; // 연도
rowType: 'OLD' | 'CURR'; // 전년도/당해년도 구분
displayYear: string; // 구분 표시용 (2024년확정 등)
ctpvNm: string; // 시도명
sggNm: string; // 시군구명
admdstCd: string; // 행정구역코드
admdstNm: string; // 행정구역명
statsYr: string; // 통계연도
rowType: 'OLD' | 'CURR'; // 데이터 구분 (OLD: 확정, CURR: 당해년도)
displayYear: string; // 화면 표시용 연도
// 2. 시설 정보
bscFctNm: string; // 하수처리장명
fctCpc: number; // 하수처리시설용량(㎥/일)
swrmtFcltyNm: string; // 하수처리시설 명칭
swrmtFcltyCpc: number; // 하수처리시설 용량(㎥/일)
// 3. 처리구역면적(㎢)
procZoneSm: number; // 합계(면적)
cmbnProcZoneAr: number; // 합류식(면적)
sprtProcZoneAr: number; // 분류식(면적)
sepRate: number; // 분류식화 (%)
// 3. 처리구역 면적(㎢)
procZoneArSm: number; // 처리구역 면적 합계
cmbnProcZoneAr: number; // 합류식 처리구역 면적
sprsysProcZoneAr: number; // 분류식 처리구역 면적
// 4. 배수설비(개소)
drngEqpSm: number; // 합계(배수)
cmbnDrngEqp: number; // 합류식(배수)
sprtDrngEqpSm: number; // 합계(분류배수)
sprtDrngEqpCnnc: number; // 연결
sprtDrngEqpDcnnc: number; // 미연결
drngEqpSm: number; // 배수설비 합계
cmbnDrngEqp: number; // 합류식 배수설비
sprsysDrngEqpSm: number; // 분류식 배수설비 합계
// 5. 하수관로 (m)
piplFcltyExtn: number; // 총 시설연장(m)
icgMnnSm: number; // 합계(차집/오수간선)
icgExtn: number; // 차집
mnnExtn: number; // 오수간선
swrgPipeFcltyExtn: number; // 총 시설연장
icgPltwtrMnnSm: number; // 차집 및 오수간선 합계
icgExtn: number; // 차집관로 연장
pltwtrMnnExtn: number; // 오수간선 연장
// 6. 토실/토구 (개소)
cmbnSoilholeSite: number; // 우수토실(합류)
sprtSoilholeSite: number; // 우수토실(분류)
sprtSoilspllSite: number; // 우수토구(분류)
// 6. 우수토실/토구 (개소)
cmbnRainwtrChmbrCnt: number; // 합류식 우수토실
sprsysRainwtrChmbrCnt: number; // 분류식 우수토실
sprsysRainwtrOutltCnt: number; // 분류식 우수토구
// 7. 지선 (m)
brnchlnSm: number; // 합계(지선)
cmbnBrnchlnExtn: number; // 합류식(지선)
rainwtrBrnchlnExtn: number; // 우수(지선)
pltwtrBrnchlnExtn: number; // 오수(지선)
brnchlnSm: number; // 지선 합계
cmbnBrnchlnExtn: number; // 합류식 지선연장
sprsysExlnBrnchlnExtn: number; // 분류식 우수지선연장
sprsysDrtwBrnchlnExtn: number; // 분류식 오수지선연장
// 비고
rmk: string; // 비고
rmrk: string | null; // 비고
}
@@ -136,17 +137,98 @@ export interface SewagePipeFacilityResponseData {
facilityPipeList: SewagePipeReviewFacilityItem[];
}
export type SewagePipeFacilityApiResponse = ApiResponse<SewagePipeReviewFacilityItem[]> & {
export type SewagePipeFacilityApiResponse = ApiResponse<SewagePipeFacilityResponseData> & {
message: string;
};
export interface SewagePipeFacilityService {
getSewagePipeFacilityList(params: SewagePipeReviewRequestParams): Promise<SewagePipeFacilityApiResponse>;
}
getSewagePipeFacilityList(params: {
/**
* 02. 하수관로 관종별 시설현황 (Tab 3)
*
*/
export interface SewerPipeTypeItem {
// --- SewerPipeTab3Response 기본 필드 ---
sido: string; // 시도
gugun: string; // 시군구
adstCd: string; // 행정코드
swrgPipeNm: string; // 관종명
displayYear: string; // 구분 표시용 (예: 2024년확정)
yr: string; // 연도
rmk: string; // 비고
yrGbn?: string; // 구분 (매설/철거 등 행 구분용 - 그리드 설정 기준)
// --- BasePipeExtnResponse 상속 필드 ---
layingExtn: number; // 매설연장(m) - 당해년도
// 총계(Sum) 필드 (그리드 설정에서 사용하는 합계용 필드)
totalExtnSum?: number;
layingExtnSum?: number;
remvlExtnSum?: number;
// 01y ~ 30y 동적 필드 처리 (Index Signature)
// 예: totalExtn01y, layingExtn05y, remvlExtn30y 등
[key: `totalExtn${string}y`]: number | undefined;
[key: `layingExtn${string}y`]: number | undefined;
[key: `remvlExtn${string}y`]: number | undefined;
}
export interface SewerPipeTypeResponseData {
pipeTypeStatusList: SewerPipeTypeItem[];
}
export type SewerPipeTypeApiResponse = ApiResponse<SewerPipeTypeResponseData>;
export interface SewagePipeTypeService {
getSewagePipeTypeList(params: {
yr?: string; // 조회 연도
bsnmCd?: string; // 사업장 코드
sido?: string; // 시도
gugun?: string; // 구군
}): Promise<SewagePipeFacilityApiResponse>;
}): Promise<SewerPipeTypeApiResponse>;
}
/**
* 02. 하수관로 관경별 시설현황 아이템 (Tab 4)
*/
export interface SewerPipeDiamItem {
sido: string; // 시도
gugun: string; // 시군구
adstCd: string; // 행정코드
swrgPipeNm: string; // 관종명 (또는 관경 관련 명칭)
displayYear: string; // 구분 (예: 2023년 확정 / 2024년)
// 관경별 수치 데이터
under200: number; // 200미만
over200Undev300: number; // 200~300
over300Undev500: number; // 300~500
over500Undev500: number; // 500~800 (DTO 명칭 기준)
over800: number; // 800이상
box: number; // BOX
etc: number; // 기타
rmk: string; // 비고
}
export interface SewerPipeDiamResponseData {
pipeDiamStatusList: SewerPipeDiamItem[];
}
export type SewerPipeDiamApiResponse = ApiResponse<SewerPipeDiamResponseData>;
export interface SewagePipeDiamService {
getSewagePipeDiamList(params: {
yr?: string; // 조회 연도
bsnmCd?: string; // 사업장 코드
sido?: string; // 시도
gugun?: string; // 구군
}): Promise<SewerPipeDiamApiResponse>;
}
@@ -2,69 +2,55 @@ import type { ApiResponse } from "./statistics-interface";
// 검토 01.하수도 보급률 데이터 항목
export interface SewerageSupplyRateReviewItem {
ctpvNm: string;
sggNm: string;
statsYr: string;
admdstNm: string;
admdstCd: string;
displayYear: string;
rowType: 'OLD' | 'CURR';
sido: string;
gugun: string;
adstDong: string;
displayYear: string;
rowType: 'OLD' | 'CURR';
adstCd: string;
bsnmCd: string;
yr: number;
lgbsn: string;
mdbsn: string;
mdmbsn: string;
rvbsn: string | null;
trbtrNm: string | null;
spcCtpnRgnCn: string | null;
/* ======================================================================
* 수계 및 지역 정보
* ====================================================================== */
rvbsn: string;
lgbsn: string;
mdbsn: string;
mdmbsn: string;
wrssm: string | null;
bstrm: string;
speclCntrplnAr: string | null;
wholPpltnCnt: number;
wholArea: number;
/* ======================================================================
* 인구 및 면적 데이터 (공통 필드명)
* ====================================================================== */
popltnSm: number; // 총인구
arSm: number; // 총면적(㎢)
/* 하수처리구역내 (groupD) */
swgeProcZoneInnerSm: number; // 계
pblswrgPopltnSm: number; // 공공하수처리인구-합계
pblswrgPrmTrt: number; // 1차처리
pblswrgScdTrt: number; // 2차처리
pblswrgTertTrt: number; // 3차처리
wholSwtrmtPpltnCnt: number;
wholPblSwtrmtPpltnCnt: number;
ts1SwtrmtPpltnCnt: number;
ts2SwtrmtPpltnCnt: number;
ts3SwtrmtPpltnCnt: number;
wstrPopltnSm: number; // 폐수처리인구-합계
wstrPrmTrt: number; // 1차처리
wstrScdTrt: number; // 2차처리
wstrTertTrt: number; // 3차처리
wholWwtPrcsPpltnCnt: number;
ts1WwtPrcsPpltnCnt: number | null;
ts2WwtPrcsPpltnCnt: number | null;
ts3WwtPrcsPpltnCnt: number | null;
notConectPopltn: number; // 미접속인구
swgeProcZoneInnerAr: number; // 면적(㎢)
yetCntnPpltnCnt: number;
staaArea: number;
/* 하수처리구역외 (groupE) */
swgeProcZoneOuterSm: number; // 계
townUnprocPopltn: number; // 미처리인구 (Town + Uptown 합산값)
townSwttPopltn: number; // 오수처리인구 (Town + Uptown 합산값)
townWrrtnPopltn: number; // 정화조인구 (Town + Uptown 합산값)
swgeProcZoneOuterAr: number; // 면적(㎢)
wholStaaExcpPpltnCnt: number;
unprcsPpltnCnt: number | null;
drtwPrcsPpltnCnt: number | null;
spctnkPpltnCnt: number | null;
staaExcpArea: number;
/* ======================================================================
* 보급률 및 기타
* ====================================================================== */
pblswrgPopltnSuprt: number; // 공공하수보급률(%)
adtrtPopltnSuprt: number; // 고도처리보급률(%)
swrgInstlrt: number; // 하수도설치율(%)
rmk: string | null; // 비고
/* ======================================================================
* Flag (필요 시 유지)
* ====================================================================== */
lcnt: number | null;
ocnt: number | null;
staaPsplyRt: number;
altdPrcsPsplyRt: number;
sewerInstlRt: number;
rmrk: string | null;
}
export interface SewerageSupplyRateReviewRequestParams {
ctpvNm?: string;
sggNm?: string;
statsYr?: string;
sewerBzmnCd?: string;
}
export interface SewerageSupplyRateReviewResponseData {
@@ -75,14 +61,6 @@ export type SewerageSupplyRateReviewApiResponse = ApiResponse<SewerageSupplyRate
message: string;
};
export interface SewerageSupplyRateReviewRequestParams {
sido?: string;
gugun?: string;
yr?: string;
bsnmCd?: string;
}
export interface SewerageSupplyRateReviewService {
getSewerageSupplyRateReviewList(params: SewerageSupplyRateReviewRequestParams): Promise<SewerageSupplyRateReviewApiResponse>;
}