using System; using SqlSugar; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Admin.Core.Model { /// ///菜单权限表实体类 /// [Table("SysMenu")] [SugarTable( "SysMenu", "admin_sqlite")] public class SysMenu { /// /// 菜单ID /// [Key] [SugarColumn(IsPrimaryKey=true,IsIdentity=true)] [Required] public int MenuID { get; set; } /// /// 菜单名称 /// public string MenuName { get; set; } /// /// 父菜单ID /// public int? ParentID { get; set; } /// /// 显示顺序 /// public int? OrderNum { get; set; } /// /// 路由地址 /// public string Path { get; set; } /// /// 组件路径 /// public string Component { get; set; } /// /// 是否为外链(0是 1否) /// public bool? IsFrame { get; set; } /// /// 是否缓存(0缓存 1不缓存) /// public bool? IsCache { get; set; } /// /// 菜单类型(M目录 C菜单 F按钮) /// public string MenuType { get; set; } /// /// 菜单状态(0显示 1隐藏) /// public bool? Visible { get; set; } /// /// 菜单状态(0正常 1停用) /// public int? Status { get; set; } /// /// 权限标识 /// public string Perms { get; set; } /// /// ApiUrl /// public string ApiUrl { get; set; } /// /// 菜单图标 /// public string Icon { get; set; } /// /// 备注 /// public string Remark { get; set; } /// /// 创建者 /// public string CreateBy { get; set; } /// /// 创建时间 /// public DateTime? CreateTime { get; set; } /// /// 更新者 /// public string UpdateBy { get; set; } /// /// 更新时间 /// public DateTime? UpdateTime { get; set; } } }