using System.Collections.Generic; namespace Admin.Core.Model { /// /// 路由配置信息 /// public class RouterVo { /// /// 路由名字 /// public string name { get; set; } /// /// 路由地址 /// public string path { get; set; } /// /// 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现 /// public bool hidden { get; set; } /// /// 重定向地址,当设置 noRedirect 的时候该路由在面包屑导航中不可被点击 /// public string redirect { get; set; } /// /// 组件地址 /// public string component { get; set; } /// /// 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面 /// public bool? alwaysShow { get; set; } /// /// 其他元素 /// public MetaVo meta { get; set; } /// /// 子路由 /// public List children { get; set; } = new List(); } }