Skip to content

Commit

Permalink
#23 [Update] 최신 리뷰 DTO 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JSoi committed Jul 30, 2022
1 parent af97963 commit 6583114
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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<ReviewImageResponseDto> reviewImageUrlList; //리뷰 이미지 사진
private List<ReviewResponseDto.TagResponseDto> tagList;

Expand All @@ -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()
Expand Down

0 comments on commit 6583114

Please sign in to comment.