forked from kakao-tech-campus-2nd-step3/Team13_BE
-
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.
feat: kakao-tech-campus-2nd-step3#8 guardians 코드리뷰 반영
- Loading branch information
Showing
4 changed files
with
15 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package dbdr.domain.guardians; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Pattern; | ||
import org.hibernate.annotations.Comment; | ||
|
||
public record GuardiansRequest( | ||
@Comment("보호자 전화번호") @NotBlank(message = "전화번호를 입력하세요.") String phone, | ||
@Comment("보호자 전화번호") @NotBlank(message = "전화번호를 입력하세요.") | ||
@Pattern(regexp = "010\\d{8}", message = "010XXXXXXXX형식으로 입력해주세요.") String phone, | ||
@Comment("보호자 성명") @NotBlank(message = "이름을 입력하세요.") String name) { | ||
|
||
} |