-
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.
refactor: (#281) WebRequest → Request 변경
- Loading branch information
Showing
5 changed files
with
66 additions
and
47 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...ng-presentation/src/main/kotlin/team/comit/simtong/domain/admin/dto/AdminSignInRequest.kt
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,30 @@ | ||
package team.comit.simtong.domain.admin.dto | ||
|
||
import org.hibernate.validator.constraints.Range | ||
import team.comit.simtong.domain.user.dto.request.AdminSignInData | ||
import team.comit.simtong.domain.user.model.EmployeeNumber | ||
import javax.validation.constraints.NotBlank | ||
|
||
/** | ||
* | ||
* 관리자가 로그인을 요청하는 AdminSignInRequest | ||
* | ||
* @author kimbeomjin | ||
* @author Chokyunghyeon | ||
* @date 2023/01/01 | ||
* @version 1.2.5 | ||
**/ | ||
data class AdminSignInRequest( | ||
|
||
@field:Range(min = EmployeeNumber.MIN_VALUE, max = EmployeeNumber.MAX_VALUE) | ||
val employeeNumber: Int, | ||
|
||
@field:NotBlank | ||
val password: String | ||
) { | ||
|
||
fun toData() = AdminSignInData( | ||
employeeNumber = employeeNumber, | ||
password = password | ||
) | ||
} |
24 changes: 0 additions & 24 deletions
24
...sentation/src/main/kotlin/team/comit/simtong/domain/admin/dto/request/SignInWebRequest.kt
This file was deleted.
Oops, something went wrong.
17 changes: 12 additions & 5 deletions
17
...il/dto/request/CheckAuthCodeWebRequest.kt → .../domain/email/dto/CheckAuthCodeRequest.kt
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,23 +1,30 @@ | ||
package team.comit.simtong.domain.email.dto.request | ||
package team.comit.simtong.domain.email.dto | ||
|
||
import org.hibernate.validator.constraints.Length | ||
import team.comit.simtong.domain.auth.dto.request.CheckAuthCodeData | ||
import javax.validation.constraints.Email | ||
import javax.validation.constraints.NotBlank | ||
|
||
/** | ||
* | ||
* 이메일 인증 코드 확인을 요청하는 CheckAuthCodeWebRequest | ||
* 이메일 인증 코드 확인을 요청하는 CheckAuthCodeRequest | ||
* | ||
* @author Chokyunghyeon | ||
* @date 2022/09/24 | ||
* @version 1.0.0 | ||
* @version 1.2.5 | ||
**/ | ||
data class CheckAuthCodeWebRequest( | ||
data class CheckAuthCodeRequest( | ||
@field:NotBlank | ||
@field:Email | ||
val email: String, | ||
|
||
@field:NotBlank | ||
@field:Length(min = 6, max = 6) | ||
val code: String | ||
) | ||
) { | ||
|
||
fun toData() = CheckAuthCodeData( | ||
email = email, | ||
code = code | ||
) | ||
} |
24 changes: 24 additions & 0 deletions
24
...g-presentation/src/main/kotlin/team/comit/simtong/domain/email/dto/SendAuthCodeRequest.kt
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 team.comit.simtong.domain.email.dto | ||
|
||
import team.comit.simtong.domain.auth.dto.request.SendAuthCodeData | ||
import javax.validation.constraints.Email | ||
import javax.validation.constraints.NotBlank | ||
|
||
/** | ||
* | ||
* 이메일 인증 코드 전송을 요청하는 SendEmailRequest | ||
* | ||
* @author Chokyunghyeon | ||
* @date 2022/09/24 | ||
* @version 1.2.5 | ||
**/ | ||
data class SendAuthCodeRequest( | ||
@field:NotBlank | ||
@field:Email | ||
val email: String | ||
) { | ||
|
||
fun toData() = SendAuthCodeData( | ||
email = email | ||
) | ||
} |
18 changes: 0 additions & 18 deletions
18
...ion/src/main/kotlin/team/comit/simtong/domain/email/dto/request/SendAuthCodeWebRequest.kt
This file was deleted.
Oops, something went wrong.