Skip to content

Commit

Permalink
[!HOTFIX] 프로필 사진의 경로를 보내주도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
JeonHaeseung committed Jul 18, 2024
1 parent d7b4c64 commit 582abb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 582abb3

Please sign in to comment.