From 25100a9d2bde0408e31a6ef337fdaeeb7c196ae7 Mon Sep 17 00:00:00 2001 From: JSoi Date: Sat, 16 Jul 2022 00:30:01 +0900 Subject: [PATCH] =?UTF-8?q?#23=20[Fix]=20DTO=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../review/dto/ReviewImageResponseDto.java | 1 - .../baechelin/review/dto/ReviewMainResponseDto.java | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/mpnp/baechelin/review/dto/ReviewImageResponseDto.java b/src/main/java/com/mpnp/baechelin/review/dto/ReviewImageResponseDto.java index 73d3039..cf1d1d0 100644 --- a/src/main/java/com/mpnp/baechelin/review/dto/ReviewImageResponseDto.java +++ b/src/main/java/com/mpnp/baechelin/review/dto/ReviewImageResponseDto.java @@ -12,7 +12,6 @@ @Builder public class ReviewImageResponseDto { private String url; - public ReviewImageResponseDto(ReviewImage reviewImage) { this.url = reviewImage.getReviewImageUrl(); } 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 739fa8d..49c2d86 100644 --- a/src/main/java/com/mpnp/baechelin/review/dto/ReviewMainResponseDto.java +++ b/src/main/java/com/mpnp/baechelin/review/dto/ReviewMainResponseDto.java @@ -20,15 +20,16 @@ public class ReviewMainResponseDto { private int userId; private String storeName; private String userName; - private String comment; //리뷰 코멘트 + private String content; //리뷰 코멘트 private double point; //별점 - private List imageFileUrl; //리뷰 이미지 사진 - + private List reviewImageUrlList; //리뷰 이미지 사진 + private List tagList; public ReviewMainResponseDto(Review review) { // this.storeId = store.getId(); - this.comment = review.getContent(); + this.content = review.getContent(); this.point = review.getPoint(); - this.imageFileUrl = review.getReviewImageList().parallelStream() - .map(ReviewImageResponseDto::new).collect(Collectors.toList()); + this.reviewImageUrlList = review.getReviewImageList() + .parallelStream().map(ReviewImageResponseDto::new).collect(Collectors.toList()); + this.tagList = review.getTagList().parallelStream().map(ReviewResponseDto.TagResponseDto::new).collect(Collectors.toList()); } } \ No newline at end of file