diff --git a/user/src/main/java/kpring/user/dto/response/GetUserProfileResponse.java b/user/src/main/java/kpring/user/dto/response/GetUserProfileResponse.java index 3099e4b2..7db8b860 100644 --- a/user/src/main/java/kpring/user/dto/response/GetUserProfileResponse.java +++ b/user/src/main/java/kpring/user/dto/response/GetUserProfileResponse.java @@ -6,7 +6,8 @@ public record GetUserProfileResponse( Long userId, String email, - String username + String username, + String filename ) { } diff --git a/user/src/main/kotlin/kpring/user/service/UserServiceImpl.kt b/user/src/main/kotlin/kpring/user/service/UserServiceImpl.kt index 712fffcf..c82a5c58 100644 --- a/user/src/main/kotlin/kpring/user/service/UserServiceImpl.kt +++ b/user/src/main/kotlin/kpring/user/service/UserServiceImpl.kt @@ -29,7 +29,7 @@ class UserServiceImpl( override fun getProfile(userId: Long): GetUserProfileResponse { val user = getUser(userId) - return GetUserProfileResponse(user.id, user.email, user.username) + return GetUserProfileResponse(user.id, user.email, user.username, user.file) } override fun updateProfile( diff --git a/user/src/test/kotlin/kpring/user/controller/UserControllerTest.kt b/user/src/test/kotlin/kpring/user/controller/UserControllerTest.kt index b4f98efe..751dbbd0 100644 --- a/user/src/test/kotlin/kpring/user/controller/UserControllerTest.kt +++ b/user/src/test/kotlin/kpring/user/controller/UserControllerTest.kt @@ -528,6 +528,7 @@ class UserControllerTest( .userId(userId) .email(TEST_EMAIL) .username(TEST_USERNAME) + .filename(CommonTest.TEST_PROFILE_IMG) .build() val response = ApiResponse(data = data) every { authClient.getTokenInfo(any()) }.returns( @@ -568,6 +569,7 @@ class UserControllerTest( "data.userId" type Strings mean "사용자 아이디" "data.email" type Strings mean "이메일" "data.username" type Strings mean "닉네임" + "data.filename" type Strings mean "프로필 이미지 파일명" } } }