From 658311467b3e8fc2eff572205869c5ebd56a341d Mon Sep 17 00:00:00 2001 From: JSoi Date: Sat, 30 Jul 2022 15:23:49 +0900 Subject: [PATCH] =?UTF-8?q?#23=20[Update]=20=EC=B5=9C=EC=8B=A0=20=EB=A6=AC?= =?UTF-8?q?=EB=B7=B0=20DTO=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../baechelin/review/dto/ReviewMainResponseDto.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/mpnp/baechelin/review/dto/ReviewMainResponseDto.java b/src/main/java/com/mpnp/baechelin/review/dto/ReviewMainResponseDto.java index 232171d..d71d841 100644 --- a/src/main/java/com/mpnp/baechelin/review/dto/ReviewMainResponseDto.java +++ b/src/main/java/com/mpnp/baechelin/review/dto/ReviewMainResponseDto.java @@ -8,7 +8,7 @@ import lombok.Getter; import lombok.NoArgsConstructor; -import java.util.ArrayList; +import java.time.LocalDateTime; import java.util.List; import java.util.stream.Collectors; @@ -21,10 +21,13 @@ public class ReviewMainResponseDto { private long storeId; private int userId; private String storeName; - private String userName; + private String name; private String content; //리뷰 코멘트 private String address; + private String userImage; private double point; //별점 + + private LocalDateTime createdAt; private List reviewImageUrlList; //리뷰 이미지 사진 private List tagList; @@ -33,7 +36,9 @@ public ReviewMainResponseDto(Review review, Store store, User user) { this.userId = user.getId(); this.storeName = store.getName(); this.address = store.getAddress(); - this.userName = user.getName(); + this.name = user.getName(); + this.userImage = user.getProfileImageUrl(); + this.createdAt = review.getCreatedAt(); this.content = review.getContent(); this.point = review.getPoint(); this.reviewImageUrlList = review.getReviewImageList()