From 9a21573e46349075ccccdcd7dacd181602dc977d Mon Sep 17 00:00:00 2001 From: MinchoGreenT Date: Fri, 6 Sep 2024 17:31:11 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EB=AF=B8=EC=85=98=EA=B8=80=20?= =?UTF-8?q?=EB=B0=8F=20=EB=8C=93=EA=B8=80=20=EC=82=AD=EC=A0=9C=20=ED=97=AC?= =?UTF-8?q?=ED=8D=BC=20=EB=A9=94=EC=84=9C=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/farmclub/helper/MissionPostHelper.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java b/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java index f1d5540..9ea76c9 100644 --- a/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java +++ b/src/main/java/com/modernfarmer/farmusspring/domain/farmclub/helper/MissionPostHelper.java @@ -49,6 +49,12 @@ public void deleteMissionPostLike(Long userId, Long missionPostId) { missionPostRepository.deleteMissionPostLike(userId, missionPostId); } + public void deleteMissionPost(MissionPost missionPost){ + missionPostRepository.delete(missionPost); + } + public void deleteMissionPostComment(MissionPostComment missionPostComment){ + missionPostCommentRepository.delete(missionPostComment); + } public void deleteMissionPostComments(Long userId){ missionPostRepository.deleteMissionPostComments(userId); }