[st] feat: 통계 검증 상세 화면 작업

This commit is contained in:
2026-03-09 17:36:25 +09:00
parent 64e7a1f43f
commit ff2b79aaa6
15 changed files with 1347 additions and 300 deletions
@@ -0,0 +1,36 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type {
StAnlsDtlListApiResponse,
StAnlsDtlResponse,
StAnlsDtlSearchParams,
} from "../model/statistics-analysis-detail-interface";
export class StAnlsDtlApiService {
public async getDetailList(
params: StAnlsDtlSearchParams,
): Promise<StAnlsDtlListApiResponse> {
const response = await client.get<StAnlsDtlListApiResponse>(
`${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_DTL}`,
{
params,
},
);
return response.data;
}
public async getDetail(
anlsSn: number,
vrfcTrgtSn: number,
): Promise<StAnlsDtlResponse> {
const response = await client.get<StAnlsDtlResponse>(
`${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_DTL}/${anlsSn}/${vrfcTrgtSn}`,
);
return response.data;
}
}
export const stAnlsDtlApi = new StAnlsDtlApiService();
@@ -0,0 +1,37 @@
import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type {
ChartRetDto,
StAnlsRsltListApiResponse,
StAnlsRsltSearchParams,
} from "../model/statistics-analysis-result-interface";
export class StAnlsRsltApiService {
public async getResultList(
params: StAnlsRsltSearchParams,
): Promise<StAnlsRsltListApiResponse> {
const response = await client.get<StAnlsRsltListApiResponse>(
`${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_RSLT}`,
{
params,
},
);
return response.data;
}
public async getChartData(
anlsSn: number,
vrfcTrgtSn: number,
): Promise<ChartRetDto> {
const response = await client.get<ChartRetDto>(
`${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_RSLT}/chartList/${anlsSn}/${vrfcTrgtSn}`,
);
return response.data;
}
}
export const stAnlsRsltApi = new StAnlsRsltApiService();