Skip to content

Commit

Permalink
[FEATURE] #15 : 사용자 조회 Response, 사용자 등록 Request 모델 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Oct 10, 2023
1 parent abe6884 commit a88ba0d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 9 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.wap.wapp.core.network.model.user

data class UserProfileRequest(
val userId: String,
val userName: String,
val studentId: String,
val registeredAt: String,
) {
constructor() : this(
"",
"",
"",
"",
)
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
package com.wap.wapp.core.network.model.user

import com.wap.wapp.core.model.user.UserProfile

data class UserProfileResponse(
val userId: String,
val userName: String,
val studentId: String,
val registeredAt: String,
)
) {
constructor() : this(
"",
"",
"",
"",
)

fun toDomain(): UserProfile = UserProfile(
userId = userId,
userName = userName,
studentId = studentId,
registeredAt = registeredAt,
)
}

0 comments on commit a88ba0d

Please sign in to comment.