From 5ef5fad1a223916f43c2d69f54baa856d44e9f39 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 1 Jun 2024 15:05:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(work):=20=E9=9A=8F=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96=E4=BC=81=E4=B8=9A=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E4=BF=A1=E6=81=AF=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 --- .../CgibinServiceGetAuthInfoResponse.cs | 22 ++++++++++++++++++- .../CgibinServiceGetAuthInfoResponse.json | 7 ++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinService/CgibinServiceGetAuthInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinService/CgibinServiceGetAuthInfoResponse.cs index c4d820da..052d2a8a 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinService/CgibinServiceGetAuthInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinService/CgibinServiceGetAuthInfoResponse.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace SKIT.FlurlHttpClient.Wechat.Work.Models { @@ -28,6 +28,19 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models public class AuthorizerCorp : DealerCorp { + public static class Types + { + public class CorpExtraName + { + /// + /// 获取或设置企业简称。 + /// + [Newtonsoft.Json.JsonProperty("name_list")] + [System.Text.Json.Serialization.JsonPropertyName("name_list")] + public string Names { get; set; } = default!; + } + } + /// /// 获取或设置企业类型。 /// @@ -111,6 +124,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models [Newtonsoft.Json.JsonProperty("location")] [System.Text.Json.Serialization.JsonPropertyName("location")] public string? Location { get; set; } + + /// + /// 获取或设置企业其他简称。 + /// + [Newtonsoft.Json.JsonProperty("corp_ex_name")] + [System.Text.Json.Serialization.JsonPropertyName("corp_ex_name")] + public Types.CorpExtraName? CorpExtraName { get; set; } = default!; } public class Authorization diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinService/CgibinServiceGetAuthInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinService/CgibinServiceGetAuthInfoResponse.json index 999a216b..826ad68a 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinService/CgibinServiceGetAuthInfoResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinService/CgibinServiceGetAuthInfoResponse.json @@ -1,4 +1,4 @@ -{ +{ "errcode": 0, "errmsg": "ok", "dealer_corp_info": { @@ -19,7 +19,10 @@ "corp_scale": "1-50人", "corp_industry": "IT服务", "corp_sub_industry": "计算机软件/硬件/信息服务", - "location": "广东省广州市" + "location": "广东省广州市", + "corp_ex_name": { + "name_list": "xx" + } }, "auth_info": { "agent": [