diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/POI/CreateMapPOIAuditInfoEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/POI/CreateMapPOIAuditInfoEvent.cs index 9741163c..0630df4b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/POI/CreateMapPOIAuditInfoEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/POI/CreateMapPOIAuditInfoEvent.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Events +namespace SKIT.FlurlHttpClient.Wechat.Api.Events { /// /// 表示 EVENT.create_map_poi_audit_info 事件的数据。 @@ -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; } /// /// 获取或设置审核状态。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs index a78663f0..ef49322d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs @@ -520,6 +520,48 @@ namespace SKIT.FlurlHttpClient.Wechat.Api } #endregion + #region Security + /// + /// 异步调用 [POST] /wxa/security/apply_privacy_interface 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-api-management/applyPrivacyInterface.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [GET] /wxa/security/get_privacy_interface 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/privacy-api-management/getPrivacyInterface.html + /// + /// + /// + /// + /// + public static async Task 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(flurlReq, data: request, cancellationToken: cancellationToken); + } + #endregion + #region Member /// /// 异步调用 [POST] /wxa/bind_tester 接口。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaAddStoreResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaAddStoreResponse.cs index 9b98d4e9..25d5d0cf 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaAddStoreResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaAddStoreResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/add_store 接口的响应。 @@ -14,7 +14,7 @@ /// [Newtonsoft.Json.JsonProperty("audit_id")] [System.Text.Json.Serialization.JsonPropertyName("audit_id")] - public int AuditId { get; set; } + public long AuditId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaCreateMapPOIResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaCreateMapPOIResponse.cs index 9b7f8dc8..607b2ee1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaCreateMapPOIResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaCreateMapPOIResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/create_map_poi 接口的响应。 @@ -14,7 +14,7 @@ /// [Newtonsoft.Json.JsonProperty("base_id")] [System.Text.Json.Serialization.JsonPropertyName("base_id")] - public int AuditId { get; set; } + public long AuditId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaGetMerchantAuditInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaGetMerchantAuditInfoResponse.cs index 694f35d5..f2fbf7e8 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaGetMerchantAuditInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaGetMerchantAuditInfoResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [GET] /wxa/get_merchant_audit_info 接口的响应。 @@ -14,7 +14,7 @@ /// [Newtonsoft.Json.JsonProperty("audit_id")] [System.Text.Json.Serialization.JsonPropertyName("audit_id")] - public int AuditId { get; set; } + public long AuditId { get; set; } /// /// 获取或设置审核状态。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaUpdateStoreResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaUpdateStoreResponse.cs index 18d75ac2..3e3e5cf1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaUpdateStoreResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/WxaStore/WxaUpdateStoreResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/update_store 接口的响应。 @@ -23,7 +23,7 @@ /// [Newtonsoft.Json.JsonProperty("audit_id")] [System.Text.Json.Serialization.JsonPropertyName("audit_id")] - public int? AuditId { get; set; } + public long? AuditId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaApiWxaQueryNicknameRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaApiWxaQueryNicknameRequest.cs index f2e454df..cca7d6b1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaApiWxaQueryNicknameRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaApiWxaQueryNicknameRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/api_wxa_querynickname 接口的请求。 @@ -10,6 +10,6 @@ /// [Newtonsoft.Json.JsonProperty("audit_id")] [System.Text.Json.Serialization.JsonPropertyName("audit_id")] - public int? AuditId { get; set; } + public long? AuditId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetNicknameResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetNicknameResponse.cs index b11ceb8f..f9427748 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetNicknameResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetNicknameResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/setnickname 接口的响应。 @@ -10,7 +10,7 @@ /// [Newtonsoft.Json.JsonProperty("audit_id")] [System.Text.Json.Serialization.JsonPropertyName("audit_id")] - public int? AuditId { get; set; } + public long? AuditId { get; set; } /// /// 获取或设置材料说明。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetAuditStatusRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetAuditStatusRequest.cs index 7ba39e57..f80e53cd 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetAuditStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetAuditStatusRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/get_auditstatus 接口的请求。 @@ -10,6 +10,6 @@ /// [Newtonsoft.Json.JsonProperty("auditid")] [System.Text.Json.Serialization.JsonPropertyName("auditid")] - public int AuditId { get; set; } + public long AuditId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetLatestAuditStatusResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetLatestAuditStatusResponse.cs index ba1adf0f..5fbd8999 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetLatestAuditStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetLatestAuditStatusResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [GET] /wxa/get_latest_auditstatus 接口的响应。 @@ -10,7 +10,7 @@ /// [Newtonsoft.Json.JsonProperty("auditid")] [System.Text.Json.Serialization.JsonPropertyName("auditid")] - public int AuditId { get; set; } + public long AuditId { get; set; } /// /// 获取或设置审核状态。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSpeedupAuditRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSpeedupAuditRequest.cs index c822b736..7f0b76c1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSpeedupAuditRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSpeedupAuditRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/speedupaudit 接口的请求。 @@ -10,6 +10,6 @@ /// [Newtonsoft.Json.JsonProperty("auditid")] [System.Text.Json.Serialization.JsonPropertyName("auditid")] - public int AuditId { get; set; } + public long AuditId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSubmitAuditResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSubmitAuditResponse.cs index d01de727..9f422133 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSubmitAuditResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaSubmitAuditResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/submit_audit 接口的响应。 @@ -10,6 +10,6 @@ /// [Newtonsoft.Json.JsonProperty("auditid")] [System.Text.Json.Serialization.JsonPropertyName("auditid")] - public int AuditId { get; set; } + public long AuditId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceRequest.cs new file mode 100644 index 00000000..309f8fd1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceRequest.cs @@ -0,0 +1,45 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/security/apply_privacy_interface 接口的请求。 + /// + public class WxaSecurityApplyPrivacyInterfaceRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置申请的 API 英文名。 + /// + [Newtonsoft.Json.JsonProperty("api_name")] + [System.Text.Json.Serialization.JsonPropertyName("api_name")] + public string ApiName { get; set; } = string.Empty; + + /// + /// 获取或设置申请原因。 + /// + [Newtonsoft.Json.JsonProperty("content")] + [System.Text.Json.Serialization.JsonPropertyName("content")] + public string ApplyReason { get; set; } = string.Empty; + + /// + /// 获取或设置辅助说明图片 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("pic_list")] + [System.Text.Json.Serialization.JsonPropertyName("pic_list")] + public IList? PictureUrlList { get; set; } + + /// + /// 获取或设置辅助说明视频 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("video_list")] + [System.Text.Json.Serialization.JsonPropertyName("video_list")] + public IList? VideoUrlList { get; set; } + + /// + /// 获取或设置辅助说明网站 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("url_list")] + [System.Text.Json.Serialization.JsonPropertyName("url_list")] + public IList? UrlList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceResponse.cs new file mode 100644 index 00000000..98293281 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxa/security/apply_privacy_interface 接口的响应。 + /// + public class WxaSecurityApplyPrivacyInterfaceResponse : WechatApiResponse + { + /// + /// 获取或设置审核单 ID。 + /// + [Newtonsoft.Json.JsonProperty("audit_id")] + [System.Text.Json.Serialization.JsonPropertyName("audit_id")] + public long? AuditId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceRequest.cs new file mode 100644 index 00000000..e0b55f00 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceRequest.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [GET] /wxa/security/get_privacy_interface 接口的请求。 + /// + public class WxaSecurityGetPrivacyInterfaceRequest : WechatApiRequest, IInferable + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceResponse.cs new file mode 100644 index 00000000..4a84b9ae --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceResponse.cs @@ -0,0 +1,86 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [GET] /wxa/security/get_privacy_interface 接口的响应。 + /// + public class WxaSecurityGetPrivacyInterfaceResponse : WechatApiResponse + { + public class Types + { + public class PrivacyInterface + { + /// + /// 获取或设置 API 英文名。 + /// + [Newtonsoft.Json.JsonProperty("api_name")] + [System.Text.Json.Serialization.JsonPropertyName("api_name")] + public string ApiName { get; set; } = default!; + + /// + /// 获取或设置 API 中文名。 + /// + [Newtonsoft.Json.JsonProperty("api_ch_name")] + [System.Text.Json.Serialization.JsonPropertyName("api_ch_name")] + public string ApiChineseName { get; set; } = default!; + + /// + /// 获取或设置 API 描述。 + /// + [Newtonsoft.Json.JsonProperty("api_desc")] + [System.Text.Json.Serialization.JsonPropertyName("api_desc")] + public string ApiDescription { get; set; } = default!; + + /// + /// 获取或设置 API 文档链接。 + /// + [Newtonsoft.Json.JsonProperty("api_link")] + [System.Text.Json.Serialization.JsonPropertyName("api_link")] + public string? ApiLink { get; set; } + + /// + /// 获取或设置分组名称。 + /// + [Newtonsoft.Json.JsonProperty("group_name")] + [System.Text.Json.Serialization.JsonPropertyName("group_name")] + public string? GroupName { get; set; } + + /// + /// 获取或设置申请单 ID。 + /// + [Newtonsoft.Json.JsonProperty("audit_id")] + [System.Text.Json.Serialization.JsonPropertyName("audit_id")] + public long? AuditId { get; set; } + + /// + /// 获取或设置申请状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int? Status { get; set; } + + /// + /// 获取或设置申请时间戳。 + /// + [Newtonsoft.Json.JsonProperty("apply_time")] + [System.Text.Json.Serialization.JsonPropertyName("apply_time")] + public long? ApplyTimestamp { get; set; } + + /// + /// 获取或设置申请被驳回原因。 + /// + [Newtonsoft.Json.JsonProperty("fail_reason")] + [System.Text.Json.Serialization.JsonPropertyName("fail_reason")] + public string? FailReason { get; set; } + } + } + + /// + /// 获取或设置隐私接口列表。 + /// + [Newtonsoft.Json.JsonProperty("interface_list")] + [System.Text.Json.Serialization.JsonPropertyName("interface_list")] + public Types.PrivacyInterface[] PrivacyInterfaceList { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceRequest.json new file mode 100644 index 00000000..4013be16 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceRequest.json @@ -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" ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceResponse.json new file mode 100644 index 00000000..0085900f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityApplyPrivacyInterfaceResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "getuserriskrank succ", + "audit_id": 123456 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceResponse.json new file mode 100644 index 00000000..38fb8cb9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Security/WxaSecurityGetPrivacyInterfaceResponse.json @@ -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": "地理位置" + } + ] +}