diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6443ecff..5b5527bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -125,6 +125,7 @@ - **必须**:提交记录中的 ``,可取值为: - _wxapi_:关于 `SKIT.FlurlHttpClient.Wechat.Api` 项目的变化; + - _tenpayv2_:关于 `SKIT.FlurlHttpClient.Wechat.TenpayV2` 项目的变化; - _tenpayv3_:关于 `SKIT.FlurlHttpClient.Wechat.TenpayV3` 项目的变化; - _work_:关于 `SKIT.FlurlHttpClient.Wechat.Work` 项目的变化; - _wxads_:关于 `SKIT.FlurlHttpClient.Wechat.Ads` 项目的变化; diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaApiExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaApiExtensions.cs index 483baefc..37787e3b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaApiExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaApiExtensions.cs @@ -1088,5 +1088,139 @@ namespace SKIT.FlurlHttpClient.Wechat.Api return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); } #endregion + + #region WxaEmbedded + /// + /// 异步调用 [GET] /wxaapi/wxaembedded/get_list 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/EmbeddedMiniProgram/get_list.html + /// + /// + /// + /// + /// + public static async Task ExecuteWxaApiWxaEmbeddedGetListAsync(this WechatApiClient client, Models.WxaApiWxaEmbeddedGetListRequest 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, "wxaapi", "wxaembedded", "get_list") + .SetQueryParam("access_token", request.AccessToken); + + if (request.Offset != null) + flurlReq.SetQueryParam("start", request.Offset); + + if (request.Limit != null) + flurlReq.SetQueryParam("num", request.Limit); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [GET] /wxaapi/wxaembedded/get_own_list 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/EmbeddedMiniProgram/get_own_list.html + /// + /// + /// + /// + /// + public static async Task ExecuteWxaApiWxaEmbeddedGetOwnListAsync(this WechatApiClient client, Models.WxaApiWxaEmbeddedGetOwnListRequest 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, "wxaapi", "wxaembedded", "get_own_list") + .SetQueryParam("access_token", request.AccessToken); + + if (request.Offset != null) + flurlReq.SetQueryParam("start", request.Offset); + + if (request.Limit != null) + flurlReq.SetQueryParam("num", request.Limit); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /wxaapi/wxaembedded/add_embedded 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/EmbeddedMiniProgram/add_embedded.html + /// + /// + /// + /// + /// + public static async Task ExecuteWxaApiWxaEmbeddedAddEmbeddedAsync(this WechatApiClient client, Models.WxaApiWxaEmbeddedAddEmbeddedRequest 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, "wxaapi", "wxaembedded", "add_embedded") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /wxaapi/wxaembedded/del_embedded 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/EmbeddedMiniProgram/del_embedded.html + /// + /// + /// + /// + /// + public static async Task ExecuteWxaApiWxaEmbeddedDeleteEmbeddedAsync(this WechatApiClient client, Models.WxaApiWxaEmbeddedDeleteEmbeddedRequest 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, "wxaapi", "wxaembedded", "del_embedded") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /wxaapi/wxaembedded/del_authorize 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/EmbeddedMiniProgram/del_authorize.html + /// + /// + /// + /// + /// + public static async Task ExecuteWxaApiWxaEmbeddedDeleteAuthorizeAsync(this WechatApiClient client, Models.WxaApiWxaEmbeddedDeleteAuthorizeRequest 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, "wxaapi", "wxaembedded", "del_authorize") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /wxaapi/wxaembedded/set_authorize 接口。 + /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/EmbeddedMiniProgram/set_authorize.html + /// + /// + /// + /// + /// + public static async Task ExecuteWxaApiWxaEmbeddedSetAuthorizeAsync(this WechatApiClient client, Models.WxaApiWxaEmbeddedSetAuthorizeRequest 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, "wxaapi", "wxaembedded", "set_authorize") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + #endregion } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedRequest.cs new file mode 100644 index 00000000..75fe3826 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/add_embedded 接口的请求。 + /// + public class WxaApiWxaEmbeddedAddEmbeddedRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string AppId { get; set; } = string.Empty; + + /// + /// 获取或设置申请理由。 + /// + [Newtonsoft.Json.JsonProperty("apply_reason")] + [System.Text.Json.Serialization.JsonPropertyName("apply_reason")] + public string? ApplyReason { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedResponse.cs new file mode 100644 index 00000000..d9b388de --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/add_embedded 接口的响应。 + /// + public class WxaApiWxaEmbeddedAddEmbeddedResponse : WechatApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteAuthorizeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteAuthorizeRequest.cs new file mode 100644 index 00000000..3069c78c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteAuthorizeRequest.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/del_authorize 接口的请求。 + /// + public class WxaApiWxaEmbeddedDeleteAuthorizeRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string AppId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteAuthorizeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteAuthorizeResponse.cs new file mode 100644 index 00000000..bf1c073c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteAuthorizeResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/del_authorize 接口的响应。 + /// + public class WxaApiWxaEmbeddedDeleteAuthorizeResponse : WechatApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedRequest.cs new file mode 100644 index 00000000..a9cbb423 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedRequest.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/del_embedded 接口的请求。 + /// + public class WxaApiWxaEmbeddedDeleteEmbeddedRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string AppId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedResponse.cs new file mode 100644 index 00000000..ced2d582 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/del_embedded 接口的响应。 + /// + public class WxaApiWxaEmbeddedDeleteEmbeddedResponse : WechatApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListRequest.cs new file mode 100644 index 00000000..48d1f0b7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [GET] /wxaapi/wxaembedded/get_list 接口的请求。 + /// + public class WxaApiWxaEmbeddedGetListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Limit { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListResponse.cs new file mode 100644 index 00000000..5f2ce849 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListResponse.cs @@ -0,0 +1,63 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [GET] /wxaapi/wxaembedded/get_list 接口的响应。 + /// + public class WxaApiWxaEmbeddedGetListResponse : WechatApiResponse + { + public static class Types + { + public class WxaEmbedded + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置小程序头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("headimg")] + [System.Text.Json.Serialization.JsonPropertyName("headimg")] + public string HeadImageUrl { get; set; } = default!; + + /// + /// 获取或设置申请理由。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string Reason { get; set; } = default!; + + /// + /// 获取或设置申请状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置添加时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + } + } + + /// + /// 获取或设置半屏小程序列表。 + /// + [Newtonsoft.Json.JsonProperty("wxa_embedded_list")] + [System.Text.Json.Serialization.JsonPropertyName("wxa_embedded_list")] + public Types.WxaEmbedded[] WxaEmbeddedList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListRequest.cs new file mode 100644 index 00000000..b530e920 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [GET] /wxaapi/wxaembedded/get_own_list 接口的请求。 + /// + public class WxaApiWxaEmbeddedGetOwnListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Limit { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListResponse.cs new file mode 100644 index 00000000..16b4cfe4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListResponse.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [GET] /wxaapi/wxaembedded/get_own_list 接口的响应。 + /// + public class WxaApiWxaEmbeddedGetOwnListResponse : WechatApiResponse + { + public static class Types + { + public class WxaEmbedded : WxaApiWxaEmbeddedGetListResponse.Types.WxaEmbedded + { + } + } + + /// + /// 获取或设置授权方式。 + /// + [Newtonsoft.Json.JsonProperty("embedded_flag")] + [System.Text.Json.Serialization.JsonPropertyName("embedded_flag")] + public int AuthFlag { get; set; } + + /// + /// 获取或设置半屏小程序列表。 + /// + [Newtonsoft.Json.JsonProperty("wxa_embedded_list")] + [System.Text.Json.Serialization.JsonPropertyName("wxa_embedded_list")] + public Types.WxaEmbedded[] WxaEmbeddedList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeRequest.cs new file mode 100644 index 00000000..42ae724c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeRequest.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/set_authorize 接口的请求。 + /// + public class WxaApiWxaEmbeddedSetAuthorizeRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置授权方式。 + /// + [Newtonsoft.Json.JsonProperty("flag")] + [System.Text.Json.Serialization.JsonPropertyName("flag")] + public int AuthFlag { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeResponse.cs new file mode 100644 index 00000000..97b8898b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /wxaapi/wxaembedded/set_authorize 接口的响应。 + /// + public class WxaApiWxaEmbeddedSetAuthorizeResponse : WechatApiResponse + { + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedRequest.json new file mode 100644 index 00000000..5690b0fc --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedAddEmbeddedRequest.json @@ -0,0 +1,4 @@ +{ + "appid": "wxf074af703a2e9303", + "apply_reason": "我要申请" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedRequest.json new file mode 100644 index 00000000..2e526fe3 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedDeleteEmbeddedRequest.json @@ -0,0 +1,3 @@ +{ + "appid": "wx8f4e64668de79225" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListResponse.json new file mode 100644 index 00000000..fb755fe7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetListResponse.json @@ -0,0 +1,22 @@ +{ + "errmsg": "ok", + "errcode": 0, + "wxa_embedded_list": [ + { + "appid": "wxf074afxxxxxxxx", + "create_time": 1648177830, + "headimg": "http://wx.qlogo.cn/mmhead/Q3axxxxxxxdRLA", + "nickname": "tesxxx", + "reason": "我是理由", + "status": 1 + }, + { + "appid": "wx355c73xxxxxxx", + "create_time": 1647250557, + "headimg": "http://wx.qlogo.cn/mmhead/QxxxxxxA", + "nickname": "美味助手xx", + "reason": "特殊", + "status": 2 + } + ] +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListResponse.json new file mode 100644 index 00000000..1063a967 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedGetOwnListResponse.json @@ -0,0 +1,6 @@ +{ + "errcode": 0, + "errmsg": "ok", + "embedded_flag": 2, + "wxa_embedded_list": [] +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeRequest.json new file mode 100644 index 00000000..29283dca --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaApi/WxaEmbedded/WxaApiWxaEmbeddedSetAuthorizeRequest.json @@ -0,0 +1,3 @@ +{ + "flag": 0 +} \ No newline at end of file