using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace APT.Utility
{
    public class TokenRequest
    {
        public string UserName { get; set; }

        public string Password { get; set; }
        public string random { get; set; }
        public string phoneCode { get; set; }
        public string orgId { get; set; }
        public string verificationCode { get; set; }
        /// <summary>
        /// 0：密码  1：令牌
        /// </summary>
        public int Grant_type { get; set; }
        public string ClientId { get; set; }
        public string ClinetSecret { get; set; }

        public string RefreshToken { get; set; }    
    }

    public class TokenLoginRequest
    {
        /// <summary>
        /// 手机号
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string password { get; set; }      
        /// <summary>
        /// 验证码
        /// </summary>
        public string phoneCode { get; set; }  
        /// <summary>
        /// 验证类型
        /// </summary>
        public int grantType { get; set; }
        /// <summary>
        /// 刷新token
        /// </summary>
        public string refreshToken { get; set; }
        public string userId { get; set; }
    }
}
