From c68ae11f10ca874d902ee6f7f770f7a7c4352e5f Mon Sep 17 00:00:00 2001 From: HyunSu1768 Date: Sun, 4 Feb 2024 20:33:26 +0900 Subject: [PATCH] =?UTF-8?q?feat=20::=20UserRole=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xquare/v1userservice/user/router/UserHandler.kt | 3 ++- .../xquare/v1userservice/user/router/dto/GetUserResponse.kt | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt b/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt index 51891f88..ffd61e18 100644 --- a/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt +++ b/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/UserHandler.kt @@ -138,7 +138,8 @@ class UserHandler( grade = this.grade, num = this.num, birthDay = this.birthDay, - id = this.id + id = this.id, + userRole = this.role ) suspend fun getUserProfileHandler(serverRequest: ServerRequest): ServerResponse { diff --git a/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/dto/GetUserResponse.kt b/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/dto/GetUserResponse.kt index 20413171..b8b3fc44 100644 --- a/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/dto/GetUserResponse.kt +++ b/user-infrastructure/src/main/kotlin/com/xquare/v1userservice/user/router/dto/GetUserResponse.kt @@ -1,5 +1,6 @@ package com.xquare.v1userservice.user.router.dto +import com.xquare.v1userservice.user.UserRole import java.time.LocalDate import java.util.UUID @@ -20,5 +21,7 @@ data class GetUserResponse( val profileFileName: String?, - val password: String + val password: String, + + val userRole: UserRole )