-
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
878e435
commit 2364600
Showing
6 changed files
with
8 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,13 @@ | |
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.Email; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
@JsonNaming(SnakeCaseStrategy.class) | ||
public record CheckEmailRequest( | ||
@Schema(description = "이메일 주소", example = "[email protected]", requiredMode = REQUIRED) | ||
@Email(message = "유효한 이메일 주소를 입력하세요.") | ||
@NotBlank(message = "이메일은 비어있을 수 없습니다.") | ||
String email | ||
) { | ||
|
||
|
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
public record FindPasswordRequest( | ||
@Schema(description = "이메일 주소", example = "[email protected]", requiredMode = REQUIRED) | ||
@Email(message = "유효한 이메일 주소를 입력하세요.") | ||
@NotBlank(message = "이메일은 비어있을 수 없습니다.") | ||
String email, | ||
|
||
@Schema(description = "새 비밀번호", example = "password123!", requiredMode = REQUIRED) | ||
|
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
public record LoginUserRequest( | ||
@Schema(description = "이메일 주소", example = "[email protected]", requiredMode = REQUIRED) | ||
@Email(message = "유효한 이메일 주소를 입력하세요.") | ||
@NotBlank(message = "이메일은 비어있을 수 없습니다.") | ||
String email, | ||
|
||
@Schema(description = "비밀번호", example = "password123!", requiredMode = REQUIRED) | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
public record RegisterUserRequest( | ||
@Schema(description = "이메일 주소", example = "[email protected]", requiredMode = REQUIRED) | ||
@Email(message = "유효한 이메일 주소를 입력하세요.") | ||
@NotBlank(message = "이메일은 비어있을 수 없습니다.") | ||
String email, | ||
|
||
@Schema(description = "비밀번호", example = "password123!", requiredMode = REQUIRED) | ||
|
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 |
---|---|---|
|
@@ -4,10 +4,12 @@ | |
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.Email; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public record SendCodeRequest( | ||
@Schema(description = "이메일 주소", example = "[email protected]", requiredMode = REQUIRED) | ||
@Email(message = "유효한 이메일 주소를 입력하세요.") | ||
@NotBlank(message = "이메일은 비어있을 수 없습니다.") | ||
String email | ||
) { | ||
|
||
|
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
public record VerifyCodeRequest( | ||
@Schema(description = "이메일 주소", example = "[email protected]", requiredMode = REQUIRED) | ||
@Email(message = "유효한 이메일 주소를 입력하세요.") | ||
@NotBlank(message = "이메일은 비어있을 수 없습니다.") | ||
String email, | ||
|
||
@Schema(description = "인증 코드", example = "123456", requiredMode = REQUIRED) | ||
|