Skip to content

Commit

Permalink
Feature #38: AuthDataSourceImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
0se0 committed Jun 26, 2024
1 parent 3b00fde commit e573bae
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.sopt.now.compose.data.remote.datasourceImpl

import com.sopt.now.compose.data.remote.datasource.AuthDataSource
import com.sopt.now.compose.data.remote.response.BaseResponseWithoutDataDto
import com.sopt.now.compose.data.remote.service.AuthService
import com.sopt.now.compose.domain.entity.RequestChangePasswordEntity
import com.sopt.now.compose.domain.entity.RequestSignInEntity
import com.sopt.now.compose.domain.entity.RequestUserEntity
import retrofit2.Response
import javax.inject.Inject

class AuthDataSourceImpl @Inject constructor(
private val authService: AuthService
) : AuthDataSource {
override suspend fun postSignUp(user: RequestUserEntity): Response<BaseResponseWithoutDataDto> =
authService.postSignUp(user)

override suspend fun postSignIn(user: RequestSignInEntity): Response<BaseResponseWithoutDataDto> =
authService.postSignIn(user)

override suspend fun postChangePassword(user: RequestChangePasswordEntity): Response<BaseResponseWithoutDataDto> =
authService.postChangePassword(user)

}

0 comments on commit e573bae

Please sign in to comment.