fix(work): 修复代码分析工具检测出的 API 定义问题

This commit is contained in:
Fu Diwei 2021-06-09 17:12:08 +08:00
parent 017acf36e9
commit f5adf00c8a
19 changed files with 23 additions and 23 deletions

View File

@ -86,7 +86,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <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 (request is null) throw new ArgumentNullException(nameof(request));
@ -96,7 +96,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
.SetOptions(request)
.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);
}
}
}

View File

@ -78,7 +78,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
}
/// <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/90001/90143/94603 </para>
/// </summary>
@ -92,7 +92,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "approval", "getapprovalinfo")
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "getapprovalinfo")
.SetOptions(request)
.SetQueryParam("access_token", request.AccessToken);
@ -100,7 +100,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
}
/// <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/90001/90143/92634 </para>
/// </summary>
@ -114,7 +114,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "approval", "getapprovaldetail")
.CreateRequest(HttpMethod.Post, "cgi-bin", "oa", "getapprovaldetail")
.SetOptions(request)
.SetQueryParam("access_token", request.AccessToken);

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/agent/set 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/agent/set_scope 接口的响应。</para>
/// </summary>
public class CgibinAgentSetScopeResponse : WechatWorkResponse
{

View File

@ -4,9 +4,9 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoicebatch 接口的请求。</para>
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoiceinfobatch 接口的请求。</para>
/// </summary>
public class CgibinCardInvoiceReimburseGetInvoiceBatchRequest : WechatWorkRequest
public class CgibinCardInvoiceReimburseGetInvoiceInfoBatchRequest : WechatWorkRequest
{
public static class Types
{

View File

@ -4,9 +4,9 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoicebatch 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/card/invoice/reimburse/getinvoiceinfobatch 接口的响应。</para>
/// </summary>
public class CgibinCardInvoiceReimburseGetInvoiceBatchResponse : WechatWorkResponse
public class CgibinCardInvoiceReimburseGetInvoiceInfoBatchResponse : WechatWorkResponse
{
public static class Types
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/corp/get_join_qrcode 接口的请求。</para>
/// <para>表示 [POST] /cgi-bin/corp/getopenapprovaldata 接口的请求。</para>
/// </summary>
public class CgibinCorpGetOpenApprovalDataRequest : WechatWorkRequest
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/corp/get_join_qrcode 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/corp/getopenapprovaldata 接口的响应。</para>
/// </summary>
public class CgibinCorpGetOpenApprovalDataResponse : WechatWorkResponse
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/externalcontact/del_corp_tag_list 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/externalcontact/del_corp_tag 接口的响应。</para>
/// </summary>
public class CgibinExternalContactDeleteCorpTagResponse : WechatWorkResponse
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GETs] /cgi-bin/menu/delete 接口的响应。</para>
/// <para>表示 [GET] /cgi-bin/menu/delete 接口的响应。</para>
/// </summary>
public class CgibinMenuDeleteResponse : WechatWorkResponse
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_list 接口的请求。</para>
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_detail 接口的请求。</para>
/// </summary>
public class CgibinOAJournalGetRecordDetailRequest : WechatWorkRequest
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_list 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/oa/journal/get_record_detail 接口的响应。</para>
/// </summary>
public class CgibinOAJournalGetRecordDetailResponse : WechatWorkResponse
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/service/get_login_info 接口的请求。</para>
/// <para>表示 [POST] /cgi-bin/service/get_login_info 接口的请求。</para>
/// </summary>
public class CgibinServiceGetLoginInfoRequest : WechatWorkRequest
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/service/get_login_info 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/service/get_login_info 接口的响应。</para>
/// </summary>
public class CgibinServiceGetLoginInfoResponse : WechatWorkResponse
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/service/get_register_code 接口的请求。</para>
/// <para>表示 [POST] /cgi-bin/service/get_register_code 接口的请求。</para>
/// </summary>
public class CgibinServiceGetRegisterCodeRequest : WechatWorkRequest
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/service/get_register_code 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/service/get_register_code 接口的响应。</para>
/// </summary>
public class CgibinServiceGetRegisterCodeResponse : WechatWorkResponse
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/service/get_register_info 接口的请求。</para>
/// <para>表示 [POST] /cgi-bin/service/get_register_info 接口的请求。</para>
/// </summary>
public class CgibinServiceGetRegisterInfoRequest : WechatWorkRequest
{

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/service/get_register_info 接口的响应。</para>
/// <para>表示 [POST] /cgi-bin/service/get_register_info 接口的响应。</para>
/// </summary>
public class CgibinServiceGetRegisterInfoResponse : WechatWorkResponse
{