42 lines
843 B
TypeScript
42 lines
843 B
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;
|
|
userId: string;
|
|
}
|
|
|
|
export interface cancelSubmitResponse {
|
|
status: string;
|
|
message?: string;
|
|
}
|
|
|
|
export interface ApiResponse<T> {
|
|
status: string;
|
|
data: T;
|
|
message?: string;
|
|
}
|
|
|
|
export interface StatisticsService {
|
|
getSidoList(): Promise<ApiResponse<SearchCondition>>;
|
|
getSggList(sidoName: string): Promise<ApiResponse<Sgg[]>>;
|
|
cancelSubmit(param: cancelSubmitRequest): Promise<cancelSubmitResponse>;
|
|
} |