From f208a2347091971a1ec5db6f7a6dfb908554de67 Mon Sep 17 00:00:00 2001 From: yihwanggeun Date: Fri, 6 Dec 2024 21:45:22 +0900 Subject: [PATCH] =?UTF-8?q?#10=20[FEAT]=20DataSource=20=EC=9D=B8=ED=84=B0?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=8A=A4=20=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/and/core/data/datasource/HobbyDataSource.kt | 10 ++++++++++ .../sopt/and/core/data/datasource/SignInDataSource.kt | 11 +++++++++++ .../sopt/and/core/data/datasource/SignUpDataSource.kt | 11 +++++++++++ 3 files changed, 32 insertions(+) create mode 100644 app/src/main/java/org/sopt/and/core/data/datasource/HobbyDataSource.kt create mode 100644 app/src/main/java/org/sopt/and/core/data/datasource/SignInDataSource.kt create mode 100644 app/src/main/java/org/sopt/and/core/data/datasource/SignUpDataSource.kt diff --git a/app/src/main/java/org/sopt/and/core/data/datasource/HobbyDataSource.kt b/app/src/main/java/org/sopt/and/core/data/datasource/HobbyDataSource.kt new file mode 100644 index 0000000..8ea0fd1 --- /dev/null +++ b/app/src/main/java/org/sopt/and/core/data/datasource/HobbyDataSource.kt @@ -0,0 +1,10 @@ +package org.sopt.and.core.data.datasource + +import org.sopt.and.core.data.dto.BaseResponse +import org.sopt.and.core.data.dto.response.GetHobbyResponse + +interface HobbyDataSource { + suspend fun getHobby( + token: String + ): BaseResponse +} \ No newline at end of file diff --git a/app/src/main/java/org/sopt/and/core/data/datasource/SignInDataSource.kt b/app/src/main/java/org/sopt/and/core/data/datasource/SignInDataSource.kt new file mode 100644 index 0000000..13a5b07 --- /dev/null +++ b/app/src/main/java/org/sopt/and/core/data/datasource/SignInDataSource.kt @@ -0,0 +1,11 @@ +package org.sopt.and.core.data.datasource + +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 + +interface SignInDataSource { + suspend fun postSignIn( + request: LoginRequest + ): BaseResponse +} \ No newline at end of file diff --git a/app/src/main/java/org/sopt/and/core/data/datasource/SignUpDataSource.kt b/app/src/main/java/org/sopt/and/core/data/datasource/SignUpDataSource.kt new file mode 100644 index 0000000..b2be195 --- /dev/null +++ b/app/src/main/java/org/sopt/and/core/data/datasource/SignUpDataSource.kt @@ -0,0 +1,11 @@ +package org.sopt.and.core.data.datasource + +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 + +interface SignUpDataSource { + suspend fun postSignUp( + request: CreateUserRequest + ): BaseResponse +} \ No newline at end of file