dataLists(new DecorateNavLists()); } /** * @notes 添加菜单按钮 * @return \think\response\Json * @author BD * @date 2024/03/17 16:41 */ public function add() { $params = (new DecorateNavValidate())->post()->goCheck('add'); $result = DecorateNavLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(DecorateNavLogic::getError()); } /** * @notes 编辑菜单按钮 * @return \think\response\Json * @author BD * @date 2024/03/17 16:41 */ public function edit() { $params = (new DecorateNavValidate())->post()->goCheck('edit'); $result = DecorateNavLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(DecorateNavLogic::getError()); } /** * @notes 删除菜单按钮 * @return \think\response\Json * @author BD * @date 2024/03/17 16:41 */ public function delete() { $params = (new DecorateNavValidate())->post()->goCheck('delete'); DecorateNavLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取菜单按钮详情 * @return \think\response\Json * @author BD * @date 2024/03/17 16:41 */ public function detail() { $params = (new DecorateNavValidate())->goCheck('detail'); $result = DecorateNavLogic::detail($params); return $this->data($result); } }