refactor: 管理端去租户过滤并Portal化RBAC菜单

This commit is contained in:
2026-01-29 10:46:49 +00:00
parent ea9c20d8a9
commit b3639ff34b
115 changed files with 1106 additions and 1092 deletions

View File

@@ -9,6 +9,11 @@ namespace TakeoutSaaS.Application.Identity.Contracts;
/// </summary>
public sealed record UserDetailDto
{
/// <summary>
/// 账号所属 Portal。
/// </summary>
public PortalType Portal { get; init; }
/// <summary>
/// 用户 ID。
/// </summary>
@@ -16,10 +21,10 @@ public sealed record UserDetailDto
public long UserId { get; init; }
/// <summary>
/// 租户 ID。
/// 租户 IDPortal=Tenant 必填Portal=Admin 为空)
/// </summary>
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
public long TenantId { get; init; }
[JsonConverter(typeof(NullableSnowflakeIdJsonConverter))]
public long? TenantId { get; init; }
/// <summary>
/// 商户 ID。