feat: [interview] 카테고리 계층 구조(대분류/중분류) 지원

- InterviewCategory 모델에 parent/children 관계 추가
- Service: getTree, getProjectTree 루트+children eager loading
- Service: createCategory에 parent_id 지원
- Service: cloneMaster 2단계 계층 복제
- Controller: storeCategory validation에 parent_id 추가
- UI: CategorySidebar/DomainSidebar 트리 뷰 렌더링
- UI: findCategory 헬퍼로 트리 내 카테고리 검색
This commit is contained in:
김보곤
2026-02-28 21:23:30 +09:00
parent 9823945807
commit 2a45b6bfe8
4 changed files with 295 additions and 114 deletions

View File

@@ -42,6 +42,7 @@ public function storeCategory(Request $request): JsonResponse
$validated = $request->validate([
'name' => 'required|string|max:100',
'description' => 'nullable|string',
'parent_id' => 'nullable|integer|exists:interview_categories,id',
]);
$category = $this->service->createCategory($validated);