mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
feat(wxapi): 新增代商家管理小程序地理位置接口申请接口
This commit is contained in:
parent
405526e3f2
commit
b54a347138
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.create_map_poi_audit_info 事件的数据。</para>
|
||||
@ -12,7 +12,7 @@
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
[System.Xml.Serialization.XmlElement("audit_id")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
|
@ -520,6 +520,48 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Security
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/security/apply_privacy_interface 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-api-management/applyPrivacyInterface.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaSecurityApplyPrivacyInterfaceResponse> ExecuteWxaSecurityApplyPrivacyInterfaceAsync(this WechatApiClient client, Models.WxaSecurityApplyPrivacyInterfaceRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "wxa", "security", "apply_privacy_interface")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaSecurityApplyPrivacyInterfaceResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/security/get_privacy_interface 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-api-management/getPrivacyInterface.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaSecurityGetPrivacyInterfaceResponse> ExecuteWxaSecurityGetPrivacyInterfaceAsync(this WechatApiClient client, Models.WxaSecurityGetPrivacyInterfaceRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Get, "wxa", "security", "get_privacy_interface")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaSecurityGetPrivacyInterfaceResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Member
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/bind_tester 接口。</para>
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/add_store 接口的响应。</para>
|
||||
@ -14,7 +14,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/create_map_poi 接口的响应。</para>
|
||||
@ -14,7 +14,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("base_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("base_id")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_merchant_audit_info 接口的响应。</para>
|
||||
@ -14,7 +14,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/update_store 接口的响应。</para>
|
||||
@ -23,7 +23,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public int? AuditId { get; set; }
|
||||
public long? AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/api_wxa_querynickname 接口的请求。</para>
|
||||
@ -10,6 +10,6 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public int? AuditId { get; set; }
|
||||
public long? AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/setnickname 接口的响应。</para>
|
||||
@ -10,7 +10,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public int? AuditId { get; set; }
|
||||
public long? AuditId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置材料说明。
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/get_auditstatus 接口的请求。</para>
|
||||
@ -10,6 +10,6 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auditid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auditid")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_latest_auditstatus 接口的响应。</para>
|
||||
@ -10,7 +10,7 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auditid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auditid")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/speedupaudit 接口的请求。</para>
|
||||
@ -10,6 +10,6 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auditid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auditid")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/submit_audit 接口的响应。</para>
|
||||
@ -10,6 +10,6 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auditid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auditid")]
|
||||
public int AuditId { get; set; }
|
||||
public long AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,45 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/security/apply_privacy_interface 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecurityApplyPrivacyInterfaceRequest : WechatApiRequest, IInferable<WxaSecurityApplyPrivacyInterfaceRequest, WxaSecurityApplyPrivacyInterfaceResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置申请的 API 英文名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("api_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("api_name")]
|
||||
public string ApiName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申请原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("content")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("content")]
|
||||
public string ApplyReason { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置辅助说明图片 URL 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pic_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pic_list")]
|
||||
public IList<string>? PictureUrlList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置辅助说明视频 URL 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("video_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("video_list")]
|
||||
public IList<string>? VideoUrlList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置辅助说明网站 URL 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url_list")]
|
||||
public IList<string>? UrlList { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/security/apply_privacy_interface 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecurityApplyPrivacyInterfaceResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public long? AuditId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/security/get_privacy_interface 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSecurityGetPrivacyInterfaceRequest : WechatApiRequest, IInferable<WxaSecurityGetPrivacyInterfaceRequest, WxaSecurityGetPrivacyInterfaceResponse>
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/security/get_privacy_interface 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSecurityGetPrivacyInterfaceResponse : WechatApiResponse
|
||||
{
|
||||
public class Types
|
||||
{
|
||||
public class PrivacyInterface
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 API 英文名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("api_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("api_name")]
|
||||
public string ApiName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 API 中文名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("api_ch_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("api_ch_name")]
|
||||
public string ApiChineseName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 API 描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("api_desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("api_desc")]
|
||||
public string ApiDescription { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 API 文档链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("api_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("api_link")]
|
||||
public string? ApiLink { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分组名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("group_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("group_name")]
|
||||
public string? GroupName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申请单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public long? AuditId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申请状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申请时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("apply_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("apply_time")]
|
||||
public long? ApplyTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申请被驳回原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fail_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fail_reason")]
|
||||
public string? FailReason { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置隐私接口列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("interface_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("interface_list")]
|
||||
public Types.PrivacyInterface[] PrivacyInterfaceList { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"api_name": "wx.test",
|
||||
"content": "1312",
|
||||
"pic_list": [
|
||||
"pic_url1",
|
||||
"pic_url2"
|
||||
],
|
||||
"video_list": [ "video_url1", "video_ul2" ],
|
||||
"url_list": [ "url1", "url2" ]
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "getuserriskrank succ",
|
||||
"audit_id": 123456
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"interface_list": [
|
||||
{
|
||||
"api_name": "wx.chooseAddress",
|
||||
"api_ch_name": "获取用户收货地址",
|
||||
"api_desc": "调起用户编辑收货地址原生界面,并在编辑完成后返回用户选择的地址。",
|
||||
"status": 1,
|
||||
"api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/address/wx.chooseAddress.html",
|
||||
"group_name": "地理位置"
|
||||
},
|
||||
{
|
||||
"api_name": "wx.choosePoi",
|
||||
"api_ch_name": "选择位置,支持模糊定位(精确到市)和精确定位混选",
|
||||
"api_desc": "选择位置,支持模糊定位和精确定位混选",
|
||||
"status": 4,
|
||||
"audit_id": 421610267,
|
||||
"fail_reason": "小程序内未含有相应使用场景",
|
||||
"api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.choosePoi.html",
|
||||
"group_name": "地理位置"
|
||||
},
|
||||
{
|
||||
"api_name": "wx.getLocation",
|
||||
"api_ch_name": "获取当前的地理位置、速度 ",
|
||||
"api_desc": "获取当前的地理位置、速度。当用户离开小程序后,此接口无法调用。 ",
|
||||
"status": 1,
|
||||
"api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html ",
|
||||
"group_name": "地理位置"
|
||||
},
|
||||
{
|
||||
"api_name": "wx.onLocationChange",
|
||||
"api_ch_name": "监听实时地理位置变化事件",
|
||||
"api_desc": "监听实时地理位置变化事件。当用户离开小程序后,此接口无法调用。",
|
||||
"status": 1,
|
||||
"api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html",
|
||||
"group_name": "地理位置"
|
||||
},
|
||||
{
|
||||
"api_name": "wx.chooseLocation",
|
||||
"api_ch_name": "打开地图选择位置",
|
||||
"api_desc": "打开地图选择位置。",
|
||||
"status": 1,
|
||||
"api_link": "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html",
|
||||
"group_name": "地理位置"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user