From 102929adba31fb42b91731a24e300436b53a9294 Mon Sep 17 00:00:00 2001 From: MinchoGreenT Date: Fri, 26 Jul 2024 18:11:39 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EC=B1=84=EC=86=8C=20=EC=A1=B4?= =?UTF-8?q?=EC=9E=AC=20=EC=97=AC=EB=B6=80=20=ED=97=AC=ED=8D=BC=20=EB=A9=94?= =?UTF-8?q?=EC=84=9C=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/myveggiegarden/helper/MyVeggieHelper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/helper/MyVeggieHelper.java b/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/helper/MyVeggieHelper.java index 7fb38fda..9cdf71a4 100644 --- a/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/helper/MyVeggieHelper.java +++ b/src/main/java/com/modernfarmer/farmusspring/domain/myveggiegarden/helper/MyVeggieHelper.java @@ -31,6 +31,10 @@ public List getMyVeggieInfo(Long userId) { return myVeggieRepository.findMyVeggieInfoForCreate(userId); } + public Boolean checkMyVeggie(Long userId) { + return myVeggieRepository.existsById(userId); + } + public void deleteMyVeggie(Long id) { myVeggieRepository.deleteById(id); }