[st] refactor: IMR 검증 이력 API 변경
This commit is contained in:
@@ -118,11 +118,12 @@ const ImrVerificationHistory = () => {
|
||||
const { data: historyData } = useQuery({
|
||||
queryKey: [
|
||||
ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_MST,
|
||||
"imr",
|
||||
appliedSearchParams,
|
||||
historyPagination,
|
||||
],
|
||||
queryFn: () =>
|
||||
stAnlsMstApi.getAnalysisHistoryList({
|
||||
stAnlsMstApi.getImrAnalysisMasterList({
|
||||
...appliedSearchParams,
|
||||
page: historyPagination.pageIndex,
|
||||
size: historyPagination.pageSize,
|
||||
|
||||
@@ -3,6 +3,7 @@ import { ENDPOINT } from "@/shared/config";
|
||||
|
||||
import type {
|
||||
AdstZoneResponseDto,
|
||||
StAnlsMstImrListApiResponse,
|
||||
StAnlsMstListApiResponse,
|
||||
StAnlsMstSearchParams,
|
||||
StAnlsOutlierListResponse,
|
||||
@@ -22,6 +23,19 @@ export class StAnlsMstApiService {
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async getImrAnalysisMasterList(
|
||||
params: StAnlsMstSearchParams,
|
||||
): Promise<StAnlsMstImrListApiResponse> {
|
||||
const response = await client.get<StAnlsMstImrListApiResponse>(
|
||||
`${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_MST}/imr`,
|
||||
{
|
||||
params,
|
||||
},
|
||||
);
|
||||
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async getOutlierList(
|
||||
anlsSn: number,
|
||||
): Promise<StAnlsOutlierListResponse[]> {
|
||||
|
||||
@@ -28,6 +28,9 @@ export {
|
||||
} from "./model/statistics-analysis/statistics-analysis-detail-interface";
|
||||
export {
|
||||
type AdstZoneResponseDto,
|
||||
type StAnlsMstImrListApiResponse,
|
||||
type StAnlsMstImrResponse,
|
||||
type StAnlsMstImrResponseDto,
|
||||
type StAnlsMstListApiResponse,
|
||||
type StAnlsMstResponse,
|
||||
type StAnlsMstResponseDto,
|
||||
|
||||
+7
@@ -54,6 +54,11 @@ export interface StAnlsMstResponseDto {
|
||||
vrfcMthdCd: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* IMR 분석 현황 마스터 응답 DTO
|
||||
*/
|
||||
export interface StAnlsMstImrResponseDto extends StAnlsMstResponseDto {}
|
||||
|
||||
/**
|
||||
* 분석 현황 마스터 검색 DTO
|
||||
*/
|
||||
@@ -126,8 +131,10 @@ export interface StAnlsOutlierListResponseDto {
|
||||
|
||||
/** 기존 인터페이스 호환을 위한 별칭 (필요 시 유지) */
|
||||
export type StAnlsMstResponse = StAnlsMstResponseDto;
|
||||
export type StAnlsMstImrResponse = StAnlsMstImrResponseDto;
|
||||
export type StAnlsMstSearchParams = StAnlsMstSearchDto;
|
||||
export type StAnlsOutlierDataResponse = StAnlsOutlierDataResponseDto;
|
||||
export type StAnlsOutlierListResponse = StAnlsOutlierListResponseDto;
|
||||
|
||||
export type StAnlsMstListApiResponse = PageableList<StAnlsMstResponseDto>;
|
||||
export type StAnlsMstImrListApiResponse = PageableList<StAnlsMstImrResponseDto>;
|
||||
|
||||
Reference in New Issue
Block a user