-
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
15 changed files
with
10 additions
and
95 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
4 changes: 0 additions & 4 deletions
4
src/main/java/com/dnd/gongmuin/mail/dto/request/AuthCodeRequest.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 |
---|---|---|
@@ -1,20 +1,16 @@ | ||
package com.dnd.gongmuin.mail.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; | ||
|
||
@Schema(description = "인증 코드 검증 RequestDTO") | ||
public record AuthCodeRequest( | ||
@NotBlank(message = "인증 코드를 입력해주세요.") | ||
@Pattern(regexp = "\\d{6}", message = "인증 코드는 6자리 숫자여야 합니다.") | ||
@Schema(description = "인증 코드(6자리 숫자)") | ||
String authCode, | ||
|
||
@NotBlank(message = "공무원 이메일을 입력해주세요.") | ||
@Schema(description = "인증 코드 받은 공무원 이메일") | ||
String targetEmail | ||
) { | ||
} |
3 changes: 0 additions & 3 deletions
3
src/main/java/com/dnd/gongmuin/mail/dto/request/SendMailRequest.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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
package com.dnd.gongmuin.mail.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.Email; | ||
import jakarta.validation.constraints.NotBlank; | ||
|
||
@Schema(description = "이메일 인증 코드 요청 RequestDTO") | ||
public record SendMailRequest( | ||
@NotBlank(message = "공무원 이메일을 입력해주세요.") | ||
@Schema(description = "수신 받을 공무원 이메일", example = "[email protected]") | ||
String targetEmail | ||
) { | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/com/dnd/gongmuin/mail/dto/response/AuthCodeResponse.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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
package com.dnd.gongmuin.mail.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = "인증 코드 검증 응답 ResponseDTO") | ||
public record AuthCodeResponse( | ||
@Schema(description = "성공 시 true, 실패 시 false 반환") | ||
boolean result | ||
) { | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/com/dnd/gongmuin/mail/dto/response/SendMailResponse.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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
package com.dnd.gongmuin.mail.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = "이메일 인증 코드 응답 ResponseDTO") | ||
public record SendMailResponse( | ||
@Schema(description = "발송 된 공무원 이메일", example = "[email protected]") | ||
String targetEmail | ||
) { | ||
} |
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
6 changes: 0 additions & 6 deletions
6
src/main/java/com/dnd/gongmuin/member/dto/request/AdditionalInfoRequest.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 |
---|---|---|
@@ -1,27 +1,21 @@ | ||
package com.dnd.gongmuin.member.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Size; | ||
|
||
@Schema(description = "회원가입 RequestDTO") | ||
public record AdditionalInfoRequest( | ||
|
||
@NotBlank(message = "공무원 이메일은 필수 입력 항목입니다.") | ||
@Schema(description = "중복 및 인증 코드가 검증된 공무원 이메일") | ||
String officialEmail, | ||
|
||
@NotBlank(message = "닉네임은 필수 입력 항목입니다.") | ||
@Size(min = 2, max = 12, message = "닉네임은 최소 2자리 이상 최대 12자 이하입니다.") | ||
@Schema(description = "중복 검증 된 닉네임") | ||
String nickname, | ||
|
||
@NotBlank(message = "직군은 필수 입력 항목입니다.") | ||
@Schema(description = "직군") | ||
String jobGroup, | ||
|
||
@NotBlank(message = "직렬은 필수 입력 항목입니다.") | ||
@Schema(description = "직렬") | ||
String jobCategory | ||
) { | ||
} |
3 changes: 0 additions & 3 deletions
3
src/main/java/com/dnd/gongmuin/member/dto/request/LogoutRequest.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
3 changes: 0 additions & 3 deletions
3
src/main/java/com/dnd/gongmuin/member/dto/request/ReissueRequest.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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
package com.dnd.gongmuin.member.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
@Schema(description = "토큰 재발급 RequestDTO") | ||
public record ReissueRequest( | ||
|
||
@NotEmpty(message = "AccessToken을 입력해주세요.") | ||
@Schema(description = "이전에 발급된 AccessToken") | ||
String accessToken | ||
) { | ||
} |
3 changes: 0 additions & 3 deletions
3
src/main/java/com/dnd/gongmuin/member/dto/request/ValidateNickNameRequest.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
4 changes: 0 additions & 4 deletions
4
src/main/java/com/dnd/gongmuin/member/dto/response/LogoutResponse.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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = " ResponseDTO") | ||
public record LogoutResponse( | ||
|
||
@Schema(description = "로그아웃 성공 시 true, 실패 시 false") | ||
boolean result | ||
) { | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/com/dnd/gongmuin/member/dto/response/ReissueResponse.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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = " ResponseDTO") | ||
public record ReissueResponse( | ||
|
||
@Schema(description = "재발급 된 accessToken") | ||
String accessToken | ||
) { | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/com/dnd/gongmuin/member/dto/response/SignUpResponse.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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = " ResponseDTO") | ||
public record SignUpResponse( | ||
|
||
@Schema(description = "회원가입 요청한 닉네임") | ||
String nickName | ||
) { | ||
} |
4 changes: 0 additions & 4 deletions
4
src/main/java/com/dnd/gongmuin/member/dto/response/ValidateNickNameResponse.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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
package com.dnd.gongmuin.member.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(description = " ResponseDTO") | ||
public record ValidateNickNameResponse( | ||
|
||
@Schema(description = "중복이 아니면 true, 중복이면 false") | ||
boolean isDuplicated | ||
) { | ||
} |