fix: 管理后台登录按Portal精确匹配
This commit is contained in:
@@ -9,12 +9,18 @@ namespace TakeoutSaaS.Domain.Identity.Repositories;
|
||||
public interface IIdentityUserRepository
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据账号获取后台用户。
|
||||
/// 根据账号获取后台用户(按 Portal 与租户范围精确匹配)。
|
||||
/// </summary>
|
||||
/// <param name="portal">Portal 类型。</param>
|
||||
/// <param name="tenantId">租户 ID(Portal=Tenant 时必填;Portal=Admin 时必须为空)。</param>
|
||||
/// <param name="account">账号。</param>
|
||||
/// <param name="cancellationToken">取消标记。</param>
|
||||
/// <returns>后台用户或 null。</returns>
|
||||
Task<IdentityUser?> FindByAccountAsync(string account, CancellationToken cancellationToken = default);
|
||||
Task<IdentityUser?> FindByAccountAsync(
|
||||
PortalType portal,
|
||||
long? tenantId,
|
||||
string account,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 判断账号是否存在。
|
||||
|
||||
Reference in New Issue
Block a user