mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(work): 随官方更新微盘相关接口模型
This commit is contained in:
parent
3674786ceb
commit
b3980cd733
@ -32,7 +32,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/space_rename 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93655 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97856 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -52,7 +52,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/space_dismiss 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93655 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97857 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -72,7 +72,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/space_info 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93655 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97858 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -92,7 +92,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/space_setting 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93656 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97876 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -112,7 +112,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/space_share 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93656 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97877 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -154,7 +154,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/space_acl_del 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93656 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97875 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -196,7 +196,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_upload 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93657 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97880 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -216,7 +216,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_download 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93657 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97881 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -236,7 +236,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_create 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93657 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97882 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -256,7 +256,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_rename 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93657 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97883 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -276,7 +276,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_move 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93657 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97884 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -296,7 +296,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_delete 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93657 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97885 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -316,7 +316,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_info 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93657 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97886 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -336,7 +336,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_setting 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93658 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97889 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -356,7 +356,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_share 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93658 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97890 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
@ -398,7 +398,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wedrive/file_acl_del 接口。</para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/93658 </para>
|
||||
/// <para>REF: https://developer.work.weixin.qq.com/document/path/97888 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileCreateRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
|
@ -7,13 +7,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileDeleteRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID 列表。
|
||||
/// </summary>
|
||||
|
@ -6,17 +6,17 @@
|
||||
public class CgibinWebDriveFileDownloadRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// 获取或设置 JSAPI 返回的 SelectedTicket。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
[Newtonsoft.Json.JsonProperty("selected_ticket")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("selected_ticket")]
|
||||
public string? SelectedTicket { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fileid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fileid")]
|
||||
public string FileId { get; set; } = string.Empty;
|
||||
public string? FileId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileInfoRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID。
|
||||
/// </summary>
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileListRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
|
@ -82,20 +82,6 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mtime")]
|
||||
public long? ModifyTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_userid")]
|
||||
public string? CreatorUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置最后更新者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("update_userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("update_userid")]
|
||||
public string? UpdaterUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 SHA 哈希值。
|
||||
/// </summary>
|
||||
|
@ -7,13 +7,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileMoveRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上级文件 ID 或空间 ID。
|
||||
/// </summary>
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileRenameRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID。
|
||||
/// </summary>
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileSettingRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID。
|
||||
/// </summary>
|
||||
@ -27,10 +20,10 @@
|
||||
public int AuthScope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置权限。
|
||||
/// 获取或设置权限类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth")]
|
||||
public int? Authority { get; set; }
|
||||
public int? AuthType { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveFileShareRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID。
|
||||
/// </summary>
|
||||
|
@ -6,25 +6,25 @@
|
||||
public class CgibinWebDriveFileUploadRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// 获取或设置 JSAPI 返回的 SelectedTicket。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
[Newtonsoft.Json.JsonProperty("selected_ticket")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("selected_ticket")]
|
||||
public string? SelectedTicket { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("spaceid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("spaceid")]
|
||||
public string SpaceId { get; set; } = string.Empty;
|
||||
public string? SpaceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上级文件 ID 或空间 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fatherid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fatherid")]
|
||||
public string ParentFileOrSpaceId { get; set; } = string.Empty;
|
||||
public string? ParentFileOrSpaceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件名称。
|
||||
@ -38,6 +38,6 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("file_base64_content")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("file_base64_content")]
|
||||
public string FileData { get; set; } = string.Empty;
|
||||
public string EncodingFileContent { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
@ -9,18 +9,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AuthorizedUser : CgibinWebDriveSpaceACLAddRequest.Types.AuthorizedUser
|
||||
public class Authority : CgibinWebDriveSpaceACLAddRequest.Types.Authority
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID。
|
||||
/// </summary>
|
||||
@ -29,10 +22,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string FileId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件授权成员列表。
|
||||
/// 获取或设置文件授权信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_info")]
|
||||
public IList<Types.AuthorizedUser> AuthorizedUserList { get; set; } = new List<Types.AuthorizedUser>();
|
||||
public IList<Types.Authority> AuthorityList { get; set; } = new List<Types.Authority>();
|
||||
}
|
||||
}
|
||||
|
@ -9,18 +9,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UnauthorizedUser : CgibinWebDriveSpaceACLDeleteRequest.Types.UnauthorizedUser
|
||||
public class Authority : CgibinWebDriveSpaceACLDeleteRequest.Types.Authority
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件 ID。
|
||||
/// </summary>
|
||||
@ -29,10 +22,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string FileId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件解除授权成员列表。
|
||||
/// 获取或设置文件解除授权信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_info")]
|
||||
public IList<Types.UnauthorizedUser> UnauthorizedUserList { get; set; } = new List<Types.UnauthorizedUser>();
|
||||
public IList<Types.Authority> AuthorityList { get; set; } = new List<Types.Authority>();
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AuthorizedUser
|
||||
public class Authority
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置类型。
|
||||
@ -33,21 +33,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public long? DepartmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置权限。
|
||||
/// 获取或设置权限类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth")]
|
||||
public int Authority { get; set; }
|
||||
public int AuthType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间标题。
|
||||
/// </summary>
|
||||
@ -56,10 +49,17 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string SpaceName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间授权成员列表。
|
||||
/// 获取或设置空间授权信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_info")]
|
||||
public IList<Types.AuthorizedUser>? AuthorizedUserList { get; set; }
|
||||
public IList<Types.Authority>? AuthorityList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("space_sub_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("space_sub_type")]
|
||||
public int? SpaceSubType { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveSpaceDismissRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveSpaceInfoRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
|
@ -14,11 +14,11 @@
|
||||
public class ACL
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置空间授权成员列表。
|
||||
/// 获取或设置空间授权信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_info")]
|
||||
public AuthorizedUser[] AuthorizedUserList { get; set; } = default!;
|
||||
public Authority[] AuthorityList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间无权限成员列表。
|
||||
@ -28,7 +28,7 @@
|
||||
public string[] QuitUserIdList { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class AuthorizedUser : CgibinWebDriveSpaceCreateRequest.Types.AuthorizedUser
|
||||
public class Authority : CgibinWebDriveSpaceCreateRequest.Types.Authority
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -53,6 +53,13 @@
|
||||
[Newtonsoft.Json.JsonProperty("auth_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_list")]
|
||||
public Types.ACL ACL { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("space_sub_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("space_sub_type")]
|
||||
public int SpaceSubType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveSpaceRenameRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveSpaceSettingRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
@ -27,18 +20,11 @@
|
||||
public bool? EnableWatermark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置启用成员邀请链接。
|
||||
/// 获取或设置是否启用保密模式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("enable_share_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_share_url")]
|
||||
public bool? EnableShareUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否仅管理员可增减空间成员和修改文件分享设置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("add_member_only_admin")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("add_member_only_admin")]
|
||||
public bool? IsOnlyAdminCanAddMember { get; set; }
|
||||
[Newtonsoft.Json.JsonProperty("enable_confidential_mode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("enable_confidential_mode")]
|
||||
public bool? EnableConfidentialMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否通过链接加入空间无需审批。
|
||||
@ -48,10 +34,24 @@
|
||||
public bool? IsShareUrlNoApprove { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置邀请链接默认权限。
|
||||
/// 获取或设置邀请链接默认权限类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("share_url_no_approve_default_auth")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("share_url_no_approve_default_auth")]
|
||||
public int? ShareUrlNoApproveDefaultAuthority { get; set; }
|
||||
public int? ShareUrlNoApproveDefaultAuthType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文件默认可查看范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("default_file_scope")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("default_file_scope")]
|
||||
public int? DefaultFileScope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否禁止文件分享到企业外。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ban_share_external")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ban_share_external")]
|
||||
public bool? IsBanShareExternal { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,13 +5,6 @@
|
||||
/// </summary>
|
||||
public class CgibinWebDriveSpaceShareRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
|
@ -9,18 +9,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AuthorizedUser : CgibinWebDriveSpaceCreateRequest.Types.AuthorizedUser
|
||||
public class Authority : CgibinWebDriveSpaceCreateRequest.Types.Authority
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
@ -29,10 +22,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string SpaceId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间授权成员列表。
|
||||
/// 获取或设置空间授权信息表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_info")]
|
||||
public IList<Types.AuthorizedUser> AuthorizedUserList { get; set; } = new List<Types.AuthorizedUser>();
|
||||
public IList<Types.Authority> AuthorityList { get; set; } = new List<Types.Authority>();
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class UnauthorizedUser
|
||||
public class Authority
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置类型。
|
||||
@ -34,13 +34,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置操作者成员账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("userid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("userid")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间 ID。
|
||||
/// </summary>
|
||||
@ -49,10 +42,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
public string SpaceId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置空间解除授权成员列表。
|
||||
/// 获取或设置空间解除授权信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auth_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auth_info")]
|
||||
public IList<Types.UnauthorizedUser> UnauthorizedUserList { get; set; } = new List<Types.UnauthorizedUser>();
|
||||
public IList<Types.Authority> AuthorityList { get; set; } = new List<Types.Authority>();
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID",
|
||||
"fatherid": "FATHERID",
|
||||
"file_type": 1,
|
||||
|
@ -1,4 +1,3 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": ["FILEID1", "FILEID2"]
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": "FILEID"
|
||||
"fileid": "FILEID",
|
||||
"selected_ticket": "SELECTED_TICKET"
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": "FILEID"
|
||||
}
|
||||
|
@ -11,8 +11,6 @@
|
||||
"mtime": 123456789,
|
||||
"file_type": 1,
|
||||
"file_status": 1,
|
||||
"create_userid": "CREATE_USERID",
|
||||
"update_userid": "UPDATE_USERID",
|
||||
"sha": "SHA",
|
||||
"md5": "MD5",
|
||||
"url": "URL"
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID",
|
||||
"fatherid": "FATHERID",
|
||||
"sort_type": 1,
|
||||
|
@ -15,8 +15,6 @@
|
||||
"mtime": 123456789,
|
||||
"file_type": 1,
|
||||
"file_status": 1,
|
||||
"create_userid": "CREATE_USERID",
|
||||
"update_userid": "UPDATE_USERID",
|
||||
"sha": "SHA",
|
||||
"md5": "MD5",
|
||||
"url": "URL"
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fatherid": "FATHERID",
|
||||
"replace": true,
|
||||
"fileid": ["FILEID1", "FILEID2"]
|
||||
|
@ -13,8 +13,6 @@
|
||||
"mtime": 123456789,
|
||||
"file_type": 1,
|
||||
"file_status": 1,
|
||||
"create_userid": "CREATE_USERID",
|
||||
"update_userid": "UPDATE_USERID",
|
||||
"sha": "SHA",
|
||||
"md5": "MD5"
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": "FILEID",
|
||||
"new_name": "NEW_NAME"
|
||||
}
|
||||
|
@ -11,8 +11,6 @@
|
||||
"mtime": 123456789,
|
||||
"file_type": 1,
|
||||
"file_status": 1,
|
||||
"create_userid": "CREATE_USERID",
|
||||
"update_userid": "UPDATE_USERID",
|
||||
"sha": "SHA",
|
||||
"md5": "MD5"
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": "FILDID",
|
||||
"auth_scope": 1,
|
||||
"auth": 1
|
||||
|
@ -1,4 +1,3 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": "FILEID"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID",
|
||||
"fatherid": "FATHERID",
|
||||
"selected_ticket": "SELECTED_TICKET",
|
||||
"file_name": "FILE_NAME",
|
||||
"file_base64_content": "FILE_BASE64_CONTENT"
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": "FILEID",
|
||||
"auth_info": [
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"fileid": "FILEID",
|
||||
"auth_info": [
|
||||
{
|
||||
|
@ -1,16 +1,16 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"space_name": "SPACE_NAME",
|
||||
"auth_info": [
|
||||
{
|
||||
"type": 1,
|
||||
"userid": "USERID",
|
||||
"auth": 2
|
||||
"auth": 7
|
||||
},
|
||||
{
|
||||
"type": 2,
|
||||
"departmentid": 1,
|
||||
"auth": 1
|
||||
}
|
||||
]
|
||||
],
|
||||
"space_sub_type": 0
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID"
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID"
|
||||
}
|
||||
|
@ -23,6 +23,7 @@
|
||||
}
|
||||
],
|
||||
"quit_userid": ["USERID3", "USERID4"]
|
||||
}
|
||||
},
|
||||
"space_sub_type":0
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID",
|
||||
"space_name": "SPACE_NAME"
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID",
|
||||
"enable_watermark": true,
|
||||
"add_member_only_admin": true,
|
||||
"enable_share_url": false,
|
||||
"share_url_no_approve": true,
|
||||
"share_url_no_approve_default_auth": 4
|
||||
"share_url_no_approve_default_auth": 1,
|
||||
"enable_confidential_mode":true,
|
||||
"default_file_scope":1,
|
||||
"ban_share_external":false
|
||||
}
|
||||
|
@ -1,4 +1,3 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID"
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID",
|
||||
"auth_info": [
|
||||
{
|
||||
|
@ -1,5 +1,4 @@
|
||||
{
|
||||
"userid": "USERID",
|
||||
"spaceid": "SPACEID",
|
||||
"auth_info": [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user