feat(menus): 메뉴 일괄 선택 삭제/복구/영구삭제 기능 추가
- GlobalMenu 모델에 getSection(), getMeta() 메서드 추가 (import 모드 500 에러 해결) - table.blade.php: normal 모드에서 체크박스 + 드래그 핸들 분리 - index.blade.php: 선택 삭제/복구/영구삭제 버튼 및 JS 함수 추가 - MenuController: bulkDelete, bulkRestore, bulkForceDelete API 추가 - routes/api.php: bulk 엔드포인트 3개 등록 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -132,6 +132,22 @@ public function getLevel(): int
|
||||
return 3;
|
||||
}
|
||||
|
||||
/**
|
||||
* 메뉴 섹션 조회 (GlobalMenu는 기본값 'main' 반환)
|
||||
*/
|
||||
public function getSection(): string
|
||||
{
|
||||
return 'main';
|
||||
}
|
||||
|
||||
/**
|
||||
* meta 데이터 조회 (GlobalMenu는 빈 배열 반환)
|
||||
*/
|
||||
public function getMeta(?string $key = null, mixed $default = null): mixed
|
||||
{
|
||||
return $key === null ? [] : $default;
|
||||
}
|
||||
|
||||
/**
|
||||
* 계층 구조로 정렬된 전체 메뉴 트리 조회
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user