Skip to content

Commit

Permalink
feature #13: SignUpRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent a7ba597 commit 859d8e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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<ResponseSignUpEntity>
}
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResponseSignUpEntity> =
signUpRepository.signUp(signUpEntity)
Expand Down

0 comments on commit 859d8e8

Please sign in to comment.