From 53eb52d6411fd0b6f312ae1c1a53593fdd29dd8a Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Tue, 23 Dec 2025 16:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/PostCommentService.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/common/service/PostCommentService.php b/app/common/service/PostCommentService.php index 9fcf9d1..785ac1f 100644 --- a/app/common/service/PostCommentService.php +++ b/app/common/service/PostCommentService.php @@ -179,4 +179,14 @@ class PostCommentService return $data; } + + /** 删除 */ + public function serviceDestroy(Request $request, string $scene = 'destroy') + { + $data = $request->all(); + $this->preProcess(ucfirst($scene), $data, $request); + $config = $this->buildQueryConfig($request, $scene); + $deleted = $this->logicDeleteBy($config); + return $this->postProcess(ucfirst($scene), $deleted); + } } \ No newline at end of file