mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-30 02:14:44 +08:00
feat(work): 新增通讯录异步导出相关接口
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/department 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportDepartmentRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 Base64 编码的加密密钥。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("encoding_aeskey")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("encoding_aeskey")]
|
||||
public string EncodingAESKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置每块数据的人员数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("block_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("block_size")]
|
||||
public int? BlockSize { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/department 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportDepartmentResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置导出任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("jobid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("jobid")]
|
||||
public string JobId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/export/get_result 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportGetResultRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置导出任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string JobId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/export/get_result 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportGetResultResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Result
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置任务状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据大小(单位:字节)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("size")]
|
||||
public int Size { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据哈希值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("md5")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("md5")]
|
||||
public string Hash { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置任务状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置结果列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("data_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("data_list")]
|
||||
public Types.Result[] ResultList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/simple_user 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportSimpleUserRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 Base64 编码的加密密钥。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("encoding_aeskey")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("encoding_aeskey")]
|
||||
public string EncodingAESKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置每块数据的人员数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("block_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("block_size")]
|
||||
public int? BlockSize { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/simple_user 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportSimpleUserResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置导出任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("jobid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("jobid")]
|
||||
public string JobId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/taguser 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportTagUserRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标签 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tagid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tagid")]
|
||||
public int TagId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Base64 编码的加密密钥。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("encoding_aeskey")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("encoding_aeskey")]
|
||||
public string EncodingAESKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置每块数据的人员数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("block_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("block_size")]
|
||||
public int? BlockSize { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/taguser 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportTagUserResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置导出任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("jobid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("jobid")]
|
||||
public string JobId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/user 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportUserRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 Base64 编码的加密密钥。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("encoding_aeskey")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("encoding_aeskey")]
|
||||
public string EncodingAESKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置每块数据的人员数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("block_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("block_size")]
|
||||
public int? BlockSize { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/export/user 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExportUserResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置导出任务 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("jobid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("jobid")]
|
||||
public string JobId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user