namespace TakeoutSaaS.Application.Identity.Contracts; /// /// 登录用户档案。 /// public sealed class CurrentUserProfile { /// /// 用户 ID。 /// public Guid UserId { get; init; } /// /// 登录账号。 /// public string Account { get; init; } = string.Empty; /// /// 展示名称。 /// public string DisplayName { get; init; } = string.Empty; /// /// 所属租户 ID。 /// public Guid TenantId { get; init; } /// /// 所属商户 ID(平台管理员为空)。 /// public Guid? MerchantId { get; init; } /// /// 角色集合。 /// public string[] Roles { get; init; } = Array.Empty(); /// /// 权限集合。 /// public string[] Permissions { get; init; } = Array.Empty(); /// /// 头像地址(可选)。 /// public string? Avatar { get; init; } }