From ca580232f38e8a69f7d879e7cdebb7ee679255c5 Mon Sep 17 00:00:00 2001 From: yihwanggeun Date: Fri, 6 Dec 2024 21:49:15 +0900 Subject: [PATCH] =?UTF-8?q?#10=20[FEAT]=20DataSourceImpl=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/data/datasourceimpl/HobbyDataSourceImpl.kt | 12 ++++++++++++ .../data/datasourceimpl/SignInDataSourceImpl.kt | 13 +++++++++++++ .../data/datasourceimpl/SignUpDataSourceImpl.kt | 12 ++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 app/src/main/java/org/sopt/and/core/data/datasourceimpl/HobbyDataSourceImpl.kt create mode 100644 app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignInDataSourceImpl.kt create mode 100644 app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignUpDataSourceImpl.kt diff --git a/app/src/main/java/org/sopt/and/core/data/datasourceimpl/HobbyDataSourceImpl.kt b/app/src/main/java/org/sopt/and/core/data/datasourceimpl/HobbyDataSourceImpl.kt new file mode 100644 index 0000000..62b4533 --- /dev/null +++ b/app/src/main/java/org/sopt/and/core/data/datasourceimpl/HobbyDataSourceImpl.kt @@ -0,0 +1,12 @@ +package org.sopt.and.core.data.datasourceimpl + +import org.sopt.and.core.data.datasource.HobbyDataSource +import org.sopt.and.core.data.dto.BaseResponse +import org.sopt.and.core.data.dto.response.GetHobbyResponse +import org.sopt.and.core.data.service.HobbyService + +class HobbyDataSourceImpl( + private val hobbyService: HobbyService +) : HobbyDataSource { + override suspend fun getHobby(token: String): BaseResponse = hobbyService.getMyHobby(token) +} \ No newline at end of file diff --git a/app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignInDataSourceImpl.kt b/app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignInDataSourceImpl.kt new file mode 100644 index 0000000..23d203c --- /dev/null +++ b/app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignInDataSourceImpl.kt @@ -0,0 +1,13 @@ +package org.sopt.and.core.data.datasourceimpl + +import org.sopt.and.core.data.datasource.SignInDataSource +import org.sopt.and.core.data.dto.BaseResponse +import org.sopt.and.core.data.dto.reqeust.LoginRequest +import org.sopt.and.core.data.dto.response.LoginResponse + + +class SignInDataSourceImpl( + private val signInService: SignInDataSource +) : SignInDataSource { + override suspend fun postSignIn(request: LoginRequest): BaseResponse = signInService.postSignIn(request) +} \ No newline at end of file diff --git a/app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignUpDataSourceImpl.kt b/app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignUpDataSourceImpl.kt new file mode 100644 index 0000000..02f0e26 --- /dev/null +++ b/app/src/main/java/org/sopt/and/core/data/datasourceimpl/SignUpDataSourceImpl.kt @@ -0,0 +1,12 @@ +package org.sopt.and.core.data.datasourceimpl + +import org.sopt.and.core.data.datasource.SignUpDataSource +import org.sopt.and.core.data.dto.BaseResponse +import org.sopt.and.core.data.dto.reqeust.CreateUserRequest +import org.sopt.and.core.data.dto.response.CreateUserResponse + +class SignUpDataSourceImpl( + private val signUpService: SignUpDataSource +) : SignUpDataSource { + override suspend fun postSignUp(request: CreateUserRequest): BaseResponse = signUpService.postSignUp(request) +} \ No newline at end of file