dataLists(new ConsultSceneOrgLists()); } /** * @notes 添加项目咨询--现场组织建设 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:00 */ public function add() { $params = (new ConsultSceneOrgValidate())->post()->goCheck('add'); $result = ConsultSceneOrgLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ConsultSceneOrgLogic::getError()); } /** * @notes 编辑项目咨询--现场组织建设 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:00 */ public function edit() { $params = (new ConsultSceneOrgValidate())->post()->goCheck('edit'); $result = ConsultSceneOrgLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ConsultSceneOrgLogic::getError()); } /** * @notes 删除项目咨询--现场组织建设 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:00 */ public function delete() { $params = (new ConsultSceneOrgValidate())->post()->goCheck('delete'); ConsultSceneOrgLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目咨询--现场组织建设详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 16:00 */ public function detail() { $params = (new ConsultSceneOrgValidate())->goCheck('detail'); $result = ConsultSceneOrgLogic::detail($params); return $this->data($result); } }