-
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.
Browse files
Browse the repository at this point in the history
* feat: 불필요한 미사용 코드 삭제(#78) * feat: 사용 중인 닉네임 검증 요청 DTO 추가(#78) * feat: 사용 중인 닉네임 검증 응답 DTO 추가(#78) * feat: 사용 중인 닉네임 검증 로직 추가(#78) * feat: 사용 중인 닉네임 검증 API 추가(#78) * feat: 사용 중인 닉네임 확인 API, 인가 대상에서 제외(#78) 회원 가입 과정 중 이미 사용 중인 닉네임인 지 여부를 확인하기 위해 사용. 인가 과정이 필요하지 않음. * feat: 사용 중인 전화번호 검증 요청 DTO 추가(#78) * feat: 사용 중인 전화번호 검증 응답 DTO 추가(#78) * docs: 명세에 필드 값 예시 추가(#78) * docs: 명세 설명 수정(#78) * feat: 사용 중인 전화번호 검증 로직 추가(#78) * feat: 사용 중인 전화번호 검증 API 추가(#78) * feat: 사용 중인 전화번호 검증 API, 인가 대상에서 제외(#78) 회원 가입시 사용 중인 전화번호 검증을 위해 사용하기 때문에 인가 대상에서 제외 * refactor: 코드 정렬 수정(#78)
- Loading branch information
Showing
8 changed files
with
128 additions
and
40 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
24 changes: 24 additions & 0 deletions
24
be/src/main/java/yeonba/be/login/dto/request/UserValidateUsedNicknameRequest.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 UserValidateUsedNicknameRequest { | ||
|
||
@Parameter( | ||
name = "nickname", | ||
description = "닉네임", | ||
example = "존존예녀", | ||
in = ParameterIn.QUERY) | ||
@Pattern( | ||
regexp = "^[a-zA-Z0-9가-힣]{1,8}$", | ||
message = "닉네임은 공백 없이 영어 대소문자,한글,숫자로 구성되어야 하며 최대 8자까지 가능합니다.") | ||
@NotBlank(message = "닉네임은 반드시 입력되어야 합니다.") | ||
private String nickname; | ||
} |
16 changes: 9 additions & 7 deletions
16
.../request/UserVerificationCodeRequest.java → ...t/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
32 changes: 0 additions & 32 deletions
32
be/src/main/java/yeonba/be/login/dto/request/UserVerifyPhoneNumberRequest.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
be/src/main/java/yeonba/be/login/dto/response/UserValidateUsedNicknameResponse.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,18 @@ | ||
package yeonba.be.login.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class UserValidateUsedNicknameResponse { | ||
|
||
@Schema( | ||
type = "boolean", | ||
description = "닉네임 사용 여부", | ||
example = "false") | ||
@JsonProperty("isUsedNickname") | ||
private boolean usedNickname; | ||
} |
18 changes: 18 additions & 0 deletions
18
be/src/main/java/yeonba/be/login/dto/response/UserValidateUsedPhoneNumberResponse.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,18 @@ | ||
package yeonba.be.login.dto.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class UserValidateUsedPhoneNumberResponse { | ||
|
||
@Schema( | ||
type = "boolean", | ||
description = "전화번호 사용 여부", | ||
example = "false") | ||
@JsonProperty("isUsedPhoneNumber") | ||
private boolean usedPhoneNumber; | ||
} |
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