Skip to content

Commit

Permalink
#23 [Fix] DTO 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Jul 15, 2022
1 parent d74df96 commit 25100a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
@Builder
public class ReviewImageResponseDto {
private String url;

public ReviewImageResponseDto(ReviewImage reviewImage) {
this.url = reviewImage.getReviewImageUrl();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReviewImageResponseDto> imageFileUrl; //리뷰 이미지 사진

private List<ReviewImageResponseDto> reviewImageUrlList; //리뷰 이미지 사진
private List<ReviewResponseDto.TagResponseDto> 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());
}
}

0 comments on commit 25100a9

Please sign in to comment.