Files
juipnet/Infrastructure/WxApi/Model/WxOpenModel.cs

99 lines
3.9 KiB
C#
Raw Normal View History

2020-10-07 20:25:03 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Hncore.Wx.Open
{
public class wechat_access_token
{
public string access_token { get; set; }
public int expires_in { get; set; }
public string refresh_token { get; set; }
public string openid { get; set; }
public string scope { get; set; }
public int errcode { get; set; }
public string errmsg { get; set; }
}
public class authorizer_info
{
public string nick_name { get; set; }
public string head_img { get; set; }
public Service_Type_Info service_type_info { get; set; }
public Verify_Type_Info verify_type_info { get; set; }
public string user_name { get; set; }
public string alias { get; set; }
public string qrcode_url { get; set; }
public bussiness_info business_info { get; set; }
public int idc { get; set; }
public string principal_name { get; set; }
public string signature { get; set; }
}
public class Service_Type_Info
{
public int id { get; set; }
}
public class Verify_Type_Info
{
public int id { get; set; }
}
public class bussiness_info
{
public int open_pay { get; set; }
public int open_shake { get; set; }
public int open_scan { get; set; }
public int open_card { get; set; }
public int open_store { get; set; }
}
/// <summary>
/// 授权信息数据模型
/// </summary>
///
public class authorization_info
{
/// <summary>
/// 授权方(物业公众号)的AppId
/// </summary>
public string authorizer_appid { get; set; }
/// <summary>
/// 授权方(物业公众号)的访问令牌AccessToken
/// </summary>
public string authorizer_access_token { get; set; }
/// <summary>
/// 授权方访问令牌的过期时间
/// </summary>
public int expires_in { get; set; }
/// <summary>
/// 授权方刷新令牌,当访问令牌过期时,使用此刷新令牌重新获取新的访问令牌(此字段要保存)
/// </summary>
public string authorizer_refresh_token { get; set; }
/// <summary>
/// 授权给开发者的权限集列表ID为1到26分别代表 1、消息管理权限 2、用户管理权限 3、帐号服务权限 4、网页服务权限 5、微信小店权限 6、微信多客服权限 7、群发与通知权限 8、微信卡券权限 9、微信扫一扫权限 10、微信连WIFI权限 11、素材管理权限 12、微信摇周边权限 13、微信门店权限 15、自定义菜单权限 16、获取认证状态及信息 17、帐号管理权限小程序 18、开发管理与数据分析权限小程序 19、客服消息管理权限小程序 20、微信登录权限小程序 21、数据分析权限小程序 22、城市服务接口权限 23、广告管理权限 24、开放平台帐号管理权限 25、 开放平台帐号管理权限(小程序) 26、微信电子发票权限 41、搜索widget的权限 请注意: 1该字段的返回不会考虑公众号是否具备该权限集的权限因为可能部分具备请根据公众号的帐号类型和认证情况来判断公众号的接口权限。
/// </summary>
public func_info[] func_info { get; set; }
}
public class func_info
{
public funcscope_category funcscope_category { get; set; }
}
public class funcscope_category
{
public int id { get; set; }
}
public class WechatThirdpartApplicationInfomation
{
public authorizer_info authorizier_info { get; set; }
public authorization_info authorization_info { get; set; }
}
}