-
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
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
be/src/main/java/yeonba/be/login/dto/request/UserValidateUsedPhoneNumberRequest.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,24 @@ | ||
package yeonba.be.login.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.enums.ParameterIn; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Pattern; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class UserValidateUsedPhoneNumberRequest { | ||
|
||
@Parameter( | ||
name = "phoneNumber", | ||
description = "전화번호", | ||
example = "01011112222", | ||
in = ParameterIn.QUERY) | ||
@Pattern( | ||
regexp = "^010\\d{8}$", | ||
message = "전화번호는 11자리 010으로 시작하며 하이픈(-) 없이 0~9의 숫자로 이뤄져야 합니다.") | ||
@NotBlank(message = "전화번호는 반드시 입력되어야 합니다.") | ||
private String phoneNumber; | ||
} |