docs: 게시판 메뉴 자동 연동 기능 문서화
- 테넌트 게시판 메뉴 연동 섹션 추가 - 변경 이력에 api 프로젝트 게시판 메뉴 연동 기록 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -248,7 +248,21 @@ http://api.sam.kr/api/v1/comprehensive-analysis
|
||||
| 게시판 등록 | POST | `/boards` | ✅ |
|
||||
| 게시판 수정 | PUT | `/boards/{id}` | ✅ |
|
||||
| 게시판 삭제 | DELETE | `/boards/{id}` | ✅ |
|
||||
| **🆕 게시판 생성 시 메뉴 자동 추가** | - | 연동 로직 | 🔄 구현 중 |
|
||||
| **게시판 CRUD 시 메뉴 자동 연동** | - | mng + api 프로젝트 | ✅ 완료 |
|
||||
|
||||
#### 📌 테넌트 게시판 메뉴 연동 (api 프로젝트)
|
||||
|
||||
> **2025-12-29 추가**: 테넌트 게시판 생성/수정/삭제 시 메뉴 자동 연동
|
||||
|
||||
| 기능 | 트리거 | 메뉴 처리 | 상태 |
|
||||
|------|--------|----------|------|
|
||||
| 게시판 생성 | `BoardService::createTenantBoard()` | `/board` 하위에 메뉴 자동 추가 | ✅ |
|
||||
| 게시판 수정 | `BoardService::updateTenantBoard()` | 코드/이름 변경 시 메뉴 URL/이름 동기화 | ✅ |
|
||||
| 게시판 삭제 | `BoardService::deleteTenantBoard()` | 메뉴 Soft Delete | ✅ |
|
||||
|
||||
**구현 파일:**
|
||||
- `api/app/Services/MenuService.php` - 게시판 메뉴 연동 메서드 추가
|
||||
- `api/app/Services/Boards/BoardService.php` - MenuService 호출 로직 추가
|
||||
|
||||
#### 🏗️ 게시판 시스템 아키텍처 (참조용)
|
||||
|
||||
@@ -470,6 +484,7 @@ react/src/components/
|
||||
|
||||
| 날짜 | 작업 | 상세 내용 |
|
||||
|------|------|----------|
|
||||
| 2025-12-29 | api 프로젝트 게시판 메뉴 자동 연동 | 테넌트 게시판 생성/수정/삭제 시 메뉴 자동 연동. `MenuService::createMenuForBoard()`, `updateMenuForBoard()`, `deleteMenuForBoard()` 추가. `BoardService`에서 호출. 부모 메뉴 `/board` 하위 배치 |
|
||||
| 2025-12-29 | K-4 문의 댓글 API 연동 완료 | 댓글 CRUD API 연동 (getComments, createComment, updateComment, deleteComment). BoardComment 모델 replies() 추가, PostService user eager loading 추가, user.id localStorage 저장으로 본인 글 수정/삭제 버튼 표시 |
|
||||
| 2025-12-29 | Phase J 게시판 시스템 React 연동 완료 | J-1~J-3 완료: `board/actions.ts` 생성 (getPosts, getPost, createPost, updatePost, deletePost). BoardList, BoardDetail, BoardForm 모두 API 연동. 라우트 변경: `/board/[id]` → `/board/[boardCode]/[postId]`. Toast sonner 통일, MOCK_BOARDS 완전 제거 |
|
||||
| 2025-12-29 | Phase K 고객센터 API 연동 완료 확인 | K-1~K-4 모두 `shared/actions.ts` 통해 시스템 게시판 API 호출. FAQList, NoticeList, EventList, InquiryList/Form 모두 `getPosts()` 사용 |
|
||||
|
||||
Reference in New Issue
Block a user