Skip to content

Commit

Permalink
[feat] 여행후기 리스트 응답에 평점 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
junmo95 committed Jan 24, 2024
1 parent 91702ca commit c404aa8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ public record TripRecordListResponseDto(
Integer totalDays,
Integer commentCount,
Integer storeCount,
Double averageRating,
String imageUrl,
TripRecordMemberResponseDto member
) {

@Builder
public TripRecordListResponseDto(Long tripRecordId, String title, String countries, Integer totalDays,
Integer commentCount, Integer storeCount, String imageUrl,
TripRecordMemberResponseDto member) {
public TripRecordListResponseDto(Long tripRecordId, String title, String countries,
Integer totalDays, Integer commentCount, Integer storeCount, Double averageRating,
String imageUrl, TripRecordMemberResponseDto member) {
this.tripRecordId = tripRecordId;
this.title = title;
this.countries = countries;
this.totalDays = totalDays;
this.commentCount = commentCount;
this.storeCount = storeCount;
this.averageRating = averageRating;
this.imageUrl = imageUrl;
this.member = member;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public List<TripRecordListResponseDto> finTripRecordWithFilter(
qTripRecord.totalDays,
qTripRecord.commentCount,
qTripRecord.storeCount,
qTripRecord.averageRating,
JPAExpressions
.select(qTripRecordImage.imageUrl.min())
.from(qTripRecordImage)
Expand Down

0 comments on commit c404aa8

Please sign in to comment.