39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import axios from "axios";
|
|
import { ENDPOINT } from "@/shared/config";
|
|
|
|
import {
|
|
type StatsInputStatusReviewService,
|
|
type StatsInputStatusReviewApiResponse,
|
|
} from "../model/statistics-input-review-interface";
|
|
|
|
export class StatsInputStatusReviewApiService implements StatsInputStatusReviewService {
|
|
/**
|
|
* 통계 입력 현황 목록 조회
|
|
* @param params (yr, bsnmCd, sido, gugun)
|
|
*/
|
|
public async getStatsInputStatusList(
|
|
params: { yr?: string; bsnmCd?: string; sido?: string; gugun?: string }
|
|
): Promise<StatsInputStatusReviewApiResponse> {
|
|
const response = await axios.get<StatsInputStatusReviewApiResponse>(
|
|
|
|
`${ENDPOINT.ST_SERVICE.REVIEW}/input-status`,
|
|
{
|
|
params: params
|
|
}
|
|
);
|
|
|
|
return response.data;
|
|
}
|
|
|
|
public async checkInputPeriod(params: string | number): Promise<any> {
|
|
const response = await axios.get<any>(
|
|
`${ENDPOINT.ST_SERVICE.INPUTCOMMON}/check-input-period?year=${params}`
|
|
);
|
|
|
|
return response.data;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
export const statsInputStatusReviewApi = new StatsInputStatusReviewApiService(); |