From cd755dec550de754dc8b9605608ef94e47b8be82 Mon Sep 17 00:00:00 2001 From: Qin Yikai Date: Mon, 5 Dec 2022 21:00:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(wxapi):=20=E9=9A=8F=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=AC=AC=E4=B8=89=E6=96=B9=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=88=86=E9=98=B6=E6=AE=B5=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E6=8E=A5=E5=8F=A3=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Code/WxaGetGrayReleasePlanResponse.cs | 16 +++++++++++++++- .../WxaComponent/Code/WxaGrayReleaseRequest.cs | 16 +++++++++++++++- .../Code/WxaGetGrayReleasePlanResponse.json | 6 ++++-- .../WxaComponent/Code/WxaGrayReleaseRequest.json | 6 ++++-- 4 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetGrayReleasePlanResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetGrayReleasePlanResponse.cs index 5c4c7c36..b2e713d4 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetGrayReleasePlanResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGetGrayReleasePlanResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [GET] /wxa/getgrayreleaseplan 接口的响应。 @@ -29,6 +29,20 @@ [Newtonsoft.Json.JsonProperty("create_timestamp")] [System.Text.Json.Serialization.JsonPropertyName("create_timestamp")] public long CreateTimestamp { get; set; } + + /// + /// 获取或设置是否支持按项目成员灰度。 + /// + [Newtonsoft.Json.JsonProperty("support_debuger_first")] + [System.Text.Json.Serialization.JsonPropertyName("support_debuger_first")] + public bool? IsSupportDebuggerFirst { get; set; } + + /// + /// 获取或设置是否支持按体验成员灰度。 + /// + [Newtonsoft.Json.JsonProperty("support_experiencer_first")] + [System.Text.Json.Serialization.JsonPropertyName("support_experiencer_first")] + public bool? IsSupportExperiencerFirst { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGrayReleaseRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGrayReleaseRequest.cs index 351a7969..99655c47 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGrayReleaseRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Code/WxaGrayReleaseRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/grayrelease 接口的请求。 @@ -11,5 +11,19 @@ [Newtonsoft.Json.JsonProperty("gray_percentage")] [System.Text.Json.Serialization.JsonPropertyName("gray_percentage")] public int GrayPercentage { get; set; } + + /// + /// 获取或设置是否支持按项目成员灰度。 + /// + [Newtonsoft.Json.JsonProperty("support_debuger_first")] + [System.Text.Json.Serialization.JsonPropertyName("support_debuger_first")] + public bool? IsSupportDebuggerFirst { get; set; } + + /// + /// 获取或设置是否支持按体验成员灰度。 + /// + [Newtonsoft.Json.JsonProperty("support_experiencer_first")] + [System.Text.Json.Serialization.JsonPropertyName("support_experiencer_first")] + public bool? IsSupportExperiencerFirst { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGetGrayReleasePlanResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGetGrayReleasePlanResponse.json index 53323488..0d2005bc 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGetGrayReleasePlanResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGetGrayReleasePlanResponse.json @@ -1,9 +1,11 @@ -{ +{ "errcode": 0, "errmsg": "ok", "gray_release_plan": { "status": 1, "create_timestamp": 1517553721, - "gray_percentage": 8 + "gray_percentage": 8, + "support_debuger_first": true, + "support_experiencer_first": true } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGrayReleaseRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGrayReleaseRequest.json index 718053bf..927c5119 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGrayReleaseRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/WxaComponent/Code/WxaGrayReleaseRequest.json @@ -1,3 +1,5 @@ -{ - "gray_percentage": 1 +{ + "gray_percentage": 1, + "support_debuger_first": true, + "support_experiencer_first": true }