85 lines
2.0 KiB
TypeScript
85 lines
2.0 KiB
TypeScript
export interface DashboardSearchParams {
|
|
statsYr: string;
|
|
dtlInstCd: string;
|
|
enoCd?: string;
|
|
laeSeCd?: string;
|
|
sewerBzmnCd?: string;
|
|
sido?: string;
|
|
sggNm?: string;
|
|
unSubmitOnly?: boolean;
|
|
}
|
|
|
|
export interface DashboardApiResponse<T> {
|
|
status: string;
|
|
message: string;
|
|
data: T;
|
|
code: string;
|
|
httpStatus: number;
|
|
}
|
|
|
|
export interface VrfcReportResponse {
|
|
typeCounts: Record<string, number>;
|
|
list: VrfcReportSelect[];
|
|
}
|
|
|
|
export interface VrfcReportSelect {
|
|
vrfcCd: string;
|
|
statsNm: string;
|
|
rsnExpln: string;
|
|
admdstNm: string;
|
|
nowVlCn: string;
|
|
compVlCn: string;
|
|
}
|
|
|
|
export interface VrfcErrCountResponse {
|
|
statsYr: string;
|
|
vrfcErrCount: number;
|
|
}
|
|
|
|
export interface UnSubmitCountResponse {
|
|
statsYr: string;
|
|
statusList: UnSubmitStatsResponse[];
|
|
submittedCount: number;
|
|
totalCount: number;
|
|
unSubmittedCount: number;
|
|
}
|
|
|
|
export interface UnSubmitStatsResponse {
|
|
sbmsnYn: string;
|
|
sidoSggNm: string;
|
|
statsCd: string;
|
|
statsNm: string;
|
|
statusCd: string;
|
|
statusNm: string;
|
|
}
|
|
|
|
export interface StatsSubmissionResponse {
|
|
totalCount: number;
|
|
submittedCount: number;
|
|
submissionRate: number;
|
|
statusLevel: string;
|
|
}
|
|
|
|
export interface EcptReqCountResponse {
|
|
statsYr: string;
|
|
ecptReqCount: number;
|
|
}
|
|
|
|
export interface DashboardService {
|
|
getVrfcReport(
|
|
params: DashboardSearchParams,
|
|
): Promise<DashboardApiResponse<VrfcReportResponse>>;
|
|
getVrfcErrCount(
|
|
params: DashboardSearchParams,
|
|
): Promise<DashboardApiResponse<VrfcErrCountResponse>>;
|
|
getUnSubmitCount(
|
|
params: DashboardSearchParams,
|
|
): Promise<DashboardApiResponse<UnSubmitCountResponse>>;
|
|
getStatsSubmissionRate(
|
|
params: DashboardSearchParams,
|
|
): Promise<DashboardApiResponse<StatsSubmissionResponse>>;
|
|
getEcptReqCount(
|
|
params: DashboardSearchParams,
|
|
): Promise<DashboardApiResponse<EcptReqCountResponse>>;
|
|
}
|