diff --git a/src/main/java/treehouse/server/api/member/business/MemberMapper.java b/src/main/java/treehouse/server/api/member/business/MemberMapper.java index bf8ac0a..4801ff3 100644 --- a/src/main/java/treehouse/server/api/member/business/MemberMapper.java +++ b/src/main/java/treehouse/server/api/member/business/MemberMapper.java @@ -26,8 +26,8 @@ public static MemberResponseDTO.registerMember toRegister(Long treehouseId, Memb .build(); } - public static MemberResponseDTO.getMember toGetMember(Member member) { - return MemberResponseDTO.getMember.builder() + public static MemberResponseDTO.getMemberProfile toGetMemberProfile(Member member) { + return MemberResponseDTO.getMemberProfile.builder() .memberId(member.getId()) .memberName(member.getName()) .memberProfileImageUrl(member.getProfileImageUrl()) diff --git a/src/main/java/treehouse/server/api/member/presentation/dto/MemberResponseDTO.java b/src/main/java/treehouse/server/api/member/presentation/dto/MemberResponseDTO.java index f0993aa..728cf96 100644 --- a/src/main/java/treehouse/server/api/member/presentation/dto/MemberResponseDTO.java +++ b/src/main/java/treehouse/server/api/member/presentation/dto/MemberResponseDTO.java @@ -18,7 +18,7 @@ public static class registerMember { @Getter @NoArgsConstructor @AllArgsConstructor - public static class getMember { + public static class getMemberProfile { private Long memberId; private String memberName; private String memberProfileImageUrl; diff --git a/src/main/java/treehouse/server/api/post/business/PostMapper.java b/src/main/java/treehouse/server/api/post/business/PostMapper.java index 5fbb8a2..53bae2f 100644 --- a/src/main/java/treehouse/server/api/post/business/PostMapper.java +++ b/src/main/java/treehouse/server/api/post/business/PostMapper.java @@ -13,7 +13,7 @@ public class PostMapper { public static PostResponseDTO.getPostDetails toGetPostDetails(Post post) { return PostResponseDTO.getPostDetails.builder() - .memberProfile(MemberMapper.toGetMember(post.getWriter())) + .memberProfile(MemberMapper.toGetMemberProfile(post.getWriter())) .postId(post.getId()) .context(post.getContent()) .pictureUrlList(post.getPostImageList().stream() diff --git a/src/main/java/treehouse/server/api/post/presentation/dto/PostResponseDTO.java b/src/main/java/treehouse/server/api/post/presentation/dto/PostResponseDTO.java index 56bf7a2..4ec227b 100644 --- a/src/main/java/treehouse/server/api/post/presentation/dto/PostResponseDTO.java +++ b/src/main/java/treehouse/server/api/post/presentation/dto/PostResponseDTO.java @@ -14,7 +14,7 @@ public class PostResponseDTO { @AllArgsConstructor public static class getPostDetails { - private MemberResponseDTO.getMember memberProfile; + private MemberResponseDTO.getMemberProfile memberProfile; private Long postId; private String context; private List pictureUrlList;