using Common.Enum;
using Entity.Base;
using SqlSugar;
namespace Entity.DbModel.System.SysBaseObject
{
///
/// 系统菜单表
///
[SugarTable("sys_menu")]
public partial class SysMenu : EntityBase
{
///
/// 父Id
///
[SugarColumn(ColumnName = "pid")]
public long Pid { get; set; }
///
/// 菜单类型(1目录 2菜单 3按钮)
///
[SugarColumn(ColumnName = "type")]
public MenuTypeEnum Type { get; set; }
///
/// 路由名称
///
[SugarColumn(ColumnName = "name")]
public string? Name { get; set; }
///
/// 路由地址
///
[SugarColumn(ColumnName = "path")]
public string? Path { get; set; }
///
/// 组件路径
///
[SugarColumn(ColumnName = "component")]
public string? Component { get; set; }
///
/// 重定向
///
[SugarColumn(ColumnName = "redirect")]
public string? Redirect { get; set; }
///
/// 权限标识
///
[SugarColumn(ColumnName = "permission")]
public string? Permission { get; set; }
///
/// 菜单名称
///
[SugarColumn(ColumnName = "title")]
public virtual string Title { get; set; }
///
/// 图标
///
[SugarColumn(ColumnName = "icon")]
public string? Icon { get; set; }
///
/// 是否内嵌
///
[SugarColumn(ColumnName = "is_iframe")]
public bool IsIframe { get; set; }
///
/// 外链链接
///
[SugarColumn(ColumnName = "out_link")]
public string? OutLink { get; set; }
///
/// 是否隐藏
///
[SugarColumn(ColumnName = "is_hide")]
public bool IsHide { get; set; }
///
/// 是否缓存
///
[SugarColumn(ColumnName = "is_keep_alive")]
public bool IsKeepAlive { get; set; } = true;
///
/// 是否固定
///
[SugarColumn(ColumnName = "is_affix")]
public bool IsAffix { get; set; }
///
/// 排序
///
[SugarColumn(ColumnName = "order_no")]
public int OrderNo { get; set; } = 100;
///
/// 状态
///
[SugarColumn(ColumnName = "status")]
public StatusEnum Status { get; set; } = StatusEnum.Enable;
///
/// 备注
///
[SugarColumn(ColumnName = "remark")]
public string? Remark { get; set; }
///
/// 菜单子项
///
[SugarColumn(IsIgnore = true)]
public List Children { get; set; } = new List();
}
}