70 lines
2.7 KiB
TypeScript
70 lines
2.7 KiB
TypeScript
import type { ApiResponse } from "@/entities/statistics/model/statistics-interface";
|
|
|
|
/* ══════════════════════════════════════════════════
|
|
16. 통계인구관리 > 내국인 인구 관련 인터페이스
|
|
══════════════════════════════════════════════════ */
|
|
|
|
/** 내국인 인구 임시 적재 행 (좌측 전체 리스트 / 우측 미매핑 리스트 공통) */
|
|
export interface DomesticPopulationItem {
|
|
statsYr: string; // 통계연도
|
|
admdstCd: string; // 행정구역코드
|
|
admdstNm: string; // 행정구역명
|
|
domplWholPpltnCnt: number; // 내국인 합계 인구수
|
|
domplMlPpltnCnt: number; // 내국인 남성 인구수
|
|
domplFmlPpltnCnt: number; // 내국인 여성 인구수
|
|
/** 미매핑 리스트 전용 - 매핑 대상 행정구역코드 (상위코드) */
|
|
sbstAdmdstCd: string;
|
|
}
|
|
|
|
/** 엑셀 업로드 요청 파라미터 */
|
|
export interface DomesticPopulationUploadParams {
|
|
file: File;
|
|
statsYr: string;
|
|
}
|
|
|
|
/** 임시 적재 리스트 조회 요청 파라미터 */
|
|
export interface DomesticPopulationListParams {
|
|
statsYr: string;
|
|
/** 1: 전체 리스트(좌측), 2: 미매핑 리스트(우측) */
|
|
opt1: '1' | '2';
|
|
}
|
|
|
|
/** 수동 매핑 후 최종 반영 요청 파라미터 */
|
|
export interface DomesticPopulationFinalParams {
|
|
YR: string;
|
|
/** 수동 매핑된 행 목록 (admdstCd → subAdmdstCd 매핑 정보) */
|
|
regList: DomesticPopulationMappingItem[];
|
|
}
|
|
|
|
/** 수동 매핑 단건 아이템 */
|
|
export interface DomesticPopulationMappingItem {
|
|
statsYr: string;
|
|
admdstCd: string;
|
|
admdstNm: string;
|
|
subAdmdstCd: string;
|
|
}
|
|
|
|
/** 내국인/외국인 상위 코드 후보 조회 요청 */
|
|
export interface UpperCodesByNameParams {
|
|
statsYr: string;
|
|
admdstNm: string;
|
|
}
|
|
|
|
/** 내국인/외국인 상위 코드 후보 단건 아이템 */
|
|
export interface UpperCodeCandidateItem {
|
|
admdstCd: string; // 행정동코드
|
|
admdstNm: string; // 행정동명
|
|
[key: string]: string;
|
|
}
|
|
|
|
/** 행정동 갱신 법정동코드 후보 단건 아이템 */
|
|
export interface LawCodeCandidateItem {
|
|
lawCd: string; // 법정동코드
|
|
lawNm: string; // 법정동명
|
|
[key: string]: string;
|
|
|
|
}
|
|
/* ── API 응답 타입 ── */
|
|
export type DomesticPopulationListResponse = ApiResponse<DomesticPopulationItem[]>;
|
|
export type DomesticPopulationFinalResponse = ApiResponse<string>;
|
|
export type UpperCodesByNameResponse = ApiResponse<UpperCodeCandidateItem[]>; |