Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

주차장 조회 시 주소 응답 추가 #80

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading