From ea561807c0659095f16f6395c8cf763283e78ad3 Mon Sep 17 00:00:00 2001 From: jinuemong Date: Fri, 26 Jan 2024 04:09:10 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]:=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20domain=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../android/domain/model/social_login/UserModel.kt | 7 +++++++ .../repository/social_login/SocialLoginRepository.kt | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/model/social_login/UserModel.kt create mode 100644 domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/repository/social_login/SocialLoginRepository.kt diff --git a/domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/model/social_login/UserModel.kt b/domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/model/social_login/UserModel.kt new file mode 100644 index 00000000..8d41d136 --- /dev/null +++ b/domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/model/social_login/UserModel.kt @@ -0,0 +1,7 @@ +package ac.dnd.bookkeeping.android.domain.model.social_login + +class UserModel( + val socialId: Long, + val email: String, + val name: String +) diff --git a/domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/repository/social_login/SocialLoginRepository.kt b/domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/repository/social_login/SocialLoginRepository.kt new file mode 100644 index 00000000..bbe74adf --- /dev/null +++ b/domain/src/main/kotlin/ac/dnd/bookkeeping/android/domain/repository/social_login/SocialLoginRepository.kt @@ -0,0 +1,9 @@ +package ac.dnd.bookkeeping.android.domain.repository.social_login + +import ac.dnd.bookkeeping.android.domain.model.social_login.UserModel + +interface SocialLoginRepository { + suspend fun login(): Result + suspend fun logout(): Result + suspend fun getUserInfo(): Result +}