feat: add permission hierarchy tree

This commit is contained in:
2025-12-06 11:53:14 +08:00
parent d34f92ea1d
commit 37dc23f0c1
16 changed files with 1014 additions and 2 deletions

View File

@@ -7,6 +7,21 @@ namespace TakeoutSaaS.Domain.Identity.Entities;
/// </summary>
public sealed class Permission : MultiTenantEntityBase
{
/// <summary>
/// 父级权限 ID根节点为 0。
/// </summary>
public long ParentId { get; set; }
/// <summary>
/// 排序值,值越小越靠前。
/// </summary>
public int SortOrder { get; set; }
/// <summary>
/// 权限类型group/leaf
/// </summary>
public string Type { get; set; } = "leaf";
/// <summary>
/// 权限名称。
/// </summary>