dataLists(new CommunityCommentLists()); } public function updateStatus() { $params = (new CommunityCommentValidate())->post()->goCheck('status'); $params['comment_type'] = (string) $params['comment_type']; $result = CommunityCommentLogic::updateStatus($params); if (true === $result) { return $this->success('修改成功', [], 1, 1); } return $this->fail(CommunityCommentLogic::getError()); } public function delete() { $params = (new CommunityCommentValidate())->post()->goCheck('delete'); $params['comment_type'] = (string) $params['comment_type']; $result = CommunityCommentLogic::delete($params); if (false === $result) { return $this->fail(CommunityCommentLogic::getError()); } return $this->success('删除成功', [], 1, 1); } }