Skip to content

Commit

Permalink
Merge pull request #289 from GSM-MSG/288-update/my-profile-api-add-id
Browse files Browse the repository at this point in the history
🔀  :: my profile response dto에 id추가
  • Loading branch information
KimTaeO authored Mar 8, 2024
2 parents f5b0226 + dcb7207 commit c3c37d9
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.msg.gauth.domain.client.enums.ServiceScope
import com.msg.gauth.domain.user.User

data class MyProfileResDto(
val id: Long,
val email: String,
val name: String?,
val grade: Int?,
Expand All @@ -14,7 +15,14 @@ data class MyProfileResDto(
val clientList: List<SingleClientResDto>
) {
constructor(user: User, clientList: List<SingleClientResDto>): this(
user.email, user.name, user.grade, user.classNum, user.num, user.profileUrl, clientList
id = user.id,
email = user.email,
name =user.name,
grade = user.grade,
classNum = user.classNum,
number = user.num,
profileUrl = user.profileUrl,
clientList = clientList
)
data class SingleClientResDto(
val id: Long,
Expand Down

0 comments on commit c3c37d9

Please sign in to comment.