generated from NOW-SOPT-ANDROID/now-sopt-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat] #18 getinfo domain과 data 영역 추가 및 수정
- Loading branch information
1 parent
f4bb9c1
commit 32a8c17
Showing
7 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
app/src/main/java/com/sopt/now/domain/repository/AuthRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package com.sopt.now.domain.repository | ||
|
||
import com.sopt.now.domain.entity.UserEntity | ||
import com.sopt.now.domain.entity.BaseResponseEntity | ||
import com.sopt.now.domain.entity.UserEntity | ||
|
||
interface AuthRepository { | ||
suspend fun login(authData: UserEntity): Result<Int?> | ||
suspend fun signUp(authData: UserEntity): Result<BaseResponseEntity> | ||
suspend fun getMemberInfo(userid:String): Result<UserEntity> | ||
} |
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/sopt/now/domain/usecase/GetUserInfoUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.sopt.now.domain.usecase | ||
|
||
import com.sopt.now.domain.entity.UserEntity | ||
import com.sopt.now.domain.repository.AuthRepository | ||
|
||
class GetUserInfoUseCase(private val authRepository: AuthRepository) { | ||
suspend operator fun invoke(userid: String): Result<UserEntity> = | ||
authRepository.getMemberInfo(userid) | ||
} |