New file |
| | |
| | | // Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 |
| | | // |
| | | // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 |
| | | // |
| | | // 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! |
| | | |
| | | using Admin.NET.Core; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace FZCZTB.NET.MD.CutomerMd; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | [SugarTable("FBS_Menu", "客户系统菜单表")] |
| | | [SugarIndex("index_{table}_T", nameof(Title), OrderByType.Asc)] |
| | | [SugarIndex("index_{table}_T2", nameof(Type), OrderByType.Asc)] |
| | | [IncreTable] |
| | | public class FBS_Menu: EntityBaseTenant |
| | | { |
| | | /// <summary> |
| | | /// 父Id |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "父Id")] |
| | | public long Pid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 菜单类型(1目录 2菜单 3按钮) |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "菜单类型")] |
| | | public MenuTypeEnum Type { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 路由名称 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "路由名称", Length = 64)] |
| | | [MaxLength(64)] |
| | | public string? Name { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 路由地址 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "路由地址", Length = 128)] |
| | | [MaxLength(128)] |
| | | public string? Path { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 组件路径 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "组件路径", Length = 128)] |
| | | [MaxLength(128)] |
| | | public string? Component { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 重定向 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "重定向", Length = 128)] |
| | | [MaxLength(128)] |
| | | public string? Redirect { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 权限标识 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "权限标识", Length = 128)] |
| | | [MaxLength(128)] |
| | | public string? Permission { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 菜单名称 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "菜单名称", Length = 64)] |
| | | [Required, MaxLength(64)] |
| | | public virtual string Title { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 图标 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "图标", Length = 128)] |
| | | [MaxLength(128)] |
| | | public string? Icon { get; set; } = "ele-Menu"; |
| | | |
| | | /// <summary> |
| | | /// 是否内嵌 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "是否内嵌")] |
| | | public bool IsIframe { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 外链链接 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "外链链接", Length = 256)] |
| | | [MaxLength(256)] |
| | | public string? OutLink { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否隐藏 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "是否隐藏")] |
| | | public bool IsHide { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 是否缓存 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "是否缓存")] |
| | | public bool IsKeepAlive { get; set; } = true; |
| | | |
| | | /// <summary> |
| | | /// 是否固定 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "是否固定")] |
| | | public bool IsAffix { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "排序")] |
| | | public int OrderNo { get; set; } = 100; |
| | | |
| | | /// <summary> |
| | | /// 状态 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "状态")] |
| | | public StatusEnum Status { get; set; } = StatusEnum.Enable; |
| | | |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "备注", Length = 256)] |
| | | [MaxLength(256)] |
| | | public string? Remark { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 菜单子项 |
| | | /// </summary> |
| | | [SugarColumn(IsIgnore = true)] |
| | | public List<SysMenu> Children { get; set; } = new(); |
| | | } |