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

[BUILD SUCCESS] 카페 정보조회, 카페 목록조회에 카공 가능여부 추가 #91

Merged
merged 1 commit into from
Apr 29, 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 @@ -18,4 +18,5 @@ public class CafeSearchBasicInfoResponse {
private final int minBeveragePrice;
private final int maxTime;
private final double avgReviewRate;
private final boolean canStudy;
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public class CafeSearchListResponse {
private final int minBeveragePrice;
private final int maxTime;
private final double avgReviewRate;

private final boolean canStudy;
}
6 changes: 4 additions & 2 deletions src/main/java/com/example/demo/mapper/CafeMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ private CafeSearchListResponse produceCafeSearchListResponse(Cafe cafe, OpenChec
cafe.getPhone(),
cafe.getMinBeveragePrice(),
cafe.getMaxAllowableStay().getValue(),
cafe.getAvgReviewRate()
cafe.getAvgReviewRate(),
cafe.isAbleToStudy()
);
}

Expand All @@ -70,7 +71,8 @@ public CafeSearchBasicInfoResponse toCafeSearchBasicInfoResponse(Cafe cafe,
cafe.getPhone(),
cafe.getMinBeveragePrice(),
cafe.getMaxAllowableStay().getValue(),
cafe.getAvgReviewRate()
cafe.getAvgReviewRate(),
cafe.isAbleToStudy()
);
}

Expand Down
Loading