응답용 프로세스 변경
This commit is contained in:
parent
c182f749b8
commit
d34fdf1fda
@ -122,7 +122,9 @@ public class BoardController {
|
|||||||
public ApiResponse<MapDto> getBoardDetail(@PathVariable("boardId") Long boardId) {
|
public ApiResponse<MapDto> getBoardDetail(@PathVariable("boardId") Long boardId) {
|
||||||
MapDto board = boardService.selectBoardDetail(boardId);
|
MapDto board = boardService.selectBoardDetail(boardId);
|
||||||
if (board == null) {
|
if (board == null) {
|
||||||
throw new NotFoundHandler("게시물 ID " + boardId + "을(를) 찾을 수 없습니다.");
|
//throw new NotFoundHandler("게시물 ID " + boardId + "을(를) 찾을 수 없습니다.");
|
||||||
|
String errMessage = "게시물 ID " + boardId + "을(를) 찾을 수 없습니다.";
|
||||||
|
ApiResponse.error(HttpStatus.NOT_FOUND, errMessage);
|
||||||
}
|
}
|
||||||
// 📌 첨부파일 목록 추가
|
// 📌 첨부파일 목록 추가
|
||||||
List<MapDto> attachments = boardService.selectAttachments(boardId);
|
List<MapDto> attachments = boardService.selectAttachments(boardId);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user