diff --git a/app/src/main/java/org/sopt/and/domain/repository/SignUpRepository.kt b/app/src/main/java/org/sopt/and/domain/repository/SignUpRepository.kt new file mode 100644 index 0000000..d6dccaf --- /dev/null +++ b/app/src/main/java/org/sopt/and/domain/repository/SignUpRepository.kt @@ -0,0 +1,8 @@ +package org.sopt.and.domain.repository + +import org.sopt.and.domain.entity.request.RequestSignUpEntity +import org.sopt.and.domain.entity.response.ResponseSignUpEntity + +interface SignUpRepository { + suspend fun signUp(body: RequestSignUpEntity): Result +} diff --git a/app/src/main/java/org/sopt/and/domain/usecase/SignUpUseCase.kt b/app/src/main/java/org/sopt/and/domain/usecase/SignUpUseCase.kt index 0699404..ba10919 100644 --- a/app/src/main/java/org/sopt/and/domain/usecase/SignUpUseCase.kt +++ b/app/src/main/java/org/sopt/and/domain/usecase/SignUpUseCase.kt @@ -2,11 +2,11 @@ package org.sopt.and.domain.usecase import org.sopt.and.domain.entity.request.RequestSignUpEntity import org.sopt.and.domain.entity.response.ResponseSignUpEntity -import org.sopt.and.domain.repository.WavveRepository +import org.sopt.and.domain.repository.SignUpRepository import javax.inject.Inject class SignUpUseCase @Inject constructor( - private val signUpRepository: WavveRepository + private val signUpRepository: SignUpRepository ) { suspend operator fun invoke(signUpEntity: RequestSignUpEntity): Result = signUpRepository.signUp(signUpEntity)