From 1594b6206a364de85534d48142994548d632a079 Mon Sep 17 00:00:00 2001 From: "Vicente.Yu" <^@^> Date: Fri, 19 Apr 2024 10:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E5=8D=8F?= =?UTF-8?q?=E4=BD=9C=E8=80=85=E5=88=97=E8=A1=A8=20=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E4=BD=93=E5=BC=82=E5=B8=B8=E3=80=81=E8=BD=AC=E7=A7=BB=E6=8B=A5?= =?UTF-8?q?=E6=9C=89=E8=80=85=20=E8=AF=B7=E6=B1=82=E4=BD=93=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vicente.Yu <^@^> --- ...ostDrivePermissionMemberListResponseDto.cs | 56 ++++++++++--------- ...ostDrivePermissionMemberTransferBodyDto.cs | 30 +++++----- src/FeishuNetSdk.csproj | 2 +- 3 files changed, 48 insertions(+), 40 deletions(-) diff --git a/src/Ccm.Spec/PostDrivePermissionMemberListResponseDto.cs b/src/Ccm.Spec/PostDrivePermissionMemberListResponseDto.cs index 1be337db..54ad2b91 100644 --- a/src/Ccm.Spec/PostDrivePermissionMemberListResponseDto.cs +++ b/src/Ccm.Spec/PostDrivePermissionMemberListResponseDto.cs @@ -13,33 +13,37 @@ public record PostDrivePermissionMemberListResponseDto /// 必填:否 /// [JsonPropertyName("members")] - public string? Members { get; set; } + public Member[]? Members { get; set; } - /// - /// 协作者类型 "user" or "chat" - /// 必填:否 - /// - [JsonPropertyName("member_type")] - public string? MemberType { get; set; } + /// + public record Member + { + /// + /// 协作者类型 "user" or "chat" + /// 必填:否 + /// + [JsonPropertyName("member_type")] + public string? MemberType { get; set; } - /// - /// 协作者openid - /// 必填:否 - /// - [JsonPropertyName("member_open_id")] - public string? MemberOpenId { get; set; } + /// + /// 协作者openid + /// 必填:否 + /// + [JsonPropertyName("member_open_id")] + public string? MemberOpenId { get; set; } - /// - /// 协作者userid(仅当member_type="user"时有效) - /// 必填:否 - /// - [JsonPropertyName("member_user_id")] - public string? MemberUserId { get; set; } + /// + /// 协作者userid(仅当member_type="user"时有效) + /// 必填:否 + /// + [JsonPropertyName("member_user_id")] + public string? MemberUserId { get; set; } - /// - /// 协作者权限 (注意: **有"edit"权限的协作者一定有"view"权限**) - /// 必填:否 - /// - [JsonPropertyName("perm")] - public string? Perm { get; set; } -} + /// + /// 协作者权限 (注意: **有"edit"权限的协作者一定有"view"权限**) + /// 必填:否 + /// + [JsonPropertyName("perm")] + public string? Perm { get; set; } + } +} \ No newline at end of file diff --git a/src/Ccm.Spec/PostDrivePermissionMemberTransferBodyDto.cs b/src/Ccm.Spec/PostDrivePermissionMemberTransferBodyDto.cs index 7d53c869..57a81707 100644 --- a/src/Ccm.Spec/PostDrivePermissionMemberTransferBodyDto.cs +++ b/src/Ccm.Spec/PostDrivePermissionMemberTransferBodyDto.cs @@ -27,21 +27,25 @@ public record PostDrivePermissionMemberTransferBodyDto /// 必填:是 /// [JsonPropertyName("owner")] - public string Owner { get; set; } = string.Empty; + public OwnerSuffix Owner { get; set; } = new(); - /// - /// 用户类型,可选 **email、openid、userid、unionid** - /// 必填:是 - /// - [JsonPropertyName("member_type")] - public string MemberType { get; set; } = string.Empty; + /// + public record OwnerSuffix + { + /// + /// 用户类型,可选 **email、openid、userid、unionid** + /// 必填:是 + /// + [JsonPropertyName("member_type")] + public string MemberType { get; set; } = string.Empty; - /// - /// 用户类型下的值,获取方式见 [如何获取不同的用户 ID](https://open.feishu.cn/document/home/user-identity-introduction/open-id) - /// 必填:是 - /// - [JsonPropertyName("member_id")] - public string MemberId { get; set; } = string.Empty; + /// + /// 用户类型下的值,获取方式见 [如何获取不同的用户 ID](https://open.feishu.cn/document/home/user-identity-introduction/how-to-get) + /// 必填:是 + /// + [JsonPropertyName("member_id")] + public string MemberId { get; set; } = string.Empty; + } /// /// true 为转移后删除旧 owner 的权限,默认为false diff --git a/src/FeishuNetSdk.csproj b/src/FeishuNetSdk.csproj index 9a3fc6fe..6419cf1e 100644 --- a/src/FeishuNetSdk.csproj +++ b/src/FeishuNetSdk.csproj @@ -16,7 +16,7 @@ MIT 适用于飞书开放平台的.Net开发包 LICENSE - 2.1.9 + 2.1.9.1