From 6e50514096f729bde4c071b14c8f980aea823b12 Mon Sep 17 00:00:00 2001 From: bicochan Date: Tue, 24 Mar 2026 11:57:40 +0900 Subject: [PATCH] =?UTF-8?q?[st]=20refactor:=20IMR=20=EA=B2=80=EC=A6=9D=20?= =?UTF-8?q?=EC=9D=B4=EB=A0=A5=20API=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../verification/ImrVerificationHistory.tsx | 3 ++- .../api/statistics-analysis-master-api.ts | 14 ++++++++++++++ apps/st/src/entities/statistics/index.ts | 3 +++ .../statistics-analysis-master-interface.ts | 7 +++++++ 4 files changed, 26 insertions(+), 1 deletion(-) diff --git a/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx b/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx index 9592e0cb1..61c66a347 100644 --- a/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx +++ b/apps/st/src/components/statistics/verification/ImrVerificationHistory.tsx @@ -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, diff --git a/apps/st/src/entities/statistics/api/statistics-analysis-master-api.ts b/apps/st/src/entities/statistics/api/statistics-analysis-master-api.ts index bcbabda99..dfe951e53 100644 --- a/apps/st/src/entities/statistics/api/statistics-analysis-master-api.ts +++ b/apps/st/src/entities/statistics/api/statistics-analysis-master-api.ts @@ -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 { + const response = await client.get( + `${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_MST}/imr`, + { + params, + }, + ); + + return response.data; + } + public async getOutlierList( anlsSn: number, ): Promise { diff --git a/apps/st/src/entities/statistics/index.ts b/apps/st/src/entities/statistics/index.ts index 08f32d08b..1b21259b5 100644 --- a/apps/st/src/entities/statistics/index.ts +++ b/apps/st/src/entities/statistics/index.ts @@ -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, diff --git a/apps/st/src/entities/statistics/model/statistics-analysis/statistics-analysis-master-interface.ts b/apps/st/src/entities/statistics/model/statistics-analysis/statistics-analysis-master-interface.ts index 781beeb1c..e060a82d6 100644 --- a/apps/st/src/entities/statistics/model/statistics-analysis/statistics-analysis-master-interface.ts +++ b/apps/st/src/entities/statistics/model/statistics-analysis/statistics-analysis-master-interface.ts @@ -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; +export type StAnlsMstImrListApiResponse = PageableList;