-
Notifications
You must be signed in to change notification settings - Fork 1
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
[4차 스프린트 - Review] 내가 받은 리뷰 조회, 비공개 설정 기능 구현/Review 관련 Controller 테스트 및 문서화
- Loading branch information
Showing
27 changed files
with
394 additions
and
30 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
1 change: 0 additions & 1 deletion
1
src/main/java/dev/steady/notification/domain/FreshApplicationNotificationStrategy.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
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
2 changes: 1 addition & 1 deletion
2
...teady/review/dto/ReviewCreateRequest.java → ...view/dto/request/ReviewCreateRequest.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
11 changes: 11 additions & 0 deletions
11
src/main/java/dev/steady/review/dto/response/ReviewDetailResponse.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,11 @@ | ||
package dev.steady.review.dto.response; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
public record ReviewDetailResponse( | ||
Long reviewId, | ||
String comment, | ||
boolean isPublic, | ||
LocalDateTime createdAt | ||
) { | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/dev/steady/review/dto/response/ReviewMyResponse.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,15 @@ | ||
package dev.steady.review.dto.response; | ||
|
||
import java.util.List; | ||
|
||
public record ReviewMyResponse( | ||
List<UserCardResponse> userCards, | ||
List<ReviewsBySteadyResponse> reviews | ||
) { | ||
|
||
public static ReviewMyResponse of(List<UserCardResponse> userCards, | ||
List<ReviewsBySteadyResponse> reviews) { | ||
return new ReviewMyResponse(userCards, reviews); | ||
} | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/dev/steady/review/dto/response/ReviewSwitchResponse.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,12 @@ | ||
package dev.steady.review.dto.response; | ||
|
||
import dev.steady.review.domain.Review; | ||
|
||
public record ReviewSwitchResponse( | ||
boolean isPublic | ||
) { | ||
|
||
public static ReviewSwitchResponse from(Review review) { | ||
return new ReviewSwitchResponse(review.isPublic()); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/dev/steady/review/dto/response/ReviewsBySteadyResponse.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,10 @@ | ||
package dev.steady.review.dto.response; | ||
|
||
import java.util.List; | ||
|
||
public record ReviewsBySteadyResponse( | ||
Long steadyId, | ||
String steadyName, | ||
List<ReviewDetailResponse> 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
5 changes: 4 additions & 1 deletion
5
src/main/java/dev/steady/review/infrastructure/ReviewQueryRepository.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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
package dev.steady.review.infrastructure; | ||
|
||
import dev.steady.review.dto.response.ReviewsBySteadyResponse; | ||
import dev.steady.user.domain.User; | ||
|
||
import java.util.List; | ||
|
||
public interface ReviewQueryRepository { | ||
|
||
List<String> findPublicCommentsByRevieweeUser(User user); | ||
List<String> getPublicCommentsByRevieweeUser(User user); | ||
|
||
List<ReviewsBySteadyResponse> getAllReviewsByRevieweeUser(User user); | ||
|
||
} |
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
Oops, something went wrong.