diff --git a/README.md b/README.md index ef7c4069..8fe73be3 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ - 本库专注于 API 本身的封装;盛派微信 SDK 提供了大而全的功能,可与 MVC 深度集成。 -- 本库的接口模型遵循的是微软官方推荐的 C# 属性命名方式(大驼峰命名法);盛派微信 SDK 提供的是微信支付接口本身的命名方式(蛇形命名法和小驼峰命名法混杂)。 +- 本库的接口模型遵循的是微软官方推荐的 C# 属性命名方式(大驼峰命名法);盛派微信 SDK 提供的是微信接口本身的命名方式(蛇形命名法和小驼峰命名法混杂)。 - 本库封装了**目前微信官方提供的所有 API**(不支持的已在各模块文档中列出具体原因);盛派微信 SDK 只提供了常用的 API,只完整支持直连商户模式、部分支持服务商模式。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCardExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCardExtensions.cs index 71738fdd..7551fa0b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCardExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCardExtensions.cs @@ -858,8 +858,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api #region GiftCardOrder /// - /// 异步调用 [POST] /card/paygiftcard/order/get 接口。 - /// REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Membership_Cards/Manage_Member_Card.html#4 + /// 异步调用 [POST] /card/giftcard/order/get 接口。 + /// REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/gift_card.html /// /// /// @@ -871,7 +871,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(HttpMethod.Post, "card", "paygiftcard", "order", "get") + .CreateRequest(HttpMethod.Post, "card", "giftcard", "order", "get") .SetOptions(request) .SetQueryParam("access_token", request.AccessToken); @@ -879,8 +879,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api } /// - /// 异步调用 [POST] /card/paygiftcard/order/batchget 接口。 - /// REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Membership_Cards/Manage_Member_Card.html#4 + /// 异步调用 [POST] /card/giftcard/order/batchget 接口。 + /// REF:https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/gift_card.html /// /// /// @@ -892,7 +892,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(HttpMethod.Post, "card", "paygiftcard", "order", "batchget") + .CreateRequest(HttpMethod.Post, "card", "giftcard", "order", "batchget") .SetOptions(request) .SetQueryParam("access_token", request.AccessToken); @@ -900,8 +900,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api } /// - /// 异步调用 [POST] /card/paygiftcard/order/refund 接口。 - /// REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Membership_Cards/Manage_Member_Card.html#4 + /// 异步调用 [POST] /card/giftcard/order/refund 接口。 + /// REF: https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/gift_card.html /// /// /// @@ -913,7 +913,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(HttpMethod.Post, "card", "paygiftcard", "order", "refund") + .CreateRequest(HttpMethod.Post, "card", "giftcard", "order", "refund") .SetOptions(request) .SetQueryParam("access_token", request.AccessToken); diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinUserExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinUserExtensions.cs index aca99e19..438e301b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinUserExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteCgibinUserExtensions.cs @@ -84,7 +84,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// /// - public static async Task ExecuteCgibinUserAsync(this WechatApiClient client, Models.CgibinUserRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteCgibinUserGetAsync(this WechatApiClient client, Models.CgibinUserGetRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -97,7 +97,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api if (!string.IsNullOrEmpty(request.NextOpenId)) flurlReq.SetQueryParam("next_openid", request.NextOpenId); - return await client.SendRequestAsync(flurlReq, cancellationToken: cancellationToken); + return await client.SendRequestAsync(flurlReq, cancellationToken: cancellationToken); } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CV/OCR/CVOCRCommonResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CV/OCR/CVOCRCommonResponse.cs index a53fa524..6c423eec 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CV/OCR/CVOCRCommonResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CV/OCR/CVOCRCommonResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cv/ocr/bankcard 接口的响应。 + /// 表示 [POST] /cv/ocr/comm 接口的响应。 /// public class CVOCRCommonResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideAddGuideBuyerRelationResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideAddGuideBuyerRelationResponse.cs index 26d5d4c6..8c27d44f 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideAddGuideBuyerRelationResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideAddGuideBuyerRelationResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/guide/getguidebuyerchatrecord 接口的响应。 + /// 表示 [POST] /cgi-bin/guide/addguidebuyerrelation 接口的响应。 /// public class CgibinGuideAddGuideBuyerRelationResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideGetGuideBuyerRelationListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideGetGuideBuyerRelationListRequest.cs index f339885d..cc73ae97 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideGetGuideBuyerRelationListRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideGetGuideBuyerRelationListRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/guide/addguidebuyerrelation 接口的请求。 + /// 表示 [POST] /cgi-bin/guide/getguidebuyerrelationlist 接口的请求。 /// public class CgibinGuideGetGuideBuyerRelationListRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideRebindGuideAccountForBuyerResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideRebindGuideAccountForBuyerResponse.cs index 42ef7717..43c800df 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideRebindGuideAccountForBuyerResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/BuyerRelation/CgibinGuideRebindGuideAccountForBuyerResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/guide/getguidebuyerchatrecord 接口的响应。 + /// 表示 [POST] /cgi-bin/guide/rebindguideacctforbuyer 接口的响应。 /// public class CgibinGuideRebindGuideAccountForBuyerResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupRequest.cs index 14ba0db7..c6b745f3 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/guide/addguide2guidegroup 接口的请求。 + /// 表示 [POST] /cgi-bin/guide/delguide2guidegroup 接口的请求。 /// public class CgibinGuideDeleteGuide2GuideGroupRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupResponse.cs index bc827800..dd6ad4cb 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Group/CgibinGuideDeleteGuide2GuideGroupResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/guide/addguide2guidegroup 接口的响应。 + /// 表示 [POST] /cgi-bin/guide/delguide2guidegroup 接口的响应。 /// public class CgibinGuideDeleteGuide2GuideGroupResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Tag/CgibinGuideDeleteGuideBuyerTagResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Tag/CgibinGuideDeleteGuideBuyerTagResponse.cs index 1580ce10..7fb58465 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Tag/CgibinGuideDeleteGuideBuyerTagResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinGuide/Tag/CgibinGuideDeleteGuideBuyerTagResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/guide/addguidebuyertag 接口的响应。 + /// 表示 [POST] /cgi-bin/guide/delguidebuyertag 接口的响应。 /// public class CgibinGuideDeleteGuideBuyerTagResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountRequest.cs index f87409bc..f3598738 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/material/get_materialcount 接口的请求。 + /// 表示 [GET] /cgi-bin/material/get_materialcount 接口的请求。 /// public class CgibinMaterialGetMaterialCountRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountResponse.cs index a3d781e4..3f8d9946 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMaterial/CgibinMaterialGetMaterialCountResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/material/get_materialcount 接口的响应。 + /// 表示 [GET] /cgi-bin/material/get_materialcount 接口的响应。 /// public class CgibinMaterialGetMaterialCountResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMedia/CgibinMediaUploadNewsResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMedia/CgibinMediaUploadNewsResponse.cs index d97f99b4..24e3392d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMedia/CgibinMediaUploadNewsResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMedia/CgibinMediaUploadNewsResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/media/uploadimg 接口的响应。 + /// 表示 [POST] /cgi-bin/media/uploadnews 接口的响应。 /// public class CgibinMediaUploadNewsResponse : CgibinMediaUploadResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs index 7d92142d..21adffb0 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/open/create 接口的请求。 + /// 表示 [POST] /cgi-bin/open/get 接口的请求。 /// public class CgibinOpenGetRequest : CgibinOpenCreateRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinPOI/CgibinPOIDeletePOIResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinPOI/CgibinPOIDeletePOIResponse.cs index 1a244003..887e964a 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinPOI/CgibinPOIDeletePOIResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinPOI/CgibinPOIDeletePOIResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /cgi-bin/poi/de;poi 接口的响应。 + /// 表示 [POST] /cgi-bin/poi/delpoi 接口的响应。 /// public class CgibinPOIDeletePOIResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserGetRequest.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserRequest.cs rename to src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserGetRequest.cs index 91b259ad..2866adc9 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserGetRequest.cs @@ -4,9 +4,9 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [GET] /cgi-bin/user 接口的请求。 + /// 表示 [GET] /cgi-bin/user/get 接口的请求。 /// - public class CgibinUserRequest : WechatApiRequest + public class CgibinUserGetRequest : WechatApiRequest { /// /// 获取或设置第一个拉取的 OpenId。不填默认从头开始拉取。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserGetResponse.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserResponse.cs rename to src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserGetResponse.cs index ccd885f5..e4ee4d87 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinUser/CgibinUserGetResponse.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 表示 [GET] /cgi-bin/user/get 接口的响应。 /// - public class CgibinUserResponse : WechatApiResponse + public class CgibinUserGetResponse : WechatApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/KfSession/CustomServiceKfSessionGetWaitCaseResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/KfSession/CustomServiceKfSessionGetWaitCaseResponse.cs index 54b659b9..a1682f25 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/KfSession/CustomServiceKfSessionGetWaitCaseResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/KfSession/CustomServiceKfSessionGetWaitCaseResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [GET] /customservice/kfsession/waitcase 接口的响应。 + /// 表示 [GET] /customservice/kfsession/getwaitcase 接口的响应。 /// public class CustomServiceKfSessionGetWaitCaseResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListRequest.cs index 3d3c91d7..d712dce3 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListRequest.cs @@ -9,14 +9,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class CustomServiceMessageRecordGetMessageListRequest : WechatApiRequest { /// - /// 获取或设置起始时间戳。 + /// 获取或设置指定起始时间戳。 /// [Newtonsoft.Json.JsonProperty("starttime")] [System.Text.Json.Serialization.JsonPropertyName("starttime")] public long StartTimestamp { get; set; } /// - /// 获取或设置结束时间戳。 + /// 获取或设置指定结束时间戳。 /// [Newtonsoft.Json.JsonProperty("endtime")] [System.Text.Json.Serialization.JsonPropertyName("endtime")] @@ -30,7 +30,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public long MessageId { get; set; } = 1; /// - /// 获取或设置每次获取条数。 + /// 获取或设置分页每页数量。 /// [Newtonsoft.Json.JsonProperty("number")] [System.Text.Json.Serialization.JsonPropertyName("number")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListResponse.cs index 1ea4ef28..293f2b39 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CustomService/MessageRecord/CustomServiceMessageRecordGetMessageListResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [GET] /customservice/msgrecord/getmsglist 接口的响应。 + /// 表示 [POST] /customservice/msgrecord/getmsglist 接口的响应。 /// public class CustomServiceMessageRecordGetMessageListResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKURequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKURequest.cs index 0c495ee7..a34650fe 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKURequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKURequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /merchant/category/getgetsku 接口的请求。 + /// 表示 [POST] /merchant/category/getsku 接口的请求。 /// public class MerchantCategoryGetSKURequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKUResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKUResponse.cs index 98dbd31f..b1fd462b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKUResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Category/MerchantCategoryGetSKUResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /merchant/category/getgetsku 接口的响应。 + /// 表示 [POST] /merchant/category/getsku 接口的响应。 /// public class MerchantCategoryGetSKUResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Group/MerchantGroupDeleteResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Group/MerchantGroupDeleteResponse.cs index cedd082f..01f20c21 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Group/MerchantGroupDeleteResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Merchant/Group/MerchantGroupDeleteResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /merchant/express/del 接口的响应。 + /// 表示 [POST] /merchant/group/del 接口的响应。 /// public class MerchantGroupDeleteResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderRequest.cs index 76be3dd7..b3288295 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /nontax/downloadbill 接口的请求。 + /// 表示 [POST] /nontax/notifyinconsistentorder 接口的请求。 /// public class NontaxNotifyInconsistentOrderRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderResponse.cs index 98c42697..f32eb41e 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxNotifyInconsistentOrderResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /nontax/downloadbill 接口的响应。 + /// 表示 [POST] /nontax/notifyinconsistentorder 接口的响应。 /// public class NontaxNotifyInconsistentOrderResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Address/ProductAddressDeleteRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Address/ProductAddressDeleteRequest.cs index 6e5c276b..73a0d0a1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Address/ProductAddressDeleteRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Address/ProductAddressDeleteRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/address/update 接口的请求。 + /// 表示 [POST] /product/address/delete 接口的请求。 /// public class ProductAddressDeleteRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusRequest.cs index 8aa41794..a535e91c 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/decoration/wxaproduct_decoration_pressure_test 接口的请求。 + /// 表示 [POST] /product/decoration/wxaproduct_decoration_query_pressure_test_status 接口的请求。 /// public class ProductDecorationWxaProductDecorationQueryPressureTestStatusRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusResponse.cs index 47715e15..575fe162 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Decoration/ProductDecorationWxaProductDecorationQueryPressureTestStatusResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/decoration/wxaproduct_decoration_pressure_test 接口的响应。 + /// 表示 [POST] /product/decoration/wxaproduct_decoration_query_pressure_test_status 接口的响应。 /// public class ProductDecorationWxaProductDecorationQueryPressureTestStatusResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceRequest.cs index c6a023be..cc244601 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/sku/add 接口的请求。 + /// 表示 [POST] /product/sku/update_price 接口的请求。 /// public class ProductSKUUpdatePriceRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceResponse.cs index 02377007..9da12972 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdatePriceResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/sku/add 接口的响应。 + /// 表示 [POST] /product/sku/update_price 接口的响应。 /// public class ProductSKUUpdatePriceResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateRequest.cs index 748e5af3..a04cf84a 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/sku/add 接口的请求。 + /// 表示 [POST] /product/sku/update 接口的请求。 /// public class ProductSKUUpdateRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateResponse.cs index b657f3d4..1e17f677 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SKU/ProductSKUUpdateResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/sku/add 接口的响应。 + /// 表示 [POST] /product/sku/update 接口的响应。 /// public class ProductSKUUpdateResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SPU/ProductSPUListingResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SPU/ProductSPUListingResponse.cs index cd1155d0..b0024f82 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SPU/ProductSPUListingResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/SPU/ProductSPUListingResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /product/spu/del 接口的响应。 + /// 表示 [POST] /product/spu/listing 接口的响应。 /// public class ProductSPUListingResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Request.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Request.cs index 2571b9bf..8431b393 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Request.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Request.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /tcb/sendsms2 接口的请求。 + /// 表示 [POST] /tcb/sendsmsv2 接口的请求。 /// public class TcbSendSmsV2Request : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Response.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Response.cs index d49d7f24..c6aca293 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Response.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Tcb/TcbSendSmsV2Response.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /tcb/sendsms2 接口的响应。 + /// 表示 [POST] /tcb/sendsmsv2 接口的响应。 /// public class TcbSendSmsV2Response : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameRequest.cs index faa6689c..73021f27 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [GET] /wxa/createwxagameroom 接口的请求。 + /// 表示 [GET] /wxa/getwxagameframe 接口的请求。 /// public class WxaGetWxaGameFrameRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameResponse.cs index 9c2b71b9..671f6508 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/LockStep/WxaGetWxaGameFrameResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [GET] /wxa/createwxagameroom 接口的响应。 + /// 表示 [GET] /wxa/getwxagameframe 接口的响应。 /// public class WxaGetWxaGameFrameResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceRequest.cs index 56900e3d..acbda82e 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /wxaapi/log/jserr_list 接口的请求。 + /// 表示 [POST] /wxaapi/log/get_performance 接口的请求。 /// public class WxaApiLogGetPerformanceRequest : WechatApiRequest { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceResponse.cs index 99dd272f..ec7da70b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Operation/WxaApiLogGetPerformanceResponse.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /wxaapi/log/jserr_list 接口的响应。 + /// 表示 [POST] /wxaapi/log/get_performance 接口的响应。 /// public class WxaApiLogGetPerformanceResponse : WechatApiResponse { diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaBusiness/GameMatch/WxaBusinessGameMatchGetAllMatchRuleRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaBusiness/GameMatch/WxaBusinessGameMatchGetAllMatchRuleRequest.cs index 268a4403..86f07799 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaBusiness/GameMatch/WxaBusinessGameMatchGetAllMatchRuleRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaBusiness/GameMatch/WxaBusinessGameMatchGetAllMatchRuleRequest.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// - /// 表示 [POST] /wxa/business/gamematch/creatematchrule 接口的请求。 + /// 表示 [POST] /wxa/business/gamematch/getallmatchrule 接口的请求。 /// public class WxaBusinessGameMatchGetAllMatchRuleRequest : WechatApiRequest { diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserGetRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserRequest.json rename to test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserGetRequest.json diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserGetResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserResponse.json rename to test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinUser/CgibinUserGetResponse.json diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/WechatApiExecuteCgibinUserTests.cs b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/WechatApiExecuteCgibinUserTests.cs index c997babe..93028c86 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/WechatApiExecuteCgibinUserTests.cs +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/WechatApiExecuteCgibinUserTests.cs @@ -57,14 +57,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.UnitTests Assert.Equal(0, response.ErrorCode); } - [Fact(DisplayName = "[GET] /cgi-bin/user")] - public async Task CgibinUserTest() + [Fact(DisplayName = "[GET] /cgi-bin/user/get")] + public async Task CgibinUserGetTest() { - var request = new Models.CgibinUserRequest() + var request = new Models.CgibinUserGetRequest() { AccessToken = TestConfigs.WechatAccessToken }; - var response = await TestClients.Instance.ExecuteCgibinUserAsync(request); + var response = await TestClients.Instance.ExecuteCgibinUserGetAsync(request); Assert.NotEmpty(response.Data.OpenIdList); Assert.True(response.Total > 0);