126 lines
2.0 KiB
C#
126 lines
2.0 KiB
C#
using System;
|
|
namespace NOVA.DevFx.Security.Model
|
|
{
|
|
/// <summary>
|
|
/// 权限列表实体类
|
|
/// </summary>
|
|
[Serializable]
|
|
public class Permission
|
|
{
|
|
public Permission()
|
|
{}
|
|
#region Model
|
|
private int _id;
|
|
private string _name;
|
|
private int? _super_id;
|
|
private string _url;
|
|
private string _icon;
|
|
private string _description;
|
|
private bool _panel_flag;
|
|
private bool _enabled;
|
|
private int _module_id;
|
|
private bool _system_flag;
|
|
private bool _visibled;
|
|
private int _sort_index;
|
|
/// <summary>
|
|
/// 编码
|
|
/// </summary>
|
|
public int id
|
|
{
|
|
set{ _id=value;}
|
|
get{return _id;}
|
|
}
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
public string name
|
|
{
|
|
set{ _name=value;}
|
|
get{return _name;}
|
|
}
|
|
/// <summary>
|
|
/// 上级编码
|
|
/// </summary>
|
|
public int? super_id
|
|
{
|
|
set{ _super_id=value;}
|
|
get{return _super_id;}
|
|
}
|
|
/// <summary>
|
|
/// 连接URL
|
|
/// </summary>
|
|
public string url
|
|
{
|
|
set{ _url=value;}
|
|
get{return _url;}
|
|
}
|
|
/// <summary>
|
|
/// 菜单图标
|
|
/// </summary>
|
|
public string icon
|
|
{
|
|
set{ _icon=value;}
|
|
get{return _icon;}
|
|
}
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
public string description
|
|
{
|
|
set{ _description=value;}
|
|
get{return _description;}
|
|
}
|
|
/// <summary>
|
|
/// 是否面板
|
|
/// </summary>
|
|
public bool panel_flag
|
|
{
|
|
set{ _panel_flag=value;}
|
|
get{return _panel_flag;}
|
|
}
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
public bool enabled
|
|
{
|
|
set{ _enabled=value;}
|
|
get{return _enabled;}
|
|
}
|
|
/// <summary>
|
|
/// 所属功能模块
|
|
/// </summary>
|
|
public int module_id
|
|
{
|
|
set{ _module_id=value;}
|
|
get{return _module_id;}
|
|
}
|
|
/// <summary>
|
|
/// 是否系统内置
|
|
/// </summary>
|
|
public bool system_flag
|
|
{
|
|
set{ _system_flag=value;}
|
|
get{return _system_flag;}
|
|
}
|
|
/// <summary>
|
|
/// 是否可视
|
|
/// </summary>
|
|
public bool visibled
|
|
{
|
|
set{ _visibled=value;}
|
|
get{return _visibled;}
|
|
}
|
|
/// <summary>
|
|
/// 排序编码
|
|
/// </summary>
|
|
public int sort_index
|
|
{
|
|
set{ _sort_index=value;}
|
|
get{return _sort_index;}
|
|
}
|
|
#endregion Model
|
|
|
|
}
|
|
}
|
|
|