104 lines
2.7 KiB
C#
104 lines
2.7 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Admin.NET.Application
|
||
{
|
||
/// <summary>
|
||
///
|
||
/// </summary>
|
||
public class WeChatOauthinfo
|
||
{
|
||
public string openid { get; set; }
|
||
public string session_key { get; set; }
|
||
public string unionid { get; set; }
|
||
public string errcode { get; set; }
|
||
public string errmsg { get; set; }
|
||
|
||
}
|
||
|
||
|
||
public class UserPhone_Info
|
||
{
|
||
public int errcode { get; set; }
|
||
public string errmsg { get; set; }
|
||
public Phone_Info phone_info { get; set; }
|
||
}
|
||
|
||
public class Phone_Info
|
||
{
|
||
public string phoneNumber { get; set; }
|
||
public string purePhoneNumber { get; set; }
|
||
public int countryCode { get; set; }
|
||
public Watermark watermark { get; set; }
|
||
}
|
||
|
||
public class Watermark
|
||
{
|
||
public int timestamp { get; set; }
|
||
public string appid { get; set; }
|
||
}
|
||
|
||
|
||
public class AccessTokenResult
|
||
{
|
||
/// <summary>
|
||
/// 获取到的凭证
|
||
/// </summary>
|
||
public string? access_token { get; set; }
|
||
/// <summary>
|
||
/// 凭证有效时间,单位:秒。目前是7200秒之内的值。
|
||
/// </summary>
|
||
public long expires_in { get; set; }
|
||
/// <summary>
|
||
/// 错误码
|
||
/// </summary>
|
||
public long errcode { get; set; }
|
||
/// <summary>
|
||
/// 错误信息
|
||
/// </summary>
|
||
public string? errmsg { get; set; }
|
||
}
|
||
|
||
public class GetPhoneInfo
|
||
{
|
||
public string encryptedData { get; set; }
|
||
|
||
public string iv { get; set; }
|
||
|
||
public string openId { get; set; }
|
||
|
||
|
||
public string code { get; set; }
|
||
public string session_key { get; set; }
|
||
}
|
||
|
||
public class WeChatModel
|
||
{
|
||
public string appId { get; set; }
|
||
public string nonceStr { get; set; }
|
||
public string package { get; set; }
|
||
public string signType { get; set; }
|
||
public string timeStamp { get; set; }
|
||
}
|
||
|
||
public class WeChatPayRespose
|
||
{
|
||
public string appid { get; set; }
|
||
public string mchi_id { get; set; }
|
||
public string device_info { get; set; }
|
||
public string nonce_str { get; set; }
|
||
public string sign { get; set; }
|
||
public string result_code { get; set; }
|
||
public string err_code { get; set; }
|
||
public string err_code_des { get; set; }
|
||
public string trade_type { get; set; }
|
||
public string prepay_id { get; set; }
|
||
public string code_url { get; set; }
|
||
public string timeStamp { get; set; }
|
||
public string orderid { get; set; }
|
||
}
|
||
}
|