diff --git a/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/UserApi.kt b/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/UserApi.kt index 1774476..d389424 100644 --- a/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/UserApi.kt +++ b/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/UserApi.kt @@ -6,9 +6,12 @@ import com.xquare.v1userservice.user.api.dtos.PointDomainResponse import com.xquare.v1userservice.user.api.dtos.SignInDomainRequest import com.xquare.v1userservice.user.api.dtos.TokenResponse import com.xquare.v1userservice.user.api.dtos.UserDeviceTokenResponse +import java.io.File import java.util.UUID interface UserApi { + suspend fun registerUser(file: File) + suspend fun saveUser(creatUserDomainRequest: CreatUserDomainRequest): User suspend fun getUserById(userId: UUID): User suspend fun getUsersByIdsIn(userIds: List): List diff --git a/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/impl/UserApiImpl.kt b/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/impl/UserApiImpl.kt index 10ae2d5..2cff699 100644 --- a/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/impl/UserApiImpl.kt +++ b/user-domain/src/main/kotlin/com/xquare/v1userservice/user/api/impl/UserApiImpl.kt @@ -34,6 +34,7 @@ import com.xquare.v1userservice.user.spi.UserRepositorySpi import com.xquare.v1userservice.user.verificationcode.VerificationCode import com.xquare.v1userservice.user.verificationcode.exceptions.VerificationCodeNotFoundException import com.xquare.v1userservice.user.verificationcode.spi.VerificationCodeSpi +import java.io.File import java.time.LocalDateTime import java.util.UUID @@ -56,6 +57,10 @@ class UserApiImpl( private val passwordMatcherSpi: PasswordMatcherSpi, private val pointSpi: PointSpi ) : UserApi { + override suspend fun registerUser(file: File) { + //userRepositorySpi.saveAll() + } + override suspend fun saveUser(creatUserDomainRequest: CreatUserDomainRequest): User { val verificationCode: VerificationCode = verificationCodeSpi.getByCode(creatUserDomainRequest.verificationCode) ?: throw VerificationCodeNotFoundException("Verification Code Not Found")