feat: add permission hierarchy tree
This commit is contained in:
@@ -20,6 +20,22 @@ public sealed class PermissionDto
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long TenantId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级权限 ID。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long ParentId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序值,值越小越靠前。
|
||||
/// </summary>
|
||||
public int SortOrder { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 权限类型(group/leaf)。
|
||||
/// </summary>
|
||||
public string Type { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 权限名称。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user