diff --git a/src/main/java/com/umc/refit/domain/dto/community/PostClickResponseDto.java b/src/main/java/com/umc/refit/domain/dto/community/PostClickResponseDto.java index 07a39ff..825a786 100644 --- a/src/main/java/com/umc/refit/domain/dto/community/PostClickResponseDto.java +++ b/src/main/java/com/umc/refit/domain/dto/community/PostClickResponseDto.java @@ -14,6 +14,7 @@ public class PostClickResponseDto { private Long postId; private String title; private String author; + private String profileUrl; private List imgUrls; private Integer size; private Integer category; @@ -30,11 +31,12 @@ public class PostClickResponseDto { private boolean scrapFlag; - public PostClickResponseDto(String clickedMember, Long postId, String title, String author, List imgUrls, Integer size, Integer category, Integer gender, Integer deliveryType, Integer deliveryFee, String address, Integer price, String detail, Integer postType, Integer postState, LocalDateTime createdAt, boolean scrapFlag) { + public PostClickResponseDto(String clickedMember, Long postId, String title, String author, String profileUrl, List imgUrls, Integer size, Integer category, Integer gender, Integer deliveryType, Integer deliveryFee, String address, Integer price, String detail, Integer postType, Integer postState, LocalDateTime createdAt, boolean scrapFlag) { this.clickedMember = clickedMember; this.postId = postId; this.title = title; this.author = author; + this.profileUrl = profileUrl; this.imgUrls = imgUrls; this.size = size; this.category = category; diff --git a/src/main/java/com/umc/refit/web/service/CommunityService.java b/src/main/java/com/umc/refit/web/service/CommunityService.java index 9dacf5d..d32f896 100644 --- a/src/main/java/com/umc/refit/web/service/CommunityService.java +++ b/src/main/java/com/umc/refit/web/service/CommunityService.java @@ -64,6 +64,7 @@ public PostClickResponseDto create(PostDto postDto, List multipar post.getId(), post.getTitle(), post.getMember().getName(), + post.getMember().getImageUrl(), imgUrls, post.getSize(), post.getCategory(), @@ -145,6 +146,7 @@ public PostClickResponseDto clickPost(Long postId, Authentication authentication post.getId(), post.getTitle(), post.getMember().getName(), + post.getMember().getImageUrl(), imgUrls, post.getSize(), post.getCategory(), @@ -209,6 +211,7 @@ public PostClickResponseDto changeState(Long postId, Authentication authenticati post.getId(), post.getTitle(), post.getMember().getName(), + post.getMember().getImageUrl(), imgUrls, post.getSize(), post.getCategory(), @@ -275,6 +278,7 @@ public PostClickResponseDto update(Long postId, PostDto postDto, List