Skip to content

Commit

Permalink
release(value class 버그 수정): 1.2.4 (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 authored Jan 8, 2023
2 parents cc7031a + 3db34f2 commit b23c4fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package team.comit.simtong.domain.common

import org.hibernate.validator.constraints.Range
import org.springframework.http.HttpStatus
import org.springframework.validation.annotation.Validated
import org.springframework.web.bind.annotation.*
import team.comit.simtong.domain.auth.dto.TokenResponse
import team.comit.simtong.domain.auth.usecase.ReissueTokenUseCase
import team.comit.simtong.domain.common.dto.request.ChangePasswordWebRequest
import team.comit.simtong.domain.common.dto.request.CheckMatchedAccountWebRequest
import team.comit.simtong.domain.common.dto.request.FindEmployeeNumberWebRequest
import team.comit.simtong.domain.common.dto.request.ResetPasswordWebRequest
import team.comit.simtong.domain.common.dto.response.FindEmployeeNumberWebResponse
Expand All @@ -24,6 +24,7 @@ import team.comit.simtong.domain.user.usecase.CheckMatchedAccountUseCase
import team.comit.simtong.domain.user.usecase.ComparePasswordUseCase
import team.comit.simtong.domain.user.usecase.FindEmployeeNumberUseCase
import team.comit.simtong.domain.user.usecase.ResetPasswordUseCase
import team.comit.simtong.domain.user.value.EmployeeNumber
import team.comit.simtong.domain.user.value.Password
import java.util.UUID
import javax.validation.Valid
Expand All @@ -36,7 +37,7 @@ import javax.validation.constraints.NotBlank
*
* @author Chokyunghyeon
* @date 2022/09/11
* @version 1.0.0
* @version 1.2.4
**/
@Validated
@RestController
Expand Down Expand Up @@ -100,11 +101,16 @@ class WebCommonAdapter(
}

@GetMapping("/account/existence")
fun checkMatchedAccount(@Valid @ModelAttribute request: CheckMatchedAccountWebRequest) {
fun checkMatchedAccount(
@Range(min = EmployeeNumber.MIN_VALUE, max = EmployeeNumber.MAX_VALUE)
@RequestParam employeeNumber: EmployeeNumber,
@NotBlank @Email
@RequestParam email: String
) {
checkMatchedAccountUseCase.execute(
CheckMatchedAccountRequest(
employeeNumber = request.employeeNumber.value,
email = request.email
employeeNumber = employeeNumber.value,
email = email
)
)
}
Expand Down

This file was deleted.

0 comments on commit b23c4fb

Please sign in to comment.