[st] feat: 입력 저장/제출 로직 수정, 통계입력관리, 검토 반려/제출
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
type SewagePipeFacilityApiResponse,
|
||||
type SewerPipeTypeApiResponse,
|
||||
type SewerPipeDiamApiResponse,
|
||||
type SewagePipeManholeApiResponse,
|
||||
} from "../model/statistics-sewage-pipe-review-interface";
|
||||
import {
|
||||
type SewerPipeMtcApiResponse,
|
||||
@@ -135,6 +136,20 @@ export class StatisticsManagementApiService {
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 02. 하수관로 맨홀 현황 조회 (Tab 5)
|
||||
* @param params (sido, gugun, yr, bsnmCd)
|
||||
*/
|
||||
public async getSewagePipeManholeList(
|
||||
params: SewagePipeReviewRequestParams
|
||||
): Promise<SewagePipeManholeApiResponse> {
|
||||
const response = await stClient.get<SewagePipeManholeApiResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.REVIEW}/sewer-pipe/manhole`,
|
||||
{ params }
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 03. 하수관로 유지관리 개보수 현황 조회
|
||||
* @param params (yr, bsnmCd, sido, gugun)
|
||||
|
||||
@@ -10,6 +10,8 @@ import {
|
||||
type ImrRequest,
|
||||
type ImrResponse,
|
||||
type ImrStatusResponse,
|
||||
type ReviewerInfoRequest,
|
||||
type ReviewerInfoResponse,
|
||||
type ReviewOpinionSaveRequest,
|
||||
type ReviewOpinionSaveResponse,
|
||||
type ReviewReturnSaveRequest,
|
||||
@@ -25,6 +27,8 @@ import {
|
||||
type StatisticsService,
|
||||
type StatsInputPeriodDeleteApiResponse,
|
||||
type StatsInputPeriodDeleteRequest,
|
||||
type StatsInputPeriodDetailRequest,
|
||||
type StatsInputPeriodDetailResponse,
|
||||
type StatsInputPeriodListApiResponse,
|
||||
type StatsInputPeriodListRequest,
|
||||
type StatsInputPeriodSaveApiResponse,
|
||||
@@ -81,6 +85,14 @@ export class StatisticsApiService implements StatisticsService {
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async getStatsInputPeriodDetail(params: StatsInputPeriodDetailRequest): Promise<StatsInputPeriodDetailResponse> {
|
||||
const response = await stClient.get<StatsInputPeriodDetailResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.DASHBOARD}/schedule-info/detail`,
|
||||
{ params },
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/** 통계 입력 기간 저장 — 경로는 백엔드 스펙에 맞게 수정 */
|
||||
public async saveStatsInputPeriod(
|
||||
param: StatsInputPeriodSaveRequest,
|
||||
@@ -92,17 +104,6 @@ export class StatisticsApiService implements StatisticsService {
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/** 통계 입력 기간 수정 — 경로는 저장과 동일, 메서드는 PUT */
|
||||
public async updateStatsInputPeriod(
|
||||
param: StatsInputPeriodSaveRequest,
|
||||
): Promise<StatsInputPeriodSaveApiResponse> {
|
||||
const response = await stClient.put<StatsInputPeriodSaveApiResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.DASHBOARD}/schedule-info`,
|
||||
param,
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
/** 통계 입력 기간 삭제 — JSON body. HTTP 메서드·URL은 백엔드 스펙에 맞게 수정 */
|
||||
public async deleteStatsInputPeriod(
|
||||
param: StatsInputPeriodDeleteRequest,
|
||||
@@ -238,6 +239,14 @@ export class StatisticsApiService implements StatisticsService {
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
public async getReviewerInfo(param: ReviewerInfoRequest): Promise<ReviewerInfoResponse> {
|
||||
const response = await stClient.get<ReviewerInfoResponse>(
|
||||
`${ENDPOINT.ST_SERVICE.REVIEW}/reviewer-info`,
|
||||
{ params: param },
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
}
|
||||
|
||||
export const statisticsApi = new StatisticsApiService();
|
||||
|
||||
Reference in New Issue
Block a user