Skip to content

Commit

Permalink
#73 #70 refactor: 변수명 수정(GetBoardsByCategories -> GetBoardsByCategori…
Browse files Browse the repository at this point in the history
…esReq)
  • Loading branch information
xhaktmchl committed Nov 30, 2022
1 parent 62ae5ed commit 189addb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public ApplicationResponse<List<GetAllBoardRes>> findAllBoardsByCategory(@Reques
@ApiResponse(code = 4000 , message = "서버 오류입니다.")
})
@PostMapping("/get/categories")
public ApplicationResponse<List<List<GetAllBoardRes>>> findBoardsByCategories(@RequestBody @Validated GetBoardsByCategories dto){
public ApplicationResponse<List<List<GetAllBoardRes>>> findBoardsByCategories(@RequestBody @Validated GetBoardsByCategoriesReq dto){
return boardService.findBoardsByCategories(dto);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@Data
@NoArgsConstructor
public class GetBoardsByCategories {
public class GetBoardsByCategoriesReq {

@ApiModelProperty(example = "1")
@ApiParam(value = "유저 ID", required = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface BoardService {

ApplicationResponse<List<GetAllBoardRes>> findAllBoardsByCategory(GetAllBoardsByCategoryReq getAllBoardsByCategoryReq);

ApplicationResponse<List<List<GetAllBoardRes>>> findBoardsByCategories(GetBoardsByCategories getBoardsByCategories);
ApplicationResponse<List<List<GetAllBoardRes>>> findBoardsByCategories(GetBoardsByCategoriesReq getBoardsByCategoriesReq);

ApplicationResponse<BoardRes> findBoard(GetBoardReq getBoardReq);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public ApplicationResponse<List<GetAllBoardRes>> findAllBoardsByCategory(GetAllB

@Transactional(readOnly = true)
@Override
public ApplicationResponse<List<List<GetAllBoardRes>>> findBoardsByCategories(GetBoardsByCategories dto) {
public ApplicationResponse<List<List<GetAllBoardRes>>> findBoardsByCategories(GetBoardsByCategoriesReq dto) {
int cursor = dto.getCursor();
List<List<GetAllBoardRes>> boardsByCategories = new ArrayList<>();

Expand Down

0 comments on commit 189addb

Please sign in to comment.