Skip to content

Commit

Permalink
feature #13: SignInRepositoryImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeeum committed Dec 6, 2024
1 parent 8383bee commit 094db33
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
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()
}
}

This file was deleted.

0 comments on commit 094db33

Please sign in to comment.