Skip to content

Commit

Permalink
Merge pull request #106 from Hanaro-trip-together-bank/feature/trip_p…
Browse files Browse the repository at this point in the history
…lace

refactor: 여행 일정 조회 API
  • Loading branch information
lcw729 authored Jun 3, 2024
2 parents 567d33e + f920e0e commit d2da009
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 d2da009

Please sign in to comment.