You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
namespace Znyc.Admin.Commons.Entitys
|
|
{
|
|
/// <summary>
|
|
/// Token返回结果对象
|
|
/// </summary>
|
|
public class TokenResult
|
|
{
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public TokenResult()
|
|
{
|
|
}
|
|
|
|
private string m_AccessToken;
|
|
private int m_ExpiresIn;
|
|
|
|
/// <summary>
|
|
/// 获取到的凭证值
|
|
/// </summary>
|
|
public string AccessToken
|
|
{
|
|
get => m_AccessToken;
|
|
set => m_AccessToken = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 凭证有效时间,单位:分钟
|
|
/// </summary>
|
|
public int ExpiresIn
|
|
{
|
|
get => m_ExpiresIn;
|
|
set => m_ExpiresIn = value;
|
|
}
|
|
}
|
|
|
|
public class GrantType
|
|
{
|
|
/// <summary>
|
|
/// 密码校验。
|
|
/// </summary>
|
|
public const string Password = "password";
|
|
|
|
/// <summary>
|
|
/// ClientCredential。
|
|
/// </summary>
|
|
public const string ClientCredentials = "client_credential";
|
|
}
|
|
}
|