37 lines
999 B
TypeScript
37 lines
999 B
TypeScript
import { client } from "@/shared/api";
|
|
import { ENDPOINT } from "@/shared/config";
|
|
|
|
import type {
|
|
StAnlsDtlListApiResponse,
|
|
StAnlsDtlResponse,
|
|
StAnlsDtlSearchParams,
|
|
} from "../model/statistics-analysis/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();
|