File tree Expand file tree Collapse file tree
domain/auth/src/main/java/com/terning/domain/auth/repository
feature/onboarding/src/main/java/com/terning/feature/onboarding Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ import com.terning.domain.auth.entity.SignUpResponse
77
88interface AuthRepository {
99
10- suspend fun postSignIn (
10+ suspend fun signIn (
1111 authorization : String ,
1212 request : SignInRequest
1313 ): Result <SignInResponse >
1414
15- suspend fun postSignUp (
15+ suspend fun signUp (
1616 authId : String ,
1717 request : SignUpRequest
1818 ): Result <SignUpResponse >
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class SignInViewModel @Inject constructor(
6262 accessToken : String ,
6363 authType : String = KAKAO ,
6464 ) {
65- authRepository.postSignIn (
65+ authRepository.signIn (
6666 accessToken,
6767 SignInRequest (authType = authType)
6868 ).onSuccess { response ->
Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ class SignUpViewModel @Inject constructor(
4949 viewModelScope.launch {
5050 tokenRepository.fetchAndSetFcmToken()
5151 .onSuccess {
52- postSignUpWithServer ()
52+ signUpUser ()
5353 }.onFailure(Timber ::e)
5454 }
5555 }
5656
57- private fun postSignUpWithServer () {
57+ private fun signUpUser () {
5858 viewModelScope.launch {
59- authRepository.postSignUp (
59+ authRepository.signUp (
6060 state.value.authId,
6161 state.value.run {
6262 SignUpRequest (
You can’t perform that action at this time.
0 commit comments