Skip to content

Commit

Permalink
refactor: (#281) 파라미터 포장 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Jan 18, 2023
1 parent de3cf31 commit 5222933
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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()
}
}
Expand Down

0 comments on commit 5222933

Please sign in to comment.