fix: 거주자/장애인 의견진술 API 공통화 적용

main
Lim Jonguk 3 years ago
parent 969a61187b
commit 29e279c0ca

@ -4,7 +4,7 @@
import axios from 'utils/axios'; import axios from 'utils/axios';
import { import {
GET_RESIDENT, GET_RESIDENT_DATA,
GET_RESIDENT_DATA_LIST, GET_RESIDENT_DATA_LIST,
GET_RESIDENT_JUDGE_TARGET_LIST, GET_RESIDENT_JUDGE_TARGET_LIST,
GET_RESIDENT_LIST, GET_RESIDENT_LIST,
@ -33,7 +33,7 @@ export async function saveResidentData(formData) {
} }
export async function findResident(scCode) { 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) { if (res.success) {
return res; return res;
} }

@ -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 SAVE_PARKING_JUDGE_TARGET_LIST = '/api/v1/ctgy/parking/target';
// export const GET_PARKING_DETAILS_LIST = '/api/v1/ctgy/parking/details'; // export const GET_PARKING_DETAILS_LIST = '/api/v1/ctgy/parking/details';
// 거주자 의견 진술 // 거주자/장애인 의견 진술
export const GET_RESIDENT_DATA_LIST = '/api/v1/ctgy/resident/data'; export const GET_RESIDENT_DATA_LIST = '/api/v1/ctgy/judge/data';
export const SAVE_RESIDENT_DATA = '/api/v1/ctgy/resident/data'; export const SAVE_RESIDENT_DATA = '/api/v1/ctgy/judge/data';
export const GET_RESIDENT = '/api/v1/ctgy/resident/'; export const GET_RESIDENT_DATA = '/api/v1/ctgy/judge/data/';
export const GET_RESIDENT_LIST = '/api/v1/ctgy/resident'; export const GET_RESIDENT_LIST = '/api/v1/ctgy/judge';
export const GET_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/resident/target'; export const GET_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/judge/target';
export const SAVE_RESIDENT_JUDGE_TARGET_LIST = '/api/v1/ctgy/resident/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 GET_DISABLED_DATA_LIST = '/api/v1/ctgy/judge/data';
export const SAVE_DISABLED_DATA = '/api/v1/ctgy/resident/data'; export const SAVE_DISABLED_DATA = '/api/v1/ctgy/judge/data';
export const GET_DISABLED = '/api/v1/ctgy/resident/'; export const GET_DISABLED = '/api/v1/ctgy/judge/data/';
export const GET_DISABLED_LIST = '/api/v1/ctgy/resident'; export const GET_DISABLED_LIST = '/api/v1/ctgy/judge';
// 사용자 관리 // 사용자 관리
export const GET_USER_BOARD_LIST = '/api/v1/ctgy/pboard/'; export const GET_USER_BOARD_LIST = '/api/v1/ctgy/pboard/';

Loading…
Cancel
Save