generated from ajou4095/template-android
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] RegistrationScreen UI 로직 구현 (#31)
* [Feat]: 회원가입 유즈케이스 구현 * [Feat]: userData 전송,저장 기능 구현 * [Feat]: 회원가입 관련 Type 구현 * [Feat]: 회원가입 기능 구현 * [Style]: 코드 포맷 수정
- Loading branch information
Showing
22 changed files
with
533 additions
and
241 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...in/kotlin/ac/dnd/bookkeeping/android/domain/usecase/authentication/RegistrationUseCase.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,29 @@ | ||
package ac.dnd.bookkeeping.android.domain.usecase.authentication | ||
|
||
import ac.dnd.bookkeeping.android.domain.model.authentication.Register | ||
import ac.dnd.bookkeeping.android.domain.repository.AuthenticationRepository | ||
import javax.inject.Inject | ||
|
||
class RegistrationUseCase @Inject constructor( | ||
private val authenticationRepository: AuthenticationRepository | ||
) { | ||
suspend operator fun invoke( | ||
socialId: Long, | ||
email: String, | ||
profileImageUrl: String, | ||
name: String, | ||
nickname: String, | ||
gender: String, | ||
birth: String | ||
): Result<Register> { | ||
return authenticationRepository.register( | ||
socialId = socialId, | ||
email = email, | ||
profileImageUrl = profileImageUrl, | ||
name = name, | ||
nickname = nickname, | ||
gender = gender, | ||
birth = birth | ||
) | ||
} | ||
} |
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
8 changes: 7 additions & 1 deletion
8
.../ac/dnd/bookkeeping/android/presentation/ui/main/login/onboarding/LoginOnBoardingEvent.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,3 +1,9 @@ | ||
package ac.dnd.bookkeeping.android.presentation.ui.main.login.onboarding | ||
|
||
sealed interface LoginOnBoardingEvent | ||
import ac.dnd.bookkeeping.android.presentation.model.login.KakaoUserInformationModel | ||
|
||
sealed interface LoginOnBoardingEvent { | ||
data class Submit( | ||
val kakaoUserModel: KakaoUserInformationModel | ||
) : LoginOnBoardingEvent | ||
} |
4 changes: 3 additions & 1 deletion
4
...ac/dnd/bookkeeping/android/presentation/ui/main/login/onboarding/LoginOnBoardingIntent.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,3 +1,5 @@ | ||
package ac.dnd.bookkeeping.android.presentation.ui.main.login.onboarding | ||
|
||
sealed interface LoginOnBoardingIntent | ||
sealed interface LoginOnBoardingIntent { | ||
data object Click : LoginOnBoardingIntent | ||
} |
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
9 changes: 0 additions & 9 deletions
9
...d/bookkeeping/android/presentation/ui/main/registration/main/RegistrationMainErrorType.kt
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
8 changes: 6 additions & 2 deletions
8
.../dnd/bookkeeping/android/presentation/ui/main/registration/main/RegistrationMainIntent.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,6 +1,10 @@ | ||
package ac.dnd.bookkeeping.android.presentation.ui.main.registration.main | ||
|
||
sealed interface RegistrationMainIntent { | ||
data object OnCheckUserName : RegistrationMainIntent | ||
data object OnClickSubmit : RegistrationMainIntent | ||
data class OnCheckUserName(val name: String) : RegistrationMainIntent | ||
data class OnClickSubmit( | ||
val nickName: String, | ||
val gender: String, | ||
val birth: String | ||
) : RegistrationMainIntent | ||
} |
4 changes: 3 additions & 1 deletion
4
...c/dnd/bookkeeping/android/presentation/ui/main/registration/main/RegistrationMainModel.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,6 +1,8 @@ | ||
package ac.dnd.bookkeeping.android.presentation.ui.main.registration.main | ||
|
||
import ac.dnd.bookkeeping.android.presentation.ui.main.registration.main.type.RegistrationMainNamingErrorType | ||
|
||
data class RegistrationMainModel( | ||
val state: RegistrationMainState, | ||
val errorType: RegistrationMainErrorType | ||
val namingErrorType: RegistrationMainNamingErrorType | ||
) |
Oops, something went wrong.