You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
|
|
|
|
namespace DS.Module.UserModule;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 用户接口
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IUser
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取用户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
string UserId { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取用户名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
string UserName { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
string TenantId { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
string TenantName { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 机构ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
long OrgId { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返回Token
|
|
|
|
|
/// </summary>
|
|
|
|
|
string GetToken();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据Claim类型返回Claim的值
|
|
|
|
|
/// </summary>
|
|
|
|
|
string? GetClaimValueByType(string claimType);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 返回当前用户是否已经过认证
|
|
|
|
|
/// </summary>
|
|
|
|
|
bool IsAuthenticated();
|
|
|
|
|
}
|