using System.Collections;
using YBEE.EQM.Core;
namespace YBEE.EQM.Application
{
///
/// 菜单输出参数
///
public class SysMenuOutput : ITreeNode
{
///
/// 菜单Id
///
[Required]
public int Id { get; set; }
///
/// 父Id
///
[Required]
public int Pid { get; set; }
///
/// 名称
///
[Required]
public string Name { get; set; }
///
/// 编码
///
public string Code { get; set; }
///
/// 菜单类型(字典 0目录 1菜单 2按钮)
///
[Required]
public MenuType MenuType { get; set; }
///
/// 图标
///
public string Icon { get; set; }
///
/// 路由地址
///
public string Router { get; set; }
///
/// 组件地址
///
public string Component { get; set; }
///
/// 权限标识
///
public string Permission { get; set; }
///
/// 打开方式(字典 0无 1组件 2内链 3外链)
///
public MenuOpenType OpenType { get; set; }
///
/// 是否可见
///
public bool Visible { get; set; }
///
/// 内链地址
///
public string Link { get; set; }
///
/// 重定向地址
///
public string Redirect { get; set; }
///
/// 排序
///
public int Sort { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 子菜单项
///
public List Children { get; set; }
public int GetId()
{
return Id;
}
public int GetPid()
{
return Pid;
}
public void SetChildren(IList children)
{
var c = (List)children;
if (c.Any())
{
Children = c;
}
}
}
}