refactor: 管理端去租户过滤并Portal化RBAC菜单
This commit is contained in:
@@ -4,10 +4,20 @@ using TakeoutSaaS.Shared.Abstractions.Entities;
|
||||
namespace TakeoutSaaS.Domain.Identity.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// 管理后台账户实体(平台管理员、租户管理员或商户员工)。
|
||||
/// 后台账户实体(按 Portal 区分平台管理员与租户后台账号)。
|
||||
/// </summary>
|
||||
public sealed class IdentityUser : MultiTenantEntityBase
|
||||
public sealed class IdentityUser : AuditableEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 账号所属 Portal。
|
||||
/// </summary>
|
||||
public PortalType Portal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属租户 ID(Portal=Tenant 时必填;Portal=Admin 时必须为空)。
|
||||
/// </summary>
|
||||
public long? TenantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 登录账号。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user