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.
 
 

31 lines
758 B

namespace Znyc.Cloudcar.Admin.Commons.Entitys
{
/// <summary>
/// Token返回结果对象
/// </summary>
public class TokenResult
{
/// <summary>
/// 获取到的凭证值
/// </summary>
public string AccessToken { get; set; }
/// <summary>
/// 凭证有效时间,单位:分钟
/// </summary>
public int ExpiresIn { get; set; }
}
public class GrantType
{
/// <summary>
/// 密码校验。
/// </summary>
public const string Password = "password";
/// <summary>
/// ClientCredential。
/// </summary>
public const string ClientCredentials = "client_credential";
}
}