忽略
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取公众号授权连接的URL
|
||||
/// </summary>
|
||||
public class GetAuthenticationUrlRequest
|
||||
{
|
||||
public string component_appid { get; set; }
|
||||
/// <summary>
|
||||
/// 从<see cref="GetPreAuthCodeRequest"/>来
|
||||
/// </summary>
|
||||
public string pre_auth_code { get; set; }
|
||||
public string redirect_uri { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取公众号授权连接的URL
|
||||
/// </summary>
|
||||
public class GetAuthenticationUrlRequest
|
||||
{
|
||||
public string component_appid { get; set; }
|
||||
/// <summary>
|
||||
/// 从<see cref="GetPreAuthCodeRequest"/>来
|
||||
/// </summary>
|
||||
public string pre_auth_code { get; set; }
|
||||
public string redirect_uri { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class GetAuthorizerClientUserOpenIdRequest
|
||||
{
|
||||
public object AuthorizerAppId { get; set; }
|
||||
public object CallbackCode { get; set; }
|
||||
public object AppID { get; set; }
|
||||
public object ComponentAccessToken { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class GetAuthorizerClientUserOpenIdRequest
|
||||
{
|
||||
public object AuthorizerAppId { get; set; }
|
||||
public object CallbackCode { get; set; }
|
||||
public object AppID { get; set; }
|
||||
public object ComponentAccessToken { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,17 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
|
||||
|
||||
//{"authorizer_info":{"nick_name":"etor生活","head_img":"http:\/\/wx.qlogo.cn\/mmopen\/nlGmMCWo3wjyEnPPhOv2ygZbyEfyHmQHURK1odOyqGTys5kpdwFCmFo4PV6j2lCtkIWzqCJJvy9Ml7LS1XqUY3wsYn5lHKRX\/0","service_type_info":{"id":2},"verify_type_info":{"id":0},"user_name":"gh_d2ce4e1abd93","alias":"","qrcode_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/OdctpfnnOo6dEuSOQRFTK9V4ue1yxH7UGAZuKtJlN5M64Grm8tRWgSEnrYWIPlSUf2AaKwialhGWh4wLbHbZ1ng\/0","business_info":{"open_pay":0,"open_shake":0,"open_scan":0,"open_card":0,"open_store":0},"idc":1,"principal_name":"河南云拓智能科技有限公司","signature":"etor生活,围绕商业综合体为周边人群提供智慧、便捷化服务的生活助手"},"authorization_info":{"authorizer_appid":"wx5cf944c37bf234ee","authorizer_refresh_token":"refreshtoken@@@fxrfTkTrpHPEHMDjGFWvljuB_JFW4VPQY7kmkbjamXY","func_info":[{"funcscope_category":{"id":1}},{"funcscope_category":{"id":15}},{"funcscope_category":{"id":4}},{"funcscope_category":{"id":7}},{"funcscope_category":{"id":2}},{"funcscope_category":{"id":3}},{"funcscope_category":{"id":11}}]}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class GetAuthorizerInfoRequest
|
||||
{
|
||||
public string component_access_token { get; set; }
|
||||
public string component_appid { get; set; }
|
||||
public string authorizer_appid { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
|
||||
|
||||
//{"authorizer_info":{"nick_name":"etor生活","head_img":"http:\/\/wx.qlogo.cn\/mmopen\/nlGmMCWo3wjyEnPPhOv2ygZbyEfyHmQHURK1odOyqGTys5kpdwFCmFo4PV6j2lCtkIWzqCJJvy9Ml7LS1XqUY3wsYn5lHKRX\/0","service_type_info":{"id":2},"verify_type_info":{"id":0},"user_name":"gh_d2ce4e1abd93","alias":"","qrcode_url":"http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/OdctpfnnOo6dEuSOQRFTK9V4ue1yxH7UGAZuKtJlN5M64Grm8tRWgSEnrYWIPlSUf2AaKwialhGWh4wLbHbZ1ng\/0","business_info":{"open_pay":0,"open_shake":0,"open_scan":0,"open_card":0,"open_store":0},"idc":1,"principal_name":"河南云拓智能科技有限公司","signature":"etor生活,围绕商业综合体为周边人群提供智慧、便捷化服务的生活助手"},"authorization_info":{"authorizer_appid":"wx5cf944c37bf234ee","authorizer_refresh_token":"refreshtoken@@@fxrfTkTrpHPEHMDjGFWvljuB_JFW4VPQY7kmkbjamXY","func_info":[{"funcscope_category":{"id":1}},{"funcscope_category":{"id":15}},{"funcscope_category":{"id":4}},{"funcscope_category":{"id":7}},{"funcscope_category":{"id":2}},{"funcscope_category":{"id":3}},{"funcscope_category":{"id":11}}]}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class GetAuthorizerInfoRequest
|
||||
{
|
||||
public string component_access_token { get; set; }
|
||||
public string component_appid { get; set; }
|
||||
public string authorizer_appid { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,25 +1,25 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取<seealso cref="authorization_code"/>代表的第三方App的api执行权限
|
||||
/// </summary>
|
||||
public class GetAuthorizerInvokeAccessTokenRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 第三方平台的访问令牌
|
||||
/// </summary>
|
||||
public string component_access_token { get; set; }
|
||||
/// <summary>
|
||||
/// 第三方平台的AppId
|
||||
/// </summary>
|
||||
public string component_appid { get; set; }
|
||||
/// <summary>
|
||||
/// 授权码,在公众号授权后,发送到回调地址上
|
||||
/// 从<see cref="GetAuthenticationUrlRequest"/>拿到authorization_code
|
||||
/// </summary>
|
||||
public string authorization_code
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取<seealso cref="authorization_code"/>代表的第三方App的api执行权限
|
||||
/// </summary>
|
||||
public class GetAuthorizerInvokeAccessTokenRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 第三方平台的访问令牌
|
||||
/// </summary>
|
||||
public string component_access_token { get; set; }
|
||||
/// <summary>
|
||||
/// 第三方平台的AppId
|
||||
/// </summary>
|
||||
public string component_appid { get; set; }
|
||||
/// <summary>
|
||||
/// 授权码,在公众号授权后,发送到回调地址上
|
||||
/// 从<see cref="GetAuthenticationUrlRequest"/>拿到authorization_code
|
||||
/// </summary>
|
||||
public string authorization_code
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +1,17 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取第三方App的AccessToken
|
||||
/// <see cref="GetPreAuthCodeRequest"/>使用
|
||||
///
|
||||
/// </summary>
|
||||
public class GetComponentAccessTokenRequest
|
||||
{
|
||||
public string component_appid { get; set; }
|
||||
public string component_appsecret { get; set; }
|
||||
/// <summary>
|
||||
/// <see cref="GetComponentVerifyTicketRequest"/>这个请求可以拿到
|
||||
/// </summary>
|
||||
public string component_verify_ticket { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取第三方App的AccessToken
|
||||
/// <see cref="GetPreAuthCodeRequest"/>使用
|
||||
///
|
||||
/// </summary>
|
||||
public class GetComponentAccessTokenRequest
|
||||
{
|
||||
public string component_appid { get; set; }
|
||||
public string component_appsecret { get; set; }
|
||||
/// <summary>
|
||||
/// <see cref="GetComponentVerifyTicketRequest"/>这个请求可以拿到
|
||||
/// </summary>
|
||||
public string component_verify_ticket { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 从微信推送的消息内拉取ticket
|
||||
/// </summary>
|
||||
public class GetComponentVerifyTicketRequest
|
||||
{
|
||||
public string TicketSourceServerUrl { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 从微信推送的消息内拉取ticket
|
||||
/// </summary>
|
||||
public class GetComponentVerifyTicketRequest
|
||||
{
|
||||
public string TicketSourceServerUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class GetPreAuthCodeRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="GetComponentAccessTokenRequest"/>拿到的
|
||||
/// </summary>
|
||||
public string component_access_token { get; set; }
|
||||
public string component_appid { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class GetPreAuthCodeRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="GetComponentAccessTokenRequest"/>拿到的
|
||||
/// </summary>
|
||||
public string component_access_token { get; set; }
|
||||
public string component_appid { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class GetSavedAuthorizerInfoRequest
|
||||
{
|
||||
public string DomainUrl { get; set; }
|
||||
public string AppId { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class GetSavedAuthorizerInfoRequest
|
||||
{
|
||||
public string DomainUrl { get; set; }
|
||||
public string AppId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取wechat推送的ticket
|
||||
/// </summary>
|
||||
public class GetWechatTicketRequest
|
||||
{
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取wechat推送的ticket
|
||||
/// </summary>
|
||||
public class GetWechatTicketRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,51 +1,51 @@
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class jsapi_ticket
|
||||
{
|
||||
public static object get_locker = new object();
|
||||
public int errcode { get; set; }
|
||||
public string errmsg { get; set; }
|
||||
public string ticket { get; set; }
|
||||
public int expires_in { get; set; }
|
||||
public int created_timestamp { get; set; }
|
||||
|
||||
public bool is_expired
|
||||
{
|
||||
get
|
||||
{
|
||||
var dt = (DateTime.Now.TimestampFrom19700101() - this.created_timestamp);
|
||||
|
||||
return errcode != 0 || dt < 0 || dt > 6000;
|
||||
}
|
||||
}
|
||||
}
|
||||
public class wx_config
|
||||
{
|
||||
public bool debug { get; set; }
|
||||
public string appId { get; set; }
|
||||
public string timestamp { get; set; }
|
||||
public string nonceStr { get; set; }
|
||||
public string signature { get; set; }
|
||||
public List<string> jsApiList { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取wxjs配置请求
|
||||
/// </summary>
|
||||
public class GetWxJsConfigRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 公众号appid
|
||||
/// </summary>
|
||||
public string Appid { get; set; }
|
||||
/// <summary>
|
||||
/// 当前的请求地址
|
||||
/// </summary>
|
||||
public string CurrentUrl { get; set; }
|
||||
}
|
||||
using Hncore.Infrastructure.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class jsapi_ticket
|
||||
{
|
||||
public static object get_locker = new object();
|
||||
public int errcode { get; set; }
|
||||
public string errmsg { get; set; }
|
||||
public string ticket { get; set; }
|
||||
public int expires_in { get; set; }
|
||||
public int created_timestamp { get; set; }
|
||||
|
||||
public bool is_expired
|
||||
{
|
||||
get
|
||||
{
|
||||
var dt = (DateTime.Now.TimestampFrom19700101() - this.created_timestamp);
|
||||
|
||||
return errcode != 0 || dt < 0 || dt > 6000;
|
||||
}
|
||||
}
|
||||
}
|
||||
public class wx_config
|
||||
{
|
||||
public bool debug { get; set; }
|
||||
public string appId { get; set; }
|
||||
public string timestamp { get; set; }
|
||||
public string nonceStr { get; set; }
|
||||
public string signature { get; set; }
|
||||
public List<string> jsApiList { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取wxjs配置请求
|
||||
/// </summary>
|
||||
public class GetWxJsConfigRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 公众号appid
|
||||
/// </summary>
|
||||
public string Appid { get; set; }
|
||||
/// <summary>
|
||||
/// 当前的请求地址
|
||||
/// </summary>
|
||||
public string CurrentUrl { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,19 +1,19 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
// {
|
||||
//"component_appid":"appid_value",
|
||||
//"authorizer_appid":"auth_appid_value",
|
||||
//"authorizer_refresh_token":"refresh_token_value",
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 刷新从<see cref="GetAuthorizerInvokeAccessTokenRequest"/>得到的AccessToken
|
||||
/// </summary>
|
||||
public class RefreshAuthorizerInvokeAccessTokenRequest
|
||||
{
|
||||
public string component_appid { get; set; }
|
||||
public string authorizer_appid { get; set; }
|
||||
public string authorizer_refresh_token { get; set; }
|
||||
public string component_access_token { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
// {
|
||||
//"component_appid":"appid_value",
|
||||
//"authorizer_appid":"auth_appid_value",
|
||||
//"authorizer_refresh_token":"refresh_token_value",
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 刷新从<see cref="GetAuthorizerInvokeAccessTokenRequest"/>得到的AccessToken
|
||||
/// </summary>
|
||||
public class RefreshAuthorizerInvokeAccessTokenRequest
|
||||
{
|
||||
public string component_appid { get; set; }
|
||||
public string authorizer_appid { get; set; }
|
||||
public string authorizer_refresh_token { get; set; }
|
||||
public string component_access_token { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
namespace Hncore.Wx.Open
|
||||
{
|
||||
public class SaveAuthorizerInfoRequest
|
||||
{
|
||||
public string Domain { get; set; }
|
||||
public authorizer_info AuthorizerInfo { get; set; }
|
||||
public authorization_info AuthorizationInfo { get; set; }
|
||||
}
|
||||
namespace Hncore.Wx.Open
|
||||
{
|
||||
public class SaveAuthorizerInfoRequest
|
||||
{
|
||||
public string Domain { get; set; }
|
||||
public authorizer_info AuthorizerInfo { get; set; }
|
||||
public authorization_info AuthorizationInfo { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Wx.Open
|
||||
{
|
||||
public class SaveWechatAppMenuRequest
|
||||
{
|
||||
}
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Hncore.Wx.Open
|
||||
{
|
||||
public class SaveWechatAppMenuRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 更新微信推送的票据
|
||||
/// </summary>
|
||||
public class UpdateWechatTicketRequest
|
||||
{
|
||||
public string NewTicket { get; set; }
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
/// <summary>
|
||||
/// 更新微信推送的票据
|
||||
/// </summary>
|
||||
public class UpdateWechatTicketRequest
|
||||
{
|
||||
public string NewTicket { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,38 +1,38 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class UploadWxImageMaterialRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否永久素材
|
||||
/// </summary>
|
||||
public bool IsTemp { get; set; }
|
||||
/// <summary>
|
||||
/// image 图片 thumb 缩略图
|
||||
/// </summary>
|
||||
public string MediaType { get; set; }
|
||||
/// <summary>
|
||||
/// 图片名称
|
||||
/// </summary>
|
||||
public string imagename { get; set; }
|
||||
/// <summary>
|
||||
/// 分组id,默认0
|
||||
/// </summary>
|
||||
public int groupid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 小区/写字楼编码
|
||||
/// </summary>
|
||||
public string projectcode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公众号appid
|
||||
/// </summary>
|
||||
public string appid { get; set; }
|
||||
/// <summary>
|
||||
///图片地址
|
||||
/// </summary>
|
||||
public string url { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class UploadWxImageMaterialRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否永久素材
|
||||
/// </summary>
|
||||
public bool IsTemp { get; set; }
|
||||
/// <summary>
|
||||
/// image 图片 thumb 缩略图
|
||||
/// </summary>
|
||||
public string MediaType { get; set; }
|
||||
/// <summary>
|
||||
/// 图片名称
|
||||
/// </summary>
|
||||
public string imagename { get; set; }
|
||||
/// <summary>
|
||||
/// 分组id,默认0
|
||||
/// </summary>
|
||||
public int groupid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 小区/写字楼编码
|
||||
/// </summary>
|
||||
public string projectcode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公众号appid
|
||||
/// </summary>
|
||||
public string appid { get; set; }
|
||||
/// <summary>
|
||||
///图片地址
|
||||
/// </summary>
|
||||
public string url { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class UploadWxMediaRequest
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class UploadWxMediaRequest
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class WechatRequestBase
|
||||
{
|
||||
public int OwnerID { get; set; }
|
||||
public int OperaterID { get; set; }
|
||||
public int ProjectCode { get; set; }
|
||||
protected string _url;
|
||||
public string url { get { return _url; } }
|
||||
public string access_token { get; set; }
|
||||
}
|
||||
public class WechatRequestBase<TData> : WechatRequestBase
|
||||
{
|
||||
public TData post_body { get; set; }
|
||||
}
|
||||
}
|
||||
namespace Etor.Wx.Open
|
||||
{
|
||||
public class WechatRequestBase
|
||||
{
|
||||
public int OwnerID { get; set; }
|
||||
public int OperaterID { get; set; }
|
||||
public int ProjectCode { get; set; }
|
||||
protected string _url;
|
||||
public string url { get { return _url; } }
|
||||
public string access_token { get; set; }
|
||||
}
|
||||
public class WechatRequestBase<TData> : WechatRequestBase
|
||||
{
|
||||
public TData post_body { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user