-
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.
* refactor: 파일명과 줄바꿈 포맷 변경 * feat: 자신 필터링된 리뷰 조회 서비스 메서드 작성 * feat: 자신의 리뷰 조회 컨트롤러와 request dto 구현 * test: fake repository 메서드 구현 * test: 유저별 리뷰 조회 테스트 메서드 구현 * refactor: 디버깅용 코드 삭제
- Loading branch information
1 parent
c75652c
commit d92b939
Showing
10 changed files
with
163 additions
and
18 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
5 changes: 3 additions & 2 deletions
5
...eview/dto/request/ReviewBlockRequest.java → ...eview/dto/request/BlockReviewRequest.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,12 +1,13 @@ | ||
package org.depromeet.spot.application.review.dto.request; | ||
|
||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.Positive; | ||
import jakarta.validation.constraints.PositiveOrZero; | ||
|
||
import io.swagger.v3.oas.annotations.Parameter; | ||
|
||
public record ReviewBlockRequest( | ||
public record BlockReviewRequest( | ||
@Parameter(description = "열 ID (필터링)") Long rowId, | ||
@Parameter(description = "좌석 번호 (필터링)") Long seatNumber, | ||
@PositiveOrZero @Parameter(description = "시작 위치 (기본값: 0)") int offset, | ||
@Max(50) @Parameter(description = "조회할 리뷰 수 (기본값: 10, 최대: 50)") int limit) {} | ||
@Positive @Max(50) @Parameter(description = "조회할 리뷰 수 (기본값: 10, 최대: 50)") int limit) {} |
14 changes: 14 additions & 0 deletions
14
...tion/src/main/java/org/depromeet/spot/application/review/dto/request/MyReviewRequest.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 org.depromeet.spot.application.review.dto.request; | ||
|
||
import jakarta.validation.constraints.Max; | ||
import jakarta.validation.constraints.Min; | ||
import jakarta.validation.constraints.PositiveOrZero; | ||
|
||
import io.swagger.v3.oas.annotations.Parameter; | ||
|
||
public record MyReviewRequest( | ||
@Parameter(description = "유저 ID") Long userId, | ||
@PositiveOrZero @Parameter(description = "시작 위치 (기본값: 0)") Integer offset, | ||
@Min(1) @Max(50) @Parameter(description = "조회할 리뷰 수 (기본값: 10, 최대: 50)") Integer limit, | ||
@Min(1000) @Max(9999) @Parameter(description = "년도 (4자리 숫자)") Integer year, | ||
@Min(1) @Max(12) @Parameter(description = "월 (1-12)") Integer month) {} |
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
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