-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from PawWithU/feat/167-phone-isDuplicated-api
[Feature] 이동봉사자, 모집자 휴대폰 번호 중복 검사 API 구현
- Loading branch information
Showing
11 changed files
with
154 additions
and
23 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
9 changes: 9 additions & 0 deletions
9
src/main/java/com/pawwithu/connectdog/domain/auth/dto/request/IntermediaryPhoneRequest.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,9 @@ | ||
package com.pawwithu.connectdog.domain.auth.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Pattern; | ||
|
||
public record IntermediaryPhoneRequest(@NotBlank(message = "휴대전화 번호는 필수 입력 값입니다.") | ||
@Pattern(regexp = "^010[0-9]{8}$", message = "유효하지 않은 휴대전화 번호입니다.") | ||
String phone) { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/pawwithu/connectdog/domain/auth/dto/request/VolunteerPhoneRequest.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,9 @@ | ||
package com.pawwithu.connectdog.domain.auth.dto.request; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Pattern; | ||
|
||
public record VolunteerPhoneRequest (@NotBlank(message = "휴대전화 번호는 필수 입력 값입니다.") | ||
@Pattern(regexp = "^010[0-9]{8}$", message = "유효하지 않은 휴대전화 번호입니다.") | ||
String phone) { | ||
} |
7 changes: 7 additions & 0 deletions
7
...main/java/com/pawwithu/connectdog/domain/auth/dto/response/IntermediaryPhoneResponse.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,7 @@ | ||
package com.pawwithu.connectdog.domain.auth.dto.response; | ||
|
||
public record IntermediaryPhoneResponse(Boolean isDuplicated, String email) { | ||
public static IntermediaryPhoneResponse of(Boolean isDuplicated, String email){ | ||
return new IntermediaryPhoneResponse(isDuplicated, email); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/pawwithu/connectdog/domain/auth/dto/response/VolunteerPhoneResponse.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,9 @@ | ||
package com.pawwithu.connectdog.domain.auth.dto.response; | ||
|
||
import com.pawwithu.connectdog.domain.volunteer.entity.SocialType; | ||
|
||
public record VolunteerPhoneResponse(Boolean isDuplicated, SocialType socialType, String email) { | ||
public static VolunteerPhoneResponse of(Boolean isDuplicated, SocialType socialType, String email){ | ||
return new VolunteerPhoneResponse(isDuplicated, socialType, 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
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
Oops, something went wrong.