From 582abb366dcd6fdcdfb7600e270bfcf94cd3ce76 Mon Sep 17 00:00:00 2001 From: JeonHaeseung <414catherine@gmail.com> Date: Thu, 18 Jul 2024 18:30:46 +0900 Subject: [PATCH] =?UTF-8?q?[!HOTFIX]=20=ED=94=84=EB=A1=9C=ED=95=84=20?= =?UTF-8?q?=EC=82=AC=EC=A7=84=EC=9D=98=20=EA=B2=BD=EB=A1=9C=EB=A5=BC=20?= =?UTF-8?q?=EB=B3=B4=EB=82=B4=EC=A3=BC=EB=8F=84=EB=A1=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/Ness/Backend/domain/profile/ProfileService.java | 1 + .../Backend/domain/profile/dto/response/GetProfileDto.java | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/Ness/Backend/domain/profile/ProfileService.java b/src/main/java/Ness/Backend/domain/profile/ProfileService.java index ffa2a3d..9b8d586 100644 --- a/src/main/java/Ness/Backend/domain/profile/ProfileService.java +++ b/src/main/java/Ness/Backend/domain/profile/ProfileService.java @@ -56,6 +56,7 @@ public GetProfileDto getProfile(Long memberId, String email) { GetProfileDto getProfileDto = GetProfileDto.builder() .id(profile.getId()) .pictureUrl(createPictureUrl(memberId, profile)) + .pictureKey(profile.getPictureKey()) .nickname(profile.getNickname()) .name(profile.getName()) .isEmailActive(profile.getIsEmailActive()) diff --git a/src/main/java/Ness/Backend/domain/profile/dto/response/GetProfileDto.java b/src/main/java/Ness/Backend/domain/profile/dto/response/GetProfileDto.java index 7df0830..c507a48 100644 --- a/src/main/java/Ness/Backend/domain/profile/dto/response/GetProfileDto.java +++ b/src/main/java/Ness/Backend/domain/profile/dto/response/GetProfileDto.java @@ -19,6 +19,9 @@ public class GetProfileDto { @Schema(description = "사용자의 공유 프로필 URL", example = "https://lh3.googleusercontent.com/...") private String pictureUrl; + @Schema(description = "사용자의 S3 프로필 사진 경로", example = "/profile/1/...") + private String pictureKey; + @Schema(description = "사용자의 닉네임", example = "DongDong") private String nickname; @@ -42,10 +45,11 @@ public class GetProfileDto { private boolean onBoarding; @Builder - public GetProfileDto(Long id, String pictureUrl, String nickname, String name, + public GetProfileDto(Long id, String pictureUrl, String pictureKey, String nickname, String name, PersonaType persona, boolean isEmailActive, String email, boolean onBoarding){ this.id = id; this.pictureUrl = pictureUrl; + this.pictureKey = pictureKey; this.nickname = nickname; this.name = name; this.persona = persona;