-
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.
- Loading branch information
1 parent
c9a6a2e
commit 92019f0
Showing
5 changed files
with
226 additions
and
10 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
17 changes: 17 additions & 0 deletions
17
...ain/java/com/seong/shoutlink/domain/domain/controller/request/FindDomainLinksRequest.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 com.seong.shoutlink.domain.domain.controller.request; | ||
|
||
import jakarta.validation.constraints.Min; | ||
import java.util.Objects; | ||
import org.hibernate.validator.constraints.Range; | ||
|
||
public record FindDomainLinksRequest( | ||
@Min(value = 0, message = "페이지는 음수일 수 없습니다.") | ||
Integer page, | ||
@Range(min = 1, max = 100, message = "사이즈는 1 이상 100 이하여야 합니다.") | ||
Integer size) { | ||
|
||
public FindDomainLinksRequest(Integer page, Integer size) { | ||
this.page = Objects.isNull(page) ? 0 : page; | ||
this.size = Objects.isNull(size) ? 10 : size; | ||
} | ||
} |
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