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