import { client } from "@/shared/api"; import { ENDPOINT } from "@/shared/config"; import type { AdstZoneResponseDto, StAnlsMstListApiResponse, StAnlsMstSearchParams, StAnlsOutlierListResponse, } from "../model/statistics-analysis/statistics-analysis-master-interface"; export class StAnlsMstApiService { public async getAnalysisHistoryList( params: StAnlsMstSearchParams, ): Promise { const response = await client.get( `${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_MST}`, { params, }, ); return response.data; } public async getOutlierList( anlsSn: number, ): Promise { const response = await client.get( `${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_MST}/outlierList/${anlsSn}`, ); return response.data; } public async getSidoCombo(): Promise { const response = await client.get( `${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_MST}/sido`, ); return response.data; } public async getSigunguCombo( sidoCd: string, ): Promise { const response = await client.get( `${ENDPOINT.STATVERIFY_SERVICE.ST_ANLS_MST}/sigungu`, { params: { sidoCd } }, ); return response.data; } } export const stAnlsMstApi = new StAnlsMstApiService();