Skip to content

Commit

Permalink
fix: #139 메서드 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tnals2384 committed Sep 10, 2024
1 parent 7d0456a commit f8df6bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private BaseResponse<BoardResponse.BoardCreate> createBoard(
@ApiResponse(responseCode = "COMMON200", description = "성공"),
})
@GetMapping("/redis")
private BaseResponse<BoardResponse.BoardsGetByBoardType> getBoardsByBoardType(
private BaseResponse<BoardResponse.BoardsGetByBoardType> getBoardsByBoardTypeWithRedis(
@AuthMember Member member,
@RequestParam(name = "boardType", required = false) BoardType boardType
// TODO: 페이징 프론트 이슈로 추후 구현
Expand All @@ -53,13 +53,13 @@ private BaseResponse<BoardResponse.BoardsGetByBoardType> getBoardsByBoardType(
@ApiResponse(responseCode = "COMMON200", description = "성공"),
})
@GetMapping()
private BaseResponse<BoardResponse.BoardsGetByBoardType> getBoardsByBoardTypeWithRDB(
private BaseResponse<BoardResponse.BoardsGetByBoardType> getBoardsByBoardType(
@AuthMember Member member,
@RequestParam(name = "boardType", required = false) BoardType boardType
// TODO: 페이징 프론트 이슈로 추후 구현
// @PageableDefault(sort = "created_at", direction = Sort.Direction.DESC) @Parameter(hidden = true) Pageable pageable
) {
return BaseResponse.onSuccess(boardService.getBoardsByBoardTypeWithRDB(member, boardType));
return BaseResponse.onSuccess(boardService.getBoardsByBoardType(member, boardType));
}

@Operation(summary = "게시글 삭제 API", description = "게시글을 삭제합니다.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public interface BoardService {
BoardCreate createBoard(Member member, BoardType boardType, String content);

BoardsGetByBoardType getBoardsByBoardTypeWithRDB(Member member, BoardType boardType);
BoardsGetByBoardType getBoardsByBoardTypeWithRedis(Member member, BoardType boardType);

BoardsGetByBoardType getBoardsByBoardType(Member member, BoardType boardType);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ public BoardResponse.BoardCreate createBoard(Member member, BoardType boardType,
}

//redis

@Override
public BoardResponse.BoardsGetByBoardType getBoardsByBoardType(Member member, BoardType boardType) {
public BoardResponse.BoardsGetByBoardType getBoardsByBoardTypeWithRedis(Member member, BoardType boardType) {
List<Board> boards;
if (boardType == null) {
boards = boardRepository.findAll();
Expand All @@ -69,7 +68,7 @@ public BoardResponse.BoardsGetByBoardType getBoardsByBoardType(Member member, Bo

//rdb
@Override
public BoardResponse.BoardsGetByBoardType getBoardsByBoardTypeWithRDB(Member member, BoardType boardType) {
public BoardResponse.BoardsGetByBoardType getBoardsByBoardType(Member member, BoardType boardType) {
List<Board> boards;
if (boardType == null) {
boards = boardRepository.findAll();
Expand Down

0 comments on commit f8df6bd

Please sign in to comment.