Skip to content

Commit

Permalink
feat/#8: domain model request로 변환 함수 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
kangyein9892 committed Nov 15, 2024
1 parent 1e0250f commit d9afb86
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ data class SignUpRequest(
val password: String,
val username: String
)

fun User.toRequestBody(): SignUpRequest {
return SignUpRequest(
hobby = hobby,
password = password,
username = username
)
}

0 comments on commit d9afb86

Please sign in to comment.