dataLists(new ConsultDeclareLists()); } /** * @notes 添加项目咨询--报建管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 15:13 */ public function add() { $params = (new ConsultDeclareValidate())->post()->goCheck('add'); $result = ConsultDeclareLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ConsultDeclareLogic::getError()); } /** * @notes 编辑项目咨询--报建管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 15:13 */ public function edit() { $params = (new ConsultDeclareValidate())->post()->goCheck('edit'); $result = ConsultDeclareLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ConsultDeclareLogic::getError()); } /** * @notes 删除项目咨询--报建管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 15:13 */ public function delete() { $params = (new ConsultDeclareValidate())->post()->goCheck('delete'); ConsultDeclareLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目咨询--报建管理详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/11 15:13 */ public function detail() { $params = (new ConsultDeclareValidate())->goCheck('detail'); $result = ConsultDeclareLogic::detail($params); return $this->data($result); } }