diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinAccountExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinAccountExtensions.cs
index 990a3e8e..1b27cc8c 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinAccountExtensions.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinAccountExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@@ -51,7 +51,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
///
/// 异步调用 [GET] /cgi-bin/account/getaccountbasicinfo 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/Mini_Program_Information_Settings.html#%E6%B3%A8%E5%86%8C%E5%9B%BD%E5%AE%B6
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getAccountBasicInfo.html
///
///
///
@@ -71,7 +71,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
///
/// 异步调用 [POST] /cgi-bin/account/modifyheadimage 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/modifyheadimage.html
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setHeadImage.html
///
///
///
@@ -91,7 +91,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
///
/// 异步调用 [POST] /cgi-bin/account/modifysignature 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/modifyheadimage.html
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setSignature.html
///
///
///
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenExtensions.cs
index d0aea8ca..2ebd44bd 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenExtensions.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinOpenExtensions.cs
@@ -31,7 +31,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
///
/// 异步调用 [POST] /cgi-bin/open/have 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/getbindopeninfo.html
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getBindOpenAccount.html
///
///
///
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinWxverifyExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinWxverifyExtensions.cs
index 9cf422a1..d41bf84b 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinWxverifyExtensions.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinWxverifyExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@@ -11,7 +11,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
{
///
/// 异步调用 [POST] /cgi-bin/wxverify/checkwxverifynickname 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/wxverify_checknickname.html
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/checkNickName.html
///
///
///
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteSnsExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteSnsExtensions.cs
index 32e50f6e..1298d199 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteSnsExtensions.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteSnsExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@@ -132,7 +132,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
#region Component
///
/// 异步调用 [GET] /sns/component/jscode2session 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/others/WeChat_login.html
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/login/thirdpartyCode2Session.html
///
///
///
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs
index bd63b5ca..8e46de45 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteWxaComponentExtensions.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@@ -9,6 +9,170 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
{
public static class WechatApiClientExecuteWxaComponentExtensions
{
+ #region Basic
+ ///
+ /// 异步调用 [POST] /wxa/setnickname 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setNickName.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaSetNicknameAsync(this WechatApiClient client, Models.WxaSetNicknameRequest 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", "setnickname")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+
+ ///
+ /// 异步调用 [POST] /wxa/api_wxa_querynickname 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getNickNameStatus.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaApiWxaQueryNicknameAsync(this WechatApiClient client, Models.WxaApiWxaQueryNicknameRequest 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", "api_wxa_querynickname")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+
+ ///
+ /// 异步调用 [GET] /wxa/getwxasearchstatus 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getSearchStatus.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaGetWxaSearchStatusAsync(this WechatApiClient client, Models.WxaGetWxaSearchStatusRequest 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", "getwxasearchstatus")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+
+ ///
+ /// 异步调用 [POST] /wxa/changewxasearchstatus 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/setSearchStatus.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaChangeWxaSearchStatusAsync(this WechatApiClient client, Models.WxaChangeWxaSearchStatusRequest 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", "changewxasearchstatus")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+
+ ///
+ /// 异步调用 [POST] /wxa/fetchdatasetting 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getFetchdataSetting.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaFetchDataSettingAsync(this WechatApiClient client, Models.WxaFetchDataSettingRequest 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", "fetchdatasetting")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+ #endregion
+
+ #region Domain
+ ///
+ /// 异步调用 [POST] /wxa/modify_domain 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyServerDomain.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaModifyDomainAsync(this WechatApiClient client, Models.WxaModifyDomainRequest 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", "modify_domain")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+
+ ///
+ /// 异步调用 [POST] /wxa/modify_domain_directly 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyServerDomainDirectly.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaModifyDomainDirectlyAsync(this WechatApiClient client, Models.WxaModifyDomainDirectlyRequest 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", "modify_domain_directly")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+
+ ///
+ /// 异步调用 [POST] /wxa/setwebviewdomain 接口。
+ /// REF: https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/domain-management/modifyJumpDomain.html
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static async Task ExecuteWxaSetWebviewDomainAsync(this WechatApiClient client, Models.WxaSetWebviewDomainRequest 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", "setwebviewdomain")
+ .SetQueryParam("access_token", request.AccessToken);
+
+ return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
+ }
+ #endregion
+
#region Register
///
/// 异步调用 [POST] /wxa/component/reusemchidfastnormalizebetaweapp 接口。
@@ -214,150 +378,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
}
#endregion
- #region Basic
- ///
- /// 异步调用 [POST] /wxa/modify_domain 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/Server_Address_Configuration.html
- ///
- ///
- ///
- ///
- ///
- public static async Task ExecuteWxaModifyDomainAsync(this WechatApiClient client, Models.WxaModifyDomainRequest 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", "modify_domain")
- .SetQueryParam("access_token", request.AccessToken);
-
- return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
- }
-
- ///
- /// 异步调用 [POST] /wxa/setwebviewdomain 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/setwebviewdomain.html
- ///
- ///
- ///
- ///
- ///
- public static async Task ExecuteWxaSetWebviewDomainAsync(this WechatApiClient client, Models.WxaSetWebviewDomainRequest 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", "setwebviewdomain")
- .SetQueryParam("access_token", request.AccessToken);
-
- return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
- }
-
- ///
- /// 异步调用 [POST] /wxa/setnickname 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/setnickname.html
- ///
- ///
- ///
- ///
- ///
- public static async Task ExecuteWxaSetNicknameAsync(this WechatApiClient client, Models.WxaSetNicknameRequest 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", "setnickname")
- .SetQueryParam("access_token", request.AccessToken);
-
- return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
- }
-
- ///
- /// 异步调用 [POST] /wxa/api_wxa_querynickname 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/api_wxa_querynickname.html
- ///
- ///
- ///
- ///
- ///
- public static async Task ExecuteWxaApiWxaQueryNicknameAsync(this WechatApiClient client, Models.WxaApiWxaQueryNicknameRequest 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", "api_wxa_querynickname")
- .SetQueryParam("access_token", request.AccessToken);
-
- return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
- }
-
- ///
- /// 异步调用 [GET] /wxa/getwxasearchstatus 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/getwxasearchstatus.html
- ///
- ///
- ///
- ///
- ///
- public static async Task ExecuteWxaGetWxaSearchStatusAsync(this WechatApiClient client, Models.WxaGetWxaSearchStatusRequest 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", "getwxasearchstatus")
- .SetQueryParam("access_token", request.AccessToken);
-
- return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
- }
-
- ///
- /// 异步调用 [POST] /wxa/changewxasearchstatus 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/changewxasearchstatus.html
- ///
- ///
- ///
- ///
- ///
- public static async Task ExecuteWxaChangeWxaSearchStatusAsync(this WechatApiClient client, Models.WxaChangeWxaSearchStatusRequest 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", "changewxasearchstatus")
- .SetQueryParam("access_token", request.AccessToken);
-
- return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
- }
-
- ///
- /// 异步调用 [POST] /wxa/fetchdatasetting 接口。
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/get_fetchdatasetting.html
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/set_pre_fetchdatasetting.html
- /// REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/set_period_fetchdatasetting.html
- ///
- ///
- ///
- ///
- ///
- public static async Task ExecuteWxaFetchDataSettingAsync(this WechatApiClient client, Models.WxaFetchDataSettingRequest 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", "fetchdatasetting")
- .SetQueryParam("access_token", request.AccessToken);
-
- return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken);
- }
- #endregion
-
#region Category
///
/// 异步调用 [GET] /wxa/get_category 接口。
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainDirectlyRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainDirectlyRequest.cs
new file mode 100644
index 00000000..04631301
--- /dev/null
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainDirectlyRequest.cs
@@ -0,0 +1,53 @@
+using System.Collections.Generic;
+
+namespace SKIT.FlurlHttpClient.Wechat.Api.Models
+{
+ ///
+ /// 表示 [POST] /wxa/modify_domain_directly 接口的请求。
+ ///
+ public class WxaModifyDomainDirectlyRequest : WechatApiRequest, IInferable
+ {
+ ///
+ /// 获取或设置操作类型。
+ /// 默认值:get
+ ///
+ [Newtonsoft.Json.JsonProperty("action")]
+ [System.Text.Json.Serialization.JsonPropertyName("action")]
+ public string Action { get; set; } = "get";
+
+ ///
+ /// 获取或设置 Request 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("requestdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("requestdomain")]
+ public IList? RequestDomainList { get; set; }
+
+ ///
+ /// 获取或设置 Socket 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("wsrequestdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("wsrequestdomain")]
+ public IList? WebSocketDomainList { get; set; }
+
+ ///
+ /// 获取或设置 UploadFile 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("uploaddomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("uploaddomain")]
+ public IList? UploadDomainList { get; set; }
+
+ ///
+ /// 获取或设置 DownloadFile 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("downloaddomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("downloaddomain")]
+ public IList? DownloadDomainList { get; set; }
+
+ ///
+ /// 获取或设置 UDP 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("udpdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("udpdomain")]
+ public IList? UdpDomainList { get; set; }
+ }
+}
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainDirectlyResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainDirectlyResponse.cs
new file mode 100644
index 00000000..97680c86
--- /dev/null
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainDirectlyResponse.cs
@@ -0,0 +1,50 @@
+namespace SKIT.FlurlHttpClient.Wechat.Api.Models
+{
+ ///
+ /// 表示 [POST] /wxa/modify_domain_directly 接口的响应。
+ ///
+ public class WxaModifyDomainDirectlyResponse : WechatApiResponse
+ {
+ ///
+ /// 获取或设置 Request 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("requestdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("requestdomain")]
+ public string[]? RequestDomainList { get; set; }
+
+ ///
+ /// 获取或设置 Socket 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("wsrequestdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("wsrequestdomain")]
+ public string[]? WebSocketDomainList { get; set; }
+
+ ///
+ /// 获取或设置 UploadFile 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("uploaddomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("uploaddomain")]
+ public string[]? UploadDomainList { get; set; }
+
+ ///
+ /// 获取或设置 DownloadFile 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("downloaddomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("downloaddomain")]
+ public string[]? DownloadDomainList { get; set; }
+
+ ///
+ /// 获取或设置 UDP 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("udpdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("udpdomain")]
+ public string[]? UdpDomainList { get; set; }
+
+ ///
+ /// 获取或设置 TCP 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("tcpdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("tcpdomain")]
+ public string[]? TcpDomainList { get; set; }
+ }
+}
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaModifyDomainRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainRequest.cs
similarity index 86%
rename from src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaModifyDomainRequest.cs
rename to src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainRequest.cs
index e2aaf846..366ab4ec 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaModifyDomainRequest.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainRequest.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
@@ -49,5 +49,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("udpdomain")]
[System.Text.Json.Serialization.JsonPropertyName("udpdomain")]
public IList? UdpDomainList { get; set; }
+
+ ///
+ /// 获取或设置 TCP 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("tcpdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("tcpdomain")]
+ public IList? TcpDomainList { get; set; }
}
}
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaModifyDomainResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainResponse.cs
similarity index 83%
rename from src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaModifyDomainResponse.cs
rename to src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainResponse.cs
index 143c6bb0..de28b88c 100644
--- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaModifyDomainResponse.cs
+++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaModifyDomainResponse.cs
@@ -1,4 +1,4 @@
-namespace SKIT.FlurlHttpClient.Wechat.Api.Models
+namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
///
/// 表示 [POST] /wxa/modify_domain 接口的响应。
@@ -39,5 +39,12 @@
[Newtonsoft.Json.JsonProperty("udpdomain")]
[System.Text.Json.Serialization.JsonPropertyName("udpdomain")]
public string[]? UdpDomainList { get; set; }
+
+ ///
+ /// 获取或设置 TCP 合法域名列表。
+ ///
+ [Newtonsoft.Json.JsonProperty("tcpdomain")]
+ [System.Text.Json.Serialization.JsonPropertyName("tcpdomain")]
+ public string[]? TcpDomainList { get; set; }
}
}
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetWebviewDomainRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaSetWebviewDomainRequest.cs
similarity index 100%
rename from src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetWebviewDomainRequest.cs
rename to src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaSetWebviewDomainRequest.cs
diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetWebviewDomainResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaSetWebviewDomainResponse.cs
similarity index 100%
rename from src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Basic/WxaSetWebviewDomainResponse.cs
rename to src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Domain/WxaSetWebviewDomainResponse.cs
diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaModifyDomainRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaModifyDomainRequest.json
similarity index 100%
rename from test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaModifyDomainRequest.json
rename to test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaModifyDomainRequest.json
diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaModifyDomainResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaModifyDomainResponse.json
similarity index 100%
rename from test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaModifyDomainResponse.json
rename to test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaModifyDomainResponse.json
diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaSetWebviewDomainRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaSetWebviewDomainRequest.json
similarity index 100%
rename from test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaSetWebviewDomainRequest.json
rename to test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaSetWebviewDomainRequest.json
diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaSetWebviewDomainResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaSetWebviewDomainResponse.json
similarity index 100%
rename from test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Basic/WxaSetWebviewDomainResponse.json
rename to test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Domain/WxaSetWebviewDomainResponse.json