dataLists(new SupervisionDangerousEngineeringMonitoringLists()); } /** * @notes 添加工程监理--危大工程监控 * @return \think\response\Json * @author likeadmin * @date 2024/03/04 11:05 */ public function add() { $params = (new SupervisionDangerousEngineeringMonitoringValidate())->post()->goCheck('add'); $result = SupervisionDangerousEngineeringMonitoringLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionDangerousEngineeringMonitoringLogic::getError()); } /** * @notes 编辑工程监理--危大工程监控 * @return \think\response\Json * @author likeadmin * @date 2024/03/04 11:05 */ public function edit() { $params = (new SupervisionDangerousEngineeringMonitoringValidate())->post()->goCheck('edit'); $result = SupervisionDangerousEngineeringMonitoringLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionDangerousEngineeringMonitoringLogic::getError()); } /** * @notes 删除工程监理--危大工程监控 * @return \think\response\Json * @author likeadmin * @date 2024/03/04 11:05 */ public function delete() { $params = (new SupervisionDangerousEngineeringMonitoringValidate())->post()->goCheck('delete'); $result = SupervisionDangerousEngineeringMonitoringLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(SupervisionDangerousEngineeringMonitoringLogic::getError()); } /** * @notes 获取工程监理--危大工程监控详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/04 11:05 */ public function detail() { $params = (new SupervisionDangerousEngineeringMonitoringValidate())->goCheck('detail'); $result = SupervisionDangerousEngineeringMonitoringLogic::detail($params); return $this->data($result); } }