diff --git a/src/main/java/com/weatherfit/board/controller/BoardController.java b/src/main/java/com/weatherfit/board/controller/BoardController.java index ad950ea..e0aafca 100644 --- a/src/main/java/com/weatherfit/board/controller/BoardController.java +++ b/src/main/java/com/weatherfit/board/controller/BoardController.java @@ -134,7 +134,7 @@ public String insertBoard(@RequestHeader("decodedToken") String nickName, @Reque } // 게시글 수정 - @PatchMapping(value = "/edit/{boardId}") + @PatchMapping(value = "/edit/{boardId}", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) @ResponseBody public boolean patchBoard( @RequestHeader("decodedToken") String nickName, diff --git a/src/main/java/com/weatherfit/board/dto/CommentResponseDTO.java b/src/main/java/com/weatherfit/board/dto/CommentResponseDTO.java index f2c46fd..cabd8db 100644 --- a/src/main/java/com/weatherfit/board/dto/CommentResponseDTO.java +++ b/src/main/java/com/weatherfit/board/dto/CommentResponseDTO.java @@ -19,6 +19,6 @@ public class CommentResponseDTO { private String createdDate; private String createdTime; - + private int status; private List replyList; } diff --git a/src/main/java/com/weatherfit/board/repository/ImageRepository.java b/src/main/java/com/weatherfit/board/repository/ImageRepository.java index a8c4faf..94bb5a0 100644 --- a/src/main/java/com/weatherfit/board/repository/ImageRepository.java +++ b/src/main/java/com/weatherfit/board/repository/ImageRepository.java @@ -6,5 +6,5 @@ public interface ImageRepository extends JpaRepository { - void deleteByBoardId(BoardEntity boardId); + }