From b1111ff286f00385b818c1370b73ff0caae0593b Mon Sep 17 00:00:00 2001 From: kent Date: Mon, 29 Dec 2025 13:50:33 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EB=A9=94?= =?UTF-8?q?=EB=89=B4=20=EC=9E=90=EB=8F=99=20=EC=97=B0=EB=8F=99=20=EA=B8=B0?= =?UTF-8?q?=EB=8A=A5=20=EB=AC=B8=EC=84=9C=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 테넌트 게시판 메뉴 연동 섹션 추가 - 변경 이력에 api 프로젝트 게시판 메뉴 연동 기록 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- plans/react-mock-remaining-tasks.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/plans/react-mock-remaining-tasks.md b/plans/react-mock-remaining-tasks.md index 77585a4..834ee11 100644 --- a/plans/react-mock-remaining-tasks.md +++ b/plans/react-mock-remaining-tasks.md @@ -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()` 사용 |