feat: [mock-migration] Phase J-4 게시판 관리 API 수정

- BoardController: show 메서드 ID 기반 조회로 변경
- BoardStoreRequest: extra_settings.target/target_id/target_name 검증 추가
- BoardUpdateRequest: extra_settings.target/target_id/target_name 검증 추가
- routes/api.php: 게시판 상세 라우트 {code} → {id} 변경

테넌트 게시판 정책:
- 테넌트는 자신의 게시판만 CRUD 가능
- 시스템 게시판은 mng에서만 관리
- board_code는 시스템/테넌트 간 중복 허용

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-27 18:27:19 +09:00
parent 71a33d79cc
commit c694c65467
4 changed files with 27 additions and 8 deletions

View File

@@ -35,18 +35,18 @@ public function index()
}
/**
* 게시판 상세 조회 (코드 기반)
* 게시판 상세 조회 (ID 기반)
*/
public function show(string $code)
public function show(int $id)
{
return ApiResponse::handle(function () use ($code) {
$board = $this->boardService->getBoardByCode($code);
return ApiResponse::handle(function () use ($id) {
$board = $this->boardService->getBoardDetail($id);
if (! $board) {
abort(404, __('error.board.not_found'));
}
return $board->load('customFields');
return $board;
}, __('message.fetched'));
}