diff --git a/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java b/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java index ea78811..27d432e 100644 --- a/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java +++ b/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java @@ -1,5 +1,6 @@ package com.hanaro.triptogether.tripPlace.dto.response; +import com.hanaro.triptogether.place.dto.Place; import com.hanaro.triptogether.tripPlace.domain.TripPlace; import lombok.Builder; import lombok.Getter; @@ -11,7 +12,7 @@ public class TripPlaceResDto { private Long tripPlaceIdx; private Integer tripDate; private Integer placeOrder; - private Long placeIdx; + private Place place; private BigDecimal placeAmount; private String placeMemo; private int replyCount; @@ -21,7 +22,7 @@ public TripPlaceResDto(TripPlace tripPlace) { this.tripPlaceIdx = tripPlace.getTripPlaceIdx(); this.tripDate = tripPlace.getTripDate(); this.placeOrder = tripPlace.getPlaceOrder(); - this.placeIdx = tripPlace.getPlace().toPlace().getPlaceIdx(); + this.place = tripPlace.getPlace().toPlace(); this.placeAmount = tripPlace.getPlaceAmount(); this.placeMemo = tripPlace.getPlaceMemo(); this.replyCount = tripPlace.getTripReplies().size();