From a69daa7644b4437fc3bdc980fcbeb6a66f2cd623 Mon Sep 17 00:00:00 2001 From: minahYu Date: Sat, 9 Nov 2024 14:59:32 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=8B=9C=20=ED=94=84=EB=A1=9C=ED=95=84?= =?UTF-8?q?=EC=82=AC=EC=A7=84=EB=8F=84=20=EC=A1=B0=ED=9A=8C=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/src/main/kotlin/kpring/user/service/UserServiceImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( From 58bac87b78507523c07ae0781dbe83ecc651e01c Mon Sep 17 00:00:00 2001 From: minahYu Date: Sat, 9 Nov 2024 14:59:56 +0900 Subject: [PATCH 2/3] =?UTF-8?q?test:=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20controller=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/kotlin/kpring/user/controller/UserControllerTest.kt | 2 ++ 1 file changed, 2 insertions(+) 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 "프로필 이미지 파일명" } } } From 1ddf7112eb9c4175ec04bf2d7a0df95da4986d93 Mon Sep 17 00:00:00 2001 From: minahYu Date: Sat, 9 Nov 2024 15:21:20 +0900 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20GetUserProfileResponse=EC=97=90=20f?= =?UTF-8?q?ilename=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/kpring/user/dto/response/GetUserProfileResponse.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { }