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;