You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.1 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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