diff --git a/src/main/kotlin/com/psr/psr/user/dto/assembler/UserAssembler.kt b/src/main/kotlin/com/psr/psr/user/dto/assembler/UserAssembler.kt index 35dd22f..fbf1b36 100644 --- a/src/main/kotlin/com/psr/psr/user/dto/assembler/UserAssembler.kt +++ b/src/main/kotlin/com/psr/psr/user/dto/assembler/UserAssembler.kt @@ -72,7 +72,7 @@ class UserAssembler { * toDto */ fun toMyPageInfoRes(user: User) : MyPageInfoRes { - return MyPageInfoRes(user.email, user.imgUrl, user.type.value, user.phone) + return MyPageInfoRes(user.email, user.imgUrl, user.type.value, user.phone, user.nickname) } fun toProfileRes(user: User) : ProfileRes { diff --git a/src/main/kotlin/com/psr/psr/user/dto/response/MyPageInfoRes.kt b/src/main/kotlin/com/psr/psr/user/dto/response/MyPageInfoRes.kt index d42f507..605326c 100644 --- a/src/main/kotlin/com/psr/psr/user/dto/response/MyPageInfoRes.kt +++ b/src/main/kotlin/com/psr/psr/user/dto/response/MyPageInfoRes.kt @@ -6,4 +6,5 @@ data class MyPageInfoRes( val imgUrl: String ?= null, val type: String, val phone: String, + val nickname: String, ) \ No newline at end of file