From 29e279c0ca54e4df011b9ce957fcf7edb00c667f Mon Sep 17 00:00:00 2001 From: Lim Jonguk Date: Sat, 9 Apr 2022 04:38:57 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B1=B0=EC=A3=BC=EC=9E=90/=EC=9E=A5?= =?UTF-8?q?=EC=95=A0=EC=9D=B8=20=EC=9D=98=EA=B2=AC=EC=A7=84=EC=88=A0=20API?= =?UTF-8?q?=20=EA=B3=B5=ED=86=B5=ED=99=94=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/resident.js | 4 ++-- src/commons/ApiUrl.js | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/apis/resident.js b/src/apis/resident.js index 69553b0..e174879 100644 --- a/src/apis/resident.js +++ b/src/apis/resident.js @@ -4,7 +4,7 @@ import axios from 'utils/axios'; import { - GET_RESIDENT, + GET_RESIDENT_DATA, GET_RESIDENT_DATA_LIST, GET_RESIDENT_JUDGE_TARGET_LIST, GET_RESIDENT_LIST, @@ -33,7 +33,7 @@ export async function saveResidentData(formData) { } export async function findResident(scCode) { - const res = await axios.get(GET_RESIDENT + scCode); + const res = await axios.get(GET_RESIDENT_DATA + scCode); if (res.success) { return res; } diff --git a/src/commons/ApiUrl.js b/src/commons/ApiUrl.js index 6bf0ec9..0507318 100644 --- a/src/commons/ApiUrl.js +++ b/src/commons/ApiUrl.js @@ -20,19 +20,19 @@ export const GET_PARKING_JUDGE_TARGET_LIST = '/api/v1/ctgy/parking/target'; export const SAVE_PARKING_JUDGE_TARGET_LIST = '/api/v1/ctgy/parking/target'; // export const GET_PARKING_DETAILS_LIST = '/api/v1/ctgy/parking/details'; -// 거주자 의견 진술 -export const GET_RESIDENT_DATA_LIST = '/api/v1/ctgy/resident/data'; -export const SAVE_RESIDENT_DATA = '/api/v1/ctgy/resident/data'; -export const GET_RESIDENT = '/api/v1/ctgy/resident/'; -export const GET_RESIDENT_LIST = '/api/v1/ctgy/resident'; -export const GET_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/resident/target'; -export const SAVE_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/resident/target'; +// 거주자/장애인 의견 진술 +export const GET_RESIDENT_DATA_LIST = '/api/v1/ctgy/judge/data'; +export const SAVE_RESIDENT_DATA = '/api/v1/ctgy/judge/data'; +export const GET_RESIDENT_DATA = '/api/v1/ctgy/judge/data/'; +export const GET_RESIDENT_LIST = '/api/v1/ctgy/judge'; +export const GET_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/judge/target'; +export const SAVE_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/judge/target'; // 장애인 의견 진술 -export const GET_DISABLED_DATA_LIST = '/api/v1/ctgy/resident/data'; -export const SAVE_DISABLED_DATA = '/api/v1/ctgy/resident/data'; -export const GET_DISABLED = '/api/v1/ctgy/resident/'; -export const GET_DISABLED_LIST = '/api/v1/ctgy/resident'; +export const GET_DISABLED_DATA_LIST = '/api/v1/ctgy/judge/data'; +export const SAVE_DISABLED_DATA = '/api/v1/ctgy/judge/data'; +export const GET_DISABLED = '/api/v1/ctgy/judge/data/'; +export const GET_DISABLED_LIST = '/api/v1/ctgy/judge'; // 사용자 관리 export const GET_USER_BOARD_LIST = '/api/v1/ctgy/pboard/';