-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ♻️refactor: 좋아요 redis 적용(#117) * ♻️refactor: 대댓글 구조 변경 및 댓글 수 레디스에 적용(#117) * ♻️refactor: 대댓글 구조 변경 및 댓글 수 레디스에 적용 및 좋아요 레디스 적용(#117) * ♻️refactor: service 측 오류 수정(#117) * ♻️refactor: redisUtil 부분 boardSaveLikeCount & boardGetLikeCount 추가 및 적용(#117) * ♻️refactor: tacticPositionDetail 피드백에 맞게 수정(#117) * ♻️refactor: MyTeam 개별 조회 시, 해당 팀에 속해있지 않는 상황에 대한 예외처리 로직 추가(#117) * ♻️refactor: MyTeam 개별 조회 시, 해당 팀에 속해있지 않는 상황에 대한 예외처리(controller 수정)(#117) * ♻️refactor: MyTeamList 조회 시, 본인이 방장인 팀과 팀원인 팀 둘다 조회되게 수정 완료 및 팀 개별 조회 시 본인 팀이 아닐 시 예외처리 추가(#117) * ♻️refactor: 좋아요 레디스 적용 수정(getLikeCount -> boardGetLikeCount 추가)(#117) * ♻️refactor: 댓글 갯수 redis 적용 완료(#117) * ♻️refactor: 코드 최종 정리(#117) * ♻️refactor: TacticService에서 필요없는 코드 정리(#117) * ♻️refactor: BoardResponseDto에서 댓글, 좋아요 갯수 수정(#117) * ♻️refactor: BoardResponseDto가 불필요하여 BoardResponseDto -> BoardListDto로 변경 후 코드 간소화 함(#117) * ♻️refactor: 변경된 경로 수정(#117) * ♻️refactor: RedisConfig에서 필요없는 메서드 제거(#117)
- Loading branch information
1 parent
92c2362
commit a0113cc
Showing
22 changed files
with
218 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,14 @@ Content-Type: application/json | |
"passwordCheck": "test1234!!" | ||
} | ||
|
||
|
||
### 로그인 | ||
|
||
POST {{api}}/accounts/login | ||
Content-Type: application/json | ||
|
||
{ | ||
"email": "[email protected]", | ||
"password": "test1234!!" | ||
"password": "test1234!!", | ||
"fcmToken": "String" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/com/capstone/BnagFer/domain/board/dto/response/BoardListDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.capstone.BnagFer.domain.board.dto.response; | ||
|
||
import com.capstone.BnagFer.domain.board.entity.Board; | ||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
@Builder | ||
public record BoardListDto( | ||
Long id, | ||
Long userId, | ||
String writerNickName, | ||
String boardTitle, | ||
Long likeCount, | ||
Long commentCount | ||
|
||
) { | ||
public static BoardListDto from(Board board, Long commentCount, Long likeCount) { | ||
return BoardListDto.builder() | ||
.id(board.getId()) | ||
.userId(board.getUser().getId()) | ||
.writerNickName(board.getUser().getProfile().getNickname()) | ||
.boardTitle(board.getBoardTitle()) | ||
.likeCount(likeCount) | ||
.commentCount(commentCount) | ||
.build(); | ||
} | ||
public static BoardListDto from(Board board) { | ||
return from(board, 0L, 0L); | ||
} | ||
public static List<BoardListDto> from(List<Board> boards) { | ||
return boards.stream().map(board -> from(board, 0L, 0L)).collect(Collectors.toList()); | ||
} | ||
} | ||
|
||
|
32 changes: 0 additions & 32 deletions
32
src/main/java/com/capstone/BnagFer/domain/board/dto/response/BoardResponseDto.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.