Skip to content

Commit

Permalink
feature #13: SignInRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent f228e2f commit a7ba597
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 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.RequestSignInEntity
import org.sopt.and.domain.entity.response.ResponseSignInEntity

interface SignInRepository {
suspend fun signIn(body: RequestSignInEntity): Result<ResponseSignInEntity>
}

This file was deleted.

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.RequestSignInEntity
import org.sopt.and.domain.entity.response.ResponseSignInEntity
import org.sopt.and.domain.repository.WavveRepository
import org.sopt.and.domain.repository.SignInRepository
import javax.inject.Inject

class SignInUseCase @Inject constructor(
private val signInRepository: WavveRepository
private val signInRepository: SignInRepository
) {
suspend operator fun invoke(signInEntity: RequestSignInEntity): Result<ResponseSignInEntity> =
signInRepository.signIn(signInEntity)
Expand Down

0 comments on commit a7ba597

Please sign in to comment.