using SqlSugar; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Myshipping.Core.Entity; /// /// 菜单表 /// [SugarTable("sys_menu")] [Description("菜单表")] public class SysMenu : DEntityBase { /// /// 父Id /// public long Pid { get; set; } /// /// 父Ids /// public string Pids { get; set; } /// /// 名称 /// [Required, MaxLength(20)] public string Name { get; set; } /// /// 编码 /// [Required, MaxLength(50)] public string Code { get; set; } /// /// 菜单类型(字典 0目录 1菜单 2按钮) /// public int Type { get; set; } /// /// 图标 /// [MaxLength(20)] public string Icon { get; set; } /// /// 路由地址 /// [MaxLength(100)] public string Router { get; set; } /// /// 组件地址 /// [MaxLength(100)] public string Component { get; set; } /// /// 权限标识 /// [MaxLength(100)] public string Permission { get; set; } /// /// 应用分类(应用编码) /// [MaxLength(50)] public string Application { get; set; } /// /// 打开方式(字典 0无 1组件 2内链 3外链) /// public int OpenType { get; set; } = 0; /// /// 是否可见(Y-是,N-否) /// [MaxLength(5)] public string Visible { get; set; } = "Y"; /// /// 内链地址 /// [MaxLength(100)] public string Link { get; set; } /// /// 重定向地址 /// [MaxLength(100)] public string Redirect { get; set; } /// /// 权重(字典 1系统权重 2业务权重) /// public int Weight { get; set; } = 2; /// /// 排序 /// public int Sort { get; set; } = 100; /// /// 备注 /// [MaxLength(100)] public string Remark { get; set; } /// /// 是否启用数据授权 /// public bool IsEnableDataScope { get; set; } /// /// 状态(字典 0正常 1停用 2删除) /// public CommonStatus Status { get; set; } = CommonStatus.ENABLE; }