From ba4fb60fc9bbc4ee6f4e6f8137b5e3e4ba7c4286 Mon Sep 17 00:00:00 2001 From: gaeun Date: Thu, 1 Jun 2023 17:20:37 +0900 Subject: [PATCH] =?UTF-8?q?[Add/#9]=20=EB=A0=88=ED=8F=AC=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=ED=95=9C=20=ED=8C=8C=EC=9D=BC=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../remoteData/repoImpl/LoginPageRepoImpl.kt | 24 +++++++++++++++++++ .../remoteData/repoImpl/MainPageRepoImpl.kt | 13 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/LoginPageRepoImpl.kt create mode 100644 app/src/main/java/org/android/go/sopt/remote/remoteData/repoImpl/MainPageRepoImpl.kt 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