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.
[Mod] #18 AuthRequestModel ->UserEntity 이름변경
- Loading branch information
1 parent
06dbdef
commit f4bb9c1
Showing
10 changed files
with
22 additions
and
32 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
2 changes: 1 addition & 1 deletion
2
...opt/now/domain/entity/AuthRequestModel.kt → .../com/sopt/now/domain/entity/UserEntity.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
6 changes: 3 additions & 3 deletions
6
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,9 @@ | ||
package com.sopt.now.domain.repository | ||
|
||
import com.sopt.now.domain.entity.AuthRequestModel | ||
import com.sopt.now.domain.entity.UserEntity | ||
import com.sopt.now.domain.entity.BaseResponseEntity | ||
|
||
interface AuthRepository { | ||
suspend fun login(authData: AuthRequestModel): Result<Int?> | ||
suspend fun signUp(authData: AuthRequestModel): Result<BaseResponseEntity> | ||
suspend fun login(authData: UserEntity): Result<Int?> | ||
suspend fun signUp(authData: UserEntity): Result<BaseResponseEntity> | ||
} |
4 changes: 2 additions & 2 deletions
4
app/src/main/java/com/sopt/now/domain/usecase/LogInUseCase.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,10 +1,10 @@ | ||
package com.sopt.now.domain.usecase | ||
|
||
import com.sopt.now.domain.entity.AuthRequestModel | ||
import com.sopt.now.domain.entity.UserEntity | ||
import com.sopt.now.domain.repository.AuthRepository | ||
|
||
class LogInUseCase(private val authRepository: AuthRepository) { | ||
|
||
suspend operator fun invoke(request: AuthRequestModel):Result<Int?> = | ||
suspend operator fun invoke(request: UserEntity):Result<Int?> = | ||
authRepository.login(request) | ||
} |
4 changes: 2 additions & 2 deletions
4
app/src/main/java/com/sopt/now/domain/usecase/SignUpUseCase.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,11 +1,11 @@ | ||
package com.sopt.now.domain.usecase | ||
|
||
import com.sopt.now.domain.entity.AuthRequestModel | ||
import com.sopt.now.domain.entity.UserEntity | ||
import com.sopt.now.domain.entity.BaseResponseEntity | ||
import com.sopt.now.domain.repository.AuthRepository | ||
|
||
class SignUpUseCase(private val authRepository: AuthRepository) { | ||
|
||
suspend operator fun invoke(request: AuthRequestModel):Result<BaseResponseEntity> = | ||
suspend operator fun invoke(request: UserEntity):Result<BaseResponseEntity> = | ||
authRepository.signUp(request) | ||
} |
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 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