Skip to content

Commit

Permalink
refactor: 여행 일정 조회 시, 명소 정보 반환 값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
lcw729 committed Jun 3, 2024
1 parent 21b29b6 commit f920e0e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand All @@ -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();
Expand Down

0 comments on commit f920e0e

Please sign in to comment.