dataLists(new LogLists()); } /** * @notes 删除已选择的系统日志 * @return \think\response\Json * @author 段誉 * @date 2022/6/15 19:00 */ public function delete() { $params = (new OperationLogValidate())->post()->goCheck('id'); $result = OperationLogLogic::deleteTable($params); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(OperationLogLogic::getError()); } /** * @notes 删除系统日志 * @return \think\response\Json * @author 段誉 * @date 2022/6/15 19:00 */ public function deleteAll() { $result = OperationLogLogic::deleteAll(); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(OperationLogLogic::getError()); } }