Skip to content

Commit b23c4fb

Browse files
authored
release(value class 버그 수정): 1.2.4 (#289)
2 parents cc7031a + 3db34f2 commit b23c4fb

File tree

2 files changed

+11
-28
lines changed

2 files changed

+11
-28
lines changed

simtong-presentation/src/main/kotlin/team/comit/simtong/domain/common/WebCommonAdapter.kt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package team.comit.simtong.domain.common
22

3+
import org.hibernate.validator.constraints.Range
34
import org.springframework.http.HttpStatus
45
import org.springframework.validation.annotation.Validated
56
import org.springframework.web.bind.annotation.*
67
import team.comit.simtong.domain.auth.dto.TokenResponse
78
import team.comit.simtong.domain.auth.usecase.ReissueTokenUseCase
89
import team.comit.simtong.domain.common.dto.request.ChangePasswordWebRequest
9-
import team.comit.simtong.domain.common.dto.request.CheckMatchedAccountWebRequest
1010
import team.comit.simtong.domain.common.dto.request.FindEmployeeNumberWebRequest
1111
import team.comit.simtong.domain.common.dto.request.ResetPasswordWebRequest
1212
import team.comit.simtong.domain.common.dto.response.FindEmployeeNumberWebResponse
@@ -24,6 +24,7 @@ import team.comit.simtong.domain.user.usecase.CheckMatchedAccountUseCase
2424
import team.comit.simtong.domain.user.usecase.ComparePasswordUseCase
2525
import team.comit.simtong.domain.user.usecase.FindEmployeeNumberUseCase
2626
import team.comit.simtong.domain.user.usecase.ResetPasswordUseCase
27+
import team.comit.simtong.domain.user.value.EmployeeNumber
2728
import team.comit.simtong.domain.user.value.Password
2829
import java.util.UUID
2930
import javax.validation.Valid
@@ -36,7 +37,7 @@ import javax.validation.constraints.NotBlank
3637
*
3738
* @author Chokyunghyeon
3839
* @date 2022/09/11
39-
* @version 1.0.0
40+
* @version 1.2.4
4041
**/
4142
@Validated
4243
@RestController
@@ -100,11 +101,16 @@ class WebCommonAdapter(
100101
}
101102

102103
@GetMapping("/account/existence")
103-
fun checkMatchedAccount(@Valid @ModelAttribute request: CheckMatchedAccountWebRequest) {
104+
fun checkMatchedAccount(
105+
@Range(min = EmployeeNumber.MIN_VALUE, max = EmployeeNumber.MAX_VALUE)
106+
@RequestParam employeeNumber: EmployeeNumber,
107+
@NotBlank @Email
108+
@RequestParam email: String
109+
) {
104110
checkMatchedAccountUseCase.execute(
105111
CheckMatchedAccountRequest(
106-
employeeNumber = request.employeeNumber.value,
107-
email = request.email
112+
employeeNumber = employeeNumber.value,
113+
email = email
108114
)
109115
)
110116
}

simtong-presentation/src/main/kotlin/team/comit/simtong/domain/common/dto/request/CheckMatchedAccountWebRequest.kt

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)