From 5c48ed6e9928c08f59287a84ba97ebd5fd4d6086 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 26 Nov 2025 10:11:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(work):=20=E6=96=B0=E5=A2=9E=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E8=A1=A8=E6=A0=BC=E5=86=85=E5=AE=B9=E7=BC=96=E7=BB=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tWorkClientExecuteCgibinWedocExtensions.cs | 92 +++++++++++++++++++ ...ibinWedocSmartSheetAddFieldGroupRequest.cs | 51 ++++++++++ ...binWedocSmartSheetAddFieldGroupResponse.cs | 22 +++++ ...WedocSmartSheetDeleteFieldGroupsRequest.cs | 31 +++++++ ...edocSmartSheetDeleteFieldGroupsResponse.cs | 9 ++ ...binWedocSmartSheetGetFieldGroupsRequest.cs | 36 ++++++++ ...inWedocSmartSheetGetFieldGroupsResponse.cs | 76 +++++++++++++++ ...nWedocSmartSheetUpdateFieldGroupRequest.cs | 58 ++++++++++++ ...WedocSmartSheetUpdateFieldGroupResponse.cs | 22 +++++ ...inWedocSmartSheetAddFieldGroupRequest.json | 13 +++ ...nWedocSmartSheetAddFieldGroupResponse.json | 16 ++++ ...docSmartSheetDeleteFieldGroupsRequest.json | 8 ++ ...nWedocSmartSheetGetFieldGroupsRequest.json | 6 ++ ...WedocSmartSheetGetFieldGroupsResponse.json | 18 ++++ ...edocSmartSheetUpdateFieldGroupRequest.json | 14 +++ ...docSmartSheetUpdateFieldGroupResponse.json | 16 ++++ 16 files changed, 488 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.json diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Extensions/WechatWorkClientExecuteCgibinWedocExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Extensions/WechatWorkClientExecuteCgibinWedocExtensions.cs index 4f9983ad..156757c6 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Extensions/WechatWorkClientExecuteCgibinWedocExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Extensions/WechatWorkClientExecuteCgibinWedocExtensions.cs @@ -727,6 +727,98 @@ namespace SKIT.FlurlHttpClient.Wechat.Work return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + /// + /// 异步调用 [POST] /cgi-bin/wedoc/smartsheet/get_field_groups 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteCgibinWedocSmartSheetGetFieldGroupsAsync(this WechatWorkClient client, Models.CgibinWedocSmartSheetGetFieldGroupsRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "cgi-bin", "wedoc", "smartsheet", "get_field_groups") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /cgi-bin/wedoc/smartsheet/add_field_group 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteCgibinWedocSmartSheetAddFieldGroupAsync(this WechatWorkClient client, Models.CgibinWedocSmartSheetAddFieldGroupRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "cgi-bin", "wedoc", "smartsheet", "add_field_group") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /cgi-bin/wedoc/smartsheet/update_field_group 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteCgibinWedocSmartSheetUpdateFieldGroupAsync(this WechatWorkClient client, Models.CgibinWedocSmartSheetUpdateFieldGroupRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "cgi-bin", "wedoc", "smartsheet", "update_field_group") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /cgi-bin/wedoc/smartsheet/delete_field_groups 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteCgibinWedocSmartSheetDeleteFieldGroupsAsync(this WechatWorkClient client, Models.CgibinWedocSmartSheetDeleteFieldGroupsRequest 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 + .CreateFlurlRequest(request, HttpMethod.Post, "cgi-bin", "wedoc", "smartsheet", "delete_field_groups") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #region SmartSheet/GroupChat /// /// 异步调用 [POST] /cgi-bin/wedoc/smartsheet/groupchat/list 接口。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.cs new file mode 100644 index 00000000..51b5ed68 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.cs @@ -0,0 +1,51 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/add_field_group 接口的请求。 + /// + public class CgibinWedocSmartSheetAddFieldGroupRequest : WechatWorkRequest + { + public static class Types + { + public class Field + { + /// + /// 获取或设置字段 ID。 + /// + [Newtonsoft.Json.JsonProperty("field_id")] + [System.Text.Json.Serialization.JsonPropertyName("field_id")] + public string FieldId { get; set; } = string.Empty; + } + } + + /// + /// 获取或设置文档 ID。 + /// + [Newtonsoft.Json.JsonProperty("docid")] + [System.Text.Json.Serialization.JsonPropertyName("docid")] + public string DocumentId { get; set; } = string.Empty; + + /// + /// 获取或设置子表 ID。 + /// + [Newtonsoft.Json.JsonProperty("sheet_id")] + [System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + public string SheetId { get; set; } = string.Empty; + + /// + /// 获取或设置编组名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 获取或设置字段列表。 + /// + [Newtonsoft.Json.JsonProperty("children")] + [System.Text.Json.Serialization.JsonPropertyName("children")] + public IList? FieldList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.cs new file mode 100644 index 00000000..19fe47f8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/add_field_group 接口的响应。 + /// + public class CgibinWedocSmartSheetAddFieldGroupResponse : WechatWorkResponse + { + public static class Types + { + public class FieldGroup : CgibinWedocSmartSheetGetFieldGroupsResponse.Types.FieldGroup + { + } + } + + /// + /// 获取或设置编组信息。 + /// + [Newtonsoft.Json.JsonProperty("field_group")] + [System.Text.Json.Serialization.JsonPropertyName("field_group")] + public Types.FieldGroup FieldGroup { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.cs new file mode 100644 index 00000000..bb42f703 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/delete_field_groups 接口的请求。 + /// + public class CgibinWedocSmartSheetDeleteFieldGroupsRequest : WechatWorkRequest + { + /// + /// 获取或设置文档 ID。 + /// + [Newtonsoft.Json.JsonProperty("docid")] + [System.Text.Json.Serialization.JsonPropertyName("docid")] + public string DocumentId { get; set; } = string.Empty; + + /// + /// 获取或设置子表 ID。 + /// + [Newtonsoft.Json.JsonProperty("sheet_id")] + [System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + public string SheetId { get; set; } = string.Empty; + + /// + /// 获取或设置编组 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("field_group_ids")] + [System.Text.Json.Serialization.JsonPropertyName("field_group_ids")] + public IList FieldGroupIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsResponse.cs new file mode 100644 index 00000000..166dd84b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/delete_field_groups 接口的响应。 + /// + public class CgibinWedocSmartSheetDeleteFieldGroupsResponse : WechatWorkResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.cs new file mode 100644 index 00000000..87fd1947 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/get_field_groups 接口的请求。 + /// + public class CgibinWedocSmartSheetGetFieldGroupsRequest : WechatWorkRequest + { + /// + /// 获取或设置文档 ID。 + /// + [Newtonsoft.Json.JsonProperty("docid")] + [System.Text.Json.Serialization.JsonPropertyName("docid")] + public string DocumentId { get; set; } = string.Empty; + + /// + /// 获取或设置子表 ID。 + /// + [Newtonsoft.Json.JsonProperty("sheet_id")] + [System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + public string SheetId { get; set; } = string.Empty; + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonProperty("offset")] + [System.Text.Json.Serialization.JsonPropertyName("offset")] + public int? Offset { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonProperty("limit")] + [System.Text.Json.Serialization.JsonPropertyName("limit")] + public int? Limit { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.cs new file mode 100644 index 00000000..bec67094 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.cs @@ -0,0 +1,76 @@ +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/get_field_groups 接口的响应。 + /// + public class CgibinWedocSmartSheetGetFieldGroupsResponse : WechatWorkResponse + { + public static class Types + { + public class FieldGroup + { + public static class Types + { + public class Field + { + /// + /// 获取或设置字段 ID。 + /// + [Newtonsoft.Json.JsonProperty("field_id")] + [System.Text.Json.Serialization.JsonPropertyName("field_id")] + public string FieldId { get; set; } = default!; + } + } + + /// + /// 获取或设置编组 ID。 + /// + [Newtonsoft.Json.JsonProperty("field_group_id")] + [System.Text.Json.Serialization.JsonPropertyName("field_group_id")] + public string FieldGroupId { get; set; } = default!; + + /// + /// 获取或设置编组名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置字段列表。 + /// + [Newtonsoft.Json.JsonProperty("children")] + [System.Text.Json.Serialization.JsonPropertyName("children")] + public Types.Field[] FieldList { get; set; } = default!; + } + } + + /// + /// 获取或设置编组列表。 + /// + [Newtonsoft.Json.JsonProperty("field_groups")] + [System.Text.Json.Serialization.JsonPropertyName("field_groups")] + public Types.FieldGroup[] FieldGroupList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total")] + [System.Text.Json.Serialization.JsonPropertyName("total")] + public int TotalCount { get; set; } + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + + /// + /// 获取或设置下一页起始位置。 + /// + [Newtonsoft.Json.JsonProperty("next")] + [System.Text.Json.Serialization.JsonPropertyName("next")] + public int? NextOffset { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.cs new file mode 100644 index 00000000..ff88c033 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.cs @@ -0,0 +1,58 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/update_field_group 接口的请求。 + /// + public class CgibinWedocSmartSheetUpdateFieldGroupRequest : WechatWorkRequest + { + public static class Types + { + public class Field + { + /// + /// 获取或设置字段 ID。 + /// + [Newtonsoft.Json.JsonProperty("field_id")] + [System.Text.Json.Serialization.JsonPropertyName("field_id")] + public string FieldId { get; set; } = string.Empty; + } + } + + /// + /// 获取或设置文档 ID。 + /// + [Newtonsoft.Json.JsonProperty("docid")] + [System.Text.Json.Serialization.JsonPropertyName("docid")] + public string DocumentId { get; set; } = string.Empty; + + /// + /// 获取或设置子表 ID。 + /// + [Newtonsoft.Json.JsonProperty("sheet_id")] + [System.Text.Json.Serialization.JsonPropertyName("sheet_id")] + public string SheetId { get; set; } = string.Empty; + + /// + /// 获取或设置编组 ID。 + /// + [Newtonsoft.Json.JsonProperty("field_group_id")] + [System.Text.Json.Serialization.JsonPropertyName("field_group_id")] + public string FieldGroupId { get; set; } = string.Empty; + + /// + /// 获取或设置编组名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// 获取或设置字段列表。 + /// + [Newtonsoft.Json.JsonProperty("children")] + [System.Text.Json.Serialization.JsonPropertyName("children")] + public IList? FieldList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.cs new file mode 100644 index 00000000..6588d99e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Work.Models +{ + /// + /// 表示 [POST] /cgi-bin/wedoc/smartsheet/update_field_group 接口的响应。 + /// + public class CgibinWedocSmartSheetUpdateFieldGroupResponse : WechatWorkResponse + { + public static class Types + { + public class FieldGroup : CgibinWedocSmartSheetAddFieldGroupResponse.Types.FieldGroup + { + } + } + + /// + /// 获取或设置编组信息。 + /// + [Newtonsoft.Json.JsonProperty("field_group")] + [System.Text.Json.Serialization.JsonPropertyName("field_group")] + public Types.FieldGroup FieldGroup { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.json new file mode 100644 index 00000000..641d07d3 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupRequest.json @@ -0,0 +1,13 @@ +{ + "docid": "DOCID", + "sheet_id": "SHEETID", + "name": "编组名称", + "children": [ + { + "field_id": "field_id" + }, + { + "field_id": "field_id" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.json new file mode 100644 index 00000000..09ac8b12 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetAddFieldGroupResponse.json @@ -0,0 +1,16 @@ +{ + "errcode": 0, + "errmsg": "ok", + "field_group": { + "field_group_id": "FIELD_GROUP_ID", + "name": "编组名称", + "children": [ + { + "field_id": "FIELD_ID" + }, + { + "field_id": "FIELD_ID" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.json new file mode 100644 index 00000000..81d9429b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetDeleteFieldGroupsRequest.json @@ -0,0 +1,8 @@ +{ + "docid": "DOCID", + "sheet_id": "123Abc", + "field_group_ids": [ + "fgCLYCF", + "fgCLYCM" + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.json new file mode 100644 index 00000000..622edb25 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsRequest.json @@ -0,0 +1,6 @@ +{ + "docid": "DOCID", + "sheet_id": "SHEETID", + "offset": 0, + "limit": 10 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.json new file mode 100644 index 00000000..0cbb5aa7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetGetFieldGroupsResponse.json @@ -0,0 +1,18 @@ +{ + "errcode": 0, + "errmsg": "ok", + "total": 1, + "has_more": false, + "next": 0, + "field_groups": [ + { + "field_group_id": "FIELD_GROUP_ID", + "name": "编组名称", + "children": [ + { + "field_id": "FIELD_ID" + } + ] + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.json new file mode 100644 index 00000000..b5c25a57 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupRequest.json @@ -0,0 +1,14 @@ +{ + "docid": "DOCID", + "sheet_id": "SHEETID", + "field_group_id": "FIELD_GROUP_ID", + "name": "编组名称", + "children": [ + { + "field_id": "FIELD_ID" + }, + { + "field_id": "FIELD_ID" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.json new file mode 100644 index 00000000..09ac8b12 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/_/CgibinWedoc/SmartSheet/CgibinWedocSmartSheetUpdateFieldGroupResponse.json @@ -0,0 +1,16 @@ +{ + "errcode": 0, + "errmsg": "ok", + "field_group": { + "field_group_id": "FIELD_GROUP_ID", + "name": "编组名称", + "children": [ + { + "field_id": "FIELD_ID" + }, + { + "field_id": "FIELD_ID" + } + ] + } +}