-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] #15 : 사용자 조회 Response, 사용자 등록 Request 모델 구현
- Loading branch information
1 parent
abe6884
commit a88ba0d
Showing
3 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
8 changes: 0 additions & 8 deletions
8
core/network/src/main/java/com/wap/wapp/core/network/model/auth/SignUpRequest.kt
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
core/network/src/main/java/com/wap/wapp/core/network/model/user/UserProfileRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( | ||
"", | ||
"", | ||
"", | ||
"", | ||
) | ||
} |
18 changes: 17 additions & 1 deletion
18
core/network/src/main/java/com/wap/wapp/core/network/model/user/UserProfileResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) | ||
} |