using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace Tiger.Model
|
{
|
public class MenuItem : MenuNoChildren
|
{
|
public List<MenuItem> children { get; set; }
|
public string status { get; set; }
|
public string parentMenu { get; set; }
|
public string menuName { get; set; }
|
public string icon { get; set; }
|
public string func_type { get; set; }
|
public string func_group { get; set; }
|
public int? orderNo { get; set; }
|
public string func_code { get; set; }
|
public string keepalive { get; set; }
|
public string show { get; set; }
|
public string url { get; set; }
|
public string pages { get; set; }
|
}
|
|
public class MenuNoChildren
|
{
|
public string id { get; set; }
|
public string path { get; set; }
|
public string component { get; set; }
|
public RouteMeta meta { get; set; }
|
public string name { get; set; }
|
public string alias { get; set; }
|
public string redirect { get; set; }
|
public bool? caseSensitive { get; set; }
|
public DateTime? createTime { get; set; }
|
public int btnType { get; set; }
|
public string doMethod { get; set; }
|
}
|
|
public class RouteMeta {
|
public int? orderNo { get; set; }
|
// title
|
public string title { get; set; }
|
// dynamic router level.
|
public int? dynamicLevel { get; set; }
|
// dynamic router real route path (For performance).
|
public string realPath { get; set; }
|
// Whether to ignore permissions
|
public bool? ignoreAuth { get; set; }
|
// role info
|
//public string roles?: RoleEnum[];
|
// Whether not to cache
|
public bool? ignoreKeepAlive { get; set; }
|
// Is it fixed on tab
|
public bool? affix { get; set; }
|
// icon on tab
|
public string icon { get; set; }
|
public string frameSrc { get; set; }
|
// current page transition
|
public string transitionName { get; set; }
|
// Whether the route has been dynamically added
|
public bool? hideBreadcrumb { get; set; }
|
// Hide submenu
|
public bool? hideChildrenInMenu { get; set; }
|
// Carrying parameters
|
public bool? carryParam { get; set; }
|
// Used internally to mark single-level menus
|
public bool? single { get; set; }
|
// Currently active menu
|
public string currentActiveMenu { get; set; }
|
// Never show in tab
|
public string hideTab { get; set; }
|
// Never bool in menu
|
public bool? hideMenu { get; set; }
|
public bool? showMenu { get; set; }
|
public bool? isLink { get; set; }
|
// only build for Menu
|
public bool? ignoreRoute { get; set; }
|
// Hide path for children
|
public bool? hidePathForChildren { get; set; }
|
public string menuId { get; set; }
|
public string menuCode { get; set; }
|
public int btnType { get; set; }
|
public string doMethod { get; set; }
|
}
|
|
public class SaveMenuParams
|
{
|
public string id { get; set; }
|
public int? orderNo { get; set; }
|
// menuName
|
public string menuName { get; set; }
|
public string path { get; set; }
|
public string component { get; set; }
|
public string parentMenu { get; set; }
|
public string icon { get; set; }
|
public string status { get; set; }
|
public string isExt { get; set; }
|
public bool isUpdate { get; set; }
|
public string show { get; set; }
|
public string func_type { get; set; }
|
public string func_group { get; set; }
|
public string func_class { get; set; }
|
public string keepalive { get; set; }
|
public int btnType { get; set; }
|
public string doMethod { get; set; }
|
}
|
}
|