diff --git a/app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/LoginPageRepoImpl.kt b/app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/LoginPageRepoImpl.kt new file mode 100644 index 0000000..dfc2a0a --- /dev/null +++ b/app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/LoginPageRepoImpl.kt @@ -0,0 +1,24 @@ +package org.android.go.sopt.remote.remoteData.repoImpl + +import org.android.go.sopt.RequestSignUpDto +import org.android.go.sopt.ResponseSignUpDto +import org.android.go.sopt.remote.remoteData.datasource.LoginPageDataSource +import org.android.go.sopt.remote.remoteData.model.MyProfileDto +import org.android.go.sopt.remote.remoteData.model.RequestLogInDto +import org.android.go.sopt.remote.remoteData.model.ResponseLogInDto +import retrofit2.Response + +class LoginPageRepoImpl(private val loginPageDataSource: LoginPageDataSource) { + + suspend fun login(request:RequestLogInDto):Response{ + return loginPageDataSource.login(request) + } + + suspend fun signUp(request:RequestSignUpDto):Response{ + return loginPageDataSource.signUp(request) + } + + suspend fun myProfile(userId:String):Response{ + return loginPageDataSource.myProfile(userId) + } +} \ No newline at end of file diff --git a/app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/MainPageRepoImpl.kt b/app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/MainPageRepoImpl.kt new file mode 100644 index 0000000..2505696 --- /dev/null +++ b/app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/MainPageRepoImpl.kt @@ -0,0 +1,13 @@ +package org.android.go.sopt.remote.remoteData.repoImpl + +import org.android.go.sopt.remote.remoteData.datasource.MainPageDataSource +import org.android.go.sopt.remote.remoteData.model.ResponseListUsersDto +import retrofit2.Response + +class MainPageRepoImpl( + private val mainPagerDataSource: MainPageDataSource +) { + suspend fun getUserList():Response{ + return mainPagerDataSource.getUserList() + } +} \ No newline at end of file