diff --git a/server/src/main/java/com/yogit/server/board/controller/BoardController.java b/server/src/main/java/com/yogit/server/board/controller/BoardController.java index b73b499..8dcd80d 100644 --- a/server/src/main/java/com/yogit/server/board/controller/BoardController.java +++ b/server/src/main/java/com/yogit/server/board/controller/BoardController.java @@ -152,7 +152,7 @@ public ApplicationResponse> findAllBoardsByCategory(@Reques @ApiResponse(code = 4000 , message = "서버 오류입니다.") }) @PostMapping("/get/categories") - public ApplicationResponse>> findBoardsByCategories(@RequestBody @Validated GetBoardsByCategories dto){ + public ApplicationResponse>> findBoardsByCategories(@RequestBody @Validated GetBoardsByCategoriesReq dto){ return boardService.findBoardsByCategories(dto); } diff --git a/server/src/main/java/com/yogit/server/board/dto/request/GetBoardsByCategories.java b/server/src/main/java/com/yogit/server/board/dto/request/GetBoardsByCategoriesReq.java similarity index 92% rename from server/src/main/java/com/yogit/server/board/dto/request/GetBoardsByCategories.java rename to server/src/main/java/com/yogit/server/board/dto/request/GetBoardsByCategoriesReq.java index e6ac594..91b32eb 100644 --- a/server/src/main/java/com/yogit/server/board/dto/request/GetBoardsByCategories.java +++ b/server/src/main/java/com/yogit/server/board/dto/request/GetBoardsByCategoriesReq.java @@ -7,7 +7,7 @@ @Data @NoArgsConstructor -public class GetBoardsByCategories { +public class GetBoardsByCategoriesReq { @ApiModelProperty(example = "1") @ApiParam(value = "유저 ID", required = true) diff --git a/server/src/main/java/com/yogit/server/board/service/BoardService.java b/server/src/main/java/com/yogit/server/board/service/BoardService.java index 92b0df0..e0c19d6 100644 --- a/server/src/main/java/com/yogit/server/board/service/BoardService.java +++ b/server/src/main/java/com/yogit/server/board/service/BoardService.java @@ -21,7 +21,7 @@ public interface BoardService { ApplicationResponse> findAllBoardsByCategory(GetAllBoardsByCategoryReq getAllBoardsByCategoryReq); - ApplicationResponse>> findBoardsByCategories(GetBoardsByCategories getBoardsByCategories); + ApplicationResponse>> findBoardsByCategories(GetBoardsByCategoriesReq getBoardsByCategoriesReq); ApplicationResponse findBoard(GetBoardReq getBoardReq); diff --git a/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java b/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java index d0808a6..2f7e695 100644 --- a/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java +++ b/server/src/main/java/com/yogit/server/board/service/BoardServiceImpl.java @@ -209,7 +209,7 @@ public ApplicationResponse> findAllBoardsByCategory(GetAllB @Transactional(readOnly = true) @Override - public ApplicationResponse>> findBoardsByCategories(GetBoardsByCategories dto) { + public ApplicationResponse>> findBoardsByCategories(GetBoardsByCategoriesReq dto) { int cursor = dto.getCursor(); List> boardsByCategories = new ArrayList<>();