From 8636c07d377cef7f43b2488cd1e50f79303e09b3 Mon Sep 17 00:00:00 2001 From: daeun084 <030804jk@naver.com> Date: Fri, 29 Mar 2024 16:49:55 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20reviewResponseDto=20field=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shop/domain/review/dto/response/ReviewResponseDto.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/umc/meme/shop/domain/review/dto/response/ReviewResponseDto.java b/src/main/java/umc/meme/shop/domain/review/dto/response/ReviewResponseDto.java index fa072d0..ecff5c6 100644 --- a/src/main/java/umc/meme/shop/domain/review/dto/response/ReviewResponseDto.java +++ b/src/main/java/umc/meme/shop/domain/review/dto/response/ReviewResponseDto.java @@ -6,6 +6,7 @@ import lombok.NoArgsConstructor; import umc.meme.shop.domain.review.entity.Review; +import java.time.LocalDateTime; import java.util.List; @Getter @@ -13,10 +14,12 @@ @NoArgsConstructor @AllArgsConstructor public class ReviewResponseDto { + private Long reviewId; private String modelNickName; private String modelProfileImg; private int star; private String comment; + private LocalDateTime createdAt; private List reviewImgDtoList; public static ReviewResponseDto from(Review review){ @@ -26,10 +29,12 @@ public static ReviewResponseDto from(Review review){ .toList(); return ReviewResponseDto.builder() + .reviewId(review.getReviewId()) .modelNickName(review.getModel().getNickname()) .modelProfileImg(review.getModel().getProfileImg()) .star(review.getStar()) .comment(review.getComment()) + .createdAt(review.getCreatedAt()) .reviewImgDtoList(reviewImgDtoList) .build(); }