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

90 lines
2.4 KiB

using System;
using System.Collections.Generic;
namespace Znyc.Recruitment.Admin.AspNetCore.ViewModel
{
/// <summary>
/// Vuex菜单模型
/// </summary>
[Serializable]
public class VuexMenusTreeModel
{
/// <summary>
/// 字符串,对应当前路由的路径,总是解析为绝对路径
/// </summary>
public string path { get; set; }
/// <summary>
/// 命名视图组件
/// </summary>
public string component { get; set; }
/// <summary>
/// 重定向地址,在面包屑中点击会重定向去的地址
/// </summary>
public string redirect { get; set; }
/// <summary>
/// 设定路由的名字,一定要填写不然使用keep-alive时会出现各种问题
/// </summary>
public string name { get; set; }
/// <summary>
/// 在根路由设置权限,这样它下面所以的子路由都继承了这个权限
/// </summary>
public Meta meta { get; set; }
/// <summary>
/// 子菜单
/// </summary>
public List<VuexMenusTreeModel> children { get; set; }
}
/// <summary>
/// VuexMenus路由模型
/// </summary>
[Serializable]
public class VuexMenus
{
/// <summary>
/// 访问路径
/// </summary>
public string path { get; set; }
/// <summary>
/// 对应模块
/// </summary>
public string component { get; set; }
/// <summary>
/// 重定向地址,在面包屑中点击会重定向去的地址
/// </summary>
public string redirect { get; set; }
/// <summary>
/// 设定路由的名字,一定要填写不然使用keep-alive时会出现各种问题
/// </summary>
public string name { get; set; }
/// <summary>
/// </summary>
public Meta meta { get; set; }
}
/// <summary>
/// 路由元信息模型
/// </summary>
[Serializable]
public class Meta
{
/// <summary>
/// 设置该路由在侧边栏和面包屑中展示的名字
/// </summary>
public string title { get; set; }
/// <summary>
/// 设置该路由的图标
/// </summary>
public string icon { get; set; }
}
}