diff --git a/growthookServer/src/main/java/com/example/growthookserver/api/member/dto/response/MemberDetailGetResponseDto.java b/growthookServer/src/main/java/com/example/growthookserver/api/member/dto/response/MemberDetailGetResponseDto.java index 5e413f7..777658e 100644 --- a/growthookServer/src/main/java/com/example/growthookserver/api/member/dto/response/MemberDetailGetResponseDto.java +++ b/growthookServer/src/main/java/com/example/growthookserver/api/member/dto/response/MemberDetailGetResponseDto.java @@ -11,4 +11,5 @@ public class MemberDetailGetResponseDto { private String nickname; private String email; + private String profileImage; } diff --git a/growthookServer/src/main/java/com/example/growthookserver/api/member/service/MemberServiceImpl.java b/growthookServer/src/main/java/com/example/growthookserver/api/member/service/MemberServiceImpl.java index a657370..311e087 100644 --- a/growthookServer/src/main/java/com/example/growthookserver/api/member/service/MemberServiceImpl.java +++ b/growthookServer/src/main/java/com/example/growthookserver/api/member/service/MemberServiceImpl.java @@ -19,7 +19,8 @@ public class MemberServiceImpl implements MemberService{ @Override public MemberDetailGetResponseDto getMemberProfile(Long memberId) { Member member = memberRepository.findMemberByIdOrThrow(memberId); - return MemberDetailGetResponseDto.of(member.getNickname(), member.getEmail()); + return MemberDetailGetResponseDto.of(member.getNickname(), member.getEmail(), + member.getProfileImage()); } @Override