From 5222933f018697c8f6c6e66aeed1aa2914f1c0e9 Mon Sep 17 00:00:00 2001 From: Jo KyungHyeon Date: Thu, 19 Jan 2023 00:55:02 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20(#281)=20=ED=8C=8C=EB=9D=BC?= =?UTF-8?q?=EB=AF=B8=ED=84=B0=20=ED=8F=AC=EC=9E=A5=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/dto/request/CheckMatchedAccountData.kt | 15 --------------- .../user/usecase/CheckMatchedAccountUseCase.kt | 7 +++---- 2 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 simtong-application/src/main/kotlin/team/comit/simtong/domain/user/dto/request/CheckMatchedAccountData.kt diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/user/dto/request/CheckMatchedAccountData.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/user/dto/request/CheckMatchedAccountData.kt deleted file mode 100644 index d1666dda..00000000 --- a/simtong-application/src/main/kotlin/team/comit/simtong/domain/user/dto/request/CheckMatchedAccountData.kt +++ /dev/null @@ -1,15 +0,0 @@ -package team.comit.simtong.domain.user.dto.request - -/** - * - * 해당 사원번호와 이메일을 가진 계정 여부 확인 요청 정보를 전달하는 CheckMatchedAccountData - * - * @author Chokyunghyeon - * @date 2022/10/15 - * @version 1.2.5 - **/ -data class CheckMatchedAccountData( - val employeeNumber: Int, - - val email: String -) \ No newline at end of file diff --git a/simtong-application/src/main/kotlin/team/comit/simtong/domain/user/usecase/CheckMatchedAccountUseCase.kt b/simtong-application/src/main/kotlin/team/comit/simtong/domain/user/usecase/CheckMatchedAccountUseCase.kt index fcffa946..26a8062d 100644 --- a/simtong-application/src/main/kotlin/team/comit/simtong/domain/user/usecase/CheckMatchedAccountUseCase.kt +++ b/simtong-application/src/main/kotlin/team/comit/simtong/domain/user/usecase/CheckMatchedAccountUseCase.kt @@ -1,6 +1,5 @@ package team.comit.simtong.domain.user.usecase -import team.comit.simtong.domain.user.dto.request.CheckMatchedAccountData import team.comit.simtong.domain.user.exception.UserExceptions import team.comit.simtong.domain.user.spi.QueryUserPort import team.comit.simtong.global.annotation.ReadOnlyUseCase @@ -11,16 +10,16 @@ import team.comit.simtong.global.annotation.ReadOnlyUseCase * * @author Chokyunghyeon * @date 2022/10/15 - * @version 1.0.0 + * @version 1.2.5 **/ @ReadOnlyUseCase class CheckMatchedAccountUseCase( private val queryUserPort: QueryUserPort ) { - fun execute(request: CheckMatchedAccountData) { + fun execute(employeeNumber: Int, email: String) { - if (!queryUserPort.existsUserByEmployeeNumberAndEmail(request.employeeNumber, request.email)) { + if (!queryUserPort.existsUserByEmployeeNumberAndEmail(employeeNumber, email)) { throw UserExceptions.NotFound() } }