dataLists(new ProjectInsuranceManagementLists()); } /** * @notes 添加保险管理 * @return \think\response\Json * @author likeadmin * @date 2023/12/25 15:58 */ public function add() { $params = (new ProjectInsuranceManagementValidate())->post()->goCheck('add'); $result = ProjectInsuranceManagementLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectInsuranceManagementLogic::getError()); } /** * @notes 编辑保险管理 * @return \think\response\Json * @author likeadmin * @date 2023/12/25 15:58 */ public function edit() { $params = (new ProjectInsuranceManagementValidate())->post()->goCheck('edit'); $result = ProjectInsuranceManagementLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectInsuranceManagementLogic::getError()); } /** * @notes 删除保险管理 * @return \think\response\Json * @author likeadmin * @date 2023/12/25 15:58 */ public function delete() { $params = (new ProjectInsuranceManagementValidate())->post()->goCheck('delete'); ProjectInsuranceManagementLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取保险管理详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/25 15:58 */ public function detail() { $params = (new ProjectInsuranceManagementValidate())->goCheck('detail'); $result = ProjectInsuranceManagementLogic::detail($params); return $this->data($result); } }