using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; using WIDESEAWCS_Core.DB.Models; using WIDESEAWCS_Core.Tenants; namespace WIDESEAWCS_Model.Models { [SugarTable("Sys_Menu", "èœå•é…ç½®"), MultiTenant] public class Sys_Menu : BaseEntity { /// <summary> /// èœå•ID /// </summary> [SugarColumn(IsIdentity = true, IsPrimaryKey = true, ColumnDescription = "èœå•ID")] public int MenuId { get; set; } /// <summary> /// èœå•åç§° /// </summary> [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "èœå•åç§°")] public string MenuName { get; set; } /// <summary> /// æƒé™ /// </summary> [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "æƒé™")] public string Auth { get; set; } /// <summary> /// å›¾æ ‡ /// </summary> [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "å›¾æ ‡")] public string Icon { get; set; } /// <summary> /// æè¿° /// </summary> [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "æè¿°")] public string Description { get; set; } /// <summary> /// 是å¦å¯ç”¨ /// </summary> [SugarColumn(IsNullable = true, ColumnDescription = "是å¦å¯ç”¨")] public byte? Enable { get; set; } /// <summary> /// 表å /// </summary> [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "表å")] public string TableName { get; set; } /// <summary> /// 父级ID /// </summary> [SugarColumn(IsNullable = false, ColumnDescription = "父级ID")] public int ParentId { get; set; } /// <summary> /// 路径 /// </summary> [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "路径")] public string Url { get; set; } /// <summary> /// 排åºå· /// </summary> [SugarColumn(IsNullable = true,ColumnDescription ="排åºå·")] public int? OrderNo { get; set; } /// <summary> /// èœå•类型 /// </summary> [SugarColumn(IsNullable = true, ColumnDescription = "èœå•类型")] public int? MenuType { get; set; } [Navigate(NavigateType.OneToMany, nameof(ParentId), nameof(MenuId)), SugarColumn(IsIgnore = true, IsNullable = true)] public List<Sys_Menu> Menus { get; set; } [SugarColumn(IsIgnore = true)] public List<Sys_Actions> Actions { get; set; } } }