Menu.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using Volo.Abp;
  3. using Volo.Abp.Domain.Entities.Auditing;
  4. using Volo.Abp.MultiTenancy;
  5. namespace BaseService.Systems
  6. {
  7. public class Menu : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
  8. {
  9. public Guid? TenantId { get; set; }
  10. public Guid? FormId { get; set; }
  11. public Guid? Pid { get; set; }
  12. /// <summary>
  13. /// 菜单类型
  14. /// </summary>
  15. public int CategoryId { get; set; }
  16. public string Name { get; set; }
  17. public string Label { get; set; }
  18. public int Sort { get; set; }
  19. public string Path { get; set; }
  20. public string Component { get; set; }
  21. public string Permission { get; set; }
  22. public string Icon { get; set; }
  23. public bool Hidden { get; set; }
  24. public bool AlwaysShow { get; set; }
  25. /// <summary>
  26. /// 是否宿主菜单,if(TenantId!=null&&IsHost==true):停用租户菜单
  27. /// </summary>
  28. public bool IsHost { get; set; }
  29. public bool IsDeleted { get; set; }
  30. public Menu(Guid id) : base(id)
  31. {
  32. }
  33. }
  34. }