'require', 'pid' => 'require', 'type' => 'require', 'name' => 'require', 'icon' => 'require', 'sort' => 'require', 'paths' => 'require', 'is_show' => 'require', 'is_disable' => 'require', ]; /** * 参数描述 * @var string[] */ protected $field = [ 'id' => 'id', 'pid' => '上级菜单', 'type' => '权限类型: M=目录,C=菜单,A=按钮', 'name' => '菜单名称', 'icon' => '菜单图标', 'sort' => '菜单排序', 'paths' => '路由地址', 'params' => '路由参数', 'is_show' => '是否显示: 0=否, 1=是', 'is_disable' => '是否禁用: 0=否, 1=是', ]; /** * @notes 添加场景 * @return UserMenuValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneAdd() { return $this->only(['pid','type','name','icon','sort','paths','params','is_show','is_disable']); } /** * @notes 编辑场景 * @return UserMenuValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneEdit() { return $this->only(['id','pid','type','name','icon','sort','paths','params','is_show','is_disable']); } /** * @notes 删除场景 * @return UserMenuValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneDelete() { return $this->only(['id']); } /** * @notes 详情场景 * @return UserMenuValidate * @author likeadmin * @date 2023/08/23 09:38 */ public function sceneDetail() { return $this->only(['id']); } }