-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: contains 작동을 위한 EqualsAndHashcode 추가 * fix: lazyInitialization 해결 * feat: 질문 레포지토리 생성 * feat: 내가 받은 리뷰 응답 생성 * refactor: 리뷰 항목과 질문의 연관관계 변경 및 답변 최대 글자수 DB에 반영 * refactor: 리뷰에 리뷰그룹 초기화 부분 추가 * feat: 내가 받은 리뷰 조회 기능 구현 * feat: 받은 리뷰가 없을 때의 응답 추가 * refactor: dto 설명 추가 * refactor: dto 설명 수정 * refactor: 인자 형식 수정, 개행 수정 * refactor: transactional 어노테이션 추가 * refactor: 내가 받은 리뷰 조회할 때Page객체 말고 List로 받아오도록 수정 * refactor: 미리보기 만드는 기능 도메인 안으로 이동 * test: 테스트 코드 개선 - 변수명 수정, save 여러개 대신 saveAll 사용 등 * refactor: 마지막으로 본 리뷰ID가 없는 로직에 대해 수정 - lastViewedReviewId를 입력하지 않으면 999같이 이상하게 큰 수를 넣어주는게 아니라, 가장 큰 값을 넣어주도록 수정 * docs: 스웨거 데코레이션 적용 * refactor: lastReviewId가 null 이어도 가장 최신 리뷰를 찾을 수 있도록 수정 * refactor: eqaulsAndHashCode 재정의 * refactor: eqaulsAndHashCode 재재정의 * refactor: API Docs 반영 --------- Co-authored-by: donghoony <[email protected]>
- Loading branch information
Showing
13 changed files
with
270 additions
and
15 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
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
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
14 changes: 14 additions & 0 deletions
14
backend/src/main/java/reviewme/review/dto/response/ReceivedReviewKeywordsResponse.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,14 @@ | ||
package reviewme.review.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = "선택된 키워드 응답") | ||
public record ReceivedReviewKeywordsResponse( | ||
|
||
@Schema(description = "키워드 아이디") | ||
long id, | ||
|
||
@Schema(description = "키워드 내용") | ||
String content | ||
) { | ||
} |
28 changes: 28 additions & 0 deletions
28
backend/src/main/java/reviewme/review/dto/response/ReceivedReviewResponse.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,28 @@ | ||
package reviewme.review.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.time.LocalDate; | ||
import java.util.List; | ||
|
||
@Schema(description = "리뷰 내용 응답") | ||
public record ReceivedReviewResponse( | ||
|
||
@Schema(description = "리뷰 아이디") | ||
long id, | ||
|
||
@Schema(description = "공개 여부") | ||
boolean isPublic, | ||
|
||
@Schema(description = "리뷰 작성일") | ||
LocalDate createdAt, | ||
|
||
@Schema(description = "응답 내용 미리보기") | ||
String contentPreview, | ||
|
||
@Schema(description = "리뷰어 그룹 정보") | ||
ReceivedReviewReviewerGroupResponse reviewerGroup, | ||
|
||
@Schema(description = "키워드") | ||
List<ReceivedReviewKeywordsResponse> keywords | ||
) { | ||
} |
17 changes: 17 additions & 0 deletions
17
backend/src/main/java/reviewme/review/dto/response/ReceivedReviewReviewerGroupResponse.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,17 @@ | ||
package reviewme.review.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = "리뷰어 그룹 정보 응답") | ||
public record ReceivedReviewReviewerGroupResponse( | ||
|
||
@Schema(description = "리뷰어 그룹 아이디") | ||
long id, | ||
|
||
@Schema(description = "리뷰어 그룹 이름") | ||
String name, | ||
|
||
@Schema(description = "리뷰어 그룹 썸네일 이미지 URL") | ||
String thumbnailUrl | ||
) { | ||
} |
18 changes: 18 additions & 0 deletions
18
backend/src/main/java/reviewme/review/dto/response/ReceivedReviewsResponse.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,18 @@ | ||
package reviewme.review.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
|
||
@Schema(description = "내가 받은 리뷰 응답") | ||
public record ReceivedReviewsResponse( | ||
|
||
@Schema(description = "응답 개수") | ||
long size, | ||
|
||
@Schema(description = "마지막 리뷰 아이디") | ||
long lastReviewId, | ||
|
||
@Schema(description = "받은 리뷰 목록") | ||
List<ReceivedReviewResponse> reviews | ||
) { | ||
} |
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.