generated from AND-SOPT-ANDROID/and-sopt-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
27 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
app/src/main/java/org/sopt/and/data/repositoryimpl/SignInRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.sopt.and.data.repositoryimpl | ||
|
||
import org.sopt.and.data.datasource.AuthDataSource | ||
import org.sopt.and.data.dto.request.toDto | ||
import org.sopt.and.domain.entity.request.RequestSignInEntity | ||
import org.sopt.and.domain.entity.response.ResponseSignInEntity | ||
import org.sopt.and.domain.repository.SignInRepository | ||
import javax.inject.Inject | ||
|
||
class SignInRepositoryImpl @Inject constructor( | ||
private val authDataSource: AuthDataSource | ||
) : SignInRepository { | ||
override suspend fun signIn(body: RequestSignInEntity): Result<ResponseSignInEntity> = | ||
runCatching { | ||
authDataSource.postSignIn(body.toDto()).result.toEntity() | ||
} | ||
} |
27 changes: 0 additions & 27 deletions
27
app/src/main/java/org/sopt/and/data/repositoryimpl/WavveRepositoryImpl.kt
This file was deleted.
Oops, something went wrong.