사용자관리 등록

This commit is contained in:
kjs
2025-08-25 13:12:17 +09:00
parent 8667cb4780
commit ce130ee225
9 changed files with 1256 additions and 170 deletions

View File

@@ -144,7 +144,9 @@ export async function getDepartmentList(companyCode?: string) {
const response = await apiClient.get(`/admin/departments${params}`);
if (response.data.success && response.data.data) {
return response.data.data;
// 백엔드 API 응답 구조: { data: { departments: [], flatList: [] } }
// departments 배열을 반환 (트리 구조)
return response.data.data.departments || [];
}
throw new Error(response.data.message || "부서 목록 조회에 실패했습니다.");