Skip to content

Commit

Permalink
feat: 주차장 조회 시 주소 응답 추가 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngh0 authored Jun 4, 2024
1 parent 396d181 commit 09815e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ private ParkingDetailInfoResponse toParkingResponse(ReviewInfoResponse reviews,
return new ParkingDetailInfoResponse(
parking.getBaseInformation().getName(),
parking.getBaseInformation().getParkingType().getDescription(),
parking.getBaseInformation().getAddress(),
parking.getLocation().getLatitude(),
parking.getLocation().getLongitude(),
new FeeInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class ParkingDetailInfoResponse {

private String parkingName;
private String parkingType;
private String address;
private Double latitude;
private Double longitude;
private FeeInfo feeInfo;
Expand All @@ -25,14 +26,16 @@ public class ParkingDetailInfoResponse {
private HolidayOperatingTime holidayOperatingTime;
private ReviewInfoResponse reviewInfo;

public ParkingDetailInfoResponse(String parkingName, String parkingType, Double latitude, Double longitude,
public ParkingDetailInfoResponse(String parkingName, String parkingType, String address, Double latitude,
Double longitude,
FeeInfo feeInfo,
Integer currentParkingCount, Integer capacity, Integer lastUpdated, String tel,
String paymentType, WeekdayOperatingTime weekdayOperatingTime,
SaturdayOperatingTime saturdayOperatingTime,
HolidayOperatingTime holidayOperatingTime, ReviewInfoResponse reviewInfo) {
this.parkingName = parkingName;
this.parkingType = parkingType;
this.address = address;
this.latitude = latitude;
this.longitude = longitude;
this.feeInfo = feeInfo;
Expand Down

0 comments on commit 09815e8

Please sign in to comment.