Skip to content

Commit

Permalink
#10 [chore] : signup response 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gitsuhyun committed Dec 9, 2024
1 parent 3275b4e commit d379fb7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import org.sopt.and.data.remote.model.response.UserSignUpResponseDto
import org.sopt.and.domain.model.response.UserNumber

fun UserSignUpResponseDto.toDomain(): UserNumber = UserNumber(
no = this.no
userId = this.userId
)
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import kotlinx.serialization.Serializable
@Serializable
data class UserSignUpResponseDto(
@SerialName("no")
val no: Int
val userId: Int
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.sopt.and.domain.model.response

data class UserNumber(
val no: Int
val userId: Int
)
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SignUpViewModel @Inject constructor(
)
_signUpState.value = result.fold(
onSuccess = { response ->
Log.d("SignUpSuccess", response.no.toString())
Log.d("SignUpSuccess", response.userId.toString())
SignUpState.Success(response)
},
onFailure = { error ->
Expand Down

0 comments on commit d379fb7

Please sign in to comment.