51 lines
1.0 KiB
TypeScript
51 lines
1.0 KiB
TypeScript
export interface Sido {
|
|
adstDstrCd: string;
|
|
sido: string;
|
|
bsnmCd: string;
|
|
}
|
|
|
|
export interface SearchCondition {
|
|
yearList: string[];
|
|
sidoList: Sido[];
|
|
}
|
|
|
|
export interface Sgg {
|
|
adstDstrCd: string;
|
|
gugun: string;
|
|
bsnmCd: string;
|
|
}
|
|
|
|
export interface cancelSubmitRequest {
|
|
statsYr: string;
|
|
ctpvNm: string;
|
|
sggNm: string;
|
|
sewerBzmnCd: string;
|
|
statsCd: string;
|
|
mdfrId: string;
|
|
}
|
|
|
|
export interface cancelSubmitResponse {
|
|
status: string;
|
|
message?: string;
|
|
}
|
|
|
|
export interface ApiResponse<T> {
|
|
status: string;
|
|
data: T;
|
|
message?: string;
|
|
}
|
|
|
|
export interface ImrRequest {
|
|
user_id?: string;
|
|
sewer_bzmn_cd: string;
|
|
stats_cd: string;
|
|
stats_yr: string;
|
|
lae_sbmsn_stts_cd: string;
|
|
}
|
|
|
|
export interface StatisticsService {
|
|
getSidoList(): Promise<ApiResponse<SearchCondition>>;
|
|
getSggList(sidoName: string): Promise<ApiResponse<Sgg[]>>;
|
|
cancelSubmit(param: cancelSubmitRequest): Promise<cancelSubmitResponse>;
|
|
callImrService(param: ImrRequest): Promise<null>;
|
|
} |