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.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Security.Claims;
|
|
|
|
|
using EntrustSettle.Model;
|
|
|
|
|
|
|
|
|
|
namespace EntrustSettle.Common.HttpContextUser
|
|
|
|
|
{
|
|
|
|
|
public interface IUser
|
|
|
|
|
{
|
|
|
|
|
string ID { get; } //大简云的用户Id为字符串类型,所以这里也用字符串类型
|
|
|
|
|
string Name { get; }
|
|
|
|
|
string CompanyId { get; }
|
|
|
|
|
string CompanyName { get; }
|
|
|
|
|
string Mobile { get; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool IsAuthenticated();
|
|
|
|
|
IEnumerable<Claim> GetClaimsIdentity();
|
|
|
|
|
List<string> GetClaimValueByType(string ClaimType);
|
|
|
|
|
string GetToken();
|
|
|
|
|
List<string> GetUserInfoFromToken(string ClaimType);
|
|
|
|
|
MessageModel<string> MessageModel { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//适配项目
|
|
|
|
|
//long ID { get; }
|
|
|
|
|
//long TenantId { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|