dataLists(new SafetyCheckLists()); } /** * @notes 添加安全检查 * @return \think\response\Json * @author likeadmin * @date 2023/12/19 16:10 */ public function add() { $params = (new SafetyCheckValidate())->post()->goCheck('add'); $result = SafetyCheckLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SafetyCheckLogic::getError()); } /** * @notes 编辑安全检查 * @return \think\response\Json * @author likeadmin * @date 2023/12/19 16:10 */ public function edit() { $params = (new SafetyCheckValidate())->post()->goCheck('edit'); $result = SafetyCheckLogic::edit($params,$this->adminId); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SafetyCheckLogic::getError()); } /** * @notes 删除安全检查 * @return \think\response\Json * @author likeadmin * @date 2023/12/19 16:10 */ public function delete() { $params = (new SafetyCheckValidate())->post()->goCheck('delete'); SafetyCheckLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取安全检查详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/19 16:10 */ public function detail() { $params = (new SafetyCheckValidate())->goCheck('detail'); $result = SafetyCheckLogic::detail($params); return $this->data($result); } }