SysMenu.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using ERP.Core.Enums;
  2. using ERP.Framework.Enum;
  3. using ERP.Framework.WebApi;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace ERP.Core.Entities
  6. {
  7. [Table("sys_menu")]
  8. public class SysMenu : TreeEntity<SysMenu>
  9. {
  10. /// <summary>
  11. /// 菜单名称
  12. /// </summary>
  13. public virtual string MenuName { get; set; } = string.Empty;
  14. /// <summary>
  15. /// 菜单路由
  16. /// </summary>
  17. public virtual string? Path { get; set; }
  18. /// <summary>
  19. /// 组件路径
  20. /// </summary>
  21. public virtual string? Component { get; set; }
  22. /// <summary>
  23. /// 查询参数
  24. /// </summary>
  25. public virtual bool IsCache { get; set; }
  26. /// <summary>
  27. /// 显示隐藏
  28. /// </summary>
  29. public virtual bool Visible { get; set; }
  30. /// <summary>
  31. /// 菜单类型
  32. /// </summary>
  33. public virtual MenuTypeEnum MenuType { get; set; }
  34. /// <summary>
  35. /// 菜单状态
  36. /// </summary>
  37. public virtual StatusEnum MenuStatus { get; set; }
  38. /// <summary>
  39. /// 菜单图标
  40. /// </summary>
  41. public virtual string? Icon { get; set; }
  42. /// <summary>
  43. /// 权限标识
  44. /// </summary>
  45. public virtual string? Permission { get; set; }
  46. }
  47. }