-
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.
feat: 자신의 리뷰 조회 컨트롤러와 request dto 구현
- Loading branch information
1 parent
620a1a6
commit 1364125
Showing
2 changed files
with
39 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
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) {} |