Skip to content

Commit

Permalink
[fix] 여행계획 생성시 참조한 후기 id 입력할 수 있도록 body 추가
Browse files Browse the repository at this point in the history
여행계획 생성시 참조한 후기 id 입력할 수 있도록 body 추가
  • Loading branch information
liyusang1 committed Jan 23, 2024
1 parent 19aa6b9 commit d01de60
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public record TripPlanRequestDto(
@NotNull(message = "tripEndDay은 필수값입니다")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
LocalDate tripEndDay,
Long referencedBy,
List<TripPlanScheduleRequestDto> tripPlanSchedules
) {

Expand All @@ -26,6 +27,7 @@ public TripPlan toEntity(Member member) {
.tripStartDay(this.tripStartDay)
.tripEndDay(this.tripEndDay)
.member(member)
.referencedBy(this.referencedBy)
.build();
}
}

0 comments on commit d01de60

Please sign in to comment.