refactor: 管理端去租户过滤并Portal化RBAC菜单
This commit is contained in:
@@ -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。
|
||||
/// 租户 ID(Portal=Tenant 必填;Portal=Admin 为空)。
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(SnowflakeIdJsonConverter))]
|
||||
public long TenantId { get; init; }
|
||||
[JsonConverter(typeof(NullableSnowflakeIdJsonConverter))]
|
||||
public long? TenantId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 商户 ID。
|
||||
|
||||
Reference in New Issue
Block a user