Skip to content

Commit

Permalink
chore/#8: signup dto 이름 오류 생긴 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyein9892 committed Nov 15, 2024
1 parent a95dfc0 commit 99eaf02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.content.SharedPreferences
import jakarta.inject.Inject
import org.sopt.and.data.common.execute
import org.sopt.and.data.di.UserSharedPreference
import org.sopt.and.data.dto.request.SignUpRequest
import org.sopt.and.data.dto.request.SignUpRequestDto
import org.sopt.and.data.service.UserService
import org.sopt.and.domain.exception.Result
import org.sopt.and.domain.model.SignUpRequest
Expand All @@ -28,7 +28,7 @@ internal class UserDataSource @Inject constructor(
userSharedPreference.edit().clear().apply()
}

suspend fun signUp(request: SignUpRequest): Result<org.sopt.and.domain.model.SignUpRequest> = execute {
suspend fun signUp(request: SignUpRequestDto): Result<SignUpRequest> = execute {
userService.signUp(request).result.toDomainModel()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import kotlinx.serialization.Serializable
import org.sopt.and.domain.model.User

@Serializable
internal data class SignUpRequest(
internal data class SignUpRequestDto(
val hobby: String,
val password: String,
val username: String
)

internal fun User.toRequestBody(): SignUpRequest {
return SignUpRequest(
internal fun User.toRequestBody(): SignUpRequestDto {
return SignUpRequestDto(
hobby = hobby,
password = password,
username = username
Expand Down

0 comments on commit 99eaf02

Please sign in to comment.