-
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.
#189 docs: 인증번호 조회 및 마이페이지 알림 수신여부 스웨거 설정
- Loading branch information
1 parent
c92a326
commit 4688fca
Showing
9 changed files
with
109 additions
and
39 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
19 changes: 0 additions & 19 deletions
19
src/main/kotlin/com/psr/psr/user/dto/request/FindIdPwReq.kt
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
package com.psr.psr.user.dto.request | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.NotBlank | ||
import jakarta.validation.constraints.NotEmpty | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
|
||
|
||
data class FindIdReq ( | ||
@field:Pattern( | ||
regexp = "^01([0|1|6|7|8|9])-?([0-9]{3,4})-?([0-9]{4})\$", | ||
message = "올바르지 않은 휴대폰 형식입니다." | ||
) | ||
@NotBlank | ||
@Schema(type = "String", description = "휴대폰", example = "010-0000-0000", required = true) | ||
val phone: String, | ||
@NotBlank | ||
@Schema(type = "String", description = "인증코드", example = "12454", required = true) | ||
val smsKey: String, | ||
@NotBlank | ||
@Schema(type = "String", description = "이름", example = "홍길동", required = true) | ||
val name: String | ||
) |
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 com.psr.psr.user.dto.request | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.NotBlank | ||
import jakarta.validation.constraints.Pattern | ||
|
||
|
||
data class FindPwReq ( | ||
@field:Pattern( | ||
regexp = "^01([0|1|6|7|8|9])-?([0-9]{3,4})-?([0-9]{4})\$", | ||
message = "올바르지 않은 휴대폰 형식입니다." | ||
) | ||
@NotBlank | ||
@Schema(type = "String", description = "휴대폰", example = "010-0000-0000", required = true) | ||
val phone: String, | ||
@NotBlank | ||
@Schema(type = "String", description = "인증코드", example = "12454", required = true) | ||
val smsKey: String, | ||
@NotBlank | ||
@field:Email(message = "올바르지 않은 이메일 형식입니다.") | ||
@Schema(type = "String", description = "이메일", example = "[email protected]", required = true) | ||
val email: String | ||
) |
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,9 +1,11 @@ | ||
package com.psr.psr.user.dto.response | ||
|
||
import com.psr.psr.user.entity.User | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
|
||
data class EmailRes( | ||
@Schema(type = "String", description = "이메일", example = "[email protected]", required = true) | ||
val email: String, | ||
){ | ||
companion object{ | ||
|
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