mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-23 12:33:44 +08:00
feat(work): 标记原数据分析专区相关接口为已废弃
This commit is contained in:
@@ -19,6 +19,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public static async Task<Models.SpecialGetTokenResponse> ExecuteSpecialGetTokenAsync(this WechatWorkSpecialApiClient client, Models.SpecialGetTokenRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
@@ -42,6 +43,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public static async Task<Models.SpecialListJobResponse> ExecuteSpecialListJobAsync(this WechatWorkSpecialApiClient client, Models.SpecialListJobRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
@@ -66,6 +68,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public static async Task<Models.SpecialExecuteAndReportJobResponse> ExecuteSpecialExecuteAndReportJobAsync(this WechatWorkSpecialApiClient client, Models.SpecialExecuteAndReportJobRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
@@ -89,6 +92,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public static async Task<Models.SpecialFetchMessageResponse> ExecuteSpecialFetchMessageAsync(this WechatWorkSpecialApiClient client, Models.SpecialFetchMessageRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
@@ -112,6 +116,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public static async Task<Models.SpecialDownloadMediaResponse> ExecuteSpecialDownloadMediaAsync(this WechatWorkSpecialApiClient client, Models.SpecialDownloadMediaRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /spec/download_media 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialDownloadMediaRequest : WechatWorkSpecialApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /spec/download_media 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialDownloadMediaResponse : WechatWorkSpecialApiResponse
|
||||
{
|
||||
public override bool IsSuccessful()
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/exec_and_report_job 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialExecuteAndReportJobRequest : WechatWorkSpecialApiRequest
|
||||
{
|
||||
public static class Types
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/exec_and_report_job 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialExecuteAndReportJobResponse : WechatWorkSpecialApiResponse
|
||||
{
|
||||
}
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/fetch_msg 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialFetchMessageRequest : WechatWorkSpecialApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
@@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/fetch_msg 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialFetchMessageResponse : WechatWorkSpecialApiResponse
|
||||
{
|
||||
public static class Types
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/gettoken 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialGetTokenRequest : WechatWorkSpecialApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/gettoken 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialGetTokenResponse : WechatWorkSpecialApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/list_job 接口的请求。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialListJobRequest : WechatWorkSpecialApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -1,8 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /spec/list_job 接口的响应。</para>
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class SpecialListJobResponse : WechatWorkSpecialApiResponse
|
||||
{
|
||||
public static class Types
|
||||
|
@@ -9,6 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi
|
||||
/// <summary>
|
||||
/// 一个企业微信数据分析专区 API HTTP 客户端。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public sealed class WechatWorkSpecialApiClient : CommonClientBase, ICommonClient
|
||||
{
|
||||
/// <summary>
|
||||
|
@@ -746,7 +746,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region SecurityApi
|
||||
#region SpecialApi
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/chatdata/specapi/create_job 接口。</para>
|
||||
/// <para>
|
||||
@@ -758,7 +758,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinChatDataSecurityApiCreateJobResponse> ExecuteCgibinChatDataSecurityApiCreateJobAsync(this WechatWorkClient client, Models.CgibinChatDataSecurityApiCreateJobRequest request, CancellationToken cancellationToken = default)
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public static async Task<Models.CgibinChatDataSpecialApiCreateJobResponse> ExecuteCgibinChatDataSpecialApiCreateJobAsync(this WechatWorkClient client, Models.CgibinChatDataSpecialApiCreateJobRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
@@ -767,7 +768,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "cgi-bin", "chatdata", "specapi", "create_job")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.CgibinChatDataSecurityApiCreateJobResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); ;
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.CgibinChatDataSpecialApiCreateJobResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -781,7 +782,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinChatDataSecurityApiGetJobResultResponse> ExecuteCgibinChatDataSecurityApiGetJobResultAsync(this WechatWorkClient client, Models.CgibinChatDataSecurityApiGetJobResultRequest request, CancellationToken cancellationToken = default)
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public static async Task<Models.CgibinChatDataSpecialApiGetJobResultResponse> ExecuteCgibinChatDataSpecialApiGetJobResultAsync(this WechatWorkClient client, Models.CgibinChatDataSpecialApiGetJobResultRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
@@ -790,7 +792,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "cgi-bin", "chatdata", "specapi", "get_job_result")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.CgibinChatDataSecurityApiGetJobResultResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); ;
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.CgibinChatDataSpecialApiGetJobResultResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); ;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
@@ -5,7 +6,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/chatdata/specapi/create_job 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinChatDataSecurityApiCreateJobRequest : WechatWorkRequest
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class CgibinChatDataSpecialApiCreateJobRequest : WechatWorkRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/chatdata/specapi/create_job 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinChatDataSecurityApiCreateJobResponse : WechatWorkResponse
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class CgibinChatDataSpecialApiCreateJobResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置任务 ID。
|
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/chatdata/specapi/get_job_result 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinChatDataSecurityApiGetJobResultRequest : WechatWorkRequest
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class CgibinChatDataSpecialApiGetJobResultRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置任务 ID。
|
@@ -1,9 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/chatdata/specapi/get_job_result 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinChatDataSecurityApiGetJobResultResponse : WechatWorkResponse
|
||||
[Obsolete("相关接口或字段于 2024-06-06 下线。")]
|
||||
public class CgibinChatDataSpecialApiGetJobResultResponse : WechatWorkResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
Reference in New Issue
Block a user