Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/NewFit/NewFit-Backend in…
Browse files Browse the repository at this point in the history
…to release/dev
  • Loading branch information
Sangwook02 committed Dec 25, 2023
2 parents 338ee90 + ae715b8 commit 46dc4b5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class ReservationDetailResponse extends ReservationResponse {

private Long equipmentId;
private LocalDateTime startAt;
private LocalDateTime endAt;

public ReservationDetailResponse(Reservation reservation) {
super(reservation.getId());
this.startAt = reservation.getStartAt();
this.endAt = reservation.getEndAt();
this.equipmentId = reservation.getEquipmentGym().getEquipment().getId();
}
}

0 comments on commit 46dc4b5

Please sign in to comment.