[as] WIP: 하수도기본계획 신청 페이지(이전기본계획조회)

This commit is contained in:
2026-07-30 11:23:44 +09:00
parent b8b0b24b0e
commit e56938f7ff
17 changed files with 612 additions and 164 deletions
+28 -2
View File
@@ -2,6 +2,11 @@ import { client } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
import type {
ClsfSystmRequestDto,
ClsfSystmResponseDto,
DcService,
LvNowDmgMtncGnsvyResponseDto,
LvNowDmgMtncGnsvySearchDto,
NowDmgMtncGnsvyResponseDto,
NowDmgMtncGnsvySearchDto,
} from "../model/dc-interface";
@@ -10,10 +15,31 @@ async function getNowDmgMtncGnsvy(
params: NowDmgMtncGnsvySearchDto,
): Promise<NowDmgMtncGnsvyResponseDto[]> {
const response = await client.get<NowDmgMtncGnsvyResponseDto[]>(
ENDPOINT.DC_SERVICE.NOW_DMG_MTNC_GNSVY,
`${ENDPOINT.DC_SERVICE}/nowDmgMtncGnsvy`,
{ params },
);
return response.data;
}
export { getNowDmgMtncGnsvy };
async function getLvNowDmgMtncGnsvy(
params: LvNowDmgMtncGnsvySearchDto,
): Promise<LvNowDmgMtncGnsvyResponseDto[]> {
const response = await client.get<LvNowDmgMtncGnsvyResponseDto[]>(
`${ENDPOINT.DC_SERVICE}/lvNowDmgMtncGnsvy`,
{ params },
);
return response.data;
}
async function getClsfSystm(params: ClsfSystmRequestDto): Promise<ClsfSystmResponseDto[]> {
const response = await client.get<ClsfSystmResponseDto[]>(`${ENDPOINT.DC_SERVICE}/clsfSystm`, {
params,
});
return response.data;
}
export const dcService = {
getNowDmgMtncGnsvy,
getLvNowDmgMtncGnsvy,
getClsfSystm,
} satisfies DcService;