mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 01:46:20 +08:00
fix(work): 修复代码分析工具检测出的 API 定义问题
This commit is contained in:
parent
017acf36e9
commit
f5adf00c8a
@ -86,7 +86,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
/// <param name="cancellationToken"></param>
|
/// <param name="cancellationToken"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static async Task<Models.CgibinCardInvoiceReimburseGetInvoiceBatchResponse> ExecuteCgibinCardInvoiceReimburseGetInvoiceBatchAsync(this WechatWorkClient client, Models.CgibinCardInvoiceReimburseGetInvoiceBatchRequest request, CancellationToken cancellationToken = default)
|
public static async Task<Models.CgibinCardInvoiceReimburseGetInvoiceInfoBatchResponse> ExecuteCgibinCardInvoiceReimburseGetInvoiceInfoBatchAsync(this WechatWorkClient client, Models.CgibinCardInvoiceReimburseGetInvoiceInfoBatchRequest request, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
@ -96,7 +96,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
.SetOptions(request)
|
.SetOptions(request)
|
||||||
.SetQueryParam("access_token", request.AccessToken);
|
.SetQueryParam("access_token", request.AccessToken);
|
||||||
|
|
||||||
return await client.SendRequestWithJsonAsync<Models.CgibinCardInvoiceReimburseGetInvoiceBatchResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
return await client.SendRequestWithJsonAsync<Models.CgibinCardInvoiceReimburseGetInvoiceInfoBatchResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>异步调用 [POST] /cgi-bin/oa/approval/getapprovalinfo 接口。</para>
|
/// <para>异步调用 [POST] /cgi-bin/oa/getapprovalinfo 接口。</para>
|
||||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/91816 </para>
|
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/91816 </para>
|
||||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90001/90143/94603 </para>
|
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90001/90143/94603 </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -92,7 +92,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
|
|
||||||
IFlurlRequest flurlReq = client
|
IFlurlRequest flurlReq = client
|
||||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "approval", "getapprovalinfo")
|
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "getapprovalinfo")
|
||||||
.SetOptions(request)
|
.SetOptions(request)
|
||||||
.SetQueryParam("access_token", request.AccessToken);
|
.SetQueryParam("access_token", request.AccessToken);
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>异步调用 [POST] /cgi-bin/oa/approval/getapprovaldetail 接口。</para>
|
/// <para>异步调用 [POST] /cgi-bin/oa/getapprovaldetail 接口。</para>
|
||||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/91983 </para>
|
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90000/90135/91983 </para>
|
||||||
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90001/90143/92634 </para>
|
/// <para>REF: https://open.work.weixin.qq.com/api/doc/90001/90143/92634 </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -114,7 +114,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
|
|||||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
|
|
||||||
IFlurlRequest flurlReq = client
|
IFlurlRequest flurlReq = client
|
||||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "approval", "getapprovaldetail")
|
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "getapprovaldetail")
|
||||||
.SetOptions(request)
|
.SetOptions(request)
|
||||||
.SetQueryParam("access_token", request.AccessToken);
|
.SetQueryParam("access_token", request.AccessToken);
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/agent/set 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/agent/set_scope 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinAgentSetScopeResponse : WechatWorkResponse
|
public class CgibinAgentSetScopeResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
@ -4,9 +4,9 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoicebatch 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoiceinfobatch 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinCardInvoiceReimburseGetInvoiceBatchRequest : WechatWorkRequest
|
public class CgibinCardInvoiceReimburseGetInvoiceInfoBatchRequest : WechatWorkRequest
|
||||||
{
|
{
|
||||||
public static class Types
|
public static class Types
|
||||||
{
|
{
|
@ -4,9 +4,9 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoicebatch 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoiceinfobatch 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinCardInvoiceReimburseGetInvoiceBatchResponse : WechatWorkResponse
|
public class CgibinCardInvoiceReimburseGetInvoiceInfoBatchResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
public static class Types
|
public static class Types
|
||||||
{
|
{
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/corp/get_join_qrcode 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/corp/getopenapprovaldata 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinCorpGetOpenApprovalDataRequest : WechatWorkRequest
|
public class CgibinCorpGetOpenApprovalDataRequest : WechatWorkRequest
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/corp/get_join_qrcode 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/corp/getopenapprovaldata 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinCorpGetOpenApprovalDataResponse : WechatWorkResponse
|
public class CgibinCorpGetOpenApprovalDataResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/externalcontact/del_corp_tag_list 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/externalcontact/del_corp_tag 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinExternalContactDeleteCorpTagResponse : WechatWorkResponse
|
public class CgibinExternalContactDeleteCorpTagResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GETs] /cgi-bin/menu/delete 接口的响应。</para>
|
/// <para>表示 [GET] /cgi-bin/menu/delete 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinMenuDeleteResponse : WechatWorkResponse
|
public class CgibinMenuDeleteResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_list 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_detail 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinOAJournalGetRecordDetailRequest : WechatWorkRequest
|
public class CgibinOAJournalGetRecordDetailRequest : WechatWorkRequest
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_list 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_detail 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinOAJournalGetRecordDetailResponse : WechatWorkResponse
|
public class CgibinOAJournalGetRecordDetailResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /cgi-bin/service/get_login_info 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/service/get_login_info 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinServiceGetLoginInfoRequest : WechatWorkRequest
|
public class CgibinServiceGetLoginInfoRequest : WechatWorkRequest
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /cgi-bin/service/get_login_info 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/service/get_login_info 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinServiceGetLoginInfoResponse : WechatWorkResponse
|
public class CgibinServiceGetLoginInfoResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /cgi-bin/service/get_register_code 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/service/get_register_code 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinServiceGetRegisterCodeRequest : WechatWorkRequest
|
public class CgibinServiceGetRegisterCodeRequest : WechatWorkRequest
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /cgi-bin/service/get_register_code 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/service/get_register_code 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinServiceGetRegisterCodeResponse : WechatWorkResponse
|
public class CgibinServiceGetRegisterCodeResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /cgi-bin/service/get_register_info 接口的请求。</para>
|
/// <para>表示 [POST] /cgi-bin/service/get_register_info 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinServiceGetRegisterInfoRequest : WechatWorkRequest
|
public class CgibinServiceGetRegisterInfoRequest : WechatWorkRequest
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [GET] /cgi-bin/service/get_register_info 接口的响应。</para>
|
/// <para>表示 [POST] /cgi-bin/service/get_register_info 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CgibinServiceGetRegisterInfoResponse : WechatWorkResponse
|
public class CgibinServiceGetRegisterInfoResponse : WechatWorkResponse
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user