Skip to content

Commit

Permalink
Refactor: MemberProfile 가져오는 메서드 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
koojun99 committed May 21, 2024
1 parent 614f723 commit 9d0a26e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> pictureUrlList;
Expand Down

0 comments on commit 9d0a26e

Please sign in to comment.