From 1ff98c9fa4c93fcdba3677c483279611035ccd55 Mon Sep 17 00:00:00 2001 From: donghyunkim Date: Mon, 29 Apr 2024 22:37:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B9=B4=ED=8E=98=20=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C,=20=EC=B9=B4=ED=8E=98=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=EC=97=90=20=EC=B9=B4=EA=B3=B5=20=EA=B0=80?= =?UTF-8?q?=EB=8A=A5=EC=97=AC=EB=B6=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/demo/dto/cafe/CafeSearchBasicInfoResponse.java | 1 + .../com/example/demo/dto/cafe/CafeSearchListResponse.java | 2 +- src/main/java/com/example/demo/mapper/CafeMapper.java | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) 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() ); }