diff --git a/src/main/java/com/example/demo/dto/cafe/CafeSearchBasicInfoResponse.java b/src/main/java/com/example/demo/dto/cafe/CafeSearchBasicInfoResponse.java index 595fe63..b36d821 100644 --- a/src/main/java/com/example/demo/dto/cafe/CafeSearchBasicInfoResponse.java +++ b/src/main/java/com/example/demo/dto/cafe/CafeSearchBasicInfoResponse.java @@ -18,4 +18,5 @@ public class CafeSearchBasicInfoResponse { private final int minBeveragePrice; private final int maxTime; private final double avgReviewRate; + private final boolean canStudy; } diff --git a/src/main/java/com/example/demo/dto/cafe/CafeSearchListResponse.java b/src/main/java/com/example/demo/dto/cafe/CafeSearchListResponse.java index 2187f10..42dc2c6 100644 --- a/src/main/java/com/example/demo/dto/cafe/CafeSearchListResponse.java +++ b/src/main/java/com/example/demo/dto/cafe/CafeSearchListResponse.java @@ -20,5 +20,5 @@ public class CafeSearchListResponse { private final int minBeveragePrice; private final int maxTime; private final double avgReviewRate; - + private final boolean canStudy; } diff --git a/src/main/java/com/example/demo/mapper/CafeMapper.java b/src/main/java/com/example/demo/mapper/CafeMapper.java index 75e834a..3469f70 100644 --- a/src/main/java/com/example/demo/mapper/CafeMapper.java +++ b/src/main/java/com/example/demo/mapper/CafeMapper.java @@ -48,7 +48,8 @@ private CafeSearchListResponse produceCafeSearchListResponse(Cafe cafe, OpenChec cafe.getPhone(), cafe.getMinBeveragePrice(), cafe.getMaxAllowableStay().getValue(), - cafe.getAvgReviewRate() + cafe.getAvgReviewRate(), + cafe.isAbleToStudy() ); } @@ -70,7 +71,8 @@ public CafeSearchBasicInfoResponse toCafeSearchBasicInfoResponse(Cafe cafe, cafe.getPhone(), cafe.getMinBeveragePrice(), cafe.getMaxAllowableStay().getValue(), - cafe.getAvgReviewRate() + cafe.getAvgReviewRate(), + cafe.isAbleToStudy() ); }