From a47c032101b3ecc373f59605db261c8e051129b8 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 14:07:52 +0800 Subject: [PATCH 01/42] =?UTF-8?q?feat(microapp):=20=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ByteDanceMicroAppClient.cs | 94 +- .../ByteDanceMicroAppEvent.cs | 17 +- .../ByteDanceMicroAppException.cs | 6 +- .../ByteDanceMicroAppRequest.cs | 9 +- .../ByteDanceMicroAppResponse.cs | 63 +- .../CSTDateTimeOffsetConverter.cs | 54 -- .../CSTDateTimeOffsetConverter.cs | 39 - .../CstDateTimeOffsetConverter.cs | 7 + .../CstDateTimeOffsetConverter.cs | 7 + .../Events/Message/ImageMessageEvent.cs | 9 +- .../Events/Message/TextMessageEvent.cs | 7 +- ...anceMicroAppEventSerializationException.cs | 24 - ...yteDanceMicroAppRequestTimeoutException.cs | 24 - .../OpenApi/ByteDanceMicroAppOpenApiClient.cs | 104 ++ .../ByteDanceMicroAppOpenApiClientOptions.cs | 2 +- .../ByteDanceMicroAppOpenApiEndpoints.cs | 2 +- .../OpenApi/ByteDanceMicroAppOpenApiEvent.cs | 19 +- .../ByteDanceMicroAppOpenApiRequest.cs | 11 +- .../ByteDanceMicroAppOpenApiResponse.cs | 42 + .../Events/Auth/ComponentAuthorizedEvent.cs | 9 +- .../Events/Auth/ComponentPushTicketEvent.cs | 9 +- .../Events/Auth/ComponentUnauthorizedEvent.cs | 13 + .../Auth/ComponentUpdateAuthorizedEvent.cs | 9 +- .../MicroAppManagement/AppNameResetEvent.cs | 9 +- .../ModifyAppCategoryEvent.cs | 11 +- .../MicroAppManagement/ModifyAppIconEvent.cs | 9 +- .../ModifyAppIntroductionEvent.cs | 9 +- .../MicroAppManagement/ModifyAppNameEvent.cs | 9 +- .../MicroAppManagement/PackageAuditEvent.cs | 9 +- .../AliasAuditResultEvent.cs | 9 +- .../MicroAppOperation/ApplyCapabilityEvent.cs | 19 +- .../ApplyLiveCapabilityEvent.cs | 9 +- .../ApplyPhoneNumberCapabilityEvent.cs | 9 +- .../ApplyShareTemplateEvent.cs | 11 +- .../ApplyVideoCapabilityEvent.cs | 9 +- .../AwemePermissionAuditResultEvent.cs | 9 +- .../AwemeVideoKeywordAuditResultEvent.cs | 9 +- .../MicroAppOperation/BindAwemeUserEvent.cs | 9 +- ...ubscribeNotificationTemplateResultEvent.cs | 9 +- .../ScopeQuotaAuditResultEvent.cs | 9 +- .../SearchTagAuditResultEvent.cs | 9 +- .../MicroAppOperation/SelfMountBindEvent.cs | 9 +- ...nceMicroAppOpenApiClientEventExtensions.cs | 249 ++--- ...ppOpenApiClientExecuteOpenApiExtensions.cs | 547 +++++++---- ...icroAppOpenApiClientParameterExtensions.cs | 7 +- .../Auth/OpenApiAuthGenerateLinkV2Request.cs | 2 +- .../Auth/OpenApiAuthGenerateLinkV2Response.cs | 2 +- .../Auth/OpenApiAuthPreAuthCodeV2Request.cs | 2 +- .../Auth/OpenApiAuthPreAuthCodeV2Response.cs | 2 +- .../Auth/OpenApiAuthRetrieveV1Request.cs | 2 +- .../Auth/OpenApiAuthRetrieveV1Response.cs | 2 +- .../OpenApiAuthThirdPartyTokenV1Request.cs | 2 +- .../OpenApiAuthThirdPartyTokenV1Response.cs | 2 +- ...penApiMicroAppAppAddCategoriesV1Request.cs | 2 +- ...enApiMicroAppAppAddCategoriesV1Response.cs | 2 +- ...penApiMicroAppAppAllCategoriesV1Request.cs | 2 +- ...enApiMicroAppAppAllCategoriesV1Response.cs | 2 +- .../OpenApiMicroAppAppCategoriesV1Request.cs | 2 +- .../OpenApiMicroAppAppCategoriesV1Response.cs | 2 +- ...ApiMicroAppAppDeleteCategoriesV1Request.cs | 2 +- ...piMicroAppAppDeleteCategoriesV1Response.cs | 2 +- ...ApiMicroAppAppSupplyCategoriesV1Request.cs | 2 +- ...piMicroAppAppSupplyCategoriesV1Response.cs | 2 +- ...OpenApiMicroAppAppCheckAppNameV1Request.cs | 2 +- ...penApiMicroAppAppCheckAppNameV1Response.cs | 2 +- .../OpenApiMicroAppAppCreditScoreV1Request.cs | 2 +- ...OpenApiMicroAppAppCreditScoreV1Response.cs | 2 +- .../App/OpenApiMicroAppAppInfoV1Request.cs | 2 +- .../App/OpenApiMicroAppAppInfoV1Response.cs | 2 +- ...penApiMicroAppAppModifyAppIconV1Request.cs | 2 +- ...enApiMicroAppAppModifyAppIconV1Response.cs | 2 +- ...croAppAppModifyAppIntroductionV1Request.cs | 2 +- ...roAppAppModifyAppIntroductionV1Response.cs | 2 +- ...penApiMicroAppAppModifyAppNameV1Request.cs | 2 +- ...enApiMicroAppAppModifyAppNameV1Response.cs | 2 +- ...iMicroAppAppModifyServerDomainV1Request.cs | 2 +- ...MicroAppAppModifyServerDomainV1Response.cs | 2 +- ...MicroAppAppModifyWebviewDomainV1Request.cs | 2 +- ...icroAppAppModifyWebviewDomainV1Response.cs | 2 +- .../App/OpenApiMicroAppAppQrcodeV1Request.cs | 2 +- .../App/OpenApiMicroAppAppQrcodeV1Response.cs | 6 +- ...penApiMicroAppAppQualityRatingV1Request.cs | 2 +- ...enApiMicroAppAppQualityRatingV1Response.cs | 2 +- .../OpenApiMicroAppCode2SessionV1Request.cs | 2 +- .../OpenApiMicroAppCode2SessionV1Response.cs | 2 +- .../OpenApiMicroAppUploadMaterialV1Request.cs | 2 +- ...OpenApiMicroAppUploadMaterialV1Response.cs | 2 +- ...OperationLiveApplicationStatusV1Request.cs | 2 +- ...perationLiveApplicationStatusV1Response.cs | 2 +- ...croAppOperationLiveApplicationV1Request.cs | 6 +- ...roAppOperationLiveApplicationV1Response.cs | 2 +- ...onPhoneNumberApplicationStatusV1Request.cs | 2 +- ...nPhoneNumberApplicationStatusV1Response.cs | 2 +- ...perationPhoneNumberApplicationV1Request.cs | 2 +- ...erationPhoneNumberApplicationV1Response.cs | 2 +- ...perationVideoApplicationStatusV1Request.cs | 2 +- ...erationVideoApplicationStatusV1Response.cs | 2 +- ...roAppOperationVideoApplicationV1Request.cs | 2 +- ...oAppOperationVideoApplicationV1Response.cs | 2 +- ...roAppOperationAddShareTemplateV1Request.cs | 2 +- ...oAppOperationAddShareTemplateV1Response.cs | 2 +- ...ppOperationDeleteShareTemplateV1Request.cs | 2 +- ...pOperationDeleteShareTemplateV1Response.cs | 2 +- ...ppOperationModifyShareTemplateV1Request.cs | 2 +- ...pOperationModifyShareTemplateV1Response.cs | 2 +- ...erationSetDefaultShareTemplateV1Request.cs | 2 +- ...rationSetDefaultShareTemplateV1Response.cs | 2 +- ...oAppOperationShareTemplateListV1Request.cs | 2 +- ...AppOperationShareTemplateListV1Response.cs | 6 +- ...croAppOperationAddShopMaterialV1Request.cs | 2 +- ...roAppOperationAddShopMaterialV1Response.cs | 2 +- ...oAppOperationQueryShopMaterialV1Request.cs | 2 +- ...AppOperationQueryShopMaterialV1Response.cs | 2 +- ...enApiMicroAppPackageAuditHostsV1Request.cs | 2 +- ...nApiMicroAppPackageAuditHostsV1Response.cs | 2 +- .../OpenApiMicroAppPackageAuditV2Request.cs | 2 +- .../OpenApiMicroAppPackageAuditV2Response.cs | 2 +- .../OpenApiMicroAppPackageReleaseV1Request.cs | 2 +- ...OpenApiMicroAppPackageReleaseV1Response.cs | 2 +- ...nApiMicroAppPackageRevokeAuditV1Request.cs | 2 +- ...ApiMicroAppPackageRevokeAuditV1Response.cs | 2 +- ...OpenApiMicroAppPackageRollbackV1Request.cs | 2 +- ...penApiMicroAppPackageRollbackV1Response.cs | 2 +- .../OpenApiMicroAppPackageUploadV1Request.cs | 2 +- .../OpenApiMicroAppPackageUploadV1Response.cs | 2 +- ...OpenApiMicroAppPackageVersionsV1Request.cs | 2 +- ...penApiMicroAppPackageVersionsV1Response.cs | 20 +- .../OAuth/OpenApiOAuthTokenV1Request.cs | 2 +- .../OAuth/OpenApiOAuthTokenV1Response.cs | 2 +- .../Settle/OpenApiSettleApplyV1Request.cs | 6 +- .../Settle/OpenApiSettleApplyV1Response.cs | 2 +- .../OpenApiSettleGetApplyStatusV1Request.cs | 2 +- .../OpenApiSettleGetApplyStatusV1Response.cs | 2 +- .../Settle/OpenApiSettlePreCheckV1Request.cs | 2 +- .../Settle/OpenApiSettlePreCheckV1Response.cs | 2 +- ...iThirdPartyDownloadWebviewFileV1Request.cs | 2 +- ...ThirdPartyDownloadWebviewFileV1Response.cs | 6 +- .../OpenApiThirdPartyAuthAppListV1Request.cs | 2 +- .../OpenApiThirdPartyAuthAppListV1Response.cs | 2 +- ...hirdPartyUploadPictureMaterialV1Request.cs | 2 +- ...irdPartyUploadPictureMaterialV1Response.cs | 2 +- ...nApiThirdPartyPOIBaseQueryAMapV1Request.cs | 2 +- ...ApiThirdPartyPOIBaseQueryAMapV1Response.cs | 6 +- ...nApiThirdPartyPOISupplierMatchV1Request.cs | 6 +- ...ApiThirdPartyPOISupplierMatchV1Response.cs | 2 +- ...PartyPOISupplierQueryMatchTaskV1Request.cs | 2 +- ...artyPOISupplierQueryMatchTaskV1Response.cs | 2 +- ...hirdPartyPOISupplierQueryMatchV1Request.cs | 2 +- ...irdPartyPOISupplierQueryMatchV1Response.cs | 2 +- ...nApiThirdPartyPOISupplierQueryV1Request.cs | 2 +- ...ApiThirdPartyPOISupplierQueryV1Response.cs | 2 +- ...enApiThirdPartyPOISupplierSyncV1Request.cs | 2 +- ...nApiThirdPartyPOISupplierSyncV1Response.cs | 2 +- ...iThirdPartyTemplateAddTemplateV1Request.cs | 2 +- ...ThirdPartyTemplateAddTemplateV1Response.cs | 2 +- ...irdPartyTemplateDeleteTemplateV1Request.cs | 2 +- ...rdPartyTemplateDeleteTemplateV1Response.cs | 2 +- ...ThirdPartyTemplateGetDraftListV1Request.cs | 2 +- ...hirdPartyTemplateGetDraftListV1Response.cs | 2 +- ...artyTemplateGetTemplateAppListV1Request.cs | 2 +- ...rtyTemplateGetTemplateAppListV1Response.cs | 2 +- ...rdPartyTemplateGetTemplateListV1Request.cs | 2 +- ...dPartyTemplateGetTemplateListV1Response.cs | 2 +- .../OpenApi/Settings/Credentials.cs | 4 +- .../ByteDanceMicroAppProductApiClient.cs | 104 ++ ...yteDanceMicroAppProductApiClientOptions.cs | 2 +- .../ByteDanceMicroAppProductApiEndpoints.cs | 2 +- .../ByteDanceMicroAppProductApiEvent.cs | 4 +- .../ByteDanceMicroAppProductApiRequest.cs | 11 +- .../ByteDanceMicroAppProductApiResponse.cs | 42 + .../ProductApi/Events/ProductEvent.cs | 7 +- .../Events/ProductFulfilmentEvent.cs | 7 +- .../Events/ProductQualificationEvent.cs | 7 +- .../ProductApi/Events/ProductResourceEvent.cs | 7 +- ...MicroAppProductApiClientEventExtensions.cs | 51 +- ...oductApiClientExecuteProductExtensions.cs} | 158 ++-- .../ProductApiSyncCallbackUrlRequest.cs | 2 +- .../ProductApiSyncCallbackUrlResponse.cs | 2 +- .../ProductApi/Models/ProductApiAddRequest.cs | 2 +- .../Models/ProductApiAddResponse.cs | 2 +- .../Models/ProductApiModifyNoAuditRequest.cs | 2 +- .../Models/ProductApiModifyNoAuditResponse.cs | 2 +- .../Models/ProductApiModifyRequest.cs | 2 +- .../Models/ProductApiModifyResponse.cs | 2 +- .../Models/ProductApiModifyStatusRequest.cs | 2 +- .../Models/ProductApiModifyStatusResponse.cs | 2 +- .../Models/ProductApiQueryClassInfoRequest.cs | 2 +- .../ProductApiQueryClassInfoResponse.cs | 2 +- .../Models/ProductApiQueryRequest.cs | 2 +- .../Models/ProductApiQueryResponse.cs | 4 +- .../Models/ProductApiQueryReviewRequest.cs | 2 +- .../Models/ProductApiQueryReviewResponse.cs | 2 +- .../ProductApiQueryTemplateInfoRequest.cs | 2 +- .../ProductApiQueryTemplateInfoResponse.cs | 2 +- .../ProductApiAddQualificationRequest.cs | 2 +- .../ProductApiAddQualificationResponse.cs | 2 +- .../ProductApiModifyQualificationRequest.cs | 2 +- .../ProductApiModifyQualificationResponse.cs | 2 +- .../ProductApiQueryQualificationRequest.cs | 2 +- .../ProductApiQueryQualificationResponse.cs | 2 +- .../ProductApiModifyRefundRuleRequest.cs | 2 +- .../ProductApiModifyRefundRuleResponse.cs | 2 +- .../ProductApiQueryRefundRuleMetaRequest.cs | 2 +- .../ProductApiQueryRefundRuleMetaResponse.cs | 2 +- .../ProductApiQueryResourceStatusRequest.cs | 2 +- .../ProductApiQueryResourceStatusResponse.cs | 2 +- .../ProductApiUploadResourceRequest.cs | 2 +- .../ProductApiUploadResourceResponse.cs | 2 +- .../ProductApi/Settings/Credentials.cs | 4 +- .../RoleApi/ByteDanceMicroAppRoleApiClient.cs | 99 ++ .../ByteDanceMicroAppRoleApiClientOptions.cs | 2 +- .../ByteDanceMicroAppRoleApiEndpoints.cs | 7 +- .../ByteDanceMicroAppRoleApiRequest.cs | 11 +- .../ByteDanceMicroAppRoleApiResponse.cs | 58 ++ ...oAppRoleApiClientExecuteRoleExtensions.cs} | 241 +++-- .../Auth/AuthEntityAddClassAuthRequest.cs | 2 +- .../Auth/AuthEntityAddClassAuthResponse.cs | 2 +- .../Models/Auth/AuthEntityByPartnerRequest.cs | 2 +- .../Auth/AuthEntityByPartnerResponse.cs | 2 +- .../Models/Auth/AuthEntityBySelfRequest.cs | 2 +- .../Models/Auth/AuthEntityBySelfResponse.cs | 2 +- .../Auth/AuthEntityGetAuditDetailRequest.cs | 2 +- .../Auth/AuthEntityGetAuditDetailResponse.cs | 2 +- .../Auth/AuthEntityGetBasicAuthRequest.cs | 2 +- .../Auth/AuthEntityGetBasicAuthResponse.cs | 2 +- .../Auth/AuthEntityGetClassAuthRequest.cs | 2 +- .../Auth/AuthEntityGetClassAuthResponse.cs | 4 +- .../Auth/AuthEntityUpdateBasicAuthRequest.cs | 2 +- .../Auth/AuthEntityUpdateBasicAuthResponse.cs | 2 +- .../Auth/AuthEntityUpdateClassAuthRequest.cs | 2 +- .../Auth/AuthEntityUpdateClassAuthResponse.cs | 2 +- .../AuthEntityEnableMountScopeRequest.cs | 2 +- .../AuthEntityEnableMountScopeResponse.cs | 2 +- .../AuthEntityQueryEntityInfoRequest.cs | 2 +- .../AuthEntityQueryEntityInfoResponse.cs | 2 +- .../Models/AuthEntityUploadMaterialRequest.cs | 2 +- .../AuthEntityUploadMaterialResponse.cs | 2 +- .../AuthEntityActivateMerchantCodeRequest.cs | 2 +- .../AuthEntityActivateMerchantCodeResponse.cs | 2 +- ...uthEntityQueryMerchantCodeStatusRequest.cs | 2 +- ...thEntityQueryMerchantCodeStatusResponse.cs | 2 +- .../Models/Role/AuthEntityAddRoleRequest.cs | 2 +- .../Models/Role/AuthEntityAddRoleResponse.cs | 2 +- .../Models/Role/AuthEntityAuthRoleRequest.cs | 2 +- .../Models/Role/AuthEntityAuthRoleResponse.cs | 2 +- .../Models/Role/AuthEntityBindRoleRequest.cs | 2 +- .../Models/Role/AuthEntityBindRoleResponse.cs | 2 +- .../Role/AuthEntityGetAppIdAuthRequest.cs | 2 +- .../Role/AuthEntityGetAppIdAuthResponse.cs | 2 +- .../Role/AuthEntityGetBindListRequest.cs | 2 +- .../Role/AuthEntityGetBindListResponse.cs | 2 +- .../Role/AuthEntityUnauthRoleRequest.cs | 2 +- .../Role/AuthEntityUnauthRoleResponse.cs | 2 +- .../Role/AuthEntityUnbindRoleRequest.cs | 2 +- .../Role/AuthEntityUnbindRoleResponse.cs | 2 +- .../Role/AuthEntityUpdateAuthLetterRequest.cs | 2 +- .../AuthEntityUpdateAuthLetterResponse.cs | 2 +- .../RoleApi/Settings/Credentials.cs | 4 +- .../ByteDanceMicroAppClientEventExtensions.cs | 291 +++--- ...icroAppClientExecuteAppsECPayExtensions.cs | 281 +++--- ...anceMicroAppClientExecuteAppsExtensions.cs | 895 +++++++++++------- ...MicroAppClientExecuteAppsGameExtensions.cs | 45 +- ...roAppClientExecuteAppsStorageExtensions.cs | 34 +- ...eMicroAppClientExecuteCommentExtensions.cs | 11 +- ...anceMicroAppClientExecuteTagsExtensions.cs | 22 +- ...eMicroAppClientExecuteWebcastExtensions.cs | 78 +- ...acityQueryAwemePermissionListV1Response.cs | 4 +- ...CapacityQueryScopeQuotaDetailV1Response.cs | 4 +- ...ppsCapacityAddSimpleQrcodeBindV1Request.cs | 4 +- ...cityQuerySimpleQrcodeBindListV1Response.cs | 4 +- ...CapacityUpdateSimpleQrcodeBindV1Request.cs | 4 +- ...CapacityQueryAdSettlementListV1Response.cs | 2 +- ...yQueryTrafficPermissionStatusV1Response.cs | 4 +- ...ppsCategoryQueryAppCategoriesV1Response.cs | 4 +- ...DataAnalysisQueryLiveRoomDataV1Response.cs | 2 +- ...DataAnalysisQueryBehaviorDataV1Response.cs | 6 +- ...AppsDataAnalysisQueryPageDataV1Response.cs | 2 +- ...ataAnalysisQueryRetentionDataV1Response.cs | 2 +- ...ppsDataAnalysisQuerySceneDataV1Response.cs | 4 +- .../Models/Apps/Qrcode/AppsQrcodeResponse.cs | 6 +- .../AppsTaskBoxQueryTaskVideoDataResponse.cs | 2 +- .../Models/AppsECPay/AppsBillsResponse.cs | 4 +- .../Models/AppsECPay/AppsFundBillsResponse.cs | 4 +- .../Order/AppsECPayCreateOrderV1Request.cs | 6 +- .../Order/AppsECPayCreateRefundV1Request.cs | 10 +- .../Order/AppsECPayQueryOrderV1Response.cs | 6 +- .../Order/AppsECPaySettleV1Request.cs | 17 +- .../Models/Comment/CommentOpenGetResponse.cs | 4 +- .../Models/Tags/TagsImageV2Response.cs | 2 +- .../Models/Tags/TagsTextAntiDirtV2Response.cs | 2 +- .../OpenApi/ByteDanceMicroAppOpenApiClient.cs | 130 --- .../ByteDanceMicroAppOpenApiResponse.cs | 89 -- .../Events/Auth/ComponentUnauthorizedEvent.cs | 10 - .../ByteDanceMicroAppProductApiClient.cs | 130 --- .../ByteDanceMicroAppProductApiResponse.cs | 89 -- .../RoleApi/ByteDanceMicroAppRoleApiClient.cs | 115 --- .../ByteDanceMicroAppRoleApiResponse.cs | 105 -- ....FlurlHttpClient.ByteDance.MicroApp.csproj | 6 +- .../Settings/Credentials.cs | 2 +- .../Utilities/AESUtility.cs | 81 +- .../Utilities/HMACUtility.cs | 49 +- .../Utilities/Internal/XmlUtility.cs | 42 - .../Utilities/MD5Utility.cs | 37 +- .../Utilities/SHA1Utility.cs | 39 +- .../DyMsgCryptor.cs} | 39 +- .../FileHttpContentBuilder.cs | 6 +- .../FileNameToContentTypeMapper.cs | 0 .../Utilities/__Internal/XmlHelper.cs | 20 + .../IMPORTANT_CodeAnalyzeTests.cs | 215 +++++ ...Client.ByteDance.MicroApp.UnitTests.csproj | 24 +- .../TestCase_CodeReview.cs | 96 -- .../TestCase_EventVerificationTests.cs | 11 +- .../TestConfigs.cs | 8 +- .../appsettings.json | 8 +- 314 files changed, 3204 insertions(+), 2747 deletions(-) delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/Newtonsoft.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/System.Text.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/Newtonsoft.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/System.Text.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppEventSerializationException.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppRequestTimeoutException.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/ByteDanceMicroAppOpenApiEvent.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/ByteDanceMicroAppOpenApiRequest.cs (67%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/Auth/ComponentPushTicketEvent.cs (81%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs (63%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs (82%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs (84%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs (59%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs (84%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs (54%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs (66%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs (78%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs (63%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs (65%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/OpenApi/Settings/Credentials.cs (89%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClient.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/ByteDanceMicroAppProductApiEvent.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/ByteDanceMicroAppProductApiRequest.cs (62%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Events/ProductEvent.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Events/ProductFulfilmentEvent.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Events/ProductQualificationEvent.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Events/ProductResourceEvent.cs (84%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs (63%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteExtensions.cs => ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs} (63%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiAddRequest.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiAddResponse.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiModifyNoAuditRequest.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiModifyNoAuditResponse.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiModifyRequest.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiModifyResponse.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiModifyStatusRequest.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiModifyStatusResponse.cs (71%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryClassInfoRequest.cs (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryClassInfoResponse.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryRequest.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryResponse.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryReviewRequest.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryReviewResponse.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/ProductApi/Settings/Credentials.cs (81%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs (58%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/ByteDanceMicroAppRoleApiRequest.cs (56%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteExtensions.cs => ExtendedSDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs} (61%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/AuthEntityUploadMaterialRequest.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/AuthEntityUploadMaterialResponse.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs (74%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs (71%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{SDK => ExtendedSDK}/RoleApi/Settings/Credentials.cs (81%) delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiClient.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/XmlUtility.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/{Internal/TtMsgCryptor.cs => __Internal/DyMsgCryptor.cs} (78%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/{Internal => __Internal}/FileHttpContentBuilder.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/{Internal => __Internal}/FileNameToContentTypeMapper.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/XmlHelper.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs delete mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_CodeReview.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClient.cs index b5f8440b..5b42deae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClient.cs @@ -19,55 +19,51 @@ public class ByteDanceMicroAppClient : CommonClientBase, ICommonClient /// /// 获取当前客户端使用的字节小程序 API 接入点。 /// - protected internal string Endpoint { get; } + protected internal string EndpointForDefault { get; } /// /// 获取当前客户端使用的字节小程序直播小玩法 API 接入点。 /// - protected internal string EndpointForWebcastAPI { get; } + protected internal string EndpointForWebcast { get; } /// /// 用指定的配置项初始化 类的新实例。 /// /// 配置项。 public ByteDanceMicroAppClient(ByteDanceMicroAppClientOptions options) - : base() + : this(options, null) { - if (options == null) throw new ArgumentNullException(nameof(options)); - - Credentials = new Settings.Credentials(options); - Endpoint = options.Endpoint; - EndpointForWebcastAPI = options.EndpointForWebcastAPI; - - FlurlClient.BaseUrl = options.Endpoint ?? ByteDanceMicroAppEndpoints.API_MINIAPP; - FlurlClient.WithTimeout(TimeSpan.FromMilliseconds(options.Timeout)); } /// - /// 用指定的字节小程序 AppId、字节小程序 AppSecret 初始化 类的新实例。 + /// /// - /// 字节小程序应用 AppId。 - /// 字节小程序 AppSecret。 - public ByteDanceMicroAppClient(string appId, string appSecret) - : this(new ByteDanceMicroAppClientOptions() { AppId = appId, AppSecret = appSecret }) + /// + /// + /// + internal protected ByteDanceMicroAppClient(ByteDanceMicroAppClientOptions options, HttpClient? httpClient, bool disposeClient = true) + : base(httpClient, disposeClient) { + if (options is null) throw new ArgumentNullException(nameof(options)); + + Credentials = new Settings.Credentials(options); + EndpointForDefault = options.Endpoint; + EndpointForWebcast = options.EndpointForWebcastAPI; + + FlurlClient.BaseUrl = options.Endpoint ?? ByteDanceMicroAppEndpoints.API_MINIAPP; + FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); } /// /// 使用当前客户端生成一个新的 对象。 /// /// - /// + /// /// /// - public IFlurlRequest CreateRequest(ByteDanceMicroAppRequest request, HttpMethod method, params object[] urlSegments) + public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppRequest request, HttpMethod httpMethod, params object[] urlSegments) { - IFlurlRequest flurlRequest = FlurlClient.Request(urlSegments).WithVerb(method); - - if (request.Timeout != null) - { - flurlRequest.WithTimeout(TimeSpan.FromMilliseconds(request.Timeout.Value)); - } + IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); return flurlRequest; } @@ -80,24 +76,13 @@ public IFlurlRequest CreateRequest(ByteDanceMicroAppRequest request, HttpMethod /// /// /// - public async Task SendRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) + public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) where T : ByteDanceMicroAppResponse, new() { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); - try - { - using IFlurlResponse flurlResponse = await base.SendRequestAsync(flurlRequest, httpContent, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } + using IFlurlResponse flurlResponse = await base.SendFlurlRequestAsync(flurlRequest, httpContent, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); } /// @@ -108,30 +93,19 @@ public async Task SendRequestAsync(IFlurlRequest flurlRequest, HttpContent /// /// /// - public async Task SendRequestWithJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) + public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) where T : ByteDanceMicroAppResponse, new() { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); - try - { - bool isSimpleRequest = data == null || - flurlRequest.Verb == HttpMethod.Get || - flurlRequest.Verb == HttpMethod.Head || - flurlRequest.Verb == HttpMethod.Options; - using IFlurlResponse flurlResponse = isSimpleRequest ? - await base.SendRequestAsync(flurlRequest, null, cancellationToken) : - await base.SendRequestWithJsonAsync(flurlRequest, data, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } + bool isSimpleRequest = data is null || + flurlRequest.Verb == HttpMethod.Get || + flurlRequest.Verb == HttpMethod.Head || + flurlRequest.Verb == HttpMethod.Options; + using IFlurlResponse flurlResponse = isSimpleRequest ? + await base.SendFlurlRequestAsync(flurlRequest, null, cancellationToken) : + await base.SendFlurlRequestAsJsonAsync(flurlRequest, data, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEvent.cs index a25f90f5..daccbaf5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEvent.cs @@ -3,21 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp /// /// 表示字节小程序 API 消息推送事件的基类。 /// - public class ByteDanceMicroAppEvent + [Newtonsoft.Json.JsonObject] + [System.Xml.Serialization.XmlRoot("xml")] + public class ByteDanceMicroAppEvent : ICommonWebhookEvent { - public static class Serialization - { - [Newtonsoft.Json.JsonObject] - public interface IJsonSerializable - { - } - - [System.Xml.Serialization.XmlRoot("xml")] - public interface IXmlSerializable - { - } - } - /// /// 获取或设置消息接收方账号。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppException.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppException.cs index 28afcb64..8639ca1c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppException.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppException.cs @@ -1,11 +1,11 @@ -using System; +using System; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 字节小程序 API 出错时引发的异常。 + /// 当调用字节小程序 API 出错时引发的异常。 /// - public class ByteDanceMicroAppException : CommonExceptionBase + public class ByteDanceMicroAppException : CommonException { /// public ByteDanceMicroAppException() diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppRequest.cs index f74d1c90..60bbd496 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppRequest.cs @@ -3,15 +3,8 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp /// /// 字节小程序 API 请求的基类。 /// - public abstract class ByteDanceMicroAppRequest : ICommonRequest + public abstract class ByteDanceMicroAppRequest : CommonRequestBase, ICommonRequest { - /// - /// 获取或设置请求超时时间(单位:毫秒)。如果不指定将使用构造 时的 参数,这在需要指定特定耗时请求(比如上传或下载文件)的超时时间时很有用。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public virtual int? Timeout { get; set; } - /// /// 获取或设置字节小程序的 AccessToken。 /// 注意:部分第三方平台的接口中该字段表示授权方的 AuthorizerAccessToken。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppResponse.cs index 256d8db7..758f72fa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppResponse.cs @@ -1,60 +1,10 @@ -using System.Collections.Generic; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// /// 字节小程序 API 响应的基类。 /// - public abstract class ByteDanceMicroAppResponse : ICommonResponse + public abstract class ByteDanceMicroAppResponse : CommonResponseBase, ICommonResponse { - /// - /// - /// - int ICommonResponse.RawStatus { get; set; } - - /// - /// - /// - IDictionary ICommonResponse.RawHeaders { get; set; } = default!; - - /// - /// - /// - byte[] ICommonResponse.RawBytes { get; set; } = default!; - - /// - /// 获取原始的 HTTP 响应状态码。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public int RawStatus - { - get { return ((ICommonResponse)this).RawStatus; } - internal set { ((ICommonResponse)this).RawStatus = value; } - } - - /// - /// 获取原始的 HTTP 响应表头集合。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public IDictionary RawHeaders - { - get { return ((ICommonResponse)this).RawHeaders; } - internal set { ((ICommonResponse)this).RawHeaders = value; } - } - - /// - /// 获取原始的 HTTP 响应正文。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public byte[] RawBytes - { - get { return ((ICommonResponse)this).RawBytes; } - internal set { ((ICommonResponse)this).RawBytes = value; } - } - /// /// 获取字节小程序 API 返回的详细错误号。 /// @@ -74,16 +24,19 @@ public byte[] RawBytes /// [Newtonsoft.Json.JsonProperty("log_id")] [System.Text.Json.Serialization.JsonPropertyName("log_id")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] public virtual string? LogId { get; set; } /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功(即 HTTP 状态码为 200、且 "errcode" 值为 0)。 + /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// + ///(即 HTTP 状态码为 200,且 值为 0) + /// /// /// - public virtual bool IsSuccessful() + public override bool IsSuccessful() { - return RawStatus == 200 && ErrorCode == 0; + return GetRawStatus() == 200 && ErrorCode == 0; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/Newtonsoft.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/Newtonsoft.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs deleted file mode 100644 index 2f9d22d1..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/Newtonsoft.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Globalization; - -namespace Newtonsoft.Json.Converters -{ - internal class CSTDateTimeOffsetConverter : JsonConverter - { - internal const string DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss zzz CST"; - - public override bool CanRead - { - get { return true; } - } - - public override bool CanWrite - { - get { return true; } - } - - public override DateTimeOffset ReadJson(JsonReader reader, Type objectType, DateTimeOffset existingValue, bool hasExistingValue, JsonSerializer serializer) - { - if (reader.TokenType == JsonToken.Null) - { - return existingValue; - } - else if (reader.TokenType == JsonToken.String) - { - string? value = serializer.Deserialize(reader); - if (string.IsNullOrEmpty(value)) - return existingValue; - - if (DateTimeOffset.TryParseExact(value, DATETIME_FORMAT, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out DateTimeOffset d)) - return d; - - if (DateTimeOffset.TryParse(value, out d)) - return d; - - throw new JsonSerializationException($"Could not parse String '{value}' to DateTimeOffset."); - } - else if (reader.TokenType == JsonToken.Date) - { - reader.DateFormatString = DATETIME_FORMAT; - return serializer.Deserialize(reader); - } - - throw new JsonSerializationException($"Unexpected token type '{reader.TokenType}' when deserializing. Path '{reader.Path}'."); - } - - public override void WriteJson(JsonWriter writer, DateTimeOffset value, JsonSerializer serializer) - { - writer.WriteValue(value.ToString(DATETIME_FORMAT, DateTimeFormatInfo.InvariantInfo)); - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/System.Text.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/System.Text.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs deleted file mode 100644 index a094d3c3..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/Internal/System.Text.Json/DateTimeOffset/CSTDateTimeOffsetConverter.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Globalization; -using System.Text.Json.Serialization; - -namespace System.Text.Json.Converters -{ - internal class CSTDateTimeOffsetConverter : JsonConverter - { - internal const string DATETIME_FORMAT = Newtonsoft.Json.Converters.CSTDateTimeOffsetConverter.DATETIME_FORMAT; - - public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - if (reader.TokenType == JsonTokenType.Null) - { - return default; - } - else if (reader.TokenType == JsonTokenType.String) - { - string? value = reader.GetString(); - if (string.IsNullOrEmpty(value)) - return default; - - if (DateTimeOffset.TryParseExact(value, DATETIME_FORMAT, DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out DateTimeOffset d)) - return d; - - if (DateTimeOffset.TryParse(value, out d)) - return d; - - throw new JsonException($"Could not parse String '{value}' to DateTimeOffset."); - } - - throw new JsonException($"Unexpected JSON token type '{reader.TokenType}' when reading."); - } - - public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options) - { - writer.WriteStringValue(value.ToString(DATETIME_FORMAT, DateTimeFormatInfo.InvariantInfo)); - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/Newtonsoft.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/Newtonsoft.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs new file mode 100644 index 00000000..42aa68e8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/Newtonsoft.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs @@ -0,0 +1,7 @@ +namespace Newtonsoft.Json.Converters.Internal +{ + internal class CstDateTimeOffsetConverter : Common.FormattedDateTimeOffsetConverterBase + { + protected override string FormatString => "yyyy-MM-dd HH:mm:ss zzz CST"; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/System.Text.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/System.Text.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs new file mode 100644 index 00000000..94687a50 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Converters/__Internal/System.Text.Json/DateTimeOffset/CstDateTimeOffsetConverter.cs @@ -0,0 +1,7 @@ +namespace System.Text.Json.Serialization.Internal +{ + internal class CstDateTimeOffsetConverter : Common.FormattedDateTimeOffsetConverterBase + { + protected override string FormatString => "yyyy-MM-dd HH:mm:ss zzz CST"; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs index dbdd380f..781fa675 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Events { /// /// 表示 image 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/message-push-customer-service + /// + /// REF:
+ /// + ///
///
- public class ImageMessageEvent : ByteDanceMicroAppEvent, ByteDanceMicroAppEvent.Serialization.IJsonSerializable, ByteDanceMicroAppEvent.Serialization.IXmlSerializable + public class ImageMessageEvent : ByteDanceMicroAppEvent { /// /// 获取或设置图片 URL。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs index b5d4b833..6da9bd91 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs @@ -2,9 +2,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Events { /// /// 表示 text 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/message-push-customer-service + /// + /// REF:
+ /// + ///
///
- public class TextMessageEvent : ByteDanceMicroAppEvent, ByteDanceMicroAppEvent.Serialization.IJsonSerializable, ByteDanceMicroAppEvent.Serialization.IXmlSerializable + public class TextMessageEvent : ByteDanceMicroAppEvent { /// /// 获取或设置消息内容。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppEventSerializationException.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppEventSerializationException.cs deleted file mode 100644 index 64cf1da3..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppEventSerializationException.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Exceptions -{ - public class ByteDanceMicroAppEventSerializationException : ByteDanceMicroAppException - { - /// - internal ByteDanceMicroAppEventSerializationException() - { - } - - /// - internal ByteDanceMicroAppEventSerializationException(string message) - : base(message) - { - } - - /// - internal ByteDanceMicroAppEventSerializationException(string message, Exception innerException) - : base(message, innerException) - { - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppRequestTimeoutException.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppRequestTimeoutException.cs deleted file mode 100644 index cda3e0e6..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Exceptions/ByteDanceMicroAppRequestTimeoutException.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Exceptions -{ - public class ByteDanceMicroAppRequestTimeoutException : ByteDanceMicroAppException - { - /// - internal ByteDanceMicroAppRequestTimeoutException() - { - } - - /// - internal ByteDanceMicroAppRequestTimeoutException(string message) - : base(message) - { - } - - /// - internal ByteDanceMicroAppRequestTimeoutException(string message, Exception innerException) - : base(message, innerException) - { - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs new file mode 100644 index 00000000..d598c367 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs @@ -0,0 +1,104 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + /// + /// 一个字节小程序服务商平台 API HTTP 客户端。 + /// + public class ByteDanceMicroAppOpenApiClient : CommonClientBase, ICommonClient + { + /// + /// 获取当前客户端使用的字节小程序凭证。 + /// + public Settings.Credentials Credentials { get; } + + /// + /// 用指定的配置项初始化 类的新实例。 + /// + /// 配置项。 + public ByteDanceMicroAppOpenApiClient(ByteDanceMicroAppOpenApiClientOptions options) + : this(options, null) + { + } + + /// + /// + /// + /// + /// + /// + internal protected ByteDanceMicroAppOpenApiClient(ByteDanceMicroAppOpenApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) + : base(httpClient, disposeClient) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + Credentials = new Settings.Credentials(options); + + FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppOpenApiEndpoints.DEFAULT; + FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); + } + + /// + /// 使用当前客户端生成一个新的 对象。 + /// + /// + /// + /// + /// + public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppOpenApiRequest request, HttpMethod httpMethod, params object[] urlSegments) + { + IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); + + if (request.ComponentAppId is null) + { + request.ComponentAppId = Credentials.ComponentAppId; + } + + return flurlRequest; + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) + where T : ByteDanceMicroAppOpenApiResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + using IFlurlResponse flurlResponse = await base.SendFlurlRequestAsync(flurlRequest, httpContent, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) + where T : ByteDanceMicroAppOpenApiResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + bool isSimpleRequest = data is null || + flurlRequest.Verb == HttpMethod.Get || + flurlRequest.Verb == HttpMethod.Head || + flurlRequest.Verb == HttpMethod.Options; + using IFlurlResponse flurlResponse = isSimpleRequest ? + await base.SendFlurlRequestAsync(flurlRequest, null, cancellationToken) : + await base.SendFlurlRequestAsJsonAsync(flurlRequest, data, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs index e66a4773..3798a3ca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// /// 一个用于构造 时使用的配置项。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs index 99589b01..bc2cbb9d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// /// 字节小程序服务商平台 API 接口域名。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs index 42592071..be9621d4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs @@ -1,23 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// /// 表示字节小程序服务商平台 API 消息推送事件的基类。 /// - public class ByteDanceMicroAppOpenApiEvent + public class ByteDanceMicroAppOpenApiEvent : ICommonWebhookEvent { - public static class Serialization - { - [Newtonsoft.Json.JsonObject] - public interface IJsonSerializable - { - } - - [System.Xml.Serialization.XmlRoot("xml")] - public interface IXmlSerializable - { - } - } - /// /// 获取或设置第三方平台 AppId。 /// @@ -47,7 +34,7 @@ public interface IXmlSerializable /// [Newtonsoft.Json.JsonProperty("EventTime")] [System.Text.Json.Serialization.JsonPropertyName("EventTime")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] [System.Xml.Serialization.XmlElement("EventTime", IsNullable = true)] public virtual string? EventTimeString { get; set; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs similarity index 67% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs index 08c10579..ba2aa197 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs @@ -1,17 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// /// 字节小程序服务商平台 API 请求的基类。 /// - public abstract class ByteDanceMicroAppOpenApiRequest : ICommonRequest + public abstract class ByteDanceMicroAppOpenApiRequest : CommonRequestBase, ICommonRequest { - /// - /// 获取或设置请求超时时间(单位:毫秒)。如果不指定将使用构造 时的 参数,这在需要指定特定耗时请求(比如上传或下载文件)的超时时间时很有用。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public virtual int? Timeout { get; set; } - /// /// 获取或设置字节小程序第三方 AppId。如果不指定将使用构造 时的 参数。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs new file mode 100644 index 00000000..73578fd5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + /// + /// 字节小程序服务商平台 API 响应的基类。 + /// + public abstract class ByteDanceMicroAppOpenApiResponse : CommonResponseBase, ICommonResponse + { + /// + /// 获取字节小程序 API 返回的错误码。 + /// + [Newtonsoft.Json.JsonProperty("errno")] + [System.Text.Json.Serialization.JsonPropertyName("errno")] + public virtual int ErrorNumber { get; set; } + + /// + /// 获取字节小程序 API 返回的错误描述。 + /// + [Newtonsoft.Json.JsonProperty("message")] + [System.Text.Json.Serialization.JsonPropertyName("message")] + public virtual string? ErrorMessage { get; set; } + + /// + /// 获取字节小程序 API 返回的日志 ID。 + /// + [Newtonsoft.Json.JsonProperty("log_id")] + [System.Text.Json.Serialization.JsonPropertyName("log_id")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] + public virtual string? LogId { get; set; } + + /// + /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// + ///(即 HTTP 状态码为 200,且 值为 0) + /// + /// + /// + public override bool IsSuccessful() + { + return GetRawStatus() == 200 && ErrorNumber == 0; + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs index 0715de82..e9634767 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.AUTHORIZED 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/notify + /// + /// REF:
+ /// + ///
///
- public class ComponentAuthorizedEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ComponentAuthorizedEvent : ByteDanceMicroAppOpenApiEvent { /// /// 获取或设置授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs similarity index 81% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs index df6e86f8..f2f380b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 PUSH.Ticket 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/componentticket + /// + /// REF:
+ /// + ///
///
- public class ComponentPushTicketEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ComponentPushTicketEvent : ByteDanceMicroAppOpenApiEvent { /// /// 获取或设置消息发送方账号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs new file mode 100644 index 00000000..022d4330 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs @@ -0,0 +1,13 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events +{ + /// + /// 表示 EVENT.UNAUTHORIZED 事件的数据。 + /// + /// REF:
+ /// + ///
+ ///
+ public class ComponentUnauthorizedEvent : ByteDanceMicroAppOpenApiEvent + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs index c9306012..dfb3571d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.UPDATE_AUTHORIZED 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/notify + /// + /// REF:
+ /// + ///
///
- public class ComponentUpdateAuthorizedEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ComponentUpdateAuthorizedEvent : ByteDanceMicroAppOpenApiEvent { /// /// 获取或设置授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs similarity index 63% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs index 43666dc1..296c68a6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.APP_NAME_RESET_NOTIFICATION 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-name + /// + /// REF:
+ /// + ///
///
- public class AppNameResetEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class AppNameResetEvent : ByteDanceMicroAppOpenApiEvent { /// /// 获取或设置名称重置通知。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs similarity index 82% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs index ac4c8903..690bad2e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs @@ -1,11 +1,14 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.MODIFY_APP_CATEGORY 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/add-category - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/supply-category + /// + /// REF:
+ ///
+ /// + ///
///
- public class ModifyAppCategoryEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ModifyAppCategoryEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs index 4f97e5bc..501810e9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.MODIFY_APP_ICON 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-icon + /// + /// REF:
+ /// + ///
///
- public class ModifyAppIconEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ModifyAppIconEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs index c9acc349..9f29fcaf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.MODIFY_APP_INTRO 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-intro + /// + /// REF:
+ /// + ///
///
- public class ModifyAppIntroductionEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ModifyAppIntroductionEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs similarity index 84% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs index ce4eaffd..9fff9635 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.MODIFY_APP_NAME 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-name + /// + /// REF:
+ /// + ///
///
- public class ModifyAppNameEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ModifyAppNameEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs index c6004401..0bd0a5b5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.PACKAGE_AUDIT 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/audit-code + /// + /// REF:
+ /// + ///
///
- public class PackageAuditEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class PackageAuditEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs index f691266d..76cf158d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.ALIAS_AUDIT_RESULT 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/alias-search-tag + /// + /// REF:
+ /// + ///
///
- public class AliasAuditResultEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class AliasAuditResultEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs similarity index 59% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs index b5206a77..7cfdd265 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs @@ -1,15 +1,18 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.APPLY_CAPACITY 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/video-talent-mount - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/jump-live-room-capacity - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/live-room-status-capacity - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/rt-video-flow-capacity - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/page-layout-custom-capacity - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/capcut-video-template-capacity + /// + /// REF:
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// + ///
///
- public class ApplyCapabilityEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ApplyCapabilityEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs index 848ff52a..95203a05 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.APPLY_LIVE_CAPABILITY 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/live-application + /// + /// REF:
+ /// + ///
///
- public class ApplyLiveCapabilityEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ApplyLiveCapabilityEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs index 8330d110..cdb32a5f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.APPLY_PHONE_NUMBER_CAPABILITY 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/phone-number-application + /// + /// REF:
+ /// + ///
///
- public class ApplyPhoneNumberCapabilityEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ApplyPhoneNumberCapabilityEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs index a48ba10b..5b762aba 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs @@ -1,11 +1,14 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.APPLY_SHARE_TEMPLATE 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/addShareTpl - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/modifyShareTpl + /// + /// REF:
+ ///
+ /// + ///
///
- public class ApplyShareTemplateEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ApplyShareTemplateEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs index 3a97d483..318b8b23 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.APPLY_VIDEO_CAPABILITY 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/video-application + /// + /// REF:
+ /// + ///
///
- public class ApplyVideoCapabilityEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ApplyVideoCapabilityEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs similarity index 84% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs index c61e93f9..13fe39eb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.AWEME_PERMISSION_AUDIT_RESULT 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/all/douyin + /// + /// REF:
+ /// + ///
///
- public class AwemePermissionAuditResultEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class AwemePermissionAuditResultEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs index c9ef8ded..015cfdee 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.AWEME_VIDEO_KEYWORD_AUDIT_RESULT 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/all/aweme-video-keyword + /// + /// REF:
+ /// + ///
///
- public class AwemeVideoKeywordAuditResultEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class AwemeVideoKeywordAuditResultEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs index 19016557..209a9021 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.BIND_AWEME_USER 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/follow-aweme + /// + /// REF:
+ /// + ///
///
- public class BindAwemeUserEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class BindAwemeUserEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs index 860fcfbd..5e97d3cd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.CREATE_SUBSCRIBE_NOTIFICATION_TEMPLATE_RESULT 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/subscribe-notification-template + /// + /// REF:
+ /// + ///
///
- public class CreateSubscribeNotificationTemplateResultEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class CreateSubscribeNotificationTemplateResultEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs index 8865289b..85fa3001 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.SCOPE_QUOTA_AUDIT_RESULT 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/all/scope-quota + /// + /// REF:
+ /// + ///
///
- public class ScopeQuotaAuditResultEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class ScopeQuotaAuditResultEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs index 2d09b250..4c6ea205 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.SEARCH_TAG_AUDIT_RESULT 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/alias-search-tag + /// + /// REF:
+ /// + ///
///
- public class SearchTagAuditResultEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class SearchTagAuditResultEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs index 0771083d..837fd312 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs @@ -1,10 +1,13 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events { /// /// 表示 EVENT.SELT_MOUNT_BIND 事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/self-mount + /// + /// REF:
+ /// + ///
///
- public class SelfMountBindEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable + public class SelfMountBindEvent : ByteDanceMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs similarity index 54% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs index cd017cf8..e261db3a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs @@ -1,111 +1,37 @@ using System; using System.Xml.Linq; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { + using SKIT.FlurlHttpClient.Primitives; + /// /// 为 提供回调通知事件的扩展方法。 /// - public static class ByteDanceMicroAppOpenApiClientEventExtensions + public static partial class ByteDanceMicroAppOpenApiClientEventExtensions { - private class InnerEncryptedEvent - { - [Newtonsoft.Json.JsonProperty("Encrypt")] - [System.Text.Json.Serialization.JsonPropertyName("Encrypt")] - [System.Xml.Serialization.XmlElement("Encrypt")] - public string EncryptedData { get; set; } = default!; - - [Newtonsoft.Json.JsonProperty("TimeStamp")] - [System.Text.Json.Serialization.JsonPropertyName("TimeStamp")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))] - [System.Xml.Serialization.XmlElement("TimeStamp")] - public string TimestampString { get; set; } = default!; - - [Newtonsoft.Json.JsonProperty("Nonce")] - [System.Text.Json.Serialization.JsonPropertyName("Nonce")] - [System.Xml.Serialization.XmlElement("Nonce")] - public string Nonce { get; set; } = default!; - - [Newtonsoft.Json.JsonProperty("MsgSignature")] - [System.Text.Json.Serialization.JsonPropertyName("MsgSignature")] - [System.Xml.Serialization.XmlElement("MsgSignature")] - public string Signature { get; set; } = default!; - } - - private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppOpenApiClient client, string callbackJson) - where TEvent : ByteDanceMicroAppOpenApiEvent - { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackJson == null) throw new ArgumentNullException(callbackJson); - - try - { - if (callbackJson.Contains("\"Encrypt\"")) - { - InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(callbackJson); - callbackJson = Utilities.TtMsgCryptor.AESDecrypt(cipherText: encryptedEvent.EncryptedData, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); - } - - return client.JsonSerializer.Deserialize(callbackJson); - } - catch (ByteDanceMicroAppException) - { - throw; - } - catch (Exception ex) - { - throw new Exceptions.ByteDanceMicroAppEventSerializationException("Failed to deserialize event data. Please see the inner exception for more details.", ex); - } - } - - private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppOpenApiClient client, string callbackXml) - where TEvent : ByteDanceMicroAppOpenApiEvent - { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackXml == null) throw new ArgumentNullException(callbackXml); - - try - { - if (callbackXml.Contains("") && callbackXml.Contains("")) - { - string encryptedData = XDocument.Parse(callbackXml).Root!.Element("Encrypt")!.Value; - callbackXml = Utilities.TtMsgCryptor.AESDecrypt(cipherText: encryptedData, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); - } - - return Utilities.XmlUtility.Deserialize(callbackXml); - } - catch (ByteDanceMicroAppException) - { - throw; - } - catch (Exception ex) - { - throw new Exceptions.ByteDanceMicroAppEventSerializationException("Failed to deserialize event data. Please see the inner exception for more details.", ex); - } - } - /// /// 从 JSON 反序列化得到 对象。 /// /// /// - /// + /// /// - public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppOpenApiClient client, string callbackJson) - where TEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, new() + public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppOpenApiClient client, string webhookJson) + where TEvent : ByteDanceMicroAppOpenApiEvent, new() { - return InnerDeserializeEventFromJson(client, callbackJson); + return InnerDeserializeEventFromJson(client, webhookJson); } /// /// 从 JSON 反序列化得到 对象。 /// /// - /// + /// /// - public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromJson(this ByteDanceMicroAppOpenApiClient client, string callbackJson) + public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromJson(this ByteDanceMicroAppOpenApiClient client, string webhookJson) { - return InnerDeserializeEventFromJson(client, callbackJson); + return InnerDeserializeEventFromJson(client, webhookJson); } /// @@ -113,80 +39,183 @@ public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromJson(this ByteDa /// /// /// - /// + /// /// - public static TEvent DeserializeEventFromXml(this ByteDanceMicroAppOpenApiClient client, string callbackXml) - where TEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable, new() + public static TEvent DeserializeEventFromXml(this ByteDanceMicroAppOpenApiClient client, string webhookXml) + where TEvent : ByteDanceMicroAppOpenApiEvent, new() { - return InnerDeserializeEventFromXml(client, callbackXml); + return InnerDeserializeEventFromXml(client, webhookXml); } /// /// 从 XML 反序列化得到 对象。 /// /// - /// + /// /// - public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromXml(this ByteDanceMicroAppOpenApiClient client, string callbackXml) + public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromXml(this ByteDanceMicroAppOpenApiClient client, string webhookXml) { - return InnerDeserializeEventFromXml(client, callbackXml); + return InnerDeserializeEventFromXml(client, webhookXml); } /// /// 验证回调通知事件签名。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/overview-guide/smallprogram/encryption + /// + /// REF:
+ /// + ///
///
/// - /// + /// /// - public static bool VerifyEventSignatureFromJson(this ByteDanceMicroAppOpenApiClient client, string callbackJson) + public static ErroredResult VerifyEventSignatureFromJson(this ByteDanceMicroAppOpenApiClient client, string webhookJson) { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackJson == null) throw new ArgumentNullException(nameof(callbackJson)); + if (client is null) throw new ArgumentNullException(nameof(client)); + + ErroredResult result; try { - InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(callbackJson); - return Utilities.TtMsgCryptor.VerifySignature( + InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(webhookJson); + bool valid = Utilities.DyMsgCryptor.VerifySignature( sToken: client.Credentials.PushToken!, sTimestamp: encryptedEvent.TimestampString, sNonce: encryptedEvent.Nonce, sMsgEncrypt: encryptedEvent.EncryptedData, sMsgSign: encryptedEvent.Signature ); + + if (valid) + result = ErroredResult.Ok(); + else + result = ErroredResult.Fail(new Exception($"Signature does not match.")); } - catch + catch (Exception ex) { - return false; + result = ErroredResult.Fail(ex); } + + return result; } /// /// 验证回调通知事件签名。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/overview-guide/smallprogram/encryption + /// + /// REF:
+ /// + ///
///
/// - /// + /// /// - public static bool VerifyEventSignatureFromXml(this ByteDanceMicroAppOpenApiClient client, string callbackXml) + public static ErroredResult VerifyEventSignatureFromXml(this ByteDanceMicroAppOpenApiClient client, string webhookXml) { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackXml == null) throw new ArgumentNullException(nameof(callbackXml)); + if (client is null) throw new ArgumentNullException(nameof(client)); + + ErroredResult result; try { - XDocument xdoc = XDocument.Parse(callbackXml); - return Utilities.TtMsgCryptor.VerifySignature( + XDocument xdoc = XDocument.Parse(webhookXml); + bool valid = Utilities.DyMsgCryptor.VerifySignature( sToken: client.Credentials.PushToken!, sTimestamp: xdoc.Root!.Element("TimeStamp")!.Value, sNonce: xdoc.Root!.Element("Nonce")!.Value, sMsgEncrypt: xdoc.Root!.Element("Encrypt")!.Value, sMsgSign: xdoc.Root!.Element("MsgSignature")!.Value ); + + if (valid) + result = ErroredResult.Ok(); + else + result = ErroredResult.Fail(new Exception($"Signature does not match.")); } - catch + catch (Exception ex) + { + result = ErroredResult.Fail(ex); + } + + return result; + } + } + + partial class ByteDanceMicroAppOpenApiClientEventExtensions + { + private class InnerEncryptedEvent + { + [Newtonsoft.Json.JsonProperty("Encrypt")] + [System.Text.Json.Serialization.JsonPropertyName("Encrypt")] + [System.Xml.Serialization.XmlElement("Encrypt")] + public string EncryptedData { get; set; } = default!; + + [Newtonsoft.Json.JsonProperty("TimeStamp")] + [System.Text.Json.Serialization.JsonPropertyName("TimeStamp")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))] + [System.Xml.Serialization.XmlElement("TimeStamp")] + public string TimestampString { get; set; } = default!; + + [Newtonsoft.Json.JsonProperty("Nonce")] + [System.Text.Json.Serialization.JsonPropertyName("Nonce")] + [System.Xml.Serialization.XmlElement("Nonce")] + public string Nonce { get; set; } = default!; + + [Newtonsoft.Json.JsonProperty("MsgSignature")] + [System.Text.Json.Serialization.JsonPropertyName("MsgSignature")] + [System.Xml.Serialization.XmlElement("MsgSignature")] + public string Signature { get; set; } = default!; + } + + private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppOpenApiClient client, string webhookJson) + where TEvent : ByteDanceMicroAppOpenApiEvent + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (webhookJson is null) throw new ArgumentNullException(webhookJson); + + try + { + if (webhookJson.Contains("\"Encrypt\"")) + { + InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(webhookJson); + webhookJson = Utilities.DyMsgCryptor.AESDecrypt(cipherText: encryptedEvent.EncryptedData, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); + } + + return client.JsonSerializer.Deserialize(webhookJson); + } + catch (ByteDanceMicroAppException) + { + throw; + } + catch (Exception ex) + { + throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + } + } + + private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppOpenApiClient client, string webhookXml) + where TEvent : ByteDanceMicroAppOpenApiEvent + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (webhookXml is null) throw new ArgumentNullException(webhookXml); + + try + { + if (webhookXml.Contains("") && webhookXml.Contains("")) + { + if (!Utilities.DyMsgCryptor.TryParseXml(webhookXml, out string encryptedXml)) + throw new ByteDanceMicroAppException("Failed to decrypt event data, because the encrypted data is empty."); + + webhookXml = Utilities.DyMsgCryptor.AESDecrypt(cipherText: encryptedXml, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); + } + + return Utilities.XmlHelper.Deserialize(webhookXml); + } + catch (ByteDanceMicroAppException) + { + throw; + } + catch (Exception ex) { - return false; + throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs similarity index 66% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs index 6bd04394..cdd29a45 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs @@ -5,14 +5,17 @@ using System.Threading.Tasks; using Flurl.Http; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions { #region Auth /// /// 异步调用 [GET] /v1/auth/tp/token 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/componentaccesstoken + /// + /// REF:
+ /// + ///
///
/// /// @@ -23,21 +26,24 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ComponentAppSecret == null) + if (request.ComponentAppSecret is null) request.ComponentAppSecret = client.Credentials.ComponentAppSecret; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "auth", "tp", "token") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "auth", "tp", "token") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_appsecret", request.ComponentAppSecret) .SetQueryParam("component_ticket", request.ComponentTicket); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v2/auth/pre_auth_code 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/preauthcode + /// + /// REF:
+ /// + ///
///
/// /// @@ -49,16 +55,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v2", "auth", "pre_auth_code") + .CreateFlurlRequest(request, HttpMethod.Post, "v2", "auth", "pre_auth_code") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v2/auth/gen_link 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/genlink + /// + /// REF:
+ /// + ///
///
/// /// @@ -70,16 +79,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v2", "auth", "gen_link") + .CreateFlurlRequest(request, HttpMethod.Post, "v2", "auth", "gen_link") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/auth/retrieve 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/findauthorizationcode + /// + /// REF:
+ /// + ///
///
/// /// @@ -91,20 +103,23 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "auth", "retrieve") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "auth", "retrieve") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("authorization_appid", request.AuthorizerAppId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region OAuth /// /// 异步调用 [GET] /v1/oauth/token 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/authorizeraccesstoken - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/authorizerrefreshtoken + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -116,25 +131,28 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "oauth", "token") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "oauth", "token") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("grant_type", request.GrantType); - if (request.AuthCode != null) + if (request.AuthCode is not null) flurlReq.SetQueryParam("authorization_code", request.AuthCode); - if (request.AuthorizerRefreshToken != null) + if (request.AuthorizerRefreshToken is not null) flurlReq.SetQueryParam("authorizer_refresh_token", request.AuthorizerRefreshToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region ThirdParty /// /// 异步调用 [GET] /v1/tp/auth_app_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/authapplist + /// + /// REF:
+ /// + ///
///
/// /// @@ -146,18 +164,21 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "auth_app_list") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "auth_app_list") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("page", request.PageNumber) .SetQueryParam("size", request.PageSize); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/tp/upload_pic_material 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/upload-pic-material + /// + /// REF:
+ /// + ///
///
/// /// @@ -168,24 +189,27 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.MaterialFileName == null) + if (request.MaterialFileName is null) request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "tp", "upload_pic_material") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "upload_pic_material") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); - return await client.SendRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } #region ThirdParty/Domain /// /// 异步调用 [GET] /v1/tp/download/webview_file 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/domain/download + /// + /// REF:
+ /// + ///
///
/// /// @@ -197,18 +221,21 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "download", "webview_file") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "download", "webview_file") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region ThirdParty/POI /// /// 异步调用 [POST] /v1/tp/poi/supplier/match 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/thirdparty/API/tp/supplier-match + /// + /// REF:
+ /// + ///
///
/// /// @@ -220,16 +247,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "match") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "match") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/tp/poi/supplier/query/match_task 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/thirdparty/API/tp/query-match-task + /// + /// REF:
+ /// + ///
///
/// /// @@ -241,17 +271,20 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match_task") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match_task") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("task_ids", string.Join(",", request.TaskIdList)); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/tp/poi/supplier/query/match 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/thirdparty/API/tp/supplier-query-match + /// + /// REF:
+ /// + ///
///
/// /// @@ -263,17 +296,20 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("supplier_ext_ids", string.Join(",", request.SupplierExternalIds)); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/tp/poi/supplier/sync 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/thirdparty/API/tp/supplier-sync + /// + /// REF:
+ /// + ///
///
/// /// @@ -285,16 +321,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "sync") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "sync") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/tp/poi/supplier/query 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/thirdparty/API/tp/supplier-query + /// + /// REF:
+ /// + ///
///
/// /// @@ -306,17 +345,20 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("supplier_ext_id", request.SupplierExternalId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/tp/poi/base/query/amap 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/thirdparty/API/tp/supplier-query + /// + /// REF:
+ /// + ///
///
/// /// @@ -328,19 +370,22 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "poi", "base", "query", "amap") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "base", "query", "amap") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("amap_id", request.AMapId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region ThirdParty/Template /// /// 异步调用 [GET] /v1/tp/template/get_tpl_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/tpl-manage/tpl-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -352,16 +397,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_list") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_list") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/tp/template/get_draft_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/tpl-manage/draft-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -374,16 +422,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_draft_list") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_draft_list") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/tp/template/get_tpl_app_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/tpl-manage/tpl-app-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -395,16 +446,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_app_list") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_app_list") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/tp/template/add_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/tpl-manage/add + /// + /// REF:
+ /// + ///
///
/// /// @@ -416,16 +470,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "tp", "template", "add_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "template", "add_tpl") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/tp/template/del_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/tpl-manage/delete + /// + /// REF:
+ /// + ///
///
/// /// @@ -437,11 +494,11 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "tp", "template", "del_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "template", "del_tpl") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #endregion @@ -449,7 +506,10 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions #region MicroApp /// /// 异步调用 [GET] /v1/microapp/code2session 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/login/code2session + /// + /// REF:
+ /// + ///
///
/// /// @@ -461,18 +521,21 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "code2session") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "code2session") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("code", request.Code) .SetQueryParam("anonymous_code", request.AnoymousCode); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/upload_material 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/uploadMaterial + /// + /// REF:
+ /// + ///
///
/// /// @@ -483,27 +546,30 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.MaterialFileName == null) + if (request.MaterialFileName is null) request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + (request.MaterialType == 8 ? ".pdf" : ".jpg"); - if (request.MaterialFileContentType == null) + if (request.MaterialFileContentType is null) request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "upload_material") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "upload_material") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType!, formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); - return await client.SendRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } #region MicroApp/App /// /// 异步调用 [GET] /v1/microapp/app/info 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/info + /// + /// REF:
+ /// + ///
///
/// /// @@ -515,16 +581,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "app", "info") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "info") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/qrcode 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/qrcode + /// + /// REF:
+ /// + ///
///
/// /// @@ -536,16 +605,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "qrcode") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "qrcode") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/app/check_app_name 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/check-name + /// + /// REF:
+ /// + ///
///
/// /// @@ -557,17 +629,20 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "app", "check_app_name") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "check_app_name") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("app_name", request.AppName); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/modify_app_name 接口。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-name + /// + /// REF:
+ /// + ///
///
/// /// @@ -579,16 +654,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_name") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_name") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/modify_app_intro 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-intro + /// + /// REF:
+ /// + ///
///
/// /// @@ -600,16 +678,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_intro") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_intro") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/modify_app_icon 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-icon + /// + /// REF:
+ /// + ///
///
/// /// @@ -621,16 +702,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_icon") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_icon") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/app/all_categories 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/all-categories + /// + /// REF:
+ /// + ///
///
/// /// @@ -642,16 +726,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "app", "all_categories") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "all_categories") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/app/categories 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/category-audit-info + /// + /// REF:
+ /// + ///
///
/// /// @@ -663,16 +750,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "app", "categories") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "categories") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/add_categories 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/add-category + /// + /// REF:
+ /// + ///
///
/// /// @@ -684,16 +774,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "add_categories") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "add_categories") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/del_categories 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/delete-category + /// + /// REF:
+ /// + ///
///
/// /// @@ -705,16 +798,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "del_categories") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "del_categories") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/supply_categories 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/supply-category + /// + /// REF:
+ /// + ///
///
/// /// @@ -726,16 +822,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "supply_categories") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "supply_categories") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/modify_server_domain 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-domain + /// + /// REF:
+ /// + ///
///
/// /// @@ -747,16 +846,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_server_domain") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_server_domain") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/app/modify_webview_domain 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/modify-webview + /// + /// REF:
+ /// + ///
///
/// /// @@ -768,16 +870,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_webview_domain") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_webview_domain") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/app/quality_rating 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/quality-rating + /// + /// REF:
+ /// + ///
///
/// /// @@ -789,16 +894,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "app", "quality_rating") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "quality_rating") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/app/credit_score 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/credit-score + /// + /// REF:
+ /// + ///
///
/// /// @@ -810,18 +918,21 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "app", "credit_score") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "credit_score") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region MicroApp/Operation /// /// 异步调用 [GET] /v1/microapp/operation/video_application_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/video-application-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -833,16 +944,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "video_application_status") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "video_application_status") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/video_application 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/video-application + /// + /// REF:
+ /// + ///
///
/// /// @@ -854,16 +968,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "video_application") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "video_application") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/operation/live_application_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/live-application-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -875,16 +992,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "live_application_status") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "live_application_status") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/live_application 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/live-application + /// + /// REF:
+ /// + ///
///
/// /// @@ -896,16 +1016,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "live_application") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "live_application") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/operation/phone_number_application_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/phone-number-application-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -917,16 +1040,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "phone_number_application_status") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "phone_number_application_status") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/phone_number_application 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/phone-number-application + /// + /// REF:
+ /// + ///
///
/// /// @@ -938,16 +1064,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "phone_number_application") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "phone_number_application") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/operation/share_tpl_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/shareTplList + /// + /// REF:
+ /// + ///
///
/// /// @@ -959,18 +1088,21 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "share_tpl_list") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "share_tpl_list") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("page", request.PageNumber) .SetQueryParam("size", request.PageSize); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/add_share_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/addShareTpl + /// + /// REF:
+ /// + ///
///
/// /// @@ -982,16 +1114,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "add_share_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "add_share_tpl") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/modify_share_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/modifyShareTpl + /// + /// REF:
+ /// + ///
///
/// /// @@ -1003,16 +1138,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "modify_share_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "modify_share_tpl") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/del_share_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/delShareTpl + /// + /// REF:
+ /// + ///
///
/// /// @@ -1024,16 +1162,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "del_share_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "del_share_tpl") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/set_default_share_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/setDefaultShareTpl + /// + /// REF:
+ /// + ///
///
/// /// @@ -1045,16 +1186,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "set_default_share_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "set_default_share_tpl") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/operation/add_shop_material 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/add-shop-material + /// + /// REF:
+ /// + ///
///
/// /// @@ -1066,16 +1210,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "add_shop_material") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "add_shop_material") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/operation/query_shop_material 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/query-shop-material + /// + /// REF:
+ /// + ///
///
/// /// @@ -1087,19 +1234,22 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "query_shop_material") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "query_shop_material") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("supplier_ext_id", request.SupplierExternalId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region MicroApp/Package /// /// 异步调用 [POST] /v1/microapp/package/upload 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/upload-code + /// + /// REF:
+ /// + ///
///
/// /// @@ -1111,16 +1261,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "package", "upload") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "upload") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/package/audit_hosts 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/audit-hosts + /// + /// REF:
+ /// + ///
///
/// /// @@ -1132,16 +1285,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "package", "audit_hosts") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "package", "audit_hosts") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v2/microapp/package/audit 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/audit-code + /// + /// REF:
+ /// + ///
///
/// /// @@ -1153,16 +1309,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v2", "microapp", "package", "audit") + .CreateFlurlRequest(request, HttpMethod.Post, "v2", "microapp", "package", "audit") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/package/revoke_audit 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/revoke-audit + /// + /// REF:
+ /// + ///
///
/// /// @@ -1174,16 +1333,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "package", "revoke_audit") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "revoke_audit") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/package/release 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/release + /// + /// REF:
+ /// + ///
///
/// /// @@ -1195,16 +1357,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "package", "release") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "release") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/microapp/package/rollback 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/rollback + /// + /// REF:
+ /// + ///
///
/// /// @@ -1216,16 +1381,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "microapp", "package", "rollback") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "rollback") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/microapp/package/versions 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/versions + /// + /// REF:
+ /// + ///
///
/// /// @@ -1237,11 +1405,11 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "microapp", "package", "versions") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "package", "versions") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #endregion @@ -1249,7 +1417,10 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions #region Settle /// /// 异步调用 [POST] /v1/settle/pre_check 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/developer-settle/predict-check + /// + /// REF:
+ /// + ///
///
/// /// @@ -1261,16 +1432,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "settle", "pre_check") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "settle", "pre_check") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v1/settle/apply 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/developer-settle/settle-apply + /// + /// REF:
+ /// + ///
///
/// /// @@ -1282,16 +1456,19 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v1", "settle", "apply") + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "settle", "apply") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /v1/settle/get_apply_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/developer-settle/get-apply-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -1303,12 +1480,12 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "v1", "settle", "get_apply_status") + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "settle", "get_apply_status") .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken) .SetQueryParam("apply_id", request.ApplyId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs similarity index 78% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs index 8072f3b0..d609514b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs @@ -1,12 +1,15 @@ using Flurl; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { public static class ByteDanceMicroAppOpenApiClientParameterExtensions { /// /// 生成第三方应用服务商授权 URL。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/createlink + /// + /// REF:
+ /// + ///
///
/// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs index eedbd3cf..f9a83bae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/auth/gen_link 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs index 57265817..95ca9dcd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/auth/gen_link 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs index b840d1a5..cd04b7c2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/auth/pre_auth_code 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs index edc2e79c..1b3ac22b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/auth/pre_auth_code 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs index 21566b21..294cde1f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/auth/retrieve 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs index 69560006..ae690d41 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/auth/retrieve 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs index 40a6c441..5c267271 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/auth/tp/token 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs index 85eb5cea..56bde8a0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/auth/tp/token 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs index 9983e77f..09283fac 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/add_categories 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs index 7f1b2de9..9e5ce582 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/add_categories 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs index db00d22f..fe5758a5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/all_categories 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs index a89ae504..af4a029d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/all_categories 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs index f29e7ab3..c68b8125 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/categories 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs index 7e931dab..fdeb902b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/categories 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs index a95ba6b1..5af6ae50 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/del_categories 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs index 2daa8a18..bc9310bc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/del_categories 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs index ca25e7fc..58aaf960 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/supply_categories 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs index d3b5c4cf..1f338e79 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/supply_categories 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs index 5622c10b..baf58db8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/check_app_name 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs index 80d2e6b7..9b9e1431 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/check_app_name 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs index 51d1f1f5..e750b46f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/credit_score 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs index 76a6ed2c..37dffe9f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/credit_score 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs index 8f68f63b..b239f57f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/info 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs index 48c1ec87..cb2747e2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/info 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs index 765cfd9d..679f994a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_icon 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs index b77924aa..50065669 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_icon 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs index 0d53ce3c..94762c94 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_intro 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs index 7b6b147a..76dbde10 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_intro 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs index 5faf332c..04737dc9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_name 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs index 7e239147..ec7a02b2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_name 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs index 8ee56506..6d04e0c3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_server_domain 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs index 25e49851..bc8f55a3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_server_domain 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs index 7ba0cf84..5d65c98b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_webview_domain 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs index c3c97b0c..0fb077f0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_webview_domain 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs index 0970962e..90ebcc25 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/qrcode 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs similarity index 63% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs index 24226e94..4e4a7f11 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs @@ -1,4 +1,6 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +using System.Linq; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/qrcode 接口的响应。 @@ -7,7 +9,7 @@ public class OpenApiMicroAppAppQrcodeV1Response : ByteDanceMicroAppOpenApiRespon { public override bool IsSuccessful() { - return base.IsSuccessful() && RawBytes?.Length > 0; + return base.IsSuccessful() && GetRawBytes().Any(); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs index 51f5dc41..0031034a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/quality_rating 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs index a23ccbf1..8485bfe6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/quality_rating 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs index dac096be..a5fdcf91 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/code2session 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs index 6e4df343..d9f6af12 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/code2session 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs index 9ea7dd10..8de725f1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/upload_material 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs index 248d3606..6a88a7ca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/upload_material 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs index f51daf10..4272a9b1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/live_application_status 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs index ff4fab2a..3b80d3ad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/live_application_status 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs index 92094866..163e3ac7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/live_application 接口的请求。 @@ -30,9 +30,9 @@ public class OpenApiMicroAppOperationLiveApplicationV1Request : ByteDanceMicroAp /// 获取或设置是否有广告预算。 /// [Newtonsoft.Json.JsonProperty("hasAdBudget")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("hasAdBudget")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool HasAdBudget { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs index 680e156a..4a6e22ae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/live_application 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs index e2f3fd00..f66b68f0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/phone_number_application_status 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs index 8b8b1b11..494f50c9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/phone_number_application_status 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs index 3c9ebc44..8b7ab21b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/phone_number_application 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs index a4ab3b5c..072bc23d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/phone_number_application 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs index 793508ac..cf2718f5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/video_application_status 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs index 5cc54226..244e3605 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/video_application_status 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs index 87b282ad..d6bd16bb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/video_application 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs index 10c0d786..27875388 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/video_application 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs index ca01af58..f8865c5a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/add_share_tpl 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs index 86e74a4a..e8da96c8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/add_share_tpl 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs index 257167d2..544f53a5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/del_share_tpl 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs index 4792550b..03c747d0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/del_share_tpl 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs index d5dfca7c..7225cff3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/modify_share_tpl 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs index 12c05176..389de881 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/modify_share_tpl 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs index f62cceb9..6ed1f95c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/set_default_share_tpl 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs index a008ccca..2d484997 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/set_default_share_tpl 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs index 68384396..4c241a8f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/share_tpl_list 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs index 3c7dd80a..513fed6a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/share_tpl_list 接口的响应。 @@ -45,9 +45,9 @@ public class ShareTemplate /// 获取或设置是否是默认模板。 /// [Newtonsoft.Json.JsonProperty("isDefault")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("isDefault")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool IsDefault { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs index 15408a4b..b3d2ca89 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/add_shop_material 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs index 87e97f35..bcbb1395 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/add_shop_material 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs index c46043a6..89d14893 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/query_shop_material 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs index b6282a77..353aef92 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/query_shop_material 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs index 7fb21cd6..83296579 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/audit_hosts 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs index 0d9edfa8..df903842 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/audit_hosts 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs index 0a6fe682..4e0e0281 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/microapp/package/audit 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs index 8d8a36d1..0dc9ceb8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/microapp/package/audit 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs index 23e102ba..f060af7a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/release 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs index bccd7de6..767a52ac 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/release 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs index cb5e120b..c82453ca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/revoke_audit 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs index 23af6083..81cb4f22 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/revoke_audit 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs index 6652ae06..e38542cf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/rollback 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs index c313799c..cb621b8b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/rollback 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs index fb2c0cca..bd37c0c4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/upload 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs index 1cfcb40a..df01184e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/upload 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs index 53749ca4..3f41aaa9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/versions 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs index d0b098a2..7b4d7837 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs @@ -1,6 +1,6 @@ -using System.Collections.Generic; +using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/versions 接口的响应。 @@ -71,18 +71,18 @@ public class LatestVersionInfo : VersionInfo /// 获取或设置是否已提审。 /// [Newtonsoft.Json.JsonProperty("has_audit")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("has_audit")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool HasAudited { get; set; } /// /// 获取或设置截图 URL 列表。 /// [Newtonsoft.Json.JsonProperty("screenshot")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringArrayWithCommaSplitConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithCommaSplitConverter))] [System.Text.Json.Serialization.JsonPropertyName("screenshot")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringArrayWithCommaSplitConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithCommaSplitConverter))] public string[]? ScreenshotUrlList { get; set; } } @@ -99,9 +99,9 @@ public class AuditVersionInfo : VersionInfo /// 获取或设置是否已发布。 /// [Newtonsoft.Json.JsonProperty("has_publish")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("has_publish")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool HasPublished { get; set; } /// @@ -180,9 +180,9 @@ public class Rollback /// 获取或设置是否已下架。 /// [Newtonsoft.Json.JsonProperty("has_down")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("has_down")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool HasDowned { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs index e3c7ee73..11658ebb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/oauth/token 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs index df1ab472..a6e6138c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/oauth/token 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs index 827e9e35..f75360ee 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/settle/apply 接口的请求。 @@ -102,9 +102,9 @@ public class OpenApiSettleApplyV1Request : ByteDanceMicroAppOpenApiRequest /// 获取或设置经营行业类目编号。 /// [Newtonsoft.Json.JsonProperty("category_code")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualIntegerListWithCommaSplitConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedNumberListWithCommaSplitConverter))] [System.Text.Json.Serialization.JsonPropertyName("category_code")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualIntegerListWithCommaSplitConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedNumberListWithCommaSplitConverter))] public IList CategoryCodeList { get; set; } = new List(); /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs index f688540a..81da0c9b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/settle/apply 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs index aa54702d..a56593ec 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/settle/get_apply_status 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs index 73fc7ba8..780ee74f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/settle/get_apply_status 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs index f004c5f0..6e9f97e6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/settle/pre_check 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs index 556b86ce..fe0b6ff2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/settle/pre_check 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs index 1ae6dd71..644d61d5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/download/webview_file 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs similarity index 65% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs index 132c6ab2..bd0c2584 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs @@ -1,4 +1,6 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +using System.Linq; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/download/webview_file 接口的响应。 @@ -7,7 +9,7 @@ public class OpenApiThirdPartyDownloadWebviewFileV1Response : ByteDanceMicroAppO { public override bool IsSuccessful() { - return base.IsSuccessful() && RawBytes?.Length > 0; + return base.IsSuccessful() && GetRawBytes().Any(); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs index 48e7bd8f..99286ead 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/auth_app_list 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs index 91415c03..eb77f389 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/auth_app_list 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs index 23fb7c3a..055ed917 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/upload_pic_material 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs index 82531c5b..297b74b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/upload_pic_material 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs index 701444c9..4a12bdc2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/base/query/amap 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs index 793a6875..5b557303 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/base/query/amap 接口的响应。 @@ -14,14 +14,14 @@ public class Data /// [Newtonsoft.Json.JsonProperty("latitude")] [System.Text.Json.Serialization.JsonPropertyName("latitude")] - public double Latitude { get; set; } + public decimal Latitude { get; set; } /// /// 获取或设置经度。 /// [Newtonsoft.Json.JsonProperty("longitude")] [System.Text.Json.Serialization.JsonPropertyName("longitude")] - public double Longitude { get; set; } + public decimal Longitude { get; set; } /// /// 获取或设置抖音 POI ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs index 31eb7e42..ddd5199a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/poi/supplier/match 接口的请求。 @@ -16,14 +16,14 @@ public class MatchData /// [Newtonsoft.Json.JsonProperty("latitude")] [System.Text.Json.Serialization.JsonPropertyName("latitude")] - public double Latitude { get; set; } + public decimal Latitude { get; set; } /// /// 获取或设置经度。 /// [Newtonsoft.Json.JsonProperty("longitude")] [System.Text.Json.Serialization.JsonPropertyName("longitude")] - public double Longitude { get; set; } + public decimal Longitude { get; set; } /// /// 获取或设置 POI 名称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs index 61452438..5a14436b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/poi/supplier/match 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs index fcb5a89f..41594070 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query/match_task 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs index d4585020..368b0deb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query/match_task 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs index dfff947f..46fe1028 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query/match 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs index 3212ea47..2fe281db 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query/match 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs index 3bb49ed5..41423232 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs index 34ca2ddc..a54ee321 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs index 620059d8..3bf5db3e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/poi/supplier/sync 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs index 2a51bf5b..b2305447 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/poi/supplier/sync 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs index 41bbc3dc..a000f10b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/add_tpl 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs index 5de24a29..deca1fea 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/add_tpl 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs index 9929a424..27f83dbc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/del_tpl 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs index 4318cea3..09435f23 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/del_tpl 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs index 406815c7..1bd6793c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_draft_list 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs index 7ea2eb9c..24b1fcb8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_draft_list 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs index 250d72aa..e82138a4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_app_list 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs index 57205678..80a302b7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_app_list 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs index 6b48c959..00155822 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_list 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs index fc66e424..dd227599 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_list 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Settings/Credentials.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Settings/Credentials.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Settings/Credentials.cs index b18691c3..4a774de8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Settings/Credentials.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Settings +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Settings { public class Credentials { @@ -26,7 +26,7 @@ public class Credentials internal Credentials(ByteDanceMicroAppOpenApiClientOptions options) { - if (options == null) throw new ArgumentNullException(nameof(options)); + if (options is null) throw new ArgumentNullException(nameof(options)); ComponentAppId = options.ComponentAppId; ComponentAppSecret = options.ComponentAppSecret; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClient.cs new file mode 100644 index 00000000..d43c7f77 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClient.cs @@ -0,0 +1,104 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi +{ + /// + /// 一个字节小程序泛知识课程库 API HTTP 客户端。 + /// + public class ByteDanceMicroAppProductApiClient : CommonClientBase, ICommonClient + { + /// + /// 获取当前客户端使用的字节小程序凭证。 + /// + public Settings.Credentials Credentials { get; } + + /// + /// 用指定的配置项初始化 类的新实例。 + /// + /// 配置项。 + public ByteDanceMicroAppProductApiClient(ByteDanceMicroAppProductApiClientOptions options) + : this(options, null) + { + } + + /// + /// + /// + /// + /// + /// + internal protected ByteDanceMicroAppProductApiClient(ByteDanceMicroAppProductApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) + : base(httpClient, disposeClient) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + Credentials = new Settings.Credentials(options); + + FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppProductApiEndpoints.DEFAULT; + FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); + } + + /// + /// 使用当前客户端生成一个新的 对象。 + /// + /// + /// + /// + /// + public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppProductApiRequest request, HttpMethod httpMethod, params object[] urlSegments) + { + IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); + + if (request.AppId is null) + { + request.AppId = Credentials.AppId; + } + + return flurlRequest; + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) + where T : ByteDanceMicroAppProductApiResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + using IFlurlResponse flurlResponse = await base.SendFlurlRequestAsync(flurlRequest, httpContent, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) + where T : ByteDanceMicroAppProductApiResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + bool isSimpleRequest = data is null || + flurlRequest.Verb == HttpMethod.Get || + flurlRequest.Verb == HttpMethod.Head || + flurlRequest.Verb == HttpMethod.Options; + using IFlurlResponse flurlResponse = isSimpleRequest ? + await base.SendFlurlRequestAsync(flurlRequest, null, cancellationToken) : + await base.SendFlurlRequestAsJsonAsync(flurlRequest, data, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs index 07717a39..965213a5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// /// 一个用于构造 时使用的配置项。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs index 043d1a19..0b7ef87c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// /// 字节小程序泛知识课程库 API 接口域名。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs index a352023f..9b7b7bc3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// /// 表示字节小程序泛知识课程库 API 消息推送事件的基类。 /// - public class ByteDanceMicroAppProductApiEvent + public class ByteDanceMicroAppProductApiEvent : ICommonWebhookEvent { /// /// 获取或设置通知类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs similarity index 62% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs index 26c466d0..33729b5a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs @@ -1,17 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// /// 字节小程序泛知识课程库 API 请求的基类。 /// - public abstract class ByteDanceMicroAppProductApiRequest : ICommonRequest + public abstract class ByteDanceMicroAppProductApiRequest : CommonRequestBase, ICommonRequest { - /// - /// 获取或设置请求超时时间(单位:毫秒)。如果不指定将使用构造 时的 参数,这在需要指定特定耗时请求(比如上传或下载文件)的超时时间时很有用。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public virtual int? Timeout { get; set; } - /// /// 获取或设置字节小程序的 AppId。如果不指定将使用构造 时的 参数。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs new file mode 100644 index 00000000..55d86b8a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi +{ + /// + /// 字节小程序泛知识课程库 API 响应的基类。 + /// + public abstract class ByteDanceMicroAppProductApiResponse : CommonResponseBase, ICommonResponse + { + /// + /// 获取字节小程序 API 返回的错误码。 + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public virtual int ErrorNumber { get; set; } + + /// + /// 获取字节小程序 API 返回的错误描述。 + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public virtual string? ErrorMessage { get; set; } + + /// + /// 获取字节小程序 API 返回的日志 ID。 + /// + [Newtonsoft.Json.JsonProperty("log_id")] + [System.Text.Json.Serialization.JsonPropertyName("log_id")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] + public virtual string? LogId { get; set; } + + /// + /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// + /// (即 HTTP 状态码为 200,且 值为 0) + /// + /// + /// + public override bool IsSuccessful() + { + return GetRawStatus() == 200 && ErrorNumber == 0; + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductEvent.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductEvent.cs index 87802616..3c5e3896 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductEvent.cs @@ -1,10 +1,13 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events { /// /// 表示商品事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/sync-callback-url + /// + /// REF:
+ /// + ///
///
public class ProductEvent : ByteDanceMicroAppProductApiEvent { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductFulfilmentEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductFulfilmentEvent.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductFulfilmentEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductFulfilmentEvent.cs index 4ee76e21..a0aa252a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductFulfilmentEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductFulfilmentEvent.cs @@ -1,10 +1,13 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events { /// /// 表示商品履约内容事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/sync-callback-url + /// + /// REF:
+ /// + ///
///
public class ProductFulfilmentEvent : ByteDanceMicroAppProductApiEvent { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductQualificationEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductQualificationEvent.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductQualificationEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductQualificationEvent.cs index 1ba423f3..cf0e335d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductQualificationEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductQualificationEvent.cs @@ -1,10 +1,13 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events { /// /// 表示商品资质事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/sync-callback-url + /// + /// REF:
+ /// + ///
///
public class ProductQualificationEvent : ByteDanceMicroAppProductApiEvent { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductResourceEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductResourceEvent.cs similarity index 84% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductResourceEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductResourceEvent.cs index 7acf0aa3..20ae097e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Events/ProductResourceEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductResourceEvent.cs @@ -1,10 +1,13 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Events +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events { /// /// 表示商品资源事件的数据。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/sync-callback-url + /// + /// REF:
+ /// + ///
///
public class ProductResourceEvent : ByteDanceMicroAppProductApiEvent { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs similarity index 63% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs index b98aaa39..3ac34dff 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs @@ -1,50 +1,53 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// /// 为 提供回调通知事件的扩展方法。 /// - public static class ByteDanceMicroAppProductApiClientEventExtensions + public static partial class ByteDanceMicroAppProductApiClientEventExtensions { - private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppProductApiClient client, string callbackJson) - where TEvent : ByteDanceMicroAppProductApiEvent - { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackJson == null) throw new ArgumentNullException(callbackJson); - - try - { - return client.JsonSerializer.Deserialize(callbackJson); - } - catch (Exception ex) - { - throw new Exceptions.ByteDanceMicroAppEventSerializationException("Failed to deserialize event data. Please see the inner exception for more details.", ex); - } - } - /// /// 从 JSON 反序列化得到 对象。 /// /// /// - /// + /// /// - public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppProductApiClient client, string callbackJson) + public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppProductApiClient client, string webhookJson) where TEvent : ByteDanceMicroAppProductApiEvent, new() { - return InnerDeserializeEventFromJson(client, callbackJson); + return InnerDeserializeEventFromJson(client, webhookJson); } /// /// 从 JSON 反序列化得到 对象。 /// /// - /// + /// /// - public static ByteDanceMicroAppProductApiEvent DeserializeEventFromJson(this ByteDanceMicroAppProductApiClient client, string callbackJson) + public static ByteDanceMicroAppProductApiEvent DeserializeEventFromJson(this ByteDanceMicroAppProductApiClient client, string webhookJson) + { + return InnerDeserializeEventFromJson(client, webhookJson); + } + } + + partial class ByteDanceMicroAppProductApiClientEventExtensions + { + private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppProductApiClient client, string webhookJson) + where TEvent : ByteDanceMicroAppProductApiEvent { - return InnerDeserializeEventFromJson(client, callbackJson); + if (client is null) throw new ArgumentNullException(nameof(client)); + if (webhookJson is null) throw new ArgumentNullException(webhookJson); + + try + { + return client.JsonSerializer.Deserialize(webhookJson); + } + catch (Exception ex) + { + throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + } } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs similarity index 63% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs index 62eedfe2..f2544553 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs @@ -4,13 +4,16 @@ using System.Threading.Tasks; using Flurl.Http; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { - public static class ByteDanceMicroAppProductApiClientExecuteExtensions + public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions { /// /// 异步调用 [POST] /add 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product-add + /// + /// REF:
+ /// + ///
///
/// /// @@ -21,19 +24,22 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Product.CommonProductInfo.AppId == null) + if (request.Product.CommonProductInfo.AppId is null) request.Product.CommonProductInfo.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "add") + .CreateFlurlRequest(request, HttpMethod.Post, "add") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /modify 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product-modify + /// + /// REF:
+ /// + ///
///
/// /// @@ -44,19 +50,22 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Product.CommonProductInfo.AppId == null) + if (request.Product.CommonProductInfo.AppId is null) request.Product.CommonProductInfo.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "modify") + .CreateFlurlRequest(request, HttpMethod.Post, "modify") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /modify_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/status-modify + /// + /// REF:
+ /// + ///
///
/// /// @@ -67,19 +76,22 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ProductStatusInfo.AppId == null) + if (request.ProductStatusInfo.AppId is null) request.ProductStatusInfo.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "modify_status") + .CreateFlurlRequest(request, HttpMethod.Post, "modify_status") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /modify_no_audit 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product-modify-no-audit + /// + /// REF:
+ /// + ///
///
/// /// @@ -90,22 +102,25 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ProductInfo != null) + if (request.ProductInfo is not null) { - if (request.ProductInfo.AppId == null) + if (request.ProductInfo.AppId is null) request.ProductInfo.AppId = client.Credentials.AppId; } IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "modify_no_audit") + .CreateFlurlRequest(request, HttpMethod.Post, "modify_no_audit") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product-query + /// + /// REF:
+ /// + ///
///
/// /// @@ -117,14 +132,17 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query"); + .CreateFlurlRequest(request, HttpMethod.Post, "query"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query_review 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/queryReview + /// + /// REF:
+ /// + ///
/// ///
/// @@ -137,14 +155,17 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_review"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_review"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query_template_info 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/query-test-course + /// + /// REF:
+ /// + ///
///
/// /// @@ -156,14 +177,17 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_template_info"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_template_info"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query_class_info 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product/queryClassInfo + /// + /// REF:
+ /// + ///
///
/// /// @@ -175,15 +199,18 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_class_info"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_class_info"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #region Resource /// /// 异步调用 [POST] /upload_resource 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/resource-upload + /// + /// REF:
+ /// + ///
///
/// /// @@ -195,14 +222,17 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "upload_resource"); + .CreateFlurlRequest(request, HttpMethod.Post, "upload_resource"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query_resource_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/resource-upload-query + /// + /// REF:
+ /// + ///
///
/// /// @@ -214,16 +244,19 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_resource_status"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_resource_status"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Qualification /// /// 异步调用 [POST] /add_qualification 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/qualification-add + /// + /// REF:
+ /// + ///
///
/// /// @@ -235,15 +268,18 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "add_qualification") + .CreateFlurlRequest(request, HttpMethod.Post, "add_qualification") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /modify_qualification 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/qualification-modify + /// + /// REF:
+ /// + ///
///
/// /// @@ -255,15 +291,18 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "modify_qualification") + .CreateFlurlRequest(request, HttpMethod.Post, "modify_qualification") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query_qualification 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/qualification-query + /// + /// REF:
+ /// + ///
///
/// /// @@ -275,16 +314,19 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_qualification"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_qualification"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region RefundRule /// /// 异步调用 [POST] /query_refund_rule_meta 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/refund-meta-query + /// + /// REF:
+ /// + ///
///
/// /// @@ -296,15 +338,18 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_refund_rule_meta") + .CreateFlurlRequest(request, HttpMethod.Post, "query_refund_rule_meta") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /modify_refund_rule 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/product-refund-rule-modify + /// + /// REF:
+ /// + ///
///
/// /// @@ -316,17 +361,20 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "modify_refund_rule") + .CreateFlurlRequest(request, HttpMethod.Post, "modify_refund_rule") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Callback /// /// 异步调用 [POST] /sync_callback_url 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/sync-callback-url + /// + /// REF:
+ /// + ///
///
/// /// @@ -338,9 +386,9 @@ public static class ByteDanceMicroAppProductApiClientExecuteExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "sync_callback_url"); + .CreateFlurlRequest(request, HttpMethod.Post, "sync_callback_url"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs index e4116c9c..29d98e77 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /sync_callback_url 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs index 0c61aca6..b82a107b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /sync_callback_url 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiAddRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiAddRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs index 257544fe..362b2a5c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /add 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiAddResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiAddResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs index 21974cdd..fba38d1a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiAddResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /add 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs index 3eaa0f5c..c6231f8c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_no_audit 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs index ed1d32b3..0515055a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_no_audit 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs index 9d2948c7..8cf99ad5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs index 793a6afc..69022c5c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyStatusRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs index 064b4653..21c5ed02 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_status 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs similarity index 71% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyStatusResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs index bce2e26e..ad122b8c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiModifyStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_status 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs index 2f8bb22b..c62e070d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_class_info 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs index 3ad55e5d..db57e743 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_class_info 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs index 2d054343..8d704560 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs index 2a039ee0..9660f63b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query 接口的响应。 @@ -55,7 +55,7 @@ public class PathInfo /// 获取或设置跳转的页面。 /// [Newtonsoft.Json.JsonProperty("path")] - [System.Text.Json.Serialization.JsonPropertyName("text")] + [System.Text.Json.Serialization.JsonPropertyName("path")] public string PagePath { get; set; } = default!; /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryReviewRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryReviewRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs index eb1f6bca..b27fdd53 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryReviewRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_review 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryReviewResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryReviewResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs index 90d9f35a..1e5e41aa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryReviewResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_review 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs index b877d6cc..88d427d4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_template_info 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs index a56df61c..e1a0df9d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_template_info 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs index 81e6c602..b38dcba1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /add_qualification 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs index 990a09a5..39c1dc6f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /add_qualification 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs index 130b9654..ea00c3e0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_qualification 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs index d38dead5..bdc74ca5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_qualification 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs index 1f6c56c0..bb4d7a8a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_qualification 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs index 1c6da484..395e343d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_qualification 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs index 3e2891fd..e3487bb9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_refund_rule 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs index 9c29fc0e..2a31ca0c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /modify_refund_rule 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs index cb435e73..97b3b61c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_refund_rule_meta 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs index 83938794..3f178a16 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_refund_rule_meta 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs index 9afc0f42..d4135def 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_resource_status 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs index a28b309e..9c912c03 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /query_resource_status 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs index dbeed8f0..a167702f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /upload_resource 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs index 84a992d6..b085f0f9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models { /// /// 表示 [POST] /upload_resource 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Settings/Credentials.cs similarity index 81% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Settings/Credentials.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Settings/Credentials.cs index 47ef84b7..0ed92f95 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Settings/Credentials.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi.Settings +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Settings { public class Credentials { @@ -16,7 +16,7 @@ public class Credentials internal Credentials(ByteDanceMicroAppProductApiClientOptions options) { - if (options == null) throw new ArgumentNullException(nameof(options)); + if (options is null) throw new ArgumentNullException(nameof(options)); AppId = options.AppId; AppSecret = options.AppSecret; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs new file mode 100644 index 00000000..651d36f3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs @@ -0,0 +1,99 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi +{ + /// + /// 一个字节小程序泛知识角色系统 API HTTP 客户端。 + /// + public class ByteDanceMicroAppRoleApiClient : CommonClientBase, ICommonClient + { + /// + /// 获取当前客户端使用的字节小程序凭证。 + /// + public Settings.Credentials Credentials { get; } + + /// + /// 用指定的配置项初始化 类的新实例。 + /// + /// 配置项。 + public ByteDanceMicroAppRoleApiClient(ByteDanceMicroAppRoleApiClientOptions options) + : this(options, null) + { + } + + /// + /// + /// + /// + /// + /// + internal protected ByteDanceMicroAppRoleApiClient(ByteDanceMicroAppRoleApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) + : base(httpClient, disposeClient) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + Credentials = new RoleApi.Settings.Credentials(options); + + FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppRoleApiEndpoints.DEFAULT; + FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); + } + + /// + /// 使用当前客户端生成一个新的 对象。 + /// + /// + /// + /// + /// + public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppRoleApiRequest request, HttpMethod httpMethod, params object[] urlSegments) + { + IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); + + return flurlRequest; + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) + where T : ByteDanceMicroAppRoleApiResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + using IFlurlResponse flurlResponse = await base.SendFlurlRequestAsync(flurlRequest, httpContent, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) + where T : ByteDanceMicroAppRoleApiResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + bool isSimpleRequest = data is null || + flurlRequest.Verb == HttpMethod.Get || + flurlRequest.Verb == HttpMethod.Head || + flurlRequest.Verb == HttpMethod.Options; + using IFlurlResponse flurlResponse = isSimpleRequest ? + await base.SendFlurlRequestAsync(flurlRequest, null, cancellationToken) : + await base.SendFlurlRequestAsJsonAsync(flurlRequest, data, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs index 9c962a5d..9d4d4423 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// /// 一个用于构造 时使用的配置项。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs similarity index 58% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs index ee4e370f..70a7a214 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// /// 字节小程序角色系统 API 接口域名。 @@ -9,5 +9,10 @@ public class ByteDanceMicroAppRoleApiEndpoints /// 接口域名(默认)。 /// public const string DEFAULT = "https://developer.toutiao.com/auth/entity"; + + /// + /// 沙盒域名。 + /// + public const string SANDBOX = "https://open-sandbox.douyin.com/auth/entity/"; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs similarity index 56% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs index 9e733d46..e7c94884 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs @@ -1,17 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// /// 字节小程序泛知识角色系统 API 请求的基类。 /// - public class ByteDanceMicroAppRoleApiRequest : ICommonRequest + public class ByteDanceMicroAppRoleApiRequest : CommonRequestBase, ICommonRequest { - /// - /// 获取或设置请求超时时间(单位:毫秒)。如果不指定将使用构造 时的 参数,这在需要指定特定耗时请求(比如上传或下载文件)的超时时间时很有用。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public virtual int? Timeout { get; set; } - /// /// 获取或设置字节小程序的 AppId。如果不指定将使用构造 时的 参数。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs new file mode 100644 index 00000000..6045b224 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs @@ -0,0 +1,58 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi +{ + /// + /// 字节小程序泛知识角色系统 API 响应的基类。 + /// + public abstract class ByteDanceMicroAppRoleApiResponse : CommonResponseBase, ICommonResponse + { + /// + /// 获取字节小程序 API 返回的错误码。 + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public virtual int ErrorNumber { get; set; } + + /// + /// 获取字节小程序 API 返回的错误描述。 + /// + [Newtonsoft.Json.JsonProperty("err_tips")] + [System.Text.Json.Serialization.JsonPropertyName("err_tips")] + public virtual string? ErrorTips { get; set; } + + /// + /// 获取字节小程序 API 返回的错误信息。 + /// + [Newtonsoft.Json.JsonProperty("err")] + [System.Text.Json.Serialization.JsonPropertyName("err")] + public virtual ByteDanceMicroAppRoleApiResponseError? Error { get; set; } + + /// + /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// + ///(即 HTTP 状态码为 200,且 值为 0、 值为 0) + /// + /// + /// + public override bool IsSuccessful() + { + return GetRawStatus() == 200 && ErrorNumber == 0 && (Error is null || Error.ErrorCode == 0); + } + } + + public class ByteDanceMicroAppRoleApiResponseError + { + /// + /// 获取字节小程序 API 返回的错误码。 + /// + [Newtonsoft.Json.JsonProperty("err_code")] + [System.Text.Json.Serialization.JsonPropertyName("err_code")] + public int ErrorCode { get; set; } + + /// + /// 获取字节小程序 API 返回的错误描述。 + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public string? ErrorMessage { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs similarity index 61% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs index 4ca40ec2..ff71a313 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs @@ -4,13 +4,16 @@ using System.Threading.Tasks; using Flurl.Http; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Extensions +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { - public static class ByteDanceMicroAppRoleApiClientExecuteExtensions + public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions { /// /// 异步调用 [POST] /upload_material 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/upload-qualification-materials + /// + /// REF:
+ /// + ///
///
/// /// @@ -21,28 +24,31 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.MaterialFileName == null) + if (request.MaterialFileName is null) request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + (request.MaterialType == 1010 ? ".pdf" : ".jpg"); - if (request.MaterialFileContentType == null) + if (request.MaterialFileContentType is null) request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "upload_material"); + .CreateFlurlRequest(request, HttpMethod.Post, "upload_material"); using MultipartFormDataContent httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType!, formDataName: "material_file"); httpContent.Add(new StringContent(request.AppId), "appid"); httpContent.Add(new StringContent(request.AccessToken!), "access_token"); httpContent.Add(new StringContent(request.MaterialType.ToString()), "material_type"); - return await client.SendRequestAsync(flurlReq, httpContent, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsync(flurlReq, httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query_entity_info 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/query-entity-id + /// + /// REF:
+ /// + ///
///
/// /// @@ -53,18 +59,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_entity_info"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_entity_info"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /enable_mountscope 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/enable-mountscope + /// + /// REF:
+ /// + ///
///
/// /// @@ -75,19 +84,22 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "enable_mountscope"); + .CreateFlurlRequest(request, HttpMethod.Post, "enable_mountscope"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #region Auth /// /// 异步调用 [POST] /bypartner 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/partner-help-teacher-institution-join + /// + /// REF:
+ /// + ///
///
/// /// @@ -98,18 +110,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "bypartner"); + .CreateFlurlRequest(request, HttpMethod.Post, "bypartner"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /byself 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/institution-partner-join + /// + /// REF:
+ /// + ///
///
/// /// @@ -120,19 +135,22 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "byself"); + .CreateFlurlRequest(request, HttpMethod.Post, "byself"); - var resp = await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + var resp = await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); return resp; } /// /// 异步调用 [POST] /get_basic_auth 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/query-basic-qualification + /// + /// REF:
+ /// + ///
///
/// /// @@ -143,18 +161,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "get_basic_auth"); + .CreateFlurlRequest(request, HttpMethod.Post, "get_basic_auth"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /update_basic_auth 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/update-basic-qualification + /// + /// REF:
+ /// + ///
///
/// /// @@ -165,18 +186,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "update_basic_auth"); + .CreateFlurlRequest(request, HttpMethod.Post, "update_basic_auth"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /get_class_auth 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/query-category-qualification + /// + /// REF:
+ /// + ///
///
/// /// @@ -187,18 +211,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "get_class_auth"); + .CreateFlurlRequest(request, HttpMethod.Post, "get_class_auth"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /update_class_auth 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/update-category-qualification + /// + /// REF:
+ /// + ///
///
/// /// @@ -209,18 +236,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "update_class_auth"); + .CreateFlurlRequest(request, HttpMethod.Post, "update_class_auth"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /add_class_auth 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/add-category-qualification + /// + /// REF:
+ /// + ///
///
/// /// @@ -231,18 +261,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "add_class_auth"); + .CreateFlurlRequest(request, HttpMethod.Post, "add_class_auth"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /get_audit_detail 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/get-audit-task-details + /// + /// REF:
+ /// + ///
///
/// /// @@ -253,20 +286,23 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "get_audit_detail"); + .CreateFlurlRequest(request, HttpMethod.Post, "get_audit_detail"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Role /// /// 异步调用 [POST] /add_role 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/add-role + /// + /// REF:
+ /// + ///
///
/// /// @@ -277,40 +313,46 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "add_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "add_role"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /bind_role 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/miniapp-binding-role + /// + /// REF:
+ /// + ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityBindRoleAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityUnbindRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityBindRoleAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityBindRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "bind_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "bind_role"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /unbind_role 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/miniapp-unbinding-role + /// + /// REF:
+ /// + ///
///
/// /// @@ -321,18 +363,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "unbind_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "unbind_role"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /get_bind_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/query-miniapp-bound-role + /// + /// REF:
+ /// + ///
///
/// /// @@ -343,18 +388,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "get_bind_list"); + .CreateFlurlRequest(request, HttpMethod.Post, "get_bind_list"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /auth_role 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/role-authorization-miniapp + /// + /// REF:
+ /// + ///
///
/// /// @@ -365,18 +413,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "auth_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "auth_role"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /un_auth_role 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/deauthorization-miniapp + /// + /// REF:
+ /// + ///
///
/// /// @@ -387,18 +438,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "un_auth_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "un_auth_role"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /update_authletter 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/update-authorization-letter-of-miniapp + /// + /// REF:
+ /// + ///
///
/// /// @@ -409,18 +463,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "update_authletter"); + .CreateFlurlRequest(request, HttpMethod.Post, "update_authletter"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /get_appid_auth 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/query-authorization-applet + /// + /// REF:
+ /// + ///
///
/// /// @@ -431,20 +488,23 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "get_appid_auth"); + .CreateFlurlRequest(request, HttpMethod.Post, "get_appid_auth"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region MerchantCode /// /// 异步调用 [POST] /activate_merchantcode 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/merchant-account-activation + /// + /// REF:
+ /// + ///
///
/// /// @@ -455,18 +515,21 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "activate_merchantcode"); + .CreateFlurlRequest(request, HttpMethod.Post, "activate_merchantcode"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /query_merchantcode_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/pan-knowledge/role/query-merchant-account-activation-state + /// + /// REF:
+ /// + ///
///
/// /// @@ -477,13 +540,13 @@ public static class ByteDanceMicroAppRoleApiClientExecuteExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "query_merchantcode_status"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_merchantcode_status"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs index 06380fad..9221233f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /add_class_auth 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs index dd7a12fd..16fd6cb9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /add_class_auth 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs index 7c9c7b5b..650eeb08 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /bypartner 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs index da24254b..377542ad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /bypartner 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs index e29892b1..884ee502 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /byself 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs index f04263a4..91abd3b2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /byself 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs index 2bb2bb3f..31928c30 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_audit_detail 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs index 6fef6fa4..da811700 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_audit_detail 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs index f9ae8691..f4add49e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_basic_auth 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs index 7b089d57..ce49d645 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_basic_auth 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs index bd2562bd..dc4860cb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_class_auth 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs index 55d02019..f03ae8c3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_class_auth 接口的响应。 @@ -115,7 +115,7 @@ public class Partner /// [Newtonsoft.Json.JsonProperty("cooperation_cases")] [System.Text.Json.Serialization.JsonPropertyName("cooperation_cases")] - public IList? CooperationCaseList { get; set; } + public Material[]? CooperationCaseList { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs index dd825fd0..70348236 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /update_basic_auth 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs index 65887fca..35042f09 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /update_basic_auth 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs index b6814b8e..befba07b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /update_class_auth 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs index fdcb87be..b080cbaa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /update_class_auth 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs index bd0e3736..8b791e9c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /enable_mountscope 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs index 068ecd64..3a7703ee 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /enable_mountscope 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs index 67832b69..0e1e91ae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /query_entity_info 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs index 7bb1d107..3fde0ef1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /query_entity_info 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs index 4028762e..35b6cc10 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /upload_material 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs index f9b6cc65..7db50096 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /upload_material 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs index 521a08f3..1f9a1dc5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /activate_merchantcode 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs index 0698852d..9537fae6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /activate_merchantcode 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs index 6e4d9942..8096a3e2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /query_merchantcode_status 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs index 0f95b974..e4b0f21c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /query_merchantcode_status 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs index e8fa7ce5..3933c073 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /add_role 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs index c6aca3be..dccd5d2e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /add_role 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs index 6638228f..4a414b21 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /auth_role 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs index 95081291..359aaafb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /auth_role 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs index 787a04ef..e62012ba 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /bind_role 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs similarity index 71% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs index 677da5d5..dd298d62 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /bind_role 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs index 2956d41f..75821981 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_appid_auth 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs index 0c4bc422..bdd25ad1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_appid_auth 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs index 36b9da5f..26bc0e37 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_bind_list 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs index 3f336af1..774a0424 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /get_bind_list 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs index 294ba12f..175bc091 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /un_auth_role 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs index e85d2dd8..352e6ccf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /un_auth_role 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs index 62f031bc..36d7d314 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /unbind_role 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs index c6accf2b..60e3648f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /unbind_role 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs index f8f1544f..398c7429 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /update_authletter 接口的请求。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs index bf2e23df..80f6d0cd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// /// 表示 [POST] /update_authletter 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Settings/Credentials.cs similarity index 81% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Settings/Credentials.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Settings/Credentials.cs index f7334e60..4a935061 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Settings/Credentials.cs @@ -1,6 +1,6 @@ using System; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi.Settings +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Settings { public class Credentials { @@ -16,7 +16,7 @@ public class Credentials internal Credentials(ByteDanceMicroAppRoleApiClientOptions options) { - if (options == null) throw new ArgumentNullException(nameof(options)); + if (options is null) throw new ArgumentNullException(nameof(options)); AppId = options.AppId; AppSecret = options.AppSecret; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientEventExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientEventExtensions.cs index 26440d82..b78cf395 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientEventExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientEventExtensions.cs @@ -4,109 +4,35 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { + using SKIT.FlurlHttpClient.Primitives; + /// /// 为 提供回调通知事件的扩展方法。 /// - public static class ByteDanceMicroAppClientEventExtensions + public static partial class ByteDanceMicroAppClientEventExtensions { - private class InnerEncryptedEvent - { - [Newtonsoft.Json.JsonProperty("Encrypt")] - [System.Text.Json.Serialization.JsonPropertyName("Encrypt")] - [System.Xml.Serialization.XmlElement("Encrypt")] - public string EncryptedData { get; set; } = default!; - - [Newtonsoft.Json.JsonProperty("TimeStamp")] - [System.Text.Json.Serialization.JsonPropertyName("TimeStamp")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))] - [System.Xml.Serialization.XmlElement("TimeStamp")] - public string TimestampString { get; set; } = default!; - - [Newtonsoft.Json.JsonProperty("Nonce")] - [System.Text.Json.Serialization.JsonPropertyName("Nonce")] - [System.Xml.Serialization.XmlElement("Nonce")] - public string Nonce { get; set; } = default!; - - [Newtonsoft.Json.JsonProperty("MsgSignature")] - [System.Text.Json.Serialization.JsonPropertyName("MsgSignature")] - [System.Xml.Serialization.XmlElement("MsgSignature")] - public string Signature { get; set; } = default!; - } - - private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppClient client, string callbackJson) - where TEvent : ByteDanceMicroAppEvent - { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackJson == null) throw new ArgumentNullException(callbackJson); - - try - { - if (callbackJson.Contains("\"Encrypt\"")) - { - InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(callbackJson); - callbackJson = Utilities.TtMsgCryptor.AESDecrypt(cipherText: encryptedEvent.EncryptedData, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); - } - - return client.JsonSerializer.Deserialize(callbackJson); - } - catch (ByteDanceMicroAppException) - { - throw; - } - catch (Exception ex) - { - throw new Exceptions.ByteDanceMicroAppEventSerializationException("Failed to deserialize event data. Please see the inner exception for more details.", ex); - } - } - - private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppClient client, string callbackXml) - where TEvent : ByteDanceMicroAppEvent - { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackXml == null) throw new ArgumentNullException(callbackXml); - - try - { - if (callbackXml.Contains("") && callbackXml.Contains("")) - { - string encryptedData = XDocument.Parse(callbackXml).Root!.Element("Encrypt")!.Value; - callbackXml = Utilities.TtMsgCryptor.AESDecrypt(cipherText: encryptedData, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); - } - - return Utilities.XmlUtility.Deserialize(callbackXml); - } - catch (ByteDanceMicroAppException) - { - throw; - } - catch (Exception ex) - { - throw new Exceptions.ByteDanceMicroAppEventSerializationException("Failed to deserialize event data. Please see the inner exception for more details.", ex); - } - } - /// /// 从 JSON 反序列化得到 对象。 /// /// /// - /// + /// /// - public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppClient client, string callbackJson) - where TEvent : ByteDanceMicroAppEvent, ByteDanceMicroAppEvent.Serialization.IJsonSerializable, new() + public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppClient client, string webhookJson) + where TEvent : ByteDanceMicroAppEvent, new() { - return InnerDeserializeEventFromJson(client, callbackJson); + return InnerDeserializeEventFromJson(client, webhookJson); } /// /// 从 JSON 反序列化得到 对象。 /// /// - /// + /// /// - public static ByteDanceMicroAppEvent DeserializeEventFromJson(this ByteDanceMicroAppClient client, string callbackJson) + public static ByteDanceMicroAppEvent DeserializeEventFromJson(this ByteDanceMicroAppClient client, string webhookJson) { - return InnerDeserializeEventFromJson(client, callbackJson); + return InnerDeserializeEventFromJson(client, webhookJson); } /// @@ -114,105 +40,222 @@ public static ByteDanceMicroAppEvent DeserializeEventFromJson(this ByteDanceMicr /// /// /// - /// + /// /// - public static TEvent DeserializeEventFromXml(this ByteDanceMicroAppClient client, string callbackXml) - where TEvent : ByteDanceMicroAppEvent, ByteDanceMicroAppEvent.Serialization.IXmlSerializable, new() + public static TEvent DeserializeEventFromXml(this ByteDanceMicroAppClient client, string webhookXml) + where TEvent : ByteDanceMicroAppEvent, new() { - return InnerDeserializeEventFromXml(client, callbackXml); + return InnerDeserializeEventFromXml(client, webhookXml); } /// /// 从 XML 反序列化得到 对象。 /// /// - /// + /// /// - public static ByteDanceMicroAppEvent DeserializeEventFromXml(this ByteDanceMicroAppClient client, string callbackXml) + public static ByteDanceMicroAppEvent DeserializeEventFromXml(this ByteDanceMicroAppClient client, string webhookXml) { - return InnerDeserializeEventFromXml(client, callbackXml); + return InnerDeserializeEventFromXml(client, webhookXml); } /// /// 验证回调通知事件签名。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/message-push-customer-service + /// + /// REF:
+ /// + ///
///
/// - /// 头条回调通知中的 "timestamp" 查询参数。 - /// 头条回调通知中的 "nonce" 查询参数。 - /// 头条回调通知中的 "msg" 查询参数。 - /// 头条回调通知中的 "signature" 查询参数。 + /// 头条回调通知中的 "timestamp" 查询参数。 + /// 头条回调通知中的 "nonce" 查询参数。 + /// 头条回调通知中的 "msg" 查询参数。 + /// 头条回调通知中的 "signature" 查询参数。 /// - public static bool VerifyEventSignatureForEcho(this ByteDanceMicroAppClient client, string callbackTimestamp, string callbackNonce, string callbackMessage, string callbackSignature) + public static ErroredResult VerifyEventSignatureForEcho(this ByteDanceMicroAppClient client, string webhookTimestamp, string webhookNonce, string webhookMsg, string webhookSignature) { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackTimestamp == null) throw new ArgumentNullException(nameof(callbackTimestamp)); - if (callbackNonce == null) throw new ArgumentNullException(nameof(callbackNonce)); - if (callbackMessage == null) throw new ArgumentNullException(nameof(callbackMessage)); - if (callbackSignature == null) throw new ArgumentNullException(nameof(callbackSignature)); + if (client is null) throw new ArgumentNullException(nameof(client)); - List lstParams = new List() { client.Credentials.PushToken!, callbackTimestamp, callbackNonce, callbackMessage }; - lstParams.Sort(StringComparer.Ordinal); + ErroredResult result; - string sign = Utilities.SHA1Utility.Hash(string.Concat(lstParams)); - return string.Equals(sign, callbackSignature, StringComparison.OrdinalIgnoreCase); + try + { + List tmp = new List(capacity: 4) { client.Credentials.PushToken!, webhookTimestamp, webhookNonce, webhookMsg }; + tmp.Sort(StringComparer.Ordinal); + string sign = Utilities.SHA1Utility.Hash(string.Concat(tmp)).Value!; + bool valid = string.Equals(sign, webhookSignature, StringComparison.OrdinalIgnoreCase); + + if (valid) + result = ErroredResult.Ok(); + else + result = ErroredResult.Fail(new Exception($"Signature does not match. Maybe \"{webhookSignature}\" is an illegal signature.")); + } + catch (Exception ex) + { + result = ErroredResult.Fail(ex); + } + + return result; } /// /// 验证回调通知事件签名。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/overview-guide/smallprogram/encryption + /// + /// REF:
+ /// + ///
///
/// - /// + /// /// - public static bool VerifyEventSignatureFromJson(this ByteDanceMicroAppClient client, string callbackJson) + public static ErroredResult VerifyEventSignatureFromJson(this ByteDanceMicroAppClient client, string webhookJson) { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackJson == null) throw new ArgumentNullException(nameof(callbackJson)); + if (client is null) throw new ArgumentNullException(nameof(client)); + + ErroredResult result; try { - InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(callbackJson); - return Utilities.TtMsgCryptor.VerifySignature( + InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(webhookJson); + bool valid = Utilities.DyMsgCryptor.VerifySignature( sToken: client.Credentials.PushToken!, sTimestamp: encryptedEvent.TimestampString, sNonce: encryptedEvent.Nonce, sMsgEncrypt: encryptedEvent.EncryptedData, sMsgSign: encryptedEvent.Signature ); + + if (valid) + result = ErroredResult.Ok(); + else + result = ErroredResult.Fail(new Exception($"Signature does not match.")); } - catch + catch (Exception ex) { - return false; + result = ErroredResult.Fail(ex); } + + return result; } /// /// 验证回调通知事件签名。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/overview-guide/smallprogram/encryption + /// + /// REF:
+ /// + ///
///
/// - /// + /// /// - public static bool VerifyEventSignatureFromXml(this ByteDanceMicroAppClient client, string callbackXml) + public static ErroredResult VerifyEventSignatureFromXml(this ByteDanceMicroAppClient client, string webhookXml) { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (callbackXml == null) throw new ArgumentNullException(nameof(callbackXml)); + if (client is null) throw new ArgumentNullException(nameof(client)); + + ErroredResult result; try { - XDocument xdoc = XDocument.Parse(callbackXml); - return Utilities.TtMsgCryptor.VerifySignature( + XDocument xdoc = XDocument.Parse(webhookXml); + bool valid = Utilities.DyMsgCryptor.VerifySignature( sToken: client.Credentials.PushToken!, sTimestamp: xdoc.Root!.Element("TimeStamp")!.Value, sNonce: xdoc.Root!.Element("Nonce")!.Value, sMsgEncrypt: xdoc.Root!.Element("Encrypt")!.Value, sMsgSign: xdoc.Root!.Element("MsgSignature")!.Value ); + + if (valid) + result = ErroredResult.Ok(); + else + result = ErroredResult.Fail(new Exception($"Signature does not match.")); } - catch + catch (Exception ex) + { + result = ErroredResult.Fail(ex); + } + + return result; + } + } + + partial class ByteDanceMicroAppClientEventExtensions + { + private class InnerEncryptedEvent + { + [Newtonsoft.Json.JsonProperty("Encrypt")] + [System.Text.Json.Serialization.JsonPropertyName("Encrypt")] + [System.Xml.Serialization.XmlElement("Encrypt")] + public string EncryptedData { get; set; } = default!; + + [Newtonsoft.Json.JsonProperty("TimeStamp")] + [System.Text.Json.Serialization.JsonPropertyName("TimeStamp")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))] + [System.Xml.Serialization.XmlElement("TimeStamp")] + public string TimestampString { get; set; } = default!; + + [Newtonsoft.Json.JsonProperty("Nonce")] + [System.Text.Json.Serialization.JsonPropertyName("Nonce")] + [System.Xml.Serialization.XmlElement("Nonce")] + public string Nonce { get; set; } = default!; + + [Newtonsoft.Json.JsonProperty("MsgSignature")] + [System.Text.Json.Serialization.JsonPropertyName("MsgSignature")] + [System.Xml.Serialization.XmlElement("MsgSignature")] + public string Signature { get; set; } = default!; + } + + private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppClient client, string webhookJson) + where TEvent : ByteDanceMicroAppEvent + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (webhookJson is null) throw new ArgumentNullException(webhookJson); + + try + { + if (webhookJson.Contains("\"Encrypt\"")) + { + InnerEncryptedEvent encryptedEvent = client.JsonSerializer.Deserialize(webhookJson); + webhookJson = Utilities.DyMsgCryptor.AESDecrypt(cipherText: encryptedEvent.EncryptedData, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); + } + + return client.JsonSerializer.Deserialize(webhookJson); + } + catch (ByteDanceMicroAppException) + { + throw; + } + catch (Exception ex) + { + throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + } + } + + private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppClient client, string webhookXml) + where TEvent : ByteDanceMicroAppEvent + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (webhookXml is null) throw new ArgumentNullException(webhookXml); + + try + { + if (webhookXml.Contains("") && webhookXml.Contains("")) + { + if (!Utilities.DyMsgCryptor.TryParseXml(webhookXml, out string encryptedXml)) + throw new ByteDanceMicroAppException("Failed to decrypt event data, because the encrypted data is empty."); + + webhookXml = Utilities.DyMsgCryptor.AESDecrypt(cipherText: encryptedXml, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); + } + + return Utilities.XmlHelper.Deserialize(webhookXml); + } + catch (ByteDanceMicroAppException) + { + throw; + } + catch (Exception ex) { - return false; + throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs index 4256a57e..fb47947c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs @@ -14,8 +14,8 @@ public static class ByteDanceMicroAppClientExecuteAppsECPayExtensions private static string GenerateRequestSignature(this ByteDanceMicroAppClient client, TRequest request, Dictionary? extraParamMap = null) where TRequest : ByteDanceMicroAppRequest { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (request == null) throw new ArgumentNullException(nameof(request)); + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); /* * REF: https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/server/ecpay/TE/#%E4%B8%89%E3%80%81%E7%AD%BE%E5%90%8D-demo @@ -25,7 +25,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC IList tempList = new List() { client.Credentials.ECPaySalt! }; IDictionary paramMap = Newtonsoft.Json.JsonConvert.DeserializeObject>(json)!; - if (extraParamMap != null) + if (extraParamMap is not null) { foreach (KeyValuePair item in extraParamMap) { @@ -46,7 +46,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC continue; } - if (value != null && value.StartsWith("\"") && value.EndsWith("\"")) + if (value is not null && value.StartsWith("\"") && value.EndsWith("\"")) { value = value.Substring(1, value.Length - 1).Trim(); } @@ -63,14 +63,17 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC Array.Sort(tempArray, StringComparer.Ordinal); string plainText = string.Join("&", tempArray); - return Utilities.MD5Utility.Hash(plainText).ToLower(); + return Utilities.MD5Utility.Hash(plainText).Value!.ToLower(); } #region SaaS #region SaaS - Apply /// /// 异步调用 [POST] /apps/ecpay/saas/create_merchant 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/apply/create + /// + /// REF:
+ /// + ///
///
/// /// @@ -82,17 +85,20 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "create_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "create_merchant"); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/saas/image_upload 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/apply/image-upload + /// + /// REF:
+ /// + ///
///
/// /// @@ -104,14 +110,17 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "image_upload"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "image_upload"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/saas/query_merchant_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/apply/query + /// + /// REF:
+ /// + ///
///
/// /// @@ -122,21 +131,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_status"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_status"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region SaaS - PageLinks /// /// 异步调用 [POST] /apps/ecpay/saas/add_merchant 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/apply/merchant - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/withdraw/merchant + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -147,19 +159,22 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ComponentAppId == null) + if (request.ComponentAppId is null) request.ComponentAppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_merchant"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/saas/get_app_merchant 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/apply/app-merchant - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/withdraw/app-merchant + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -170,22 +185,25 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ComponentAppId == null) + if (request.ComponentAppId is null) request.ComponentAppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "get_app_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "get_app_merchant"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/saas/app_add_sub_merchant 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/apply/sub-merchant - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/withdraw/app-sub-merchant + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -196,19 +214,22 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "app_add_sub_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "app_add_sub_merchant"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/saas/add_sub_merchant 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/apply/sub-merchant - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/page-links/withdraw/sub-merchant + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -219,23 +240,26 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ComponentAppId == null) + if (request.ComponentAppId is null) request.ComponentAppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_sub_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_sub_merchant"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region SaaS - Withdraw /// /// 异步调用 [POST] /apps/ecpay/saas/query_merchant_balance 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/withdraw/query-balance + /// + /// REF:
+ /// + ///
///
/// /// @@ -246,18 +270,21 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_balance"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_balance"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/saas/merchant_withdraw 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/withdraw/merchant-withdraw + /// + /// REF:
+ /// + ///
///
/// /// @@ -268,18 +295,21 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "merchant_withdraw"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "merchant_withdraw"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/saas/query_withdraw_order 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/withdraw/query + /// + /// REF:
+ /// + ///
///
/// /// @@ -290,13 +320,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_withdraw_order"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_withdraw_order"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #endregion @@ -304,7 +334,10 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC #region Order /// /// 异步调用 [POST] /apps/ecpay/v1/create_order 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/pay-list/pay + /// + /// REF:
+ /// + ///
///
/// /// @@ -315,21 +348,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_order"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_order"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/query_order 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/pay-list/query + /// + /// REF:
+ /// + ///
///
/// /// @@ -340,21 +376,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_order"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_order"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/create_refund 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/refund-list/refund + /// + /// REF:
+ /// + ///
///
/// /// @@ -365,21 +404,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_refund"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_refund"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/query_refund 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/refund-list/query + /// + /// REF:
+ /// + ///
///
/// /// @@ -390,21 +432,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_refund"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_refund"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/settle 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/settlements/settlement + /// + /// REF:
+ /// + ///
///
/// /// @@ -415,21 +460,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "settle"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "settle"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/query_settle 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/settlements/query + /// + /// REF:
+ /// + ///
///
/// /// @@ -440,21 +488,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_settle"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_settle"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/create_return 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/return-settle/ReturnSettle + /// + /// REF:
+ /// + ///
///
/// /// @@ -465,21 +516,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_return"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_return"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/query_return 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/return-settle/query + /// + /// REF:
+ /// + ///
///
/// /// @@ -490,21 +544,24 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_return"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_return"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/ecpay/v1/query_platform_order 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/settlements/auto-settle/query + /// + /// REF:
+ /// + ///
///
/// /// @@ -515,23 +572,26 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_platform_order"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_platform_order"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion /// /// 异步调用 [GET] /apps/bills 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/bills/bill + /// + /// REF:
+ /// + ///
///
/// /// @@ -542,12 +602,12 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) { - request.Signature = client.GenerateRequestSignature(request, new Dictionary() + request.Signature = client.GenerateRequestSignature(request, new () { { "merchant_id" , request.MerchantId }, { "bill_date" , request.DateString }, @@ -556,22 +616,25 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC } IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "bills") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "bills") .SetQueryParam("app_id", request.AppId) .SetQueryParam("merchant_id", request.MerchantId) .SetQueryParam("bill_date", request.DateString) .SetQueryParam("bill_type", request.BillType) .SetQueryParam("sign", request.Signature); - if (request.ComponentAppId != null) + if (request.ComponentAppId is not null) flurlReq.SetQueryParam("thirdparty_id", request.ComponentAppId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/fund/bills 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/bills/fundbill + /// + /// REF:
+ /// + ///
///
/// /// @@ -582,12 +645,12 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.Signature == null) + if (request.Signature is null) { - request.Signature = client.GenerateRequestSignature(request, new Dictionary() + request.Signature = client.GenerateRequestSignature(request, new() { { "merchant_id" , request.MerchantId }, { "bill_date" , request.DateString }, @@ -598,7 +661,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC } IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "fund", "bills") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "fund", "bills") .SetQueryParam("app_id", request.AppId) .SetQueryParam("merchant_id", request.MerchantId) .SetQueryParam("bill_date", request.DateString) @@ -607,10 +670,10 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC .SetQueryParam("trade_type", request.TradeType) .SetQueryParam("sign", request.Signature); - if (request.ComponentAppId != null) + if (request.ComponentAppId is not null) flurlReq.SetQueryParam("thirdparty_id", request.ComponentAppId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsExtensions.cs index 7a9fda29..27c9e5cc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsExtensions.cs @@ -12,9 +12,12 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions { /// /// 异步调用 [POST] /apps/v2/token 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/interface-request-credential/get-access-token - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/server/interface-request-credential/get-access-token - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/interface-request-credential/get-access-token + /// + /// REF:
+ ///
+ ///
+ /// + ///
///
/// /// @@ -25,23 +28,26 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.AppSecret == null) + if (request.AppSecret is null) request.AppSecret = client.Credentials.AppSecret; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v2", "token"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "token"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v2/jscode2session 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/log-in/code-2-session - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/server/log-in/code-2-session - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/log-in/code-2-session + /// + /// REF:
+ ///
+ ///
+ /// + ///
///
/// /// @@ -52,22 +58,25 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.AppSecret == null) + if (request.AppSecret is null) request.AppSecret = client.Credentials.AppSecret; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v2", "jscode2session"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "jscode2session"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #region Capacity /// /// 异步调用 [POST] /apps/v1/capacity/upload_material 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/other/upload-material + /// + /// REF:
+ /// + ///
///
/// /// @@ -78,22 +87,25 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.MaterialFileName == null) + if (request.MaterialFileName is null) request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "upload_material"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "upload_material"); using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); - return await client.SendRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } #region Capacity/AwemeCapacity /// /// 异步调用 [GET] /apps/v1/capacity/query_aweme_permission_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/aweme-capacity/query-aweme-permission-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -105,15 +117,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_permission_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_permission_list") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/apply_aweme_permission 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/aweme-capacity/apply-aweme-permission + /// + /// REF:
+ /// + ///
///
/// /// @@ -125,15 +140,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_aweme_permission") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_aweme_permission") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_scope_quota_detail 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/aweme-capacity/query-scope-quota-detail + /// + /// REF:
+ /// + ///
///
/// /// @@ -145,16 +163,19 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_scope_quota_detail") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_scope_quota_detail") .WithHeader("access-token", request.AccessToken) .SetQueryParam("permission_key", request.PermissionKey); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/apply_scope_quota 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/aweme-capacity/apply-scope-quota + /// + /// REF:
+ /// + ///
///
/// /// @@ -166,15 +187,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_scope_quota") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_scope_quota") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/aweme-capacity/query-aweme-video-keyword + /// + /// REF:
+ /// + ///
///
/// /// @@ -186,17 +210,20 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_video_keyword_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_video_keyword_list") .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/aweme-capacity/add-aweme-video-keyword + /// + /// REF:
+ /// + ///
///
/// /// @@ -208,15 +235,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_aweme_video_keyword") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_aweme_video_keyword") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/aweme-capacity/delete-aweme-video-keyword + /// + /// REF:
+ /// + ///
///
/// /// @@ -228,17 +258,20 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_aweme_video_keyword") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_aweme_video_keyword") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Capacity/Delivery /// /// 异步调用 [POST] /apps/v1/capacity/add_alias 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/delivery/add-alias + /// + /// REF:
+ /// + ///
///
/// /// @@ -250,15 +283,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_alias") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_alias") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_alias_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/delivery/query-alias-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -270,15 +306,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_alias_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_alias_list") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/modify_alias 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/delivery/modify-alias + /// + /// REF:
+ /// + ///
///
/// /// @@ -290,15 +329,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_alias") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_alias") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/delete_alias 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/delivery/delete-alias + /// + /// REF:
+ /// + ///
///
/// /// @@ -310,15 +352,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_alias") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_alias") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/set_search_tag 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/delivery/set-search-tag + /// + /// REF:
+ /// + ///
///
/// /// @@ -330,15 +375,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "set_search_tag") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "set_search_tag") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_search_tag_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/delivery/query-search-tag-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -350,17 +398,20 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_search_tag_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_search_tag_list") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Capacity/FollowAweme /// /// 异步调用 [POST] /apps/v1/capacity/bind_aweme_user 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/follow-aweme/bind-aweme-user + /// + /// REF:
+ /// + ///
///
/// /// @@ -372,15 +423,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_aweme_user") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_aweme_user") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/unbind_aweme_user_bind 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/follow-aweme/unbind-aweme-user + /// + /// REF:
+ /// + ///
///
/// /// @@ -392,15 +446,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_aweme_user_bind") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_aweme_user_bind") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/get_aweme_user_bind_qrcode 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/follow-aweme/get-aweme-user-bind-qrcode + /// + /// REF:
+ /// + ///
///
/// /// @@ -412,16 +469,19 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_aweme_user_bind_qrcode") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_aweme_user_bind_qrcode") .WithHeader("access-token", request.AccessToken) .SetQueryParam("type", request.BindType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_aweme_user_bind_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/follow-aweme/query-aweme-user-bind-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -433,13 +493,13 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_user_bind_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_user_bind_list") .WithHeader("access-token", request.AccessToken) .SetQueryParam("type", request.BindType) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion @@ -447,11 +507,14 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions #region Capacity/Mount /// /// 异步调用 [POST] /apps/v1/capacity/apply_capacity 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/apply-self-mount - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/apply-live-self-mount - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/apply-video-talent-mount - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/capcut-video-template/apply-capacity - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/page-layout-custom/apply-capacity + /// + /// REF:
+ ///
+ ///
+ ///
+ ///
+ /// + ///
///
/// /// @@ -463,19 +526,22 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_capacity") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_capacity") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_apply_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/query-video-self-mount - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/query-live-self-mount - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/query-video-talent-mount - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/capcut-video-template/query-status - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/page-layout-custom/query-capacity-status + /// + /// REF:
+ ///
+ ///
+ ///
+ ///
+ /// + ///
///
/// /// @@ -487,16 +553,19 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_apply_status") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_apply_status") .WithHeader("access-token", request.AccessToken) .SetQueryParam("capacity_key", request.CapacityKey); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/bind_self_mount_user 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/bind-self-mount-user + /// + /// REF:
+ /// + ///
///
/// /// @@ -508,15 +577,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_self_mount_user") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_self_mount_user") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/unbind_self_mount_user 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/unbind-self-mount-user + /// + /// REF:
+ /// + ///
///
/// /// @@ -528,15 +600,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_self_mount_user") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_self_mount_user") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/get_self_mount_bind_qrcode 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/get-self-mount-bind-qrcode + /// + /// REF:
+ /// + ///
///
/// /// @@ -548,16 +623,19 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_self_mount_bind_qrcode") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_self_mount_bind_qrcode") .WithHeader("access-token", request.AccessToken) .SetQueryParam("capacity_key", request.CapacityKey); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_self_mount_user_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/query-self-mount-user-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -569,19 +647,22 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_self_mount_user_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_self_mount_user_list") .WithHeader("access-token", request.AccessToken) .SetQueryParam("capacity_key", request.CapacityKey) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #region Capacity/Mount/Capcut /// /// 异步调用 [GET] /apps/v1/capacity/query_capcut_info 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/capcut-video-template/query-capcut-info + /// + /// REF:
+ /// + ///
///
/// /// @@ -593,15 +674,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_info") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_info") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_capcut_template_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/capcut-video-template/query-capcut-template-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -613,17 +697,20 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_template_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_template_list") .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/update_capcut_template_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/capcut-video-template/update-template-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -635,10 +722,10 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_capcut_template_status") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_capcut_template_status") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #endregion @@ -646,7 +733,10 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions #region Capacity/SimpleQrcode /// /// 异步调用 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/simple-qr-code/query-simple-qr-bind-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -658,17 +748,20 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_simple_qr_bind_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_simple_qr_bind_list") .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/add_simple_qr_bind 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/simple-qr-code/add-simple-qr-bind + /// + /// REF:
+ /// + ///
///
/// /// @@ -680,15 +773,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_simple_qr_bind") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_simple_qr_bind") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/update_simple_qr_bind 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/simple-qr-code/update-simple-qr-bind + /// + /// REF:
+ /// + ///
///
/// /// @@ -700,15 +796,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/simple-qr-code/update-simple-qr-bind-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -720,15 +819,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind_status") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind_status") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/simple-qr-code/delete-simple-qr-bind + /// + /// REF:
+ /// + ///
///
/// /// @@ -740,17 +842,20 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_simple_qr_bind") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_simple_qr_bind") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Capacity/SubscribeNotification /// /// 异步调用 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/query-template-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -762,25 +867,28 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_subscribe_notification_tpl_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_subscribe_notification_tpl_list") .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit) .SetQueryParam("classification", request.Classification) .SetQueryParam("template_type", request.TemplateType); - if (request.CategoryIdList != null) + if (request.CategoryIdList is not null) flurlReq.SetQueryParam("category_ids", string.Join(",", request.CategoryIdList)); - if (request.Keyword != null) + if (request.Keyword is not null) flurlReq.SetQueryParam("keyword", request.Keyword); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_app_subscribe_notification_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/query-app-template-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -792,21 +900,24 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_app_subscribe_notification_tpl") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_app_subscribe_notification_tpl") .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit) .SetQueryParam("classification", request.Classification); - if (request.CategoryIdList != null) + if (request.CategoryIdList is not null) flurlReq.SetQueryParam("category_ids", string.Join(",", request.CategoryIdList)); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_created_subscribe_notification_tpl_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/query-created-template-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -818,20 +929,23 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_created_subscribe_notification_tpl_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_created_subscribe_notification_tpl_list") .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit); - if (request.Status != null) + if (request.Status is not null) flurlReq.SetQueryParam("status", request.Status); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/add_app_subscribe_notification_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/add-template + /// + /// REF:
+ /// + ///
///
/// /// @@ -843,15 +957,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_app_subscribe_notification_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_app_subscribe_notification_tpl") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/modify-app-template + /// + /// REF:
+ /// + ///
///
/// /// @@ -863,15 +980,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_app_subscribe_notification_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_app_subscribe_notification_tpl") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/delete-template + /// + /// REF:
+ /// + ///
///
/// /// @@ -883,15 +1003,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_app_subscribe_notification_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_app_subscribe_notification_tpl") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/create-template + /// + /// REF:
+ /// + ///
///
/// /// @@ -903,17 +1026,20 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_subscribe_notification_tpl") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_subscribe_notification_tpl") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region TrafficPermission /// /// 异步调用 [GET] /apps/v1/capacity/query_traffic_permission_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/traffic-permission/query-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -925,15 +1051,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_traffic_permission_status") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_traffic_permission_status") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/open_traffic_permission 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/traffic-permission/open-traffic-permission + /// + /// REF:
+ /// + ///
///
/// /// @@ -945,15 +1074,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "open_traffic_permission") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "open_traffic_permission") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_ad_placement_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/traffic-permission/query-ad-placement-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -965,15 +1097,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_placement_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_placement_list") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/add_ad_placement 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/traffic-permission/add-ad-placement + /// + /// REF:
+ /// + ///
///
/// /// @@ -985,15 +1120,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_ad_placement") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_ad_placement") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/capacity/update_ad_placement_status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/traffic-permission/update-ad-placement-status + /// + /// REF:
+ /// + ///
///
/// /// @@ -1005,15 +1143,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_ad_placement_status") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_ad_placement_status") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_ad_income 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/traffic-permission/query-ad-income + /// + /// REF:
+ /// + ///
///
/// /// @@ -1025,20 +1166,23 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_income") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_income") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_date", request.StartDateString) .SetQueryParam("end_date", request.EndDateString); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/capacity/query_ad_settlement_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/traffic-permission/query-ad-settlement-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -1050,16 +1194,16 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_settlement_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_settlement_list") .WithHeader("access-token", request.AccessToken); - if (request.PeriodString != null) + if (request.PeriodString is not null) flurlReq.SetQueryParam("month", request.PeriodString); - if (request.Status != null) + if (request.Status is not null) flurlReq.SetQueryParam("status", request.Status); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #endregion @@ -1067,7 +1211,10 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions #region Category /// /// 异步调用 [GET] /apps/v1/category/query_app_categories 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/category/query-app-categories + /// + /// REF:
+ /// + ///
///
/// /// @@ -1079,18 +1226,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "category", "query_app_categories") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "category", "query_app_categories") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Censor /// /// 异步调用 [POST] /apps/censor/image 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/content-security/picture-detect-v2 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/develop/picture-detect + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -1101,19 +1251,22 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "censor", "image"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "censor", "image"); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Chat /// /// 异步调用 [GET] /apps/chat/customer_service_url 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/im/customer-service-url + /// + /// REF:
+ /// + ///
///
/// /// @@ -1124,31 +1277,34 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "chat", "customer_service_url") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "chat", "customer_service_url") .WithHeader("access-token", request.AccessToken) .SetQueryParam("appid", request.AppId) .SetQueryParam("openid", request.OpenId) .SetQueryParam("type", request.Type) .SetQueryParam("scene", request.Scene); - if (request.OrderId != null) + if (request.OrderId is not null) flurlReq.SetQueryParam("order_id", request.OrderId); - if (request.IMType != null) + if (request.IMType is not null) flurlReq.SetQueryParam("im_type", request.IMType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region CustomerService /// /// 异步调用 [GET] /apps/customer_service/url 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/operation/microapp/customer-service + /// + /// REF:
+ /// + ///
///
/// /// @@ -1159,18 +1315,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "customer_service", "url") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "customer_service", "url") .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("appid", request.AppId) .SetQueryParam("openid", request.OpenId) .SetQueryParam("type", request.Type) .SetQueryParam("scene", request.Scene); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion @@ -1178,7 +1334,10 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions #region DataAnalysis/TransactionAnalysis /// /// 异步调用 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/transaction-analysis/overview-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1190,23 +1349,26 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_deal_overview_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_deal_overview_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_video_deal_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/transaction-analysis/video-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1218,20 +1380,23 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_video_deal_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_video_deal_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_live_room 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/transaction-analysis/query-live-room + /// + /// REF:
+ /// + ///
///
/// /// @@ -1243,18 +1408,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room") .WithHeader("access-token", request.AccessToken); - if (request.AnchorName != null) + if (request.AnchorName is not null) flurlReq.SetQueryParam("anchor_name", request.AnchorName); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_live_room_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/transaction-analysis/live-room-data-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1266,16 +1434,19 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("live_room_id", request.LiveRoomId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_live_deal_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/transaction-analysis/live-deal-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1287,16 +1458,19 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_deal_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_deal_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("live_room_id", request.LiveRoomId); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_product_deal_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/transaction-analysis/product-deal-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1308,24 +1482,27 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_product_deal_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_product_deal_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp) .SetQueryParam("page_num", request.Page) .SetQueryParam("page_size", request.Limit); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region DataAnalysis/UserAnalysis /// /// 异步调用 [GET] /apps/v1/data_analysis/query_behavior_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/user-analysis/behavior-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1337,26 +1514,29 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_behavior_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_behavior_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.OS != null) + if (request.OS is not null) flurlReq.SetQueryParam("os", request.OS); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_real_time_user_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/user-analysis/realtime-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1368,21 +1548,24 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_real_time_user_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_real_time_user_data") .WithHeader("access-token", request.AccessToken); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_retention_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/user-analysis/retention-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1394,29 +1577,32 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_retention_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_retention_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.UserType != null) + if (request.UserType is not null) flurlReq.SetQueryParam("user_type", request.UserType); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.OS != null) + if (request.OS is not null) flurlReq.SetQueryParam("os", request.OS); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_scene_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/user-analysis/scene-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1428,23 +1614,26 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_scene_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_scene_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_user_portrait_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/user-analysis/user-portrait-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1456,26 +1645,29 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_user_portrait_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_user_portrait_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.UserType != null) + if (request.UserType is not null) flurlReq.SetQueryParam("user_type", request.UserType); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_client_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/user-analysis/client-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1487,26 +1679,29 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_client_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_client_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.UserType != null) + if (request.UserType is not null) flurlReq.SetQueryParam("user_type", request.UserType); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /apps/v1/data_analysis/query_page_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-analysis/user-analysis/page-analysis + /// + /// REF:
+ /// + ///
///
/// /// @@ -1518,21 +1713,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_page_data") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_page_data") .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); - if (request.HostName != null) + if (request.HostName is not null) flurlReq.SetQueryParam("host_name", request.HostName); - if (request.OS != null) + if (request.OS is not null) flurlReq.SetQueryParam("os", request.OS); - if (request.VersionType != null) + if (request.VersionType is not null) flurlReq.SetQueryParam("version_type", request.VersionType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #endregion @@ -1540,7 +1735,10 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions #region Live /// /// 异步调用 [POST] /apps/upload_live_image 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/other/live-bg-image + /// + /// REF:
+ /// + ///
///
/// /// @@ -1551,27 +1749,30 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; - if (request.ImageFileName == null) + if (request.ImageFileName is null) request.ImageFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "upload_live_image"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "upload_live_image"); using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: "image/jpeg", formDataName: "image"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.Title)), "title"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.PagePath)), "start_page"); - if (request.RoomId != null) + if (request.RoomId is not null) httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.RoomId.Value.ToString())), "room_id"); - return await client.SendRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/v1/live/set_black_white_list 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/live-black-white-list + /// + /// REF:
+ /// + ///
///
/// /// @@ -1582,20 +1783,23 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "v1", "live", "set_black_white_list"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "live", "set_black_white_list"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Message /// /// 异步调用 [POST] /apps/message/custom/send 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/message-push-customer-service#%E5%8F%91%E9%80%81%E5%AE%A2%E6%9C%8D%E6%B6%88%E6%81%AF%E6%8E%A5%E5%8F%A3 + /// + /// REF:
+ /// + ///
///
/// /// @@ -1607,18 +1811,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "message", "custom", "send") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "message", "custom", "send") .SetQueryParam("access_token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Order /// /// 异步调用 [POST] /apps/order/v2/push 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/ecpay/order/order-sync - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/payment/pushOrder + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -1630,15 +1837,18 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "order", "v2", "push") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "v2", "push") .SetQueryParam("access_token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/order/delete 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/payment/deleteOrder + /// + /// REF:
+ /// + ///
///
/// /// @@ -1650,19 +1860,22 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "order", "delete") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "delete") .SetQueryParam("access_token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Qrcode /// /// 异步调用 [POST] /apps/qrcode 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/qr-code/create-qr-code - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/server/qr-code/create-qr-code - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/auth-app-manage/base-info/getqrcode + /// + /// REF:
+ ///
+ ///
+ /// + ///
///
/// /// @@ -1674,16 +1887,19 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "qrcode"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "qrcode"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region ShareConfig /// /// 异步调用 [POST] /apps/share_config 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/mount/ShareConfig + /// + /// REF:
+ /// + ///
///
/// /// @@ -1694,21 +1910,24 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "share_config"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "share_config"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region SubscribeNotification /// /// 异步调用 [POST] /apps/subscribe_notification/developer/v1/notify 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/subscribe-notification/notify - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/server/subscribe-notification/notify + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -1719,20 +1938,23 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "subscribe_notification", "developer", "v1", "notify"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "subscribe_notification", "developer", "v1", "notify"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region TaskBox /// /// 异步调用 [POST] /apps/taskbox/add_task 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/promote/taskbox/taskbox-task-upload + /// + /// REF:
+ /// + ///
///
/// /// @@ -1743,18 +1965,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "taskbox", "add_task"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "add_task"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/taskbox/update_task 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/promote/taskbox/updatetasks + /// + /// REF:
+ /// + ///
///
/// /// @@ -1765,18 +1990,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "taskbox", "update_task"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update_task"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/taskbox/update/status 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/promote/taskbox/updatetaskstatus + /// + /// REF:
+ /// + ///
///
/// /// @@ -1787,18 +2015,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "taskbox", "update", "status"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update", "status"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/taskbox/query_app_task_id 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/promote/taskbox/taskbox-query-app-task-id + /// + /// REF:
+ /// + ///
///
/// /// @@ -1809,18 +2040,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "taskbox", "query_app_task_id"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_app_task_id"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/taskbox/query_task_video_data 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/promote/taskbox/taskbox-query-task-video-data + /// + /// REF:
+ /// + ///
///
/// /// @@ -1831,20 +2065,23 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "taskbox", "query_task_video_data"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_task_video_data"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region UrlLink /// /// 异步调用 [POST] /apps/url_link/generate 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/share/url-link-generate + /// + /// REF:
+ /// + ///
///
/// /// @@ -1855,18 +2092,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "url_link", "generate"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "url_link", "generate"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/url_link/query_info 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/share/url-link-query + /// + /// REF:
+ /// + ///
///
/// /// @@ -1877,18 +2117,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "url_link", "query_info"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "url_link", "query_info"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/url_link/query_quota 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/share/url-link-query-quota + /// + /// REF:
+ /// + ///
///
/// /// @@ -1899,20 +2142,23 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "url_link", "query_quota"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "url_link", "query_quota"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Video /// /// 异步调用 [POST] /apps/convert_video_id/video_id_to_open_item_id 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/other/video-id-convert + /// + /// REF:
+ /// + ///
///
/// /// @@ -1923,18 +2169,21 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "convert_video_id", "video_id_to_open_item_id"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "video_id_to_open_item_id"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/convert_video_id/open_item_id_to_encrypt_id 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/other/video-id-convert + /// + /// REF:
+ /// + ///
///
/// /// @@ -1946,9 +2195,9 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "convert_video_id", "open_item_id_to_encrypt_id"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "open_item_id_to_encrypt_id"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsGameExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsGameExtensions.cs index 83118398..6766c422 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsGameExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsGameExtensions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; @@ -14,19 +14,19 @@ public static class ByteDanceMicroAppClientExecuteAppsGameExtensions private static string GenerateRequestSignature(this ByteDanceMicroAppClient client, ref TRequest request, string method, string reqLoc) where TRequest : Models.AppsGameWalletRequestBase { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (request == null) throw new ArgumentNullException(nameof(request)); + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); /* * REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/payment/payment-signature-generation-algorithm */ - if (request.AppId == null) + if (request.AppId is null) { request.AppId = client.Credentials.AppId; } - if (request.Timestamp == null) + if (request.Timestamp is null) { request.Timestamp = DateTimeOffset.Now.ToLocalTime().ToUnixTimeSeconds(); } @@ -46,12 +46,15 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC string plainText = string.Join("&", paramMap.Select(e => $"{e.Key}={e.Value}")) + $"&org_loc={reqLoc}" + $"&method={method.ToUpper()}"; - return Utilities.HMACUtility.HashWithSHA256(client.Credentials.ECPaySalt ?? string.Empty, plainText).ToLower(); + return Utilities.HMACUtility.HashWithSHA256(client.Credentials.ECPaySalt ?? string.Empty, plainText).Value!.ToLower(); } /// /// 异步调用 [POST] /apps/game/wallet/get_balance 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/payment/acquire-mini-game-coin-balance + /// + /// REF:
+ /// + ///
///
/// /// @@ -62,18 +65,21 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(ref request, HttpMethod.Post.Method, "/api/apps/game/wallet/get_balance"); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "game", "wallet", "get_balance"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "get_balance"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/game/wallet/game_pay 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/payment/mini-game-coin-deduction-interface + /// + /// REF:
+ /// + ///
///
/// /// @@ -84,18 +90,21 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(ref request, HttpMethod.Post.Method, "/api/apps/game/wallet/game_pay"); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "game", "wallet", "game_pay"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "game_pay"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/game/wallet/add_coin 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/payment/mini-game-coin-gift-interface + /// + /// REF:
+ /// + ///
///
/// /// @@ -106,13 +115,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(ref request, HttpMethod.Post.Method, "/api/apps/game/wallet/add_coin"); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "game", "wallet", "add_coin"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "add_coin"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs index 91fb36e0..8e81cc77 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs @@ -12,9 +12,9 @@ public static class ByteDanceMicroAppClientExecuteAppsStorageExtensions private static string GenerateRequestSignature(this ByteDanceMicroAppClient client, TRequest request, string signMethod, string sessionKey) where TRequest : ByteDanceMicroAppRequest { - if (client == null) throw new ArgumentNullException(nameof(client)); - if (request == null) throw new ArgumentNullException(nameof(request)); - if (sessionKey == null) throw new ArgumentNullException(nameof(sessionKey)); + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + if (sessionKey is null) throw new ArgumentNullException(nameof(sessionKey)); /* * REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/other/user-login-sign/ @@ -26,7 +26,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC switch (signMethod) { case "hmac_sha256": - return Utilities.HMACUtility.HashWithSHA256(sessionKey, json).ToLower(); + return Utilities.HMACUtility.HashWithSHA256(sessionKey, json).Value!.ToLower(); default: return string.Empty; @@ -35,8 +35,11 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// 异步调用 [POST] /apps/set_user_storage 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-caching/set-user-storage - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/server/data-caching/set-user-storage + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -47,23 +50,26 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request, request.SignMethod, request.SessionKey!); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "set_user_storage") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "set_user_storage") .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("openid", request.OpenId) .SetQueryParam("signature", request.Signature) .SetQueryParam("sig_method", request.SignMethod); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /apps/remove_user_storage 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/data-caching/remove-user-storage - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/server/data-caching/remove-user-storage + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -74,17 +80,17 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.Signature == null) + if (request.Signature is null) request.Signature = client.GenerateRequestSignature(request, request.SignMethod, request.SessionKey!); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "apps", "remove_user_storage") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "remove_user_storage") .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("openid", request.OpenId) .SetQueryParam("signature", request.Signature) .SetQueryParam("sig_method", request.SignMethod); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteCommentExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteCommentExtensions.cs index 9e599b35..abf654aa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteCommentExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteCommentExtensions.cs @@ -10,7 +10,10 @@ public static class ByteDanceMicroAppClientExecuteCommentExtensions { /// /// 异步调用 [POST] /comment/open/get 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/evolution/obtain-evolution + /// + /// REF:
+ /// + ///
///
/// /// @@ -21,13 +24,13 @@ public static class ByteDanceMicroAppClientExecuteCommentExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "comment", "open", "get"); + .CreateFlurlRequest(request, HttpMethod.Post, "comment", "open", "get"); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteTagsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteTagsExtensions.cs index 2f6f7cc8..0f41e55c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteTagsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteTagsExtensions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -10,8 +10,11 @@ public static class ByteDanceMicroAppClientExecuteTagsExtensions { /// /// 异步调用 [POST] /v2/tags/text/antidirt 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/content-security/content-security-detect - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/open-capacity/content-security/content-security-detect + /// + /// REF:
+ ///
+ /// + ///
///
/// /// @@ -23,15 +26,18 @@ public static class ByteDanceMicroAppClientExecuteTagsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v2", "tags", "text", "antidirt") + .CreateFlurlRequest(request, HttpMethod.Post, "v2", "tags", "text", "antidirt") .WithHeader("X-Token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /v2/tags/image 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/open-capacity/content-security/picture-detect + /// + /// REF:
+ /// + ///
///
/// /// @@ -43,10 +49,10 @@ public static class ByteDanceMicroAppClientExecuteTagsExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "v2", "tags", "image") + .CreateFlurlRequest(request, HttpMethod.Post, "v2", "tags", "image") .WithHeader("X-Token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteWebcastExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteWebcastExtensions.cs index 0d032a05..beb3302b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteWebcastExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteWebcastExtensions.cs @@ -11,7 +11,10 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions #region LiveData /// /// 异步调用 [POST] /live_data/task/start 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/live/danmu + /// + /// REF:
+ /// + ///
///
/// /// @@ -22,20 +25,23 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "live_data", "task", "start") - .WithUrl($"{client.EndpointForWebcastAPI}/live_data/task/start") + .CreateFlurlRequest(request, HttpMethod.Post, "live_data", "task", "start") + .WithUrl($"{client.EndpointForWebcast}/live_data/task/start") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [POST] /live_data/task/stop 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/live/danmu + /// + /// REF:
+ /// + ///
///
/// /// @@ -46,20 +52,23 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "live_data", "task", "stop") - .WithUrl($"{client.EndpointForWebcastAPI}/live_data/task/stop") + .CreateFlurlRequest(request, HttpMethod.Post, "live_data", "task", "stop") + .WithUrl($"{client.EndpointForWebcast}/live_data/task/stop") .WithHeader("access-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /live_data/task/get 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/live/danmu + /// + /// REF:
+ /// + ///
///
/// /// @@ -70,23 +79,26 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "live_data", "task", "get") - .WithUrl($"{client.EndpointForWebcastAPI}/live_data/task/get") + .CreateFlurlRequest(request, HttpMethod.Get, "live_data", "task", "get") + .WithUrl($"{client.EndpointForWebcast}/live_data/task/get") .WithHeader("access-token", request.AccessToken) .WithHeader("appid", request.AppId) .WithHeader("roomid", request.RoomId) .WithHeader("msg_type", request.MessageType); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// /// 异步调用 [GET] /live_data/task/fail_data/get 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/live/danmu + /// + /// REF:
+ /// + ///
///
/// /// @@ -97,12 +109,12 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Get, "live_data", "task", "fail_data", "get") - .WithUrl($"{client.EndpointForWebcastAPI}/live_data/task/fail_data/get") + .CreateFlurlRequest(request, HttpMethod.Get, "live_data", "task", "fail_data", "get") + .WithUrl($"{client.EndpointForWebcast}/live_data/task/fail_data/get") .WithHeader("access-token", request.AccessToken) .WithHeader("appid", request.AppId) .WithHeader("roomid", request.RoomId) @@ -110,14 +122,17 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions .WithHeader("page_num", request.PageNumber) .WithHeader("page_size", request.PageSize); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region Gift /// /// 异步调用 [POST] /gift/top_gift 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/live/danmu + /// + /// REF:
+ /// + ///
///
/// /// @@ -128,22 +143,25 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "gift", "top_gift") - .WithUrl($"{client.EndpointForWebcastAPI}/gift/top_gift") + .CreateFlurlRequest(request, HttpMethod.Post, "gift", "top_gift") + .WithUrl($"{client.EndpointForWebcast}/gift/top_gift") .WithHeader("x-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion #region LinkMic /// /// 异步调用 [POST] /linkmic/query 接口。 - /// REF: https://developer.open-douyin.com/docs/resource/zh-CN/interaction/develop/server/live/mic + /// + /// REF:
+ /// + ///
///
/// /// @@ -154,15 +172,15 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId == null) + if (request.AppId is null) request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateRequest(request, HttpMethod.Post, "linkmic", "query") - .WithUrl($"{client.EndpointForWebcastAPI}/linkmic/query") + .CreateFlurlRequest(request, HttpMethod.Post, "linkmic", "query") + .WithUrl($"{client.EndpointForWebcast}/linkmic/query") .WithHeader("x-token", request.AccessToken); - return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs index b5124eb9..14a784c6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs @@ -55,9 +55,9 @@ public class Scope /// 获取或设置是否可以申请。 ///
[Newtonsoft.Json.JsonProperty("can_apply")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("can_apply")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool CanApply { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs index 6762d822..393afb8c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs @@ -59,9 +59,9 @@ public class Scope /// 获取或设置是否可以申请提升额度。 /// [Newtonsoft.Json.JsonProperty("can_apply_quota")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("can_apply_quota")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool CanApplyQuota { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs index 9789541c..fd3fd1f3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs @@ -30,9 +30,9 @@ public class AppsCapacityAddSimpleQrcodeBindV1Request : ByteDanceMicroAppRequest /// 获取或设置是否独占该链接作为前缀。 ///
[Newtonsoft.Json.JsonProperty("exclusive_qr_url_prefix")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("exclusive_qr_url_prefix")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool IsPrefixExclusive { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs index 1296833c..8f802f76 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs @@ -45,9 +45,9 @@ public class Qrcode /// 获取或设置是否独占该链接作为前缀。 ///
[Newtonsoft.Json.JsonProperty("exclusive_qr_url_prefix")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("exclusive_qr_url_prefix")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool IsPrefixExclusive { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs index 95d5780b..33057d21 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs @@ -37,9 +37,9 @@ public class AppsCapacityUpdateSimpleQrcodeBindV1Request : ByteDanceMicroAppRequ /// 获取或设置是否独占该链接作为前缀。 ///
[Newtonsoft.Json.JsonProperty("exclusive_qr_url_prefix")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("exclusive_qr_url_prefix")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool IsPrefixExclusive { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs index 91329ed5..d34d9c74 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs @@ -39,7 +39,7 @@ public class Settlement ///
[Newtonsoft.Json.JsonProperty("tax_rate")] [System.Text.Json.Serialization.JsonPropertyName("tax_rate")] - public double TaxRate { get; set; } + public decimal TaxRate { get; set; } /// /// 获取或设置结算金额(单位:分)。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs index a3888179..b687a5f6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs @@ -20,9 +20,9 @@ public class Data /// 获取或设置是否可以开通。 /// [Newtonsoft.Json.JsonProperty("can_open")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("can_open")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool CanOpen { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs index 8f4c7d73..25dc23d7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs @@ -59,9 +59,9 @@ public class Certificate /// 获取或设置服务类目资质 ID 列表。 ///
[Newtonsoft.Json.JsonProperty("categoryCertIds")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualIntegerArrayWithCommaSplitConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedNumberArrayWithCommaSplitConverter))] [System.Text.Json.Serialization.JsonPropertyName("categoryCertIds")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualIntegerArrayWithCommaSplitConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedNumberArrayWithCommaSplitConverter))] public int[] CertificationIdList { get; set; } = default!; /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs index d3bf8a46..34c5a59a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs @@ -32,7 +32,7 @@ public class LiveOverviewData /// [Newtonsoft.Json.JsonProperty("per_capita_time")] [System.Text.Json.Serialization.JsonPropertyName("per_capita_time")] - public double AudienceTimePerUser { get; set; } + public decimal AudienceTimePerUser { get; set; } /// /// 获取或设置新增粉丝数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs index 5db4106b..0c92de08 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs @@ -67,21 +67,21 @@ public class BehaviorData /// [Newtonsoft.Json.JsonProperty("per_user_open_time")] [System.Text.Json.Serialization.JsonPropertyName("per_user_open_time")] - public double OpenTimesPerUser { get; set; } + public decimal OpenTimesPerUser { get; set; } /// /// 获取或设置人均停留时长(单位:毫秒)。 /// [Newtonsoft.Json.JsonProperty("per_user_stay_time")] [System.Text.Json.Serialization.JsonPropertyName("per_user_stay_time")] - public double StayTimePerUser { get; set; } + public decimal StayTimePerUser { get; set; } /// /// 获取或设置次均停留时长(单位:毫秒)。 /// [Newtonsoft.Json.JsonProperty("avg_stay_time")] [System.Text.Json.Serialization.JsonPropertyName("avg_stay_time")] - public double AverageStayTime { get; set; } + public decimal AverageStayTime { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs index f82e64af..391f6e6e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs @@ -39,7 +39,7 @@ public class PageData ///
[Newtonsoft.Json.JsonProperty("page_avg_stay_time")] [System.Text.Json.Serialization.JsonPropertyName("page_avg_stay_time")] - public double AverageStayTime { get; set; } + public decimal AverageStayTime { get; set; } /// /// 获取或设置分享次数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs index f05480b0..9af39c6c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs @@ -29,7 +29,7 @@ public class RetentionRate /// [Newtonsoft.Json.JsonProperty("rate")] [System.Text.Json.Serialization.JsonPropertyName("rate")] - public double Rate { get; set; } + public decimal Rate { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs index a3c95460..96352bf5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs @@ -36,7 +36,7 @@ public class SceneAverageStayTimeData ///
[Newtonsoft.Json.JsonProperty("scene_avg_stay_time")] [System.Text.Json.Serialization.JsonPropertyName("scene_avg_stay_time")] - public double AverageStayTime { get; set; } + public decimal AverageStayTime { get; set; } } public class SceneUVData @@ -155,7 +155,7 @@ public class ScenePVData ///
[Newtonsoft.Json.JsonProperty("scene_avg_stay_time")] [System.Text.Json.Serialization.JsonPropertyName("scene_avg_stay_time")] - public double AverageStayTime { get; set; } + public decimal AverageStayTime { get; set; } /// /// 获取或设置次均停留时长数据列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs index 5610e836..67bcf54a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs @@ -1,4 +1,6 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +using System.Linq; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/qrcode 接口的响应。 @@ -7,7 +9,7 @@ public class AppsQrcodeResponse : ByteDanceMicroAppResponse { public override bool IsSuccessful() { - return base.IsSuccessful() && RawBytes?.Length > 0; + return base.IsSuccessful() && GetRawBytes().Any(); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs index a788d8a3..9b37acad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs @@ -114,7 +114,7 @@ public class Video /// [Newtonsoft.Json.JsonProperty("expected_profit")] [System.Text.Json.Serialization.JsonPropertyName("expected_profit")] - public double ExpectedProfit { get; set; } + public decimal ExpectedProfit { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs index d6a7aea7..3540bf7d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs @@ -1,3 +1,5 @@ +using System.Linq; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// @@ -21,7 +23,7 @@ public class AppsBillsResponse : ByteDanceMicroAppResponse public override bool IsSuccessful() { - return base.IsSuccessful() && RawBytes?.Length > 0; + return base.IsSuccessful() && GetRawBytes().Any(); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs index 0ea17d70..d2e40c5d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs @@ -1,3 +1,5 @@ +using System.Linq; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// @@ -21,7 +23,7 @@ public class AppsFundBillsResponse : ByteDanceMicroAppResponse public override bool IsSuccessful() { - return base.IsSuccessful() && RawBytes?.Length > 0; + return base.IsSuccessful() && GetRawBytes().Any(); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs index fa7d7975..257baa64 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/create_order 接口的请求。 @@ -86,9 +86,9 @@ public class AppsECPayCreateOrderV1Request : ByteDanceMicroAppRequest /// 获取或设置是否屏蔽担保支付的推送消息。 /// [Newtonsoft.Json.JsonProperty("disable_msg")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("disable_msg")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool? IsMessageDisabled { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs index 7ce4194c..61e89659 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/create_refund 接口的请求。 @@ -79,9 +79,9 @@ public class AppsECPayCreateRefundV1Request : ByteDanceMicroAppRequest /// 获取或设置是否屏蔽担保支付的推送消息。 /// [Newtonsoft.Json.JsonProperty("disable_msg")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("disable_msg")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool? IsMessageDisabled { get; set; } /// @@ -95,9 +95,9 @@ public class AppsECPayCreateRefundV1Request : ByteDanceMicroAppRequest /// 获取或设置是否为分账后退款。 /// [Newtonsoft.Json.JsonProperty("all_settle")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] [System.Text.Json.Serialization.JsonPropertyName("all_settle")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] public bool? IsAllSettled { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs index 4afc553f..3e31ce17 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -64,9 +64,9 @@ public class Payment /// 获取或设置订单支付时间。 /// [Newtonsoft.Json.JsonProperty("pay_time")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.BasicDateTimeOffsetConverter))] [System.Text.Json.Serialization.JsonPropertyName("pay_time")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.BasicDateTimeOffsetConverter))] public DateTimeOffset? PayTime { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs index 62dbabdb..b003c521 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -27,17 +27,6 @@ public class SettleParameter } } - internal static class Converters - { - internal class ResponsePropertySettleParametersNewtonsoftJsonConverter : Newtonsoft.Json.Converters.TextualObjectInJsonFormatConverterBase?> - { - } - - internal class ResponsePropertySettleParametersSystemTextJsonConverter : System.Text.Json.Converters.TextualObjectInJsonFormatConverterBase?> - { - } - } - /// /// 获取或设置小程序第三方平台应用 ID。 /// @@ -77,9 +66,9 @@ internal class ResponsePropertySettleParametersSystemTextJsonConverter : System. /// 获取或设置分账方参数列表。 /// [Newtonsoft.Json.JsonProperty("settle_params")] - [Newtonsoft.Json.JsonConverter(typeof(Converters.ResponsePropertySettleParametersNewtonsoftJsonConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedObjectInJsonFormatConverter))] [System.Text.Json.Serialization.JsonPropertyName("settle_params")] - [System.Text.Json.Serialization.JsonConverter(typeof(Converters.ResponsePropertySettleParametersSystemTextJsonConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedObjectInJsonFormatConverter))] public IList SettleParameterList { get; set; } = new List(); /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs index 9d96fbbe..7b248c4b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs @@ -90,9 +90,9 @@ public class User /// 获取或设置创建时间。 /// [Newtonsoft.Json.JsonProperty("create_time")] - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.CSTDateTimeOffsetConverter))] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Internal.CstDateTimeOffsetConverter))] [System.Text.Json.Serialization.JsonPropertyName("create_time")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.CSTDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Internal.CstDateTimeOffsetConverter))] public DateTimeOffset CreateTime { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs index 41b8e85d..d4d931e3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs @@ -33,7 +33,7 @@ public class Predict [Newtonsoft.Json.JsonProperty("prob")] [System.Text.Json.Serialization.JsonPropertyName("prob")] [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] - public double Probability { get; set; } + public decimal Probability { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs index ceffd126..afd3f1ff 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs @@ -33,7 +33,7 @@ public class Predict [Newtonsoft.Json.JsonProperty("prob")] [System.Text.Json.Serialization.JsonPropertyName("prob")] [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] - public double Probability { get; set; } + public decimal Probability { get; set; } /// /// 获取或设置置信度结果。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs deleted file mode 100644 index 14e40852..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using Flurl.Http; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi -{ - /// - /// 一个字节小程序服务商平台 API HTTP 客户端。 - /// - public class ByteDanceMicroAppOpenApiClient : CommonClientBase, ICommonClient - { - /// - /// 获取当前客户端使用的字节小程序凭证。 - /// - public Settings.Credentials Credentials { get; } - - /// - /// 用指定的配置项初始化 类的新实例。 - /// - /// 配置项。 - public ByteDanceMicroAppOpenApiClient(ByteDanceMicroAppOpenApiClientOptions options) - : base() - { - if (options == null) throw new ArgumentNullException(nameof(options)); - - Credentials = new Settings.Credentials(options); - - FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppOpenApiEndpoints.DEFAULT; - FlurlClient.WithTimeout(TimeSpan.FromMilliseconds(options.Timeout)); - } - - /// - /// 用指定的字节小程序服务商 AppId、字节小程序服务商 AppSecret 初始化 类的新实例。 - /// - /// 字节小程序服务商 AppId。 - /// 字节小程序服务商 AppSecret。 - public ByteDanceMicroAppOpenApiClient(string componentAppId, string componentAppSecret) - : this(new ByteDanceMicroAppOpenApiClientOptions() { ComponentAppId = componentAppId, ComponentAppSecret = componentAppSecret }) - { - } - - /// - /// 使用当前客户端生成一个新的 对象。 - /// - /// - /// - /// - /// - public IFlurlRequest CreateRequest(ByteDanceMicroAppOpenApiRequest request, HttpMethod method, params object[] urlSegments) - { - IFlurlRequest flurlRequest = FlurlClient.Request(urlSegments).WithVerb(method); - - if (request.Timeout != null) - { - flurlRequest.WithTimeout(TimeSpan.FromMilliseconds(request.Timeout.Value)); - } - - if (request.ComponentAppId == null) - { - request.ComponentAppId = Credentials.ComponentAppId; - } - - return flurlRequest; - } - - /// - /// 异步发起请求。 - /// - /// - /// - /// - /// - /// - public async Task SendRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppOpenApiResponse, new() - { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); - - try - { - using IFlurlResponse flurlResponse = await base.SendRequestAsync(flurlRequest, httpContent, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } - } - - /// - /// 异步发起请求。 - /// - /// - /// - /// - /// - /// - public async Task SendRequestWithJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppOpenApiResponse, new() - { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); - - try - { - bool isSimpleRequest = data == null || - flurlRequest.Verb == HttpMethod.Get || - flurlRequest.Verb == HttpMethod.Head || - flurlRequest.Verb == HttpMethod.Options; - using IFlurlResponse flurlResponse = isSimpleRequest ? - await base.SendRequestAsync(flurlRequest, null, cancellationToken) : - await base.SendRequestWithJsonAsync(flurlRequest, data, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs deleted file mode 100644 index 557aab05..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs +++ /dev/null @@ -1,89 +0,0 @@ -using System.Collections.Generic; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi -{ - /// - /// 字节小程序服务商平台 API 响应的基类。 - /// - public abstract class ByteDanceMicroAppOpenApiResponse : ICommonResponse - { - /// - /// - /// - int ICommonResponse.RawStatus { get; set; } - - /// - /// - /// - IDictionary ICommonResponse.RawHeaders { get; set; } = default!; - - /// - /// - /// - byte[] ICommonResponse.RawBytes { get; set; } = default!; - - /// - /// 获取原始的 HTTP 响应状态码。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public int RawStatus - { - get { return ((ICommonResponse)this).RawStatus; } - internal set { ((ICommonResponse)this).RawStatus = value; } - } - - /// - /// 获取原始的 HTTP 响应表头集合。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public IDictionary RawHeaders - { - get { return ((ICommonResponse)this).RawHeaders; } - internal set { ((ICommonResponse)this).RawHeaders = value; } - } - - /// - /// 获取原始的 HTTP 响应正文。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public byte[] RawBytes - { - get { return ((ICommonResponse)this).RawBytes; } - internal set { ((ICommonResponse)this).RawBytes = value; } - } - - /// - /// 获取字节小程序 API 返回的错误码。 - /// - [Newtonsoft.Json.JsonProperty("errno")] - [System.Text.Json.Serialization.JsonPropertyName("errno")] - public virtual int ErrorNumber { get; set; } - - /// - /// 获取字节小程序 API 返回的错误描述。 - /// - [Newtonsoft.Json.JsonProperty("message")] - [System.Text.Json.Serialization.JsonPropertyName("message")] - public virtual string? ErrorMessage { get; set; } - - /// - /// 获取字节小程序 API 返回的日志 ID。 - /// - [Newtonsoft.Json.JsonProperty("log_id")] - [System.Text.Json.Serialization.JsonPropertyName("log_id")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))] - public virtual string? LogId { get; set; } - - /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功(即 HTTP 状态码为 200、且 `errcode` 值为 0)。 - /// - /// - public virtual bool IsSuccessful() - { - return RawStatus == 200 && ErrorNumber == 0; - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs deleted file mode 100644 index 32be81cd..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi.Events -{ - /// - /// 表示 EVENT.UNAUTHORIZED 事件的数据。 - /// REF: https://partner.open-douyin.com/docs/resource/zh-CN/thirdparty/API/smallprogram/authorization/notify - /// - public class ComponentUnauthorizedEvent : ByteDanceMicroAppOpenApiEvent, ByteDanceMicroAppOpenApiEvent.Serialization.IJsonSerializable, ByteDanceMicroAppOpenApiEvent.Serialization.IXmlSerializable - { - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiClient.cs deleted file mode 100644 index 14bf661d..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiClient.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using Flurl.Http; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi -{ - /// - /// 一个字节小程序泛知识课程库 API HTTP 客户端。 - /// - public class ByteDanceMicroAppProductApiClient : CommonClientBase, ICommonClient - { - /// - /// 获取当前客户端使用的字节小程序凭证。 - /// - public Settings.Credentials Credentials { get; } - - /// - /// 用指定的配置项初始化 类的新实例。 - /// - /// 配置项。 - public ByteDanceMicroAppProductApiClient(ByteDanceMicroAppProductApiClientOptions options) - : base() - { - if (options == null) throw new ArgumentNullException(nameof(options)); - - Credentials = new Settings.Credentials(options); - - FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppProductApiEndpoints.DEFAULT; - FlurlClient.WithTimeout(TimeSpan.FromMilliseconds(options.Timeout)); - } - - /// - /// 用指定的字节小程序 AppId、字节小程序 AppSecret 初始化 类的新实例。 - /// - /// 字节小程序 AppId。 - /// 字节小程序 AppSecret。 - public ByteDanceMicroAppProductApiClient(string appId, string appSecret) - : this(new ByteDanceMicroAppProductApiClientOptions() { AppId = appId, AppSecret = appSecret }) - { - } - - /// - /// 使用当前客户端生成一个新的 对象。 - /// - /// - /// - /// - /// - public IFlurlRequest CreateRequest(ByteDanceMicroAppProductApiRequest request, HttpMethod method, params object[] urlSegments) - { - IFlurlRequest flurlRequest = FlurlClient.Request(urlSegments).WithVerb(method); - - if (request.Timeout != null) - { - flurlRequest.WithTimeout(TimeSpan.FromMilliseconds(request.Timeout.Value)); - } - - if (request.AppId == null) - { - request.AppId = Credentials.AppId; - } - - return flurlRequest; - } - - /// - /// 异步发起请求。 - /// - /// - /// - /// - /// - /// - public async Task SendRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppProductApiResponse, new() - { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); - - try - { - using IFlurlResponse flurlResponse = await base.SendRequestAsync(flurlRequest, httpContent, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } - } - - /// - /// 异步发起请求。 - /// - /// - /// - /// - /// - /// - public async Task SendRequestWithJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppProductApiResponse, new() - { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); - - try - { - bool isSimpleRequest = data == null || - flurlRequest.Verb == HttpMethod.Get || - flurlRequest.Verb == HttpMethod.Head || - flurlRequest.Verb == HttpMethod.Options; - using IFlurlResponse flurlResponse = isSimpleRequest ? - await base.SendRequestAsync(flurlRequest, null, cancellationToken) : - await base.SendRequestWithJsonAsync(flurlRequest, data, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs deleted file mode 100644 index 37fa53a0..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs +++ /dev/null @@ -1,89 +0,0 @@ -using System.Collections.Generic; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi -{ - /// - /// 字节小程序泛知识课程库 API 响应的基类。 - /// - public abstract class ByteDanceMicroAppProductApiResponse : ICommonResponse - { - /// - /// - /// - int ICommonResponse.RawStatus { get; set; } - - /// - /// - /// - IDictionary ICommonResponse.RawHeaders { get; set; } = default!; - - /// - /// - /// - byte[] ICommonResponse.RawBytes { get; set; } = default!; - - /// - /// 获取原始的 HTTP 响应状态码。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public int RawStatus - { - get { return ((ICommonResponse)this).RawStatus; } - internal set { ((ICommonResponse)this).RawStatus = value; } - } - - /// - /// 获取原始的 HTTP 响应表头集合。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public IDictionary RawHeaders - { - get { return ((ICommonResponse)this).RawHeaders; } - internal set { ((ICommonResponse)this).RawHeaders = value; } - } - - /// - /// 获取原始的 HTTP 响应正文。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public byte[] RawBytes - { - get { return ((ICommonResponse)this).RawBytes; } - internal set { ((ICommonResponse)this).RawBytes = value; } - } - - /// - /// 获取字节小程序 API 返回的错误码。 - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public virtual int ErrorNumber { get; set; } - - /// - /// 获取字节小程序 API 返回的错误描述。 - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public virtual string? ErrorMessage { get; set; } - - /// - /// 获取字节小程序 API 返回的日志 ID。 - /// - [Newtonsoft.Json.JsonProperty("log_id")] - [System.Text.Json.Serialization.JsonPropertyName("log_id")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))] - public virtual string? LogId { get; set; } - - /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功(即 HTTP 状态码为 200、且 `errcode` 值为 0)。 - /// - /// - public virtual bool IsSuccessful() - { - return RawStatus == 200 && ErrorNumber == 0; - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs deleted file mode 100644 index 59a9cb16..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs +++ /dev/null @@ -1,115 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using Flurl.Http; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi -{ - /// - /// 一个字节小程序泛知识角色系统 API HTTP 客户端。 - /// - public class ByteDanceMicroAppRoleApiClient : CommonClientBase, ICommonClient - { - /// - /// 获取当前客户端使用的字节小程序凭证。 - /// - public Settings.Credentials Credentials { get; } - - /// - /// 用指定的配置项初始化 类的新实例。 - /// - /// 配置项。 - public ByteDanceMicroAppRoleApiClient(ByteDanceMicroAppRoleApiClientOptions options) - : base() - { - if (options == null) throw new ArgumentNullException(nameof(options)); - - Credentials = new RoleApi.Settings.Credentials(options); - - FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppRoleApiEndpoints.DEFAULT; - FlurlClient.WithTimeout(TimeSpan.FromMilliseconds(options.Timeout)); - } - - /// - /// 使用当前客户端生成一个新的 对象。 - /// - /// - /// - /// - /// - public IFlurlRequest CreateRequest(ByteDanceMicroAppRoleApiRequest request, HttpMethod method, params object[] urlSegments) - { - IFlurlRequest flurlRequest = FlurlClient.Request(urlSegments).WithVerb(method); - - if (request.Timeout != null) - { - flurlRequest.WithTimeout(TimeSpan.FromMilliseconds(request.Timeout.Value)); - } - - return flurlRequest; - } - - /// - /// 异步发起请求。 - /// - /// - /// - /// - /// - /// - public async Task SendRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppRoleApiResponse, new() - { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); - - try - { - using IFlurlResponse flurlResponse = await base.SendRequestAsync(flurlRequest, httpContent, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } - } - - /// - /// 异步发起请求。 - /// - /// - /// - /// - /// - /// - public async Task SendRequestWithJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppRoleApiResponse, new() - { - if (flurlRequest == null) throw new ArgumentNullException(nameof(flurlRequest)); - - try - { - bool isSimpleRequest = data == null || - flurlRequest.Verb == HttpMethod.Get || - flurlRequest.Verb == HttpMethod.Head || - flurlRequest.Verb == HttpMethod.Options; - using IFlurlResponse flurlResponse = isSimpleRequest ? - await base.SendRequestAsync(flurlRequest, null, cancellationToken) : - await base.SendRequestWithJsonAsync(flurlRequest, data, cancellationToken); - return await WrapResponseWithJsonAsync(flurlResponse, cancellationToken); - } - catch (FlurlHttpTimeoutException ex) - { - throw new Exceptions.ByteDanceMicroAppRequestTimeoutException(ex.Message, ex); - } - catch (FlurlHttpException ex) - { - throw new ByteDanceMicroAppException(ex.Message, ex); - } - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs deleted file mode 100644 index 14a5ab2f..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System.Collections.Generic; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi -{ - /// - /// 字节小程序泛知识角色系统 API 响应的基类。 - /// - public abstract class ByteDanceMicroAppRoleApiResponse: ICommonResponse - { - /// - /// - /// - int ICommonResponse.RawStatus { get; set; } - - /// - /// - /// - IDictionary ICommonResponse.RawHeaders { get; set; } = default!; - - /// - /// - /// - byte[] ICommonResponse.RawBytes { get; set; } = default!; - - /// - /// 获取原始的 HTTP 响应状态码。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public int RawStatus - { - get { return ((ICommonResponse)this).RawStatus; } - internal set { ((ICommonResponse)this).RawStatus = value; } - } - - /// - /// 获取原始的 HTTP 响应表头集合。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public IDictionary RawHeaders - { - get { return ((ICommonResponse)this).RawHeaders; } - internal set { ((ICommonResponse)this).RawHeaders = value; } - } - - /// - /// 获取原始的 HTTP 响应正文。 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public byte[] RawBytes - { - get { return ((ICommonResponse)this).RawBytes; } - internal set { ((ICommonResponse)this).RawBytes = value; } - } - - /// - /// 获取字节小程序 API 返回的错误码。 - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public virtual int ErrorNumber { get; set; } - - /// - /// 获取字节小程序 API 返回的错误描述。 - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public virtual string? ErrorTips { get; set; } - - /// - /// 获取字节小程序 API 返回的错误信息。 - /// - [Newtonsoft.Json.JsonProperty("err")] - [System.Text.Json.Serialization.JsonPropertyName("err")] - public virtual ByteDanceMicroAppRoleApiResponseError? Error { get; set; } - - /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功(即 HTTP 状态码为 200、且 `err_no` 值为 0)。 - /// - /// - public virtual bool IsSuccessful() - { - return RawStatus == 200 && ErrorNumber == 0 && (Error == null || Error.ErrorCode == 0); - } - } - - public class ByteDanceMicroAppRoleApiResponseError - { - /// - /// 获取字节小程序 API 返回的错误码。 - /// - [Newtonsoft.Json.JsonProperty("err_code")] - [System.Text.Json.Serialization.JsonPropertyName("err_code")] - public int ErrorCode { get; set; } - - /// - /// 获取字节小程序 API 返回的错误描述。 - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj index 2f2b5dd2..fa3c04b5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj @@ -2,7 +2,7 @@ net461; netstandard2.0; net6.0 - 8.0 + 10.0 enable true @@ -14,7 +14,7 @@ MIT https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance Flurl.Http ByteDance MicroApp 字节 字节小程序 字节跳动 字节跳动小程序 头条 头条小程序 今日头条 今日头条小程序 - 2.5.0 + 3.0.0-preview.1 基于 Flurl.Http 的字节小程序开放平台 API 客户端,支持小程序、小游戏、服务商平台、泛知识课程库&角色系统、直播小玩法等接口。 Fu Diwei git @@ -40,7 +40,7 @@ - + diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs index e50fb084..6533efee 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs @@ -31,7 +31,7 @@ public class Credentials internal Credentials(ByteDanceMicroAppClientOptions options) { - if (options == null) throw new ArgumentNullException(nameof(options)); + if (options is null) throw new ArgumentNullException(nameof(options)); AppId = options.AppId; AppSecret = options.AppSecret; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/AESUtility.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/AESUtility.cs index ffd9ba8c..80afb4b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/AESUtility.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/AESUtility.cs @@ -1,9 +1,10 @@ -using System; +using System; using System.Security.Cryptography; -using System.Text; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities { + using SKIT.FlurlHttpClient.Primitives; + /// /// AES 算法工具类。 /// @@ -18,9 +19,9 @@ public static class AESUtility /// 解密后的数据字节数组。 public static byte[] DecryptWithCBC(byte[] keyBytes, byte[] ivBytes, byte[] cipherBytes) { - if (keyBytes == null) throw new ArgumentNullException(nameof(keyBytes)); - if (ivBytes == null) throw new ArgumentNullException(nameof(ivBytes)); - if (cipherBytes == null) throw new ArgumentNullException(nameof(cipherBytes)); + if (keyBytes is null) throw new ArgumentNullException(nameof(keyBytes)); + if (ivBytes is null) throw new ArgumentNullException(nameof(ivBytes)); + if (cipherBytes is null) throw new ArgumentNullException(nameof(cipherBytes)); using (SymmetricAlgorithm aes = Aes.Create()) { @@ -34,6 +35,27 @@ public static byte[] DecryptWithCBC(byte[] keyBytes, byte[] ivBytes, byte[] ciph } } + /// + /// 基于 CBC 模式解密数据。 + /// + /// 经过编码后的(通常为 Base64)AES 密钥。 + /// 经过编码后的(通常为 Base64)初始化向量。 + /// 经过编码后的(通常为 Base64)待解密数据。 + /// 解密后的数据。 + public static EncodedString DecryptWithCBC(EncodedString encodingKey, EncodedString encodingIV, EncodedString encodingCipher) + { + if (encodingKey.Value is null) throw new ArgumentNullException(nameof(encodingKey)); + if (encodingIV.Value is null) throw new ArgumentNullException(nameof(encodingIV)); + if (encodingCipher.Value is null) throw new ArgumentNullException(nameof(encodingCipher)); + + byte[] plainBytes = DecryptWithCBC( + keyBytes: EncodedString.FromString(encodingKey, fallbackEncodingKind: EncodingKinds.Base64), + ivBytes: EncodedString.FromString(encodingIV, fallbackEncodingKind: EncodingKinds.Base64), + cipherBytes: EncodedString.FromString(encodingCipher, fallbackEncodingKind: EncodingKinds.Base64) + ); + return EncodedString.ToLiteralString(plainBytes); + } + /// /// 基于 CBC 模式加密数据。 /// @@ -43,9 +65,9 @@ public static byte[] DecryptWithCBC(byte[] keyBytes, byte[] ivBytes, byte[] ciph /// 加密后的数据字节数组。 public static byte[] EncryptWithCBC(byte[] keyBytes, byte[] ivBytes, byte[] plainBytes) { - if (keyBytes == null) throw new ArgumentNullException(nameof(keyBytes)); - if (ivBytes == null) throw new ArgumentNullException(nameof(ivBytes)); - if (plainBytes == null) throw new ArgumentNullException(nameof(plainBytes)); + if (keyBytes is null) throw new ArgumentNullException(nameof(keyBytes)); + if (ivBytes is null) throw new ArgumentNullException(nameof(ivBytes)); + if (plainBytes is null) throw new ArgumentNullException(nameof(plainBytes)); using (SymmetricAlgorithm aes = Aes.Create()) { @@ -59,44 +81,25 @@ public static byte[] EncryptWithCBC(byte[] keyBytes, byte[] ivBytes, byte[] plai } } - /// - /// 基于 CBC 模式解密数据。 - /// - /// 经 Base64 编码后的 AES 密钥。 - /// 经 Base64 编码后的 AES 初始化向量。 - /// 经 Base64 编码后的待解密数据。 - /// 解密后的文本数据。 - public static string DecryptWithCBC(string encodingKey, string encodingIV, string encodingCipherText) - { - if (encodingKey == null) throw new ArgumentNullException(nameof(encodingKey)); - if (encodingCipherText == null) throw new ArgumentNullException(nameof(encodingCipherText)); - - byte[] plainBytes = DecryptWithCBC( - keyBytes: Convert.FromBase64String(encodingKey), - ivBytes: Convert.FromBase64String(encodingIV), - cipherBytes: Convert.FromBase64String(encodingCipherText) - ); - return Encoding.UTF8.GetString(plainBytes); - } - /// /// 基于 CBC 模式加密数据。 /// - /// 经 Base64 编码后的 AES 密钥。 - /// 经 Base64 编码后的 AES 初始化向量。 - /// 待加密文本。 - /// 经 Base64 编码的加密后的数据。 - public static string EncryptWithCBC(string encodingKey, string encodingIV, string plainText) + /// 经过编码后的(通常为 Base64)AES 密钥。 + /// 经过编码后的(通常为 Base64)初始化向量。 + /// 待加密数据。 + /// 经过 Base64 编码的加密后的数据。 + public static EncodedString EncryptWithCBC(EncodedString encodingKey, EncodedString encodingIV, string plainData) { - if (encodingKey == null) throw new ArgumentNullException(nameof(encodingKey)); - if (plainText == null) throw new ArgumentNullException(nameof(plainText)); + if (encodingKey.Value is null) throw new ArgumentNullException(nameof(encodingKey)); + if (encodingIV.Value is null) throw new ArgumentNullException(nameof(encodingIV)); + if (plainData is null) throw new ArgumentNullException(nameof(plainData)); byte[] plainBytes = EncryptWithCBC( - keyBytes: Convert.FromBase64String(encodingKey), - ivBytes: Convert.FromBase64String(encodingIV), - plainBytes: Encoding.UTF8.GetBytes(plainText) + keyBytes: EncodedString.FromString(encodingKey, fallbackEncodingKind: EncodingKinds.Base64), + ivBytes: EncodedString.FromString(encodingIV, fallbackEncodingKind: EncodingKinds.Base64), + plainBytes: EncodedString.FromLiteralString(plainData) ); - return Convert.ToBase64String(plainBytes); + return EncodedString.ToBase64String(plainBytes); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/HMACUtility.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/HMACUtility.cs index 8b420354..7f34c749 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/HMACUtility.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/HMACUtility.cs @@ -1,44 +1,49 @@ -using System; +using System; using System.Security.Cryptography; -using System.Text; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities { + using SKIT.FlurlHttpClient.Primitives; + /// /// HMAC 算法工具类。 /// public static class HMACUtility { /// - /// 获取 HMAC-SHA-256 消息认证码。 + /// 计算 HMAC-SHA-256 哈希值。 /// - /// 密钥字节数组。 - /// 信息字节数组。 - /// 消息认证码字节数组。 - public static byte[] HashWithSHA256(byte[] secretBytes, byte[] msgBytes) + /// 密钥字节数组。 + /// 要计算哈希值的信息字节数组。 + /// 哈希值字节数组。 + public static byte[] HashWithSHA256(byte[] keyBytes, byte[] messageBytes) { - if (secretBytes == null) throw new ArgumentNullException(nameof(secretBytes)); - if (msgBytes == null) throw new ArgumentNullException(nameof(msgBytes)); + if (keyBytes is null) throw new ArgumentNullException(nameof(keyBytes)); + if (messageBytes is null) throw new ArgumentNullException(nameof(messageBytes)); - using HMAC hmac = new HMACSHA256(secretBytes); - return hmac.ComputeHash(msgBytes); +#if NET5_0_OR_GREATER + return HMACSHA256.HashData(keyBytes, messageBytes); +#else + using HMAC hmac = new HMACSHA256(keyBytes); + return hmac.ComputeHash(messageBytes); +#endif } /// - /// 获取 HMAC-SHA-256 消息认证码。 + /// 计算 HMAC-SHA-256 哈希值。 /// - /// 密钥。 - /// 文本信息。 - /// 消息认证码。 - public static string HashWithSHA256(string secret, string message) + /// 密钥。 + /// 要计算哈希值的信息。 + /// 经过十六进制编码的哈希值。 + public static EncodedString HashWithSHA256(string key, string messageData) { - if (secret == null) throw new ArgumentNullException(nameof(secret)); - if (message == null) throw new ArgumentNullException(nameof(message)); + if (key is null) throw new ArgumentNullException(nameof(key)); + if (messageData is null) throw new ArgumentNullException(nameof(messageData)); - byte[] secretBytes = Encoding.UTF8.GetBytes(secret); - byte[] msgBytes = Encoding.UTF8.GetBytes(message); - byte[] hashBytes = HashWithSHA256(secretBytes, msgBytes); - return BitConverter.ToString(hashBytes).Replace("-", ""); + byte[] keyBytes = EncodedString.FromLiteralString(key); + byte[] messageBytes = EncodedString.FromLiteralString(messageData); + byte[] hashBytes = HashWithSHA256(keyBytes, messageBytes); + return EncodedString.ToHexString(hashBytes); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/XmlUtility.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/XmlUtility.cs deleted file mode 100644 index 36b2fb8c..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/XmlUtility.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Collections; -using System.IO; -using System.Xml.Serialization; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities -{ - internal static class XmlUtility - { - // REF: https://docs.microsoft.com/zh-cn/dotnet/api/system.xml.serialization.xmlserializer#dynamically-generated-assemblies - private static readonly Hashtable _xmlSerializers = new Hashtable(); - private static readonly XmlRootAttribute _xmlRoot = new XmlRootAttribute("xml"); - - private static XmlSerializer GetTypedSerializer(Type type) - { - if (type == null) throw new ArgumentNullException(nameof(type)); - - string skey = type.AssemblyQualifiedName ?? type.GetHashCode().ToString(); - XmlSerializer? xmlSerializer = (XmlSerializer?)_xmlSerializers[skey]; - if (xmlSerializer == null) - { - xmlSerializer = new XmlSerializer(type, _xmlRoot); - _xmlSerializers[skey] = xmlSerializer; - } - - return xmlSerializer; - } - - public static object Deserialize(Type type, string xml) - { - using var reader = new StringReader(xml); - XmlSerializer serializer = GetTypedSerializer(type); - return serializer.Deserialize(reader)!; - } - - public static T Deserialize(string xml) - where T : class - { - return (T)Deserialize(typeof(T), xml); - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/MD5Utility.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/MD5Utility.cs index eab77b37..b5dc71be 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/MD5Utility.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/MD5Utility.cs @@ -1,39 +1,44 @@ -using System; +using System; using System.Security.Cryptography; -using System.Text; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities { + using SKIT.FlurlHttpClient.Primitives; + /// /// MD5 算法工具类。 /// public static class MD5Utility { /// - /// 获取 MD5 信息摘要。 + /// 计算 MD5 哈希值。 /// - /// 信息字节数组。 - /// 信息摘要字节数组。 - public static byte[] Hash(byte[] bytes) + /// 要计算哈希值的信息字节数组。 + /// 哈希值字节数组。 + public static byte[] Hash(byte[] messageBytes) { - if (bytes == null) throw new ArgumentNullException(nameof(bytes)); + if (messageBytes is null) throw new ArgumentNullException(nameof(messageBytes)); +#if NET5_0_OR_GREATER + return MD5.HashData(messageBytes); +#else using MD5 md5 = MD5.Create(); - return md5.ComputeHash(bytes); + return md5.ComputeHash(messageBytes); +#endif } /// - /// 获取 MD5 信息摘要。 + /// 计算 MD5 哈希值。 /// - /// 文本信息。 - /// 信息摘要。 - public static string Hash(string message) + /// 要计算哈希值的信息。 + /// 经过十六进制编码的哈希值。 + public static EncodedString Hash(string messageData) { - if (message == null) throw new ArgumentNullException(nameof(message)); + if (messageData is null) throw new ArgumentNullException(nameof(messageData)); - byte[] msgBytes = Encoding.UTF8.GetBytes(message); - byte[] hashBytes = Hash(msgBytes); - return BitConverter.ToString(hashBytes).Replace("-", ""); + byte[] messageBytes = EncodedString.FromLiteralString(messageData); + byte[] hashBytes = Hash(messageBytes); + return EncodedString.ToHexString(hashBytes); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/SHA1Utility.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/SHA1Utility.cs index e93a5c86..3a822a4c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/SHA1Utility.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/SHA1Utility.cs @@ -1,39 +1,44 @@ -using System; +using System; using System.Security.Cryptography; -using System.Text; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities { + using SKIT.FlurlHttpClient.Primitives; + /// /// SHA-1 算法工具类。 /// public static class SHA1Utility { /// - /// 获取 SHA-1 信息摘要。 + /// 计算 SHA-1 哈希值。 /// - /// 信息字节数组。 - /// 信息摘要字节数组。 - public static byte[] Hash(byte[] bytes) + /// 要计算哈希值的信息字节数组。 + /// 哈希值字节数组。 + public static byte[] Hash(byte[] messageBytes) { - if (bytes == null) throw new ArgumentNullException(nameof(bytes)); + if (messageBytes is null) throw new ArgumentNullException(nameof(messageBytes)); - using SHA1 sha = SHA1.Create(); - return sha.ComputeHash(bytes); +#if NET5_0_OR_GREATER + return SHA1.HashData(messageBytes); +#else + using SHA1 sha1 = SHA1.Create(); + return sha1.ComputeHash(messageBytes); +#endif } /// - /// 获取 SHA-1 信息摘要。 + /// 计算 SHA-1 哈希值。 /// - /// 文本信息。 - /// 信息摘要。 - public static string Hash(string message) + /// 要计算哈希值的信息。 + /// 经过十六进制编码的哈希值。 + public static EncodedString Hash(string messageData) { - if (message == null) throw new ArgumentNullException(nameof(message)); + if (messageData is null) throw new ArgumentNullException(nameof(messageData)); - byte[] msgBytes = Encoding.UTF8.GetBytes(message); - byte[] hashBytes = Hash(msgBytes); - return BitConverter.ToString(hashBytes).Replace("-", ""); + byte[] messageBytes = EncodedString.FromLiteralString(messageData); + byte[] hashBytes = Hash(messageBytes); + return EncodedString.ToHexString(hashBytes); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/TtMsgCryptor.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/DyMsgCryptor.cs similarity index 78% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/TtMsgCryptor.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/DyMsgCryptor.cs index d5e11fe3..2b3963d6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/TtMsgCryptor.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/DyMsgCryptor.cs @@ -2,21 +2,20 @@ using System.Collections.Generic; using System.IO; using System.Net; -using System.Security; using System.Security.Cryptography; using System.Text; using System.Xml; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities { - internal static class TtMsgCryptor + internal static class DyMsgCryptor { private const int AES_KEY_SIZE = 256; private const int AES_BLOCK_SIZE = 128; private static byte[] Decode2(byte[] decryptedBytes) { - if (decryptedBytes == null) throw new ArgumentNullException(nameof(decryptedBytes)); + if (decryptedBytes is null) throw new ArgumentNullException(nameof(decryptedBytes)); int pad = (int)decryptedBytes[decryptedBytes.Length - 1]; if (pad < 1 || pad > 32) @@ -31,9 +30,9 @@ private static byte[] Decode2(byte[] decryptedBytes) private static byte[] AESDecrypt(byte[] keyBytes, byte[] ivBytes, byte[] cipherBytes) { - if (keyBytes == null) throw new ArgumentNullException(nameof(keyBytes)); - if (ivBytes == null) throw new ArgumentNullException(nameof(ivBytes)); - if (cipherBytes == null) throw new ArgumentNullException(nameof(cipherBytes)); + if (keyBytes is null) throw new ArgumentNullException(nameof(keyBytes)); + if (ivBytes is null) throw new ArgumentNullException(nameof(ivBytes)); + if (cipherBytes is null) throw new ArgumentNullException(nameof(cipherBytes)); using var aes = Aes.Create(); aes.KeySize = AES_KEY_SIZE; @@ -58,8 +57,8 @@ private static byte[] AESDecrypt(byte[] keyBytes, byte[] ivBytes, byte[] cipherB public static string AESDecrypt(string cipherText, string encodingAESKey, out string appId) { - if (cipherText == null) throw new ArgumentNullException(nameof(cipherText)); - if (encodingAESKey == null) throw new ArgumentNullException(nameof(encodingAESKey)); + if (cipherText is null) throw new ArgumentNullException(nameof(cipherText)); + if (encodingAESKey is null) throw new ArgumentNullException(nameof(encodingAESKey)); byte[] cipherBytes = Convert.FromBase64String(cipherText); byte[] keyBytes = Convert.FromBase64String(encodingAESKey + "="); @@ -81,11 +80,11 @@ public static string AESDecrypt(string cipherText, string encodingAESKey, out st public static bool VerifySignature(string sToken, string sTimestamp, string sNonce, string sMsgEncrypt, string sMsgSign) { - if (sToken == null) throw new ArgumentNullException(nameof(sToken)); - if (sTimestamp == null) throw new ArgumentNullException(nameof(sTimestamp)); - if (sNonce == null) throw new ArgumentNullException(nameof(sNonce)); - if (sMsgEncrypt == null) throw new ArgumentNullException(nameof(sMsgEncrypt)); - if (sMsgSign == null) throw new ArgumentNullException(nameof(sMsgSign)); + if (sToken is null) throw new ArgumentNullException(nameof(sToken)); + if (sTimestamp is null) throw new ArgumentNullException(nameof(sTimestamp)); + if (sNonce is null) throw new ArgumentNullException(nameof(sNonce)); + if (sMsgEncrypt is null) throw new ArgumentNullException(nameof(sMsgEncrypt)); + if (sMsgSign is null) throw new ArgumentNullException(nameof(sMsgSign)); string expectedSign = GenerateSignature(sToken, sTimestamp, sNonce, sMsgEncrypt); return string.Equals(expectedSign, sMsgSign, StringComparison.OrdinalIgnoreCase); @@ -93,22 +92,22 @@ public static bool VerifySignature(string sToken, string sTimestamp, string sNon public static string GenerateSignature(string sToken, string sTimestamp, string sNonce, string sMsgEncrypt) { - if (sToken == null) throw new ArgumentNullException(nameof(sToken)); - if (sTimestamp == null) throw new ArgumentNullException(nameof(sTimestamp)); - if (sNonce == null) throw new ArgumentNullException(nameof(sNonce)); - if (sMsgEncrypt == null) throw new ArgumentNullException(nameof(sMsgEncrypt)); + if (sToken is null) throw new ArgumentNullException(nameof(sToken)); + if (sTimestamp is null) throw new ArgumentNullException(nameof(sTimestamp)); + if (sNonce is null) throw new ArgumentNullException(nameof(sNonce)); + if (sMsgEncrypt is null) throw new ArgumentNullException(nameof(sMsgEncrypt)); List tmp = new List(capacity: 4) { sToken, sTimestamp, sNonce, sMsgEncrypt }; tmp.Sort(StringComparer.Ordinal); string rawText = string.Concat(tmp); - string signText = SHA1Utility.Hash(rawText); + string signText = SHA1Utility.Hash(rawText).Value!; return signText.ToLower(); } public static bool TryParseXml(string xml, out string encryptedMsg) { - if (xml == null) throw new ArgumentNullException(nameof(xml)); + if (xml is null) throw new ArgumentNullException(nameof(xml)); encryptedMsg = string.Empty; @@ -119,7 +118,7 @@ public static bool TryParseXml(string xml, out string encryptedMsg) xmlDoc.LoadXml(xml); XmlNode? xmlRoot = xmlDoc.FirstChild; - if (xmlRoot == null) + if (xmlRoot is null) return false; encryptedMsg = xmlRoot["Encrypt"]?.InnerText?.ToString() ?? string.Empty; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/FileHttpContentBuilder.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/FileHttpContentBuilder.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/FileHttpContentBuilder.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/FileHttpContentBuilder.cs index 2a766e23..9cd0b4b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/FileHttpContentBuilder.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/FileHttpContentBuilder.cs @@ -14,9 +14,9 @@ public static MultipartFormDataContent Build(string fileName, byte[] fileBytes, public static MultipartFormDataContent Build(string fileName, byte[] fileBytes, string fileContentType, string formDataName, Action configureFileHttpContent) { - if (fileName == null) throw new ArgumentNullException(nameof(fileName)); - if (formDataName == null) throw new ArgumentNullException(nameof(formDataName)); - if (configureFileHttpContent == null) throw new ArgumentNullException(nameof(configureFileHttpContent)); + if (fileName is null) throw new ArgumentNullException(nameof(fileName)); + if (formDataName is null) throw new ArgumentNullException(nameof(formDataName)); + if (configureFileHttpContent is null) throw new ArgumentNullException(nameof(configureFileHttpContent)); fileName = fileName.Replace("\"", ""); fileBytes = fileBytes ?? Array.Empty(); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/FileNameToContentTypeMapper.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/FileNameToContentTypeMapper.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/Internal/FileNameToContentTypeMapper.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/FileNameToContentTypeMapper.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/XmlHelper.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/XmlHelper.cs new file mode 100644 index 00000000..95e12e51 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/__Internal/XmlHelper.cs @@ -0,0 +1,20 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities +{ + using SKIT.FlurlHttpClient.Internal; + + internal static class XmlHelper + { + public static object Deserialize(string xml, Type type) + { + return _XmlSimpleSerializer.Deserialize(xml, type); + } + + public static T Deserialize(string xml) + where T : class + { + return (T)Deserialize(xml, typeof(T)); + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs new file mode 100644 index 00000000..167f3581 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs @@ -0,0 +1,215 @@ +using System; +using System.IO; +using System.Reflection; +using SKIT.FlurlHttpClient.Tools.CodeAnalyzer; +using Xunit; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests +{ + using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi; + using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi; + using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi; + + public class CodeAnalyzeTests + { + // NOTICE: + // 如果 Visual Studio 遇到 “缺少 SKIT.FlurlHttpClient.Tools.CodeAnalyzer 包” 的错误, + // 请参考此 Issue:https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/issues/8 + + [Fact(DisplayName = "代码质量分析")] + public void CodeAnalyze() + { + Assert.Multiple( + () => Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", + IgnoreExecutingExtensionTypes = static type => type.Namespace.Contains(".ExtendedSDK."), + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true, + ThrowOnNotFoundWebhookEventTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })), + + () => Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); + + var options = new SourceFileAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/_/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/_/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/_/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundWebhookEventClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true, + ThrowOnNotFoundWebhookEventSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })) + ); + + Assert.Multiple( + () => Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true, + ThrowOnNotFoundWebhookEventTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })), + + () => Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); + + var options = new SourceFileAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppOpenApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/OpenApi/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/OpenApi/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/OpenApi/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/OpenApi/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/OpenApi/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/OpenApi/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/OpenApi/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundWebhookEventClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true, + ThrowOnNotFoundWebhookEventSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })) + ); + + Assert.Multiple( + () => Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppProductApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true, + ThrowOnNotFoundWebhookEventTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })), + + () => Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); + + var options = new SourceFileAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppProductApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/ProductApi/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/ProductApi/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/ProductApi/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/ProductApi/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/ProductApi/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/ProductApi/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/ProductApi/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundWebhookEventClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true, + ThrowOnNotFoundWebhookEventSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })) + ); + + Assert.Multiple( + () => Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppRoleApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })), + + () => Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); + + var options = new SourceFileAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppRoleApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/RoleApi/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/RoleApi/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/RoleApi/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/RoleApi/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/RoleApi/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/RoleApi/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/RoleApi/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })) + ); + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests.csproj b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests.csproj index afb1a6a7..2a8ece10 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests.csproj +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests.csproj @@ -10,24 +10,24 @@ - - Never - Never - - - PreserveNewest - PreserveNewest - + + PreserveNewest + PreserveNewest + + + Always + Always + - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_CodeReview.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_CodeReview.cs deleted file mode 100644 index 45a51697..00000000 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_CodeReview.cs +++ /dev/null @@ -1,96 +0,0 @@ -using SKIT.FlurlHttpClient.Tools.CodeAnalyzer; -using Xunit; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests -{ - public class TestCase_CodeReview - { - [Fact(DisplayName = "测试用例:代码质量分析")] - public void TestCodeAnalyzer() - { - Assert.Null(Record.Exception(() => - { - CodeAnalyzerOptions options = new CodeAnalyzerOptions() - { - AssemblyName = "SKIT.FlurlHttpClient.ByteDance.MicroApp", - WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk, - WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest, - WorkSubDirectoryForApiModelSamples = "ModelSamples/_", - WorkSubDirectoryForApiEventSamples = "EventSamples/_", - }; - CodeAnalyzer analyzer = new CodeAnalyzer(options); - analyzer.Start(); - analyzer.Assert(); - analyzer.Flush(); - })); - - Assert.Null(Record.Exception(() => - { - CodeAnalyzerOptions options = new CodeAnalyzerOptions() - { - AssemblyName = "SKIT.FlurlHttpClient.ByteDance.MicroApp", - TargetSdkApiModelNamespaceUnderAssemblyIdentifier = "SDK.ProductApi.Models", - TargetSdkApiEventNamespaceUnderAssemblyIdentifier = "SDK.ProductApi.Events", - //TargetSdkApiMethodNamespaceUnderAssemblyIdentifier = "SDK.ProductApi", - WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk, - WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest, - WorkSubDirectoryForApiMethods = "SDK/ProductApi/Extensions", - WorkSubDirectoryForApiModels = "SDK/ProductApi/Models", - WorkSubDirectoryForApiEvents = "SDK/ProductApi/Events", - WorkSubDirectoryForApiModelSamples = "ModelSamples/ProductApi", - WorkSubDirectoryForApiEventSamples = "EventSamples/ProductApi" - }; - CodeAnalyzer analyzer = new CodeAnalyzer(options); - analyzer.Start(); - analyzer.Assert(); - analyzer.Flush(); - })); - - Assert.Null(Record.Exception(() => - { - CodeAnalyzerOptions options = new CodeAnalyzerOptions() - { - AssemblyName = "SKIT.FlurlHttpClient.ByteDance.MicroApp", - TargetSdkApiModelNamespaceUnderAssemblyIdentifier = "SDK.RoleApi.Models", - TargetSdkApiEventNamespaceUnderAssemblyIdentifier = "SDK.RoleApi.Events", - //TargetSdkApiMethodNamespaceUnderAssemblyIdentifier = "SDK.RoleApi", - WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk, - WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest, - WorkSubDirectoryForApiMethods = "SDK/RoleApi/Extensions", - WorkSubDirectoryForApiModels = "SDK/RoleApi/Models", - WorkSubDirectoryForApiEvents = "SDK/RoleApi/Events", - WorkSubDirectoryForApiModelSamples = "ModelSamples/RoleApi", - WorkSubDirectoryForApiEventSamples = "EventSamples/RoleApi", - AllowNotFoundEventTypes = true, - AllowNotFoundEventSamples = true - }; - CodeAnalyzer analyzer = new CodeAnalyzer(options); - analyzer.Start(); - analyzer.Assert(); - analyzer.Flush(); - })); - - Assert.Null(Record.Exception(() => - { - CodeAnalyzerOptions options = new CodeAnalyzerOptions() - { - AssemblyName = "SKIT.FlurlHttpClient.ByteDance.MicroApp", - TargetSdkApiModelNamespaceUnderAssemblyIdentifier = "SDK.OpenApi.Models", - TargetSdkApiEventNamespaceUnderAssemblyIdentifier = "SDK.OpenApi.Events", - //TargetSdkApiMethodNamespaceUnderAssemblyIdentifier = "SDK.OpenApi", - WorkDirectoryForSourceCode = TestConfigs.WorkDirectoryForSdk, - WorkDirectoryForTestSample = TestConfigs.WorkDirectoryForTest, - WorkSubDirectoryForApiMethods = "SDK/OpenApi/Extensions", - WorkSubDirectoryForApiModels = "SDK/OpenApi/Models", - WorkSubDirectoryForApiEvents = "SDK/OpenApi/Events", - WorkSubDirectoryForApiModelSamples = "ModelSamples/OpenApi", - WorkSubDirectoryForApiEventSamples = "EventSamples/OpenApi" - }; - CodeAnalyzer analyzer = new CodeAnalyzer(options); - analyzer.Start(); - analyzer.Assert(); - analyzer.Flush(); - })); - } - } -} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs index c3801c36..9bca861c 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs @@ -2,7 +2,8 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests { - using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi; + using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi; + using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events; public class TestCase_EventVerificationTests { @@ -49,8 +50,8 @@ public void TestVerifyJsonEvent() PushToken = "QDG6eK" }; var client = new ByteDanceMicroAppOpenApiClient(options); - var eventModel1 = client.DeserializeEventFromJson(callbackRawJson); - var eventModel2 = client.DeserializeEventFromJson(callbackSecretJson); + var eventModel1 = client.DeserializeEventFromJson(callbackRawJson); + var eventModel2 = client.DeserializeEventFromJson(callbackSecretJson); Assert.True(client.VerifyEventSignatureFromJson(callbackSecretJson)); Assert.Equal("ByteDanceMicroApp", eventModel1.FromUserName); @@ -109,8 +110,8 @@ public void TestVerifyXmlEvent() PushToken = "QDG6eK" }; var client = new ByteDanceMicroAppOpenApiClient(options); - var eventModel1 = client.DeserializeEventFromXml(callbackRawXml); - var eventModel2 = client.DeserializeEventFromXml(callbackSecretXml); + var eventModel1 = client.DeserializeEventFromXml(callbackRawXml); + var eventModel2 = client.DeserializeEventFromXml(callbackSecretXml); Assert.True(client.VerifyEventSignatureFromXml(callbackSecretXml)); Assert.Equal("ByteDanceMicroApp", eventModel1.FromUserName); diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestConfigs.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestConfigs.cs index 2a0491ed..a29ac350 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestConfigs.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestConfigs.cs @@ -17,13 +17,10 @@ static TestConfigs() using var stream = File.OpenRead("appsettings.local.json"); using var json = JsonDocument.Parse(stream); - var config = json.RootElement.GetProperty("TestConfig"); + var config = json.RootElement.GetProperty("TestConfigs"); ByteDanceMicroAppId = config.GetProperty("AppId").GetString()!; ByteDanceMicroAppSecret = config.GetProperty("AppSecret").GetString()!; ByteDanceMicroAppAccessToken = config.GetProperty("AccessToken").GetString()!; - - WorkDirectoryForSdk = json.RootElement.GetProperty("WorkDirectoryForSdk").GetString()!; - WorkDirectoryForTest = json.RootElement.GetProperty("WorkDirectoryForTest").GetString()!; } catch (Exception ex) { @@ -34,8 +31,5 @@ static TestConfigs() public static readonly string ByteDanceMicroAppId; public static readonly string ByteDanceMicroAppSecret; public static readonly string ByteDanceMicroAppAccessToken; - - public static readonly string WorkDirectoryForSdk; - public static readonly string WorkDirectoryForTest; } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/appsettings.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/appsettings.json index 15b25043..fbb947e9 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/appsettings.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/appsettings.json @@ -1,9 +1,7 @@ -{ - "TestConfig": { +{ + "TestConfigs": { "AppId": "请在此填写用于测试的字节小程序 AppKey", "AppSecret": "请在此填写用于测试的字节小程序 AppSecret", "AccessToken": "请在此填写用于测试的字节小程序 AccessToken" - }, - "WorkDirectoryForSdk": "请输入当前 SDK 项目所在的目录完整路径,如 C:\\Project\\src\\SKIT.FlurlHttpClient.ByteDance.MicroApp\\", - "WorkDirectoryForTest": "请输入当前测试项目所在的目录完整路径,如 C:\\Project\\test\\SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests\\" + } } From 16c5f699f8deaa08ab3f4a50890b11c505492f5a Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 14:25:20 +0800 Subject: [PATCH 02/42] =?UTF-8?q?feat(microapp):=20=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D=20"ByteDanceMicroApp"=20=E2=86=92=20"DouyinMicroApp"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...roAppClient.cs => DouyinMicroAppClient.cs} | 24 +-- ...ions.cs => DouyinMicroAppClientOptions.cs} | 24 +-- ...ndpoints.cs => DouyinMicroAppEndpoints.cs} | 8 +- ...icroAppEvent.cs => DouyinMicroAppEvent.cs} | 4 +- ...xception.cs => DouyinMicroAppException.cs} | 10 +- ...AppRequest.cs => DouyinMicroAppRequest.cs} | 6 +- ...pResponse.cs => DouyinMicroAppResponse.cs} | 12 +- .../Events/Message/ImageMessageEvent.cs | 2 +- .../Events/Message/TextMessageEvent.cs | 2 +- ...ient.cs => DouyinMicroAppOpenApiClient.cs} | 20 +-- ... => DouyinMicroAppOpenApiClientOptions.cs} | 14 +- ...s.cs => DouyinMicroAppOpenApiEndpoints.cs} | 4 +- ...Event.cs => DouyinMicroAppOpenApiEvent.cs} | 4 +- ...est.cs => DouyinMicroAppOpenApiRequest.cs} | 12 +- ...se.cs => DouyinMicroAppOpenApiResponse.cs} | 12 +- .../Events/Auth/ComponentAuthorizedEvent.cs | 2 +- .../Events/Auth/ComponentPushTicketEvent.cs | 2 +- .../Events/Auth/ComponentUnauthorizedEvent.cs | 2 +- .../Auth/ComponentUpdateAuthorizedEvent.cs | 2 +- .../MicroAppManagement/AppNameResetEvent.cs | 2 +- .../ModifyAppCategoryEvent.cs | 2 +- .../MicroAppManagement/ModifyAppIconEvent.cs | 2 +- .../ModifyAppIntroductionEvent.cs | 2 +- .../MicroAppManagement/ModifyAppNameEvent.cs | 2 +- .../MicroAppManagement/PackageAuditEvent.cs | 2 +- .../AliasAuditResultEvent.cs | 2 +- .../MicroAppOperation/ApplyCapabilityEvent.cs | 2 +- .../ApplyLiveCapabilityEvent.cs | 2 +- .../ApplyPhoneNumberCapabilityEvent.cs | 2 +- .../ApplyShareTemplateEvent.cs | 2 +- .../ApplyVideoCapabilityEvent.cs | 2 +- .../AwemePermissionAuditResultEvent.cs | 2 +- .../AwemeVideoKeywordAuditResultEvent.cs | 2 +- .../MicroAppOperation/BindAwemeUserEvent.cs | 2 +- ...ubscribeNotificationTemplateResultEvent.cs | 2 +- .../ScopeQuotaAuditResultEvent.cs | 2 +- .../SearchTagAuditResultEvent.cs | 2 +- .../MicroAppOperation/SelfMountBindEvent.cs | 2 +- ...inMicroAppOpenApiClientEventExtensions.cs} | 52 +++--- ...pOpenApiClientExecuteOpenApiExtensions.cs} | 120 ++++++------- ...croAppOpenApiClientParameterExtensions.cs} | 6 +- .../Auth/OpenApiAuthGenerateLinkV2Request.cs | 2 +- .../Auth/OpenApiAuthGenerateLinkV2Response.cs | 2 +- .../Auth/OpenApiAuthPreAuthCodeV2Request.cs | 2 +- .../Auth/OpenApiAuthPreAuthCodeV2Response.cs | 2 +- .../Auth/OpenApiAuthRetrieveV1Request.cs | 2 +- .../Auth/OpenApiAuthRetrieveV1Response.cs | 2 +- .../OpenApiAuthThirdPartyTokenV1Request.cs | 4 +- .../OpenApiAuthThirdPartyTokenV1Response.cs | 2 +- ...penApiMicroAppAppAddCategoriesV1Request.cs | 2 +- ...enApiMicroAppAppAddCategoriesV1Response.cs | 2 +- ...penApiMicroAppAppAllCategoriesV1Request.cs | 2 +- ...enApiMicroAppAppAllCategoriesV1Response.cs | 2 +- .../OpenApiMicroAppAppCategoriesV1Request.cs | 2 +- .../OpenApiMicroAppAppCategoriesV1Response.cs | 2 +- ...ApiMicroAppAppDeleteCategoriesV1Request.cs | 2 +- ...piMicroAppAppDeleteCategoriesV1Response.cs | 2 +- ...ApiMicroAppAppSupplyCategoriesV1Request.cs | 2 +- ...piMicroAppAppSupplyCategoriesV1Response.cs | 2 +- ...OpenApiMicroAppAppCheckAppNameV1Request.cs | 2 +- ...penApiMicroAppAppCheckAppNameV1Response.cs | 2 +- .../OpenApiMicroAppAppCreditScoreV1Request.cs | 2 +- ...OpenApiMicroAppAppCreditScoreV1Response.cs | 2 +- .../App/OpenApiMicroAppAppInfoV1Request.cs | 2 +- .../App/OpenApiMicroAppAppInfoV1Response.cs | 2 +- ...penApiMicroAppAppModifyAppIconV1Request.cs | 2 +- ...enApiMicroAppAppModifyAppIconV1Response.cs | 2 +- ...croAppAppModifyAppIntroductionV1Request.cs | 2 +- ...roAppAppModifyAppIntroductionV1Response.cs | 2 +- ...penApiMicroAppAppModifyAppNameV1Request.cs | 2 +- ...enApiMicroAppAppModifyAppNameV1Response.cs | 2 +- ...iMicroAppAppModifyServerDomainV1Request.cs | 2 +- ...MicroAppAppModifyServerDomainV1Response.cs | 2 +- ...MicroAppAppModifyWebviewDomainV1Request.cs | 2 +- ...icroAppAppModifyWebviewDomainV1Response.cs | 2 +- .../App/OpenApiMicroAppAppQrcodeV1Request.cs | 2 +- .../App/OpenApiMicroAppAppQrcodeV1Response.cs | 2 +- ...penApiMicroAppAppQualityRatingV1Request.cs | 2 +- ...enApiMicroAppAppQualityRatingV1Response.cs | 2 +- .../OpenApiMicroAppCode2SessionV1Request.cs | 2 +- .../OpenApiMicroAppCode2SessionV1Response.cs | 2 +- .../OpenApiMicroAppUploadMaterialV1Request.cs | 2 +- ...OpenApiMicroAppUploadMaterialV1Response.cs | 2 +- ...OperationLiveApplicationStatusV1Request.cs | 2 +- ...perationLiveApplicationStatusV1Response.cs | 2 +- ...croAppOperationLiveApplicationV1Request.cs | 2 +- ...roAppOperationLiveApplicationV1Response.cs | 2 +- ...onPhoneNumberApplicationStatusV1Request.cs | 2 +- ...nPhoneNumberApplicationStatusV1Response.cs | 2 +- ...perationPhoneNumberApplicationV1Request.cs | 2 +- ...erationPhoneNumberApplicationV1Response.cs | 2 +- ...perationVideoApplicationStatusV1Request.cs | 2 +- ...erationVideoApplicationStatusV1Response.cs | 2 +- ...roAppOperationVideoApplicationV1Request.cs | 2 +- ...oAppOperationVideoApplicationV1Response.cs | 2 +- ...roAppOperationAddShareTemplateV1Request.cs | 2 +- ...oAppOperationAddShareTemplateV1Response.cs | 2 +- ...ppOperationDeleteShareTemplateV1Request.cs | 2 +- ...pOperationDeleteShareTemplateV1Response.cs | 2 +- ...ppOperationModifyShareTemplateV1Request.cs | 2 +- ...pOperationModifyShareTemplateV1Response.cs | 2 +- ...erationSetDefaultShareTemplateV1Request.cs | 2 +- ...rationSetDefaultShareTemplateV1Response.cs | 2 +- ...oAppOperationShareTemplateListV1Request.cs | 2 +- ...AppOperationShareTemplateListV1Response.cs | 2 +- ...croAppOperationAddShopMaterialV1Request.cs | 2 +- ...roAppOperationAddShopMaterialV1Response.cs | 2 +- ...oAppOperationQueryShopMaterialV1Request.cs | 2 +- ...AppOperationQueryShopMaterialV1Response.cs | 2 +- ...enApiMicroAppPackageAuditHostsV1Request.cs | 2 +- ...nApiMicroAppPackageAuditHostsV1Response.cs | 2 +- .../OpenApiMicroAppPackageAuditV2Request.cs | 2 +- .../OpenApiMicroAppPackageAuditV2Response.cs | 2 +- .../OpenApiMicroAppPackageReleaseV1Request.cs | 2 +- ...OpenApiMicroAppPackageReleaseV1Response.cs | 2 +- ...nApiMicroAppPackageRevokeAuditV1Request.cs | 2 +- ...ApiMicroAppPackageRevokeAuditV1Response.cs | 2 +- ...OpenApiMicroAppPackageRollbackV1Request.cs | 2 +- ...penApiMicroAppPackageRollbackV1Response.cs | 2 +- .../OpenApiMicroAppPackageUploadV1Request.cs | 2 +- .../OpenApiMicroAppPackageUploadV1Response.cs | 2 +- ...OpenApiMicroAppPackageVersionsV1Request.cs | 2 +- ...penApiMicroAppPackageVersionsV1Response.cs | 2 +- .../OAuth/OpenApiOAuthTokenV1Request.cs | 2 +- .../OAuth/OpenApiOAuthTokenV1Response.cs | 2 +- .../Settle/OpenApiSettleApplyV1Request.cs | 2 +- .../Settle/OpenApiSettleApplyV1Response.cs | 2 +- .../OpenApiSettleGetApplyStatusV1Request.cs | 2 +- .../OpenApiSettleGetApplyStatusV1Response.cs | 2 +- .../Settle/OpenApiSettlePreCheckV1Request.cs | 2 +- .../Settle/OpenApiSettlePreCheckV1Response.cs | 2 +- ...iThirdPartyDownloadWebviewFileV1Request.cs | 2 +- ...ThirdPartyDownloadWebviewFileV1Response.cs | 2 +- .../OpenApiThirdPartyAuthAppListV1Request.cs | 2 +- .../OpenApiThirdPartyAuthAppListV1Response.cs | 2 +- ...hirdPartyUploadPictureMaterialV1Request.cs | 2 +- ...irdPartyUploadPictureMaterialV1Response.cs | 2 +- ...nApiThirdPartyPOIBaseQueryAMapV1Request.cs | 2 +- ...ApiThirdPartyPOIBaseQueryAMapV1Response.cs | 2 +- ...nApiThirdPartyPOISupplierMatchV1Request.cs | 2 +- ...ApiThirdPartyPOISupplierMatchV1Response.cs | 2 +- ...PartyPOISupplierQueryMatchTaskV1Request.cs | 2 +- ...artyPOISupplierQueryMatchTaskV1Response.cs | 2 +- ...hirdPartyPOISupplierQueryMatchV1Request.cs | 2 +- ...irdPartyPOISupplierQueryMatchV1Response.cs | 2 +- ...nApiThirdPartyPOISupplierQueryV1Request.cs | 2 +- ...ApiThirdPartyPOISupplierQueryV1Response.cs | 2 +- ...enApiThirdPartyPOISupplierSyncV1Request.cs | 2 +- ...nApiThirdPartyPOISupplierSyncV1Response.cs | 2 +- ...iThirdPartyTemplateAddTemplateV1Request.cs | 2 +- ...ThirdPartyTemplateAddTemplateV1Response.cs | 2 +- ...irdPartyTemplateDeleteTemplateV1Request.cs | 2 +- ...rdPartyTemplateDeleteTemplateV1Response.cs | 2 +- ...ThirdPartyTemplateGetDraftListV1Request.cs | 2 +- ...hirdPartyTemplateGetDraftListV1Response.cs | 2 +- ...artyTemplateGetTemplateAppListV1Request.cs | 2 +- ...rtyTemplateGetTemplateAppListV1Response.cs | 2 +- ...rdPartyTemplateGetTemplateListV1Request.cs | 2 +- ...dPartyTemplateGetTemplateListV1Response.cs | 2 +- .../OpenApi/Settings/Credentials.cs | 10 +- ...t.cs => DouyinMicroAppProductApiClient.cs} | 20 +-- ... DouyinMicroAppProductApiClientOptions.cs} | 14 +- ...s => DouyinMicroAppProductApiEndpoints.cs} | 4 +- ...nt.cs => DouyinMicroAppProductApiEvent.cs} | 4 +- ....cs => DouyinMicroAppProductApiRequest.cs} | 8 +- ...cs => DouyinMicroAppProductApiResponse.cs} | 12 +- .../ProductApi/Events/ProductEvent.cs | 2 +- .../Events/ProductFulfilmentEvent.cs | 2 +- .../Events/ProductQualificationEvent.cs | 2 +- .../ProductApi/Events/ProductResourceEvent.cs | 2 +- ...roductApiClientExecuteProductExtensions.cs | 32 ++-- ...icroAppProductApiClientEventExtensions.cs} | 24 +-- .../ProductApiSyncCallbackUrlRequest.cs | 2 +- .../ProductApiSyncCallbackUrlResponse.cs | 2 +- .../ProductApi/Models/ProductApiAddRequest.cs | 4 +- .../Models/ProductApiAddResponse.cs | 2 +- .../Models/ProductApiModifyNoAuditRequest.cs | 4 +- .../Models/ProductApiModifyNoAuditResponse.cs | 2 +- .../Models/ProductApiModifyRequest.cs | 2 +- .../Models/ProductApiModifyResponse.cs | 2 +- .../Models/ProductApiModifyStatusRequest.cs | 4 +- .../Models/ProductApiModifyStatusResponse.cs | 2 +- .../Models/ProductApiQueryClassInfoRequest.cs | 2 +- .../ProductApiQueryClassInfoResponse.cs | 2 +- .../Models/ProductApiQueryRequest.cs | 2 +- .../Models/ProductApiQueryResponse.cs | 2 +- .../Models/ProductApiQueryReviewRequest.cs | 2 +- .../Models/ProductApiQueryReviewResponse.cs | 2 +- .../ProductApiQueryTemplateInfoRequest.cs | 2 +- .../ProductApiQueryTemplateInfoResponse.cs | 2 +- .../ProductApiAddQualificationRequest.cs | 2 +- .../ProductApiAddQualificationResponse.cs | 2 +- .../ProductApiModifyQualificationRequest.cs | 73 +++++++- .../ProductApiModifyQualificationResponse.cs | 2 +- .../ProductApiQueryQualificationRequest.cs | 2 +- .../ProductApiQueryQualificationResponse.cs | 2 +- .../ProductApiModifyRefundRuleRequest.cs | 2 +- .../ProductApiModifyRefundRuleResponse.cs | 2 +- .../ProductApiQueryRefundRuleMetaRequest.cs | 2 +- .../ProductApiQueryRefundRuleMetaResponse.cs | 2 +- .../ProductApiQueryResourceStatusRequest.cs | 2 +- .../ProductApiQueryResourceStatusResponse.cs | 2 +- .../ProductApiUploadResourceRequest.cs | 2 +- .../ProductApiUploadResourceResponse.cs | 2 +- .../ProductApi/Settings/Credentials.cs | 6 +- ...ient.cs => DouyinMicroAppRoleApiClient.cs} | 20 +-- ... => DouyinMicroAppRoleApiClientOptions.cs} | 14 +- ...s.cs => DouyinMicroAppRoleApiEndpoints.cs} | 4 +- ...est.cs => DouyinMicroAppRoleApiRequest.cs} | 8 +- ...se.cs => DouyinMicroAppRoleApiResponse.cs} | 16 +- ...oAppRoleApiClientExecuteRoleExtensions.cs} | 44 ++--- .../Auth/AuthEntityAddClassAuthRequest.cs | 2 +- .../Auth/AuthEntityAddClassAuthResponse.cs | 2 +- .../Models/Auth/AuthEntityByPartnerRequest.cs | 2 +- .../Auth/AuthEntityByPartnerResponse.cs | 2 +- .../Models/Auth/AuthEntityBySelfRequest.cs | 2 +- .../Models/Auth/AuthEntityBySelfResponse.cs | 2 +- .../Auth/AuthEntityGetAuditDetailRequest.cs | 2 +- .../Auth/AuthEntityGetAuditDetailResponse.cs | 2 +- .../Auth/AuthEntityGetBasicAuthRequest.cs | 2 +- .../Auth/AuthEntityGetBasicAuthResponse.cs | 2 +- .../Auth/AuthEntityGetClassAuthRequest.cs | 2 +- .../Auth/AuthEntityGetClassAuthResponse.cs | 2 +- .../Auth/AuthEntityUpdateBasicAuthRequest.cs | 2 +- .../Auth/AuthEntityUpdateBasicAuthResponse.cs | 2 +- .../Auth/AuthEntityUpdateClassAuthRequest.cs | 2 +- .../Auth/AuthEntityUpdateClassAuthResponse.cs | 2 +- .../AuthEntityEnableMountScopeRequest.cs | 2 +- .../AuthEntityEnableMountScopeResponse.cs | 2 +- .../AuthEntityQueryEntityInfoRequest.cs | 2 +- .../AuthEntityQueryEntityInfoResponse.cs | 2 +- .../Models/AuthEntityUploadMaterialRequest.cs | 2 +- .../AuthEntityUploadMaterialResponse.cs | 2 +- .../AuthEntityActivateMerchantCodeRequest.cs | 2 +- .../AuthEntityActivateMerchantCodeResponse.cs | 2 +- ...uthEntityQueryMerchantCodeStatusRequest.cs | 2 +- ...thEntityQueryMerchantCodeStatusResponse.cs | 2 +- .../Models/Role/AuthEntityAddRoleRequest.cs | 2 +- .../Models/Role/AuthEntityAddRoleResponse.cs | 2 +- .../Models/Role/AuthEntityAuthRoleRequest.cs | 2 +- .../Models/Role/AuthEntityAuthRoleResponse.cs | 2 +- .../Models/Role/AuthEntityBindRoleRequest.cs | 2 +- .../Models/Role/AuthEntityBindRoleResponse.cs | 2 +- .../Role/AuthEntityGetAppIdAuthRequest.cs | 2 +- .../Role/AuthEntityGetAppIdAuthResponse.cs | 2 +- .../Role/AuthEntityGetBindListRequest.cs | 2 +- .../Role/AuthEntityGetBindListResponse.cs | 2 +- .../Role/AuthEntityUnauthRoleRequest.cs | 2 +- .../Role/AuthEntityUnauthRoleResponse.cs | 2 +- .../Role/AuthEntityUnbindRoleRequest.cs | 2 +- .../Role/AuthEntityUnbindRoleResponse.cs | 2 +- .../Role/AuthEntityUpdateAuthLetterRequest.cs | 2 +- .../AuthEntityUpdateAuthLetterResponse.cs | 2 +- .../RoleApi/Settings/Credentials.cs | 6 +- ...=> DouyinMicroAppClientEventExtensions.cs} | 54 +++--- ...croAppClientExecuteAppsECPayExtensions.cs} | 90 +++++----- ...yinMicroAppClientExecuteAppsExtensions.cs} | 168 +++++++++--------- ...icroAppClientExecuteAppsGameExtensions.cs} | 48 ++--- ...oAppClientExecuteAppsStorageExtensions.cs} | 14 +- ...MicroAppClientExecuteCommentExtensions.cs} | 4 +- ...yinMicroAppClientExecuteTagsExtensions.cs} | 6 +- ...MicroAppClientExecuteWebcastExtensions.cs} | 14 +- .../Apps/AppsJsCode2SessionV2Request.cs | 6 +- .../Apps/AppsJsCode2SessionV2Response.cs | 2 +- .../Models/Apps/AppsTokenV2Request.cs | 6 +- .../Models/Apps/AppsTokenV2Response.cs | 2 +- .../AppsCapacityUploadMaterialV1Request.cs | 2 +- .../AppsCapacityUploadMaterialV1Response.cs | 2 +- ...psCapacityAddAwemeVideoKeywordV1Request.cs | 2 +- ...sCapacityAddAwemeVideoKeywordV1Response.cs | 2 +- ...psCapacityApplyAwemePermissionV1Request.cs | 2 +- ...sCapacityApplyAwemePermissionV1Response.cs | 2 +- .../AppsCapacityApplyScopeQuotaV1Request.cs | 2 +- .../AppsCapacityApplyScopeQuotaV1Response.cs | 2 +- ...apacityDeleteAwemeVideoKeywordV1Request.cs | 2 +- ...pacityDeleteAwemeVideoKeywordV1Response.cs | 2 +- ...pacityQueryAwemePermissionListV1Request.cs | 2 +- ...acityQueryAwemePermissionListV1Response.cs | 2 +- ...cityQueryAwemeVideoKeywordListV1Request.cs | 2 +- ...ityQueryAwemeVideoKeywordListV1Response.cs | 2 +- ...sCapacityQueryScopeQuotaDetailV1Request.cs | 2 +- ...CapacityQueryScopeQuotaDetailV1Response.cs | 2 +- .../Delivery/AppsCapacityAddAliasV1Request.cs | 2 +- .../AppsCapacityAddAliasV1Response.cs | 2 +- .../AppsCapacityDeleteAliasV1Request.cs | 2 +- .../AppsCapacityDeleteAliasV1Response.cs | 2 +- .../AppsCapacityModifyAliasV1Request.cs | 2 +- .../AppsCapacityModifyAliasV1Response.cs | 2 +- .../AppsCapacityQueryAliasListV1Request.cs | 2 +- .../AppsCapacityQueryAliasListV1Response.cs | 2 +- ...AppsCapacityQuerySearchTagListV1Request.cs | 2 +- ...ppsCapacityQuerySearchTagListV1Response.cs | 2 +- .../AppsCapacitySetSearchTagV1Request.cs | 2 +- .../AppsCapacitySetSearchTagV1Response.cs | 2 +- .../AppsCapacityBindAwemeUserV1Request.cs | 2 +- .../AppsCapacityBindAwemeUserV1Response.cs | 2 +- ...CapacityGetAwemeUserBindQrcodeV1Request.cs | 2 +- ...apacityGetAwemeUserBindQrcodeV1Response.cs | 2 +- ...CapacityQueryAwemeUserBindListV1Request.cs | 2 +- ...apacityQueryAwemeUserBindListV1Response.cs | 2 +- .../AppsCapacityApplyCapacityV1Request.cs | 2 +- .../AppsCapacityApplyCapacityV1Response.cs | 2 +- .../AppsCapacityBindSelfMountUserV1Request.cs | 2 +- ...AppsCapacityBindSelfMountUserV1Response.cs | 2 +- ...CapacityGetSelfMountBindQrcodeV1Request.cs | 2 +- ...apacityGetSelfMountBindQrcodeV1Response.cs | 2 +- .../AppsCapacityQueryApplyStatusV1Request.cs | 2 +- .../AppsCapacityQueryApplyStatusV1Response.cs | 2 +- ...CapacityQuerySelfMountUserListV1Request.cs | 2 +- ...apacityQuerySelfMountUserListV1Response.cs | 2 +- .../AppsCapacityQueryCapcutInfoV1Request.cs | 2 +- .../AppsCapacityQueryCapcutInfoV1Response.cs | 2 +- ...apacityQueryCapcutTemplateListV1Request.cs | 2 +- ...pacityQueryCapcutTemplateListV1Response.cs | 2 +- ...cityUpdateCapcutTemplateStatusV1Request.cs | 2 +- ...ityUpdateCapcutTemplateStatusV1Response.cs | 2 +- ...ppsCapacityAddSimpleQrcodeBindV1Request.cs | 2 +- ...psCapacityAddSimpleQrcodeBindV1Response.cs | 2 +- ...CapacityDeleteSimpleQrcodeBindV1Request.cs | 2 +- ...apacityDeleteSimpleQrcodeBindV1Response.cs | 2 +- ...acityQuerySimpleQrcodeBindListV1Request.cs | 2 +- ...cityQuerySimpleQrcodeBindListV1Response.cs | 2 +- ...tyUpdateSimpleQrcodeBindStatusV1Request.cs | 2 +- ...yUpdateSimpleQrcodeBindStatusV1Response.cs | 2 +- ...CapacityUpdateSimpleQrcodeBindV1Request.cs | 2 +- ...apacityUpdateSimpleQrcodeBindV1Response.cs | 2 +- ...pSubscribeNotificationTemplateV1Request.cs | 2 +- ...SubscribeNotificationTemplateV1Response.cs | 2 +- ...pSubscribeNotificationTemplateV1Request.cs | 2 +- ...SubscribeNotificationTemplateV1Response.cs | 2 +- ...pSubscribeNotificationTemplateV1Request.cs | 2 +- ...SubscribeNotificationTemplateV1Response.cs | 2 +- ...pSubscribeNotificationTemplateV1Request.cs | 2 +- ...SubscribeNotificationTemplateV1Response.cs | 2 +- ...pSubscribeNotificationTemplateV1Request.cs | 2 +- ...SubscribeNotificationTemplateV1Response.cs | 2 +- ...scribeNotificationTemplateListV1Request.cs | 2 +- ...cribeNotificationTemplateListV1Response.cs | 2 +- ...scribeNotificationTemplateListV1Request.cs | 2 +- ...cribeNotificationTemplateListV1Response.cs | 2 +- .../AppsCapacityAddAdPlacementV1Request.cs | 2 +- .../AppsCapacityAddAdPlacementV1Response.cs | 2 +- ...sCapacityOpenTrafficPermissionV1Request.cs | 2 +- ...CapacityOpenTrafficPermissionV1Response.cs | 2 +- .../AppsCapacityQueryAdIncomeV1Request.cs | 2 +- .../AppsCapacityQueryAdIncomeV1Response.cs | 2 +- ...psCapacityQueryAdPlacementListV1Request.cs | 2 +- ...sCapacityQueryAdPlacementListV1Response.cs | 2 +- ...sCapacityQueryAdSettlementListV1Request.cs | 2 +- ...CapacityQueryAdSettlementListV1Response.cs | 2 +- ...tyQueryTrafficPermissionStatusV1Request.cs | 2 +- ...yQueryTrafficPermissionStatusV1Response.cs | 2 +- ...apacityUpdateAdPlacementStatusV1Request.cs | 2 +- ...pacityUpdateAdPlacementStatusV1Response.cs | 2 +- ...AppsCategoryQueryAppCategoriesV1Request.cs | 2 +- ...ppsCategoryQueryAppCategoriesV1Response.cs | 2 +- .../Apps/Censor/AppsCensorImageRequest.cs | 4 +- .../Apps/Censor/AppsCensorImageResponse.cs | 2 +- .../Chat/AppsChatCustomerServiceUrlRequest.cs | 4 +- .../AppsChatCustomerServiceUrlResponse.cs | 2 +- .../AppsCustomerServiceUrlRequest.cs | 4 +- .../AppsCustomerServiceUrlResponse.cs | 2 +- ...aAnalysisQueryDealOverviewDataV1Request.cs | 2 +- ...AnalysisQueryDealOverviewDataV1Response.cs | 2 +- ...sDataAnalysisQueryLiveDealDataV1Request.cs | 2 +- ...DataAnalysisQueryLiveDealDataV1Response.cs | 2 +- ...sDataAnalysisQueryLiveRoomDataV1Request.cs | 2 +- ...DataAnalysisQueryLiveRoomDataV1Response.cs | 2 +- .../AppsDataAnalysisQueryLiveRoomV1Request.cs | 2 +- ...AppsDataAnalysisQueryLiveRoomV1Response.cs | 2 +- ...taAnalysisQueryProductDealDataV1Request.cs | 2 +- ...aAnalysisQueryProductDealDataV1Response.cs | 2 +- ...DataAnalysisQueryVideoDealDataV1Request.cs | 2 +- ...ataAnalysisQueryVideoDealDataV1Response.cs | 2 +- ...sDataAnalysisQueryBehaviorDataV1Request.cs | 2 +- ...DataAnalysisQueryBehaviorDataV1Response.cs | 2 +- ...ppsDataAnalysisQueryClientDataV1Request.cs | 2 +- ...psDataAnalysisQueryClientDataV1Response.cs | 2 +- .../AppsDataAnalysisQueryPageDataV1Request.cs | 2 +- ...AppsDataAnalysisQueryPageDataV1Response.cs | 2 +- ...aAnalysisQueryRealTimeUserDataV1Request.cs | 2 +- ...AnalysisQueryRealTimeUserDataV1Response.cs | 2 +- ...DataAnalysisQueryRetentionDataV1Request.cs | 2 +- ...ataAnalysisQueryRetentionDataV1Response.cs | 2 +- ...AppsDataAnalysisQuerySceneDataV1Request.cs | 2 +- ...ppsDataAnalysisQuerySceneDataV1Response.cs | 2 +- ...aAnalysisQueryUserPortraitDataV1Request.cs | 2 +- ...AnalysisQueryUserPortraitDataV1Response.cs | 2 +- .../AppsLiveSetBlackWhiteListV1Request.cs | 4 +- .../AppsLiveSetBlackWhiteListV1Response.cs | 2 +- .../Apps/Live/AppsUploadLiveImageRequest.cs | 4 +- .../Apps/Live/AppsUploadLiveImageResponse.cs | 2 +- .../Message/AppsMessageCustomSendRequest.cs | 2 +- .../Message/AppsMessageCustomSendResponse.cs | 2 +- .../Apps/Order/AppsOrderDeleteRequest.cs | 2 +- .../Apps/Order/AppsOrderDeleteResponse.cs | 2 +- .../Apps/Order/AppsOrderPushV2Request.cs | 2 +- .../Apps/Order/AppsOrderPushV2Response.cs | 2 +- .../Models/Apps/Qrcode/AppsQrcodeRequest.cs | 2 +- .../Models/Apps/Qrcode/AppsQrcodeResponse.cs | 2 +- .../ShareConfig/AppsShareConfigRequest.cs | 4 +- .../ShareConfig/AppsShareConfigResponse.cs | 2 +- ...ibeNotificationDeveloperNotifyV1Request.cs | 4 +- ...beNotificationDeveloperNotifyV1Response.cs | 2 +- .../Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs | 4 +- .../TaskBox/AppsTaskBoxAddTaskResponse.cs | 2 +- .../AppsTaskBoxQueryAppTaskIdRequest.cs | 4 +- .../AppsTaskBoxQueryAppTaskIdResponse.cs | 2 +- .../AppsTaskBoxQueryTaskVideoDataRequest.cs | 4 +- .../AppsTaskBoxQueryTaskVideoDataResponse.cs | 2 +- .../TaskBox/AppsTaskBoxUpdateStatusRequest.cs | 4 +- .../AppsTaskBoxUpdateStatusResponse.cs | 2 +- .../TaskBox/AppsTaskBoxUpdateTaskRequest.cs | 4 +- .../TaskBox/AppsTaskBoxUpdateTaskResponse.cs | 2 +- .../UrlLink/AppsUrlLinkGenerateRequest.cs | 4 +- .../UrlLink/AppsUrlLinkGenerateResponse.cs | 2 +- .../UrlLink/AppsUrlLinkQueryInfoRequest.cs | 4 +- .../UrlLink/AppsUrlLinkQueryInfoResponse.cs | 2 +- .../UrlLink/AppsUrlLinkQueryQuotaRequest.cs | 4 +- .../UrlLink/AppsUrlLinkQueryQuotaResponse.cs | 2 +- ...AppsConvertOpenItemIdToEncryptIdRequest.cs | 2 +- ...ppsConvertOpenItemIdToEncryptIdResponse.cs | 2 +- .../AppsConvertVideoIdToOpenItemIdRequest.cs | 4 +- .../AppsConvertVideoIdToOpenItemIdResponse.cs | 2 +- .../Models/AppsECPay/AppsBillsRequest.cs | 4 +- .../Models/AppsECPay/AppsBillsResponse.cs | 2 +- .../Models/AppsECPay/AppsFundBillsRequest.cs | 4 +- .../Models/AppsECPay/AppsFundBillsResponse.cs | 2 +- .../Order/AppsECPayCreateOrderV1Request.cs | 4 +- .../Order/AppsECPayCreateOrderV1Response.cs | 2 +- .../Order/AppsECPayCreateRefundV1Request.cs | 4 +- .../Order/AppsECPayCreateRefundV1Response.cs | 2 +- .../Order/AppsECPayCreateReturnV1Request.cs | 4 +- .../Order/AppsECPayCreateReturnV1Response.cs | 2 +- .../Order/AppsECPayQueryOrderV1Request.cs | 4 +- .../Order/AppsECPayQueryOrderV1Response.cs | 2 +- .../AppsECPayQueryPlatformOrderV1Request.cs | 4 +- .../AppsECPayQueryPlatformOrderV1Response.cs | 2 +- .../Order/AppsECPayQueryRefundV1Request.cs | 4 +- .../Order/AppsECPayQueryRefundV1Response.cs | 2 +- .../Order/AppsECPayQueryReturnV1Request.cs | 4 +- .../Order/AppsECPayQueryReturnV1Response.cs | 2 +- .../Order/AppsECPayQuerySettleV1Request.cs | 4 +- .../Order/AppsECPayQuerySettleV1Response.cs | 2 +- .../Order/AppsECPaySettleV1Request.cs | 4 +- .../Order/AppsECPaySettleV1Response.cs | 2 +- .../AppsECPaySaaSCreateMerchantRequest.cs | 2 +- .../AppsECPaySaaSCreateMerchantResponse.cs | 2 +- .../Apply/AppsECPaySaaSImageUploadRequest.cs | 2 +- .../Apply/AppsECPaySaaSImageUploadResponse.cs | 2 +- ...AppsECPaySaaSQueryMerchantStatusRequest.cs | 4 +- ...ppsECPaySaaSQueryMerchantStatusResponse.cs | 2 +- .../AppsECPaySaaSAddMerchantRequest.cs | 4 +- .../AppsECPaySaaSAddMerchantResponse.cs | 2 +- .../AppsECPaySaaSAddSubMerchantRequest.cs | 4 +- .../AppsECPaySaaSAddSubMerchantResponse.cs | 2 +- .../AppsECPaySaaSAppAddSubMerchantRequest.cs | 2 +- .../AppsECPaySaaSAppAddSubMerchantResponse.cs | 2 +- .../AppsECPaySaaSGetAppMerchantRequest.cs | 4 +- .../AppsECPaySaaSGetAppMerchantResponse.cs | 2 +- .../AppsECPaySaaSMerchantWithdrawRequest.cs | 2 +- .../AppsECPaySaaSMerchantWithdrawResponse.cs | 2 +- ...ppsECPaySaaSQueryMerchantBalanceRequest.cs | 2 +- ...psECPaySaaSQueryMerchantBalanceResponse.cs | 2 +- .../AppsECPaySaaSQueryWithdrawOrderRequest.cs | 2 +- ...AppsECPaySaaSQueryWithdrawOrderResponse.cs | 2 +- .../Abstractions/AppsGameWalletRequestBase.cs | 4 +- .../AppsGame/AppsGameWalletAddCoinResponse.cs | 2 +- .../AppsGame/AppsGameWalletGamePayResponse.cs | 2 +- .../AppsGameWalletGetBalanceResponse.cs | 2 +- .../AppsRemoveUserStorageRequest.cs | 2 +- .../AppsRemoveUserStorageResponse.cs | 2 +- .../AppsStorage/AppsSetUserStorageRequest.cs | 2 +- .../AppsStorage/AppsSetUserStorageResponse.cs | 2 +- .../Models/Comment/CommentOpenGetRequest.cs | 4 +- .../Models/Comment/CommentOpenGetResponse.cs | 2 +- .../Models/Tags/TagsImageV2Request.cs | 2 +- .../Models/Tags/TagsImageV2Response.cs | 2 +- .../Models/Tags/TagsTextAntiDirtV2Request.cs | 2 +- .../Models/Tags/TagsTextAntiDirtV2Response.cs | 2 +- .../Webcast/Gift/WebcastGiftTopGiftRequest.cs | 4 +- .../Gift/WebcastGiftTopGiftResponse.cs | 2 +- .../LinkMic/WebcastLinkMicQueryRequest.cs | 4 +- .../LinkMic/WebcastLinkMicQueryResponse.cs | 2 +- .../WebcastLiveDataTaskFailDataGetRequest.cs | 4 +- .../WebcastLiveDataTaskFailDataGetResponse.cs | 2 +- .../LiveData/WebcastLiveDataTaskGetRequest.cs | 4 +- .../WebcastLiveDataTaskGetResponse.cs | 2 +- .../WebcastLiveDataTaskStartRequest.cs | 4 +- .../WebcastLiveDataTaskStartResponse.cs | 2 +- .../WebcastLiveDataTaskStopRequest.cs | 4 +- .../WebcastLiveDataTaskStopResponse.cs | 2 +- .../README.md | 6 +- ....FlurlHttpClient.ByteDance.MicroApp.csproj | 4 +- .../Settings/Credentials.cs | 12 +- .../IMPORTANT_CodeAnalyzeTests.cs | 16 +- .../TestCase_ApiExecuteAppsECPayTests.cs | 2 +- .../TestCase_EventVerificationTests.cs | 16 +- .../TestClients.cs | 4 +- 499 files changed, 1087 insertions(+), 1016 deletions(-) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{ByteDanceMicroAppClient.cs => DouyinMicroAppClient.cs} (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{ByteDanceMicroAppClientOptions.cs => DouyinMicroAppClientOptions.cs} (53%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{ByteDanceMicroAppEndpoints.cs => DouyinMicroAppEndpoints.cs} (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{ByteDanceMicroAppEvent.cs => DouyinMicroAppEvent.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{ByteDanceMicroAppException.cs => DouyinMicroAppException.cs} (51%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{ByteDanceMicroAppRequest.cs => DouyinMicroAppRequest.cs} (67%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{ByteDanceMicroAppResponse.cs => DouyinMicroAppResponse.cs} (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/{ByteDanceMicroAppOpenApiClient.cs => DouyinMicroAppOpenApiClient.cs} (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/{ByteDanceMicroAppOpenApiClientOptions.cs => DouyinMicroAppOpenApiClientOptions.cs} (64%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/{ByteDanceMicroAppOpenApiEndpoints.cs => DouyinMicroAppOpenApiEndpoints.cs} (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/{ByteDanceMicroAppOpenApiEvent.cs => DouyinMicroAppOpenApiEvent.cs} (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/{ByteDanceMicroAppOpenApiRequest.cs => DouyinMicroAppOpenApiRequest.cs} (62%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/{ByteDanceMicroAppOpenApiResponse.cs => DouyinMicroAppOpenApiResponse.cs} (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/{ByteDanceMicroAppOpenApiClientEventExtensions.cs => DouyinMicroAppOpenApiClientEventExtensions.cs} (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/{ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs => DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs} (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/{ByteDanceMicroAppOpenApiClientParameterExtensions.cs => DouyinMicroAppOpenApiClientParameterExtensions.cs} (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/{ByteDanceMicroAppProductApiClient.cs => DouyinMicroAppProductApiClient.cs} (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/{ByteDanceMicroAppProductApiClientOptions.cs => DouyinMicroAppProductApiClientOptions.cs} (53%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/{ByteDanceMicroAppProductApiEndpoints.cs => DouyinMicroAppProductApiEndpoints.cs} (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/{ByteDanceMicroAppProductApiEvent.cs => DouyinMicroAppProductApiEvent.cs} (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/{ByteDanceMicroAppProductApiRequest.cs => DouyinMicroAppProductApiRequest.cs} (65%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/{ByteDanceMicroAppProductApiResponse.cs => DouyinMicroAppProductApiResponse.cs} (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/{ByteDanceMicroAppProductApiClientEventExtensions.cs => DouyinMicroAppProductApiClientEventExtensions.cs} (50%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/{ByteDanceMicroAppRoleApiClient.cs => DouyinMicroAppRoleApiClient.cs} (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/{ByteDanceMicroAppRoleApiClientOptions.cs => DouyinMicroAppRoleApiClientOptions.cs} (54%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/{ByteDanceMicroAppRoleApiEndpoints.cs => DouyinMicroAppRoleApiEndpoints.cs} (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/{ByteDanceMicroAppRoleApiRequest.cs => DouyinMicroAppRoleApiRequest.cs} (57%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/{ByteDanceMicroAppRoleApiResponse.cs => DouyinMicroAppRoleApiResponse.cs} (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/{ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs => DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs} (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientEventExtensions.cs => DouyinMicroAppClientEventExtensions.cs} (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs => DouyinMicroAppClientExecuteAppsECPayExtensions.cs} (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientExecuteAppsExtensions.cs => DouyinMicroAppClientExecuteAppsExtensions.cs} (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientExecuteAppsGameExtensions.cs => DouyinMicroAppClientExecuteAppsGameExtensions.cs} (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs => DouyinMicroAppClientExecuteAppsStorageExtensions.cs} (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientExecuteCommentExtensions.cs => DouyinMicroAppClientExecuteCommentExtensions.cs} (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientExecuteTagsExtensions.cs => DouyinMicroAppClientExecuteTagsExtensions.cs} (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{ByteDanceMicroAppClientExecuteWebcastExtensions.cs => DouyinMicroAppClientExecuteWebcastExtensions.cs} (90%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClient.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs index 5b42deae..56b48c43 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs @@ -7,30 +7,30 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 一个字节小程序 API HTTP 客户端。 + /// 一个抖音小程序 API HTTP 客户端。 /// - public class ByteDanceMicroAppClient : CommonClientBase, ICommonClient + public class DouyinMicroAppClient : CommonClientBase, ICommonClient { /// - /// 获取当前客户端使用的字节小程序凭证。 + /// 获取当前客户端使用的抖音小程序凭证。 /// public Settings.Credentials Credentials { get; } /// - /// 获取当前客户端使用的字节小程序 API 接入点。 + /// 获取当前客户端使用的抖音小程序 API 接入点。 /// protected internal string EndpointForDefault { get; } /// - /// 获取当前客户端使用的字节小程序直播小玩法 API 接入点。 + /// 获取当前客户端使用的抖音小程序直播小玩法 API 接入点。 /// protected internal string EndpointForWebcast { get; } /// - /// 用指定的配置项初始化 类的新实例。 + /// 用指定的配置项初始化 类的新实例。 /// /// 配置项。 - public ByteDanceMicroAppClient(ByteDanceMicroAppClientOptions options) + public DouyinMicroAppClient(DouyinMicroAppClientOptions options) : this(options, null) { } @@ -41,7 +41,7 @@ public ByteDanceMicroAppClient(ByteDanceMicroAppClientOptions options) /// /// /// - internal protected ByteDanceMicroAppClient(ByteDanceMicroAppClientOptions options, HttpClient? httpClient, bool disposeClient = true) + internal protected DouyinMicroAppClient(DouyinMicroAppClientOptions options, HttpClient? httpClient, bool disposeClient = true) : base(httpClient, disposeClient) { if (options is null) throw new ArgumentNullException(nameof(options)); @@ -50,7 +50,7 @@ internal protected ByteDanceMicroAppClient(ByteDanceMicroAppClientOptions option EndpointForDefault = options.Endpoint; EndpointForWebcast = options.EndpointForWebcastAPI; - FlurlClient.BaseUrl = options.Endpoint ?? ByteDanceMicroAppEndpoints.API_MINIAPP; + FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppEndpoints.API_MINIAPP; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); } @@ -61,7 +61,7 @@ internal protected ByteDanceMicroAppClient(ByteDanceMicroAppClientOptions option /// /// /// - public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppRequest request, HttpMethod httpMethod, params object[] urlSegments) + public IFlurlRequest CreateFlurlRequest(DouyinMicroAppRequest request, HttpMethod httpMethod, params object[] urlSegments) { IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); @@ -77,7 +77,7 @@ public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppRequest request, HttpMe /// /// public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppResponse, new() + where T : DouyinMicroAppResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); @@ -94,7 +94,7 @@ public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpCo /// /// public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppResponse, new() + where T : DouyinMicroAppResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs similarity index 53% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClientOptions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs index 5d9a12a1..f42707d8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 一个用于构造 时使用的配置项。 + /// 一个用于构造 时使用的配置项。 /// - public class ByteDanceMicroAppClientOptions + public class DouyinMicroAppClientOptions { /// /// 获取或设置请求超时时间(单位:毫秒)。 @@ -12,34 +12,34 @@ public class ByteDanceMicroAppClientOptions public int Timeout { get; set; } = 30 * 1000; /// - /// 获取或设置字节小程序 API 入口点。 - /// 默认值: + /// 获取或设置抖音小程序 API 入口点。 + /// 默认值: /// - public string Endpoint { get; set; } = ByteDanceMicroAppEndpoints.API_MINIAPP; + public string Endpoint { get; set; } = DouyinMicroAppEndpoints.API_MINIAPP; /// - /// 获取或设置字节小程序直播小玩法 API 入口点。 - /// 默认值: + /// 获取或设置抖音小程序直播小玩法 API 入口点。 + /// 默认值: /// - public string EndpointForWebcastAPI { get; set; } = ByteDanceMicroAppWebcastEndpoints.DEFAULT; + public string EndpointForWebcastAPI { get; set; } = DouyinMicroAppWebcastEndpoints.DEFAULT; /// - /// 获取或设置字节小程序 AppId。 + /// 获取或设置抖音小程序 AppId。 /// public string AppId { get; set; } = default!; /// - /// 获取或设置字节小程序 AppSecret。 + /// 获取或设置抖音小程序 AppSecret。 /// public string AppSecret { get; set; } = default!; /// - /// 获取或设置头条服务器推送的 Token。 + /// 获取或设置抖音服务器推送的 Token。 /// public string? PushToken { get; set; } /// - /// 获取或设置头条服务器推送的 EncodingAESKey。 + /// 获取或设置抖音服务器推送的 EncodingAESKey。 /// public string? PushEncodingAESKey { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEndpoints.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs index 286ade5c..e8b2a982 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 字节小程序 API 接口域名。 + /// 抖音小程序 API 接口域名。 /// - public static class ByteDanceMicroAppEndpoints + public static class DouyinMicroAppEndpoints { /// /// 小程序 API 域名(默认)。 @@ -22,9 +22,9 @@ public static class ByteDanceMicroAppEndpoints } /// - /// 字节小程序直播小玩法 API 接口域名。 + /// 抖音小程序直播小玩法 API 接口域名。 /// - public static class ByteDanceMicroAppWebcastEndpoints + public static class DouyinMicroAppWebcastEndpoints { /// /// 主域名(默认)。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEvent.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEvent.cs index daccbaf5..68e69563 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEvent.cs @@ -1,11 +1,11 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 表示字节小程序 API 消息推送事件的基类。 + /// 表示抖音小程序 API 消息推送事件的基类。 /// [Newtonsoft.Json.JsonObject] [System.Xml.Serialization.XmlRoot("xml")] - public class ByteDanceMicroAppEvent : ICommonWebhookEvent + public class DouyinMicroAppEvent : ICommonWebhookEvent { /// /// 获取或设置消息接收方账号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppException.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppException.cs similarity index 51% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppException.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppException.cs index 8639ca1c..52e39674 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppException.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppException.cs @@ -3,23 +3,23 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 当调用字节小程序 API 出错时引发的异常。 + /// 当调用抖音小程序 API 出错时引发的异常。 /// - public class ByteDanceMicroAppException : CommonException + public class DouyinMicroAppException : CommonException { /// - public ByteDanceMicroAppException() + public DouyinMicroAppException() { } /// - public ByteDanceMicroAppException(string message) + public DouyinMicroAppException(string message) : base(message) { } /// - public ByteDanceMicroAppException(string message, Exception innerException) + public DouyinMicroAppException(string message, Exception innerException) : base(message, innerException) { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs similarity index 67% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs index 60bbd496..c4a16ca2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs @@ -1,12 +1,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 字节小程序 API 请求的基类。 + /// 抖音小程序 API 请求的基类。 /// - public abstract class ByteDanceMicroAppRequest : CommonRequestBase, ICommonRequest + public abstract class DouyinMicroAppRequest : CommonRequestBase, ICommonRequest { /// - /// 获取或设置字节小程序的 AccessToken。 + /// 获取或设置抖音小程序的 AccessToken。 /// 注意:部分第三方平台的接口中该字段表示授权方的 AuthorizerAccessToken。 /// [Newtonsoft.Json.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppResponse.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppResponse.cs index 758f72fa..5b637681 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ByteDanceMicroAppResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppResponse.cs @@ -1,26 +1,26 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { /// - /// 字节小程序 API 响应的基类。 + /// 抖音小程序 API 响应的基类。 /// - public abstract class ByteDanceMicroAppResponse : CommonResponseBase, ICommonResponse + public abstract class DouyinMicroAppResponse : CommonResponseBase, ICommonResponse { /// - /// 获取字节小程序 API 返回的详细错误号。 + /// 获取抖音小程序 API 返回的详细错误号。 /// [Newtonsoft.Json.JsonProperty("errcode")] [System.Text.Json.Serialization.JsonPropertyName("errcode")] public virtual long ErrorCode { get; set; } /// - /// 获取字节小程序 API 返回的错误描述。 + /// 获取抖音小程序 API 返回的错误描述。 /// [Newtonsoft.Json.JsonProperty("errmsg")] [System.Text.Json.Serialization.JsonPropertyName("errmsg")] public virtual string? ErrorMessage { get; set; } /// - /// 获取字节小程序 API 返回的日志 ID。 + /// 获取抖音小程序 API 返回的日志 ID。 /// [Newtonsoft.Json.JsonProperty("log_id")] [System.Text.Json.Serialization.JsonPropertyName("log_id")] @@ -28,7 +28,7 @@ public abstract class ByteDanceMicroAppResponse : CommonResponseBase, ICommonRes public virtual string? LogId { get; set; } /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// 获取一个值,该值指示调用抖音小程序 API 是否成功。 /// ///(即 HTTP 状态码为 200,且 值为 0) /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs index 781fa675..6edb1f52 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/ImageMessageEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Events /// /// /// - public class ImageMessageEvent : ByteDanceMicroAppEvent + public class ImageMessageEvent : DouyinMicroAppEvent { /// /// 获取或设置图片 URL。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs index 6da9bd91..65b3ecf1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events/Message/TextMessageEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Events /// /// /// - public class TextMessageEvent : ByteDanceMicroAppEvent + public class TextMessageEvent : DouyinMicroAppEvent { /// /// 获取或设置消息内容。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClient.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClient.cs index d598c367..bd5faf8a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClient.cs @@ -7,20 +7,20 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// - /// 一个字节小程序服务商平台 API HTTP 客户端。 + /// 一个抖音小程序服务商平台 API HTTP 客户端。 /// - public class ByteDanceMicroAppOpenApiClient : CommonClientBase, ICommonClient + public class DouyinMicroAppOpenApiClient : CommonClientBase, ICommonClient { /// - /// 获取当前客户端使用的字节小程序凭证。 + /// 获取当前客户端使用的抖音小程序凭证。 /// public Settings.Credentials Credentials { get; } /// - /// 用指定的配置项初始化 类的新实例。 + /// 用指定的配置项初始化 类的新实例。 /// /// 配置项。 - public ByteDanceMicroAppOpenApiClient(ByteDanceMicroAppOpenApiClientOptions options) + public DouyinMicroAppOpenApiClient(DouyinMicroAppOpenApiClientOptions options) : this(options, null) { } @@ -31,14 +31,14 @@ public ByteDanceMicroAppOpenApiClient(ByteDanceMicroAppOpenApiClientOptions opti /// /// /// - internal protected ByteDanceMicroAppOpenApiClient(ByteDanceMicroAppOpenApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) + internal protected DouyinMicroAppOpenApiClient(DouyinMicroAppOpenApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) : base(httpClient, disposeClient) { if (options is null) throw new ArgumentNullException(nameof(options)); Credentials = new Settings.Credentials(options); - FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppOpenApiEndpoints.DEFAULT; + FlurlClient.BaseUrl = options.Endpoints ?? DouyinMicroAppOpenApiEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); } @@ -49,7 +49,7 @@ internal protected ByteDanceMicroAppOpenApiClient(ByteDanceMicroAppOpenApiClient /// /// /// - public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppOpenApiRequest request, HttpMethod httpMethod, params object[] urlSegments) + public IFlurlRequest CreateFlurlRequest(DouyinMicroAppOpenApiRequest request, HttpMethod httpMethod, params object[] urlSegments) { IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); @@ -70,7 +70,7 @@ public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppOpenApiRequest request, /// /// public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppOpenApiResponse, new() + where T : DouyinMicroAppOpenApiResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); @@ -87,7 +87,7 @@ public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpCo /// /// public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppOpenApiResponse, new() + where T : DouyinMicroAppOpenApiResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientOptions.cs similarity index 64% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientOptions.cs index 3798a3ca..72beaddb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientOptions.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// - /// 一个用于构造 时使用的配置项。 + /// 一个用于构造 时使用的配置项。 /// - public class ByteDanceMicroAppOpenApiClientOptions + public class DouyinMicroAppOpenApiClientOptions { /// /// 获取或设置请求超时时间(单位:毫秒)。 @@ -12,18 +12,18 @@ public class ByteDanceMicroAppOpenApiClientOptions public int Timeout { get; set; } = 30 * 1000; /// - /// 获取或设置字节小程序服务商平台 API 域名。 - /// 默认值: + /// 获取或设置抖音小程序服务商平台 API 域名。 + /// 默认值: /// - public string Endpoints { get; set; } = ByteDanceMicroAppOpenApiEndpoints.DEFAULT; + public string Endpoints { get; set; } = DouyinMicroAppOpenApiEndpoints.DEFAULT; /// - /// 获取或设置字节小程序服务商 AppId。 + /// 获取或设置抖音小程序服务商 AppId。 /// public string ComponentAppId { get; set; } = default!; /// - /// 获取或设置字节小程序服务商 AppSecret。 + /// 获取或设置抖音小程序服务商 AppSecret。 /// public string ComponentAppSecret { get; set; } = default!; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEndpoints.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEndpoints.cs index bc2cbb9d..c48febee 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEndpoints.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// - /// 字节小程序服务商平台 API 接口域名。 + /// 抖音小程序服务商平台 API 接口域名。 /// - public static class ByteDanceMicroAppOpenApiEndpoints + public static class DouyinMicroAppOpenApiEndpoints { /// /// 服务商平台接口域名(默认)。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEvent.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEvent.cs index be9621d4..dd4b4cf3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEvent.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// - /// 表示字节小程序服务商平台 API 消息推送事件的基类。 + /// 表示抖音小程序服务商平台 API 消息推送事件的基类。 /// - public class ByteDanceMicroAppOpenApiEvent : ICommonWebhookEvent + public class DouyinMicroAppOpenApiEvent : ICommonWebhookEvent { /// /// 获取或设置第三方平台 AppId。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiRequest.cs similarity index 62% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiRequest.cs index ba2aa197..cde02e6e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiRequest.cs @@ -1,33 +1,33 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// - /// 字节小程序服务商平台 API 请求的基类。 + /// 抖音小程序服务商平台 API 请求的基类。 /// - public abstract class ByteDanceMicroAppOpenApiRequest : CommonRequestBase, ICommonRequest + public abstract class DouyinMicroAppOpenApiRequest : CommonRequestBase, ICommonRequest { /// - /// 获取或设置字节小程序第三方 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置抖音小程序第三方 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public virtual string? ComponentAppId { get; set; } /// - /// 获取或设置字节小程序第三方的 AccessToken。 + /// 获取或设置抖音小程序第三方的 AccessToken。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public virtual string? ComponentAccessToken { get; set; } /// - /// 获取或设置字节小程序授权方 AppId。 + /// 获取或设置抖音小程序授权方 AppId。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public virtual string? AuthorizerAppId { get; set; } /// - /// 获取或设置字节小程序授权方的 AccessToken。 + /// 获取或设置抖音小程序授权方的 AccessToken。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiResponse.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiResponse.cs index 73578fd5..bea4f869 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/ByteDanceMicroAppOpenApiResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiResponse.cs @@ -1,26 +1,26 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { /// - /// 字节小程序服务商平台 API 响应的基类。 + /// 抖音小程序服务商平台 API 响应的基类。 /// - public abstract class ByteDanceMicroAppOpenApiResponse : CommonResponseBase, ICommonResponse + public abstract class DouyinMicroAppOpenApiResponse : CommonResponseBase, ICommonResponse { /// - /// 获取字节小程序 API 返回的错误码。 + /// 获取抖音小程序 API 返回的错误码。 /// [Newtonsoft.Json.JsonProperty("errno")] [System.Text.Json.Serialization.JsonPropertyName("errno")] public virtual int ErrorNumber { get; set; } /// - /// 获取字节小程序 API 返回的错误描述。 + /// 获取抖音小程序 API 返回的错误描述。 /// [Newtonsoft.Json.JsonProperty("message")] [System.Text.Json.Serialization.JsonPropertyName("message")] public virtual string? ErrorMessage { get; set; } /// - /// 获取字节小程序 API 返回的日志 ID。 + /// 获取抖音小程序 API 返回的日志 ID。 /// [Newtonsoft.Json.JsonProperty("log_id")] [System.Text.Json.Serialization.JsonPropertyName("log_id")] @@ -28,7 +28,7 @@ public abstract class ByteDanceMicroAppOpenApiResponse : CommonResponseBase, ICo public virtual string? LogId { get; set; } /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// 获取一个值,该值指示调用抖音小程序 API 是否成功。 /// ///(即 HTTP 状态码为 200,且 值为 0) /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs index e9634767..dac08320 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ComponentAuthorizedEvent : ByteDanceMicroAppOpenApiEvent + public class ComponentAuthorizedEvent : DouyinMicroAppOpenApiEvent { /// /// 获取或设置授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs index f2f380b0..1df06dc4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentPushTicketEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ComponentPushTicketEvent : ByteDanceMicroAppOpenApiEvent + public class ComponentPushTicketEvent : DouyinMicroAppOpenApiEvent { /// /// 获取或设置消息发送方账号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs index 022d4330..61fe2ab8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUnauthorizedEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ComponentUnauthorizedEvent : ByteDanceMicroAppOpenApiEvent + public class ComponentUnauthorizedEvent : DouyinMicroAppOpenApiEvent { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs index dfb3571d..b87c1a93 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ComponentUpdateAuthorizedEvent : ByteDanceMicroAppOpenApiEvent + public class ComponentUpdateAuthorizedEvent : DouyinMicroAppOpenApiEvent { /// /// 获取或设置授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs index 296c68a6..f09b440d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/AppNameResetEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class AppNameResetEvent : ByteDanceMicroAppOpenApiEvent + public class AppNameResetEvent : DouyinMicroAppOpenApiEvent { /// /// 获取或设置名称重置通知。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs index 690bad2e..07946cba 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppCategoryEvent.cs @@ -8,7 +8,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ModifyAppCategoryEvent : ByteDanceMicroAppOpenApiEvent + public class ModifyAppCategoryEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs index 501810e9..f5caa00f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIconEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ModifyAppIconEvent : ByteDanceMicroAppOpenApiEvent + public class ModifyAppIconEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs index 9f29fcaf..559eb635 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppIntroductionEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ModifyAppIntroductionEvent : ByteDanceMicroAppOpenApiEvent + public class ModifyAppIntroductionEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs index 9fff9635..50aa2479 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/ModifyAppNameEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ModifyAppNameEvent : ByteDanceMicroAppOpenApiEvent + public class ModifyAppNameEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs index 0bd0a5b5..939ee49b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppManagement/PackageAuditEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class PackageAuditEvent : ByteDanceMicroAppOpenApiEvent + public class PackageAuditEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs index 76cf158d..49080198 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AliasAuditResultEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class AliasAuditResultEvent : ByteDanceMicroAppOpenApiEvent + public class AliasAuditResultEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs index 7cfdd265..0bbee4b1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyCapabilityEvent.cs @@ -12,7 +12,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ApplyCapabilityEvent : ByteDanceMicroAppOpenApiEvent + public class ApplyCapabilityEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs index 95203a05..b7eda5d1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyLiveCapabilityEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ApplyLiveCapabilityEvent : ByteDanceMicroAppOpenApiEvent + public class ApplyLiveCapabilityEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs index cdb32a5f..0759e388 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyPhoneNumberCapabilityEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ApplyPhoneNumberCapabilityEvent : ByteDanceMicroAppOpenApiEvent + public class ApplyPhoneNumberCapabilityEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs index 5b762aba..1068d404 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyShareTemplateEvent.cs @@ -8,7 +8,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ApplyShareTemplateEvent : ByteDanceMicroAppOpenApiEvent + public class ApplyShareTemplateEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs index 318b8b23..1ca404c6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ApplyVideoCapabilityEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class ApplyVideoCapabilityEvent : ByteDanceMicroAppOpenApiEvent + public class ApplyVideoCapabilityEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs index 13fe39eb..3d4511ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemePermissionAuditResultEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// /// - public class AwemePermissionAuditResultEvent : ByteDanceMicroAppOpenApiEvent + public class AwemePermissionAuditResultEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs index 015cfdee..f8bcc588 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/AwemeVideoKeywordAuditResultEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// ///
- public class AwemeVideoKeywordAuditResultEvent : ByteDanceMicroAppOpenApiEvent + public class AwemeVideoKeywordAuditResultEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs index 209a9021..d9a2db8d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/BindAwemeUserEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// ///
- public class BindAwemeUserEvent : ByteDanceMicroAppOpenApiEvent + public class BindAwemeUserEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs index 5e97d3cd..354783db 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/CreateSubscribeNotificationTemplateResultEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// ///
- public class CreateSubscribeNotificationTemplateResultEvent : ByteDanceMicroAppOpenApiEvent + public class CreateSubscribeNotificationTemplateResultEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs index 85fa3001..6fde3687 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/ScopeQuotaAuditResultEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// ///
- public class ScopeQuotaAuditResultEvent : ByteDanceMicroAppOpenApiEvent + public class ScopeQuotaAuditResultEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs index 4c6ea205..7dac167c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SearchTagAuditResultEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// ///
- public class SearchTagAuditResultEvent : ByteDanceMicroAppOpenApiEvent + public class SearchTagAuditResultEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs index 837fd312..20737026 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/MicroAppOperation/SelfMountBindEvent.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events /// /// ///
- public class SelfMountBindEvent : ByteDanceMicroAppOpenApiEvent + public class SelfMountBindEvent : DouyinMicroAppOpenApiEvent { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientEventExtensions.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientEventExtensions.cs index e261db3a..1cf24b9a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientEventExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientEventExtensions.cs @@ -6,56 +6,56 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi using SKIT.FlurlHttpClient.Primitives; /// - /// 为 提供回调通知事件的扩展方法。 + /// 为 提供回调通知事件的扩展方法。 /// - public static partial class ByteDanceMicroAppOpenApiClientEventExtensions + public static partial class DouyinMicroAppOpenApiClientEventExtensions { /// - /// 从 JSON 反序列化得到 对象。 + /// 从 JSON 反序列化得到 对象。 /// /// /// /// /// - public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppOpenApiClient client, string webhookJson) - where TEvent : ByteDanceMicroAppOpenApiEvent, new() + public static TEvent DeserializeEventFromJson(this DouyinMicroAppOpenApiClient client, string webhookJson) + where TEvent : DouyinMicroAppOpenApiEvent, new() { return InnerDeserializeEventFromJson(client, webhookJson); } /// - /// 从 JSON 反序列化得到 对象。 + /// 从 JSON 反序列化得到 对象。 /// /// /// /// - public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromJson(this ByteDanceMicroAppOpenApiClient client, string webhookJson) + public static DouyinMicroAppOpenApiEvent DeserializeEventFromJson(this DouyinMicroAppOpenApiClient client, string webhookJson) { - return InnerDeserializeEventFromJson(client, webhookJson); + return InnerDeserializeEventFromJson(client, webhookJson); } /// - /// 从 XML 反序列化得到 对象。 + /// 从 XML 反序列化得到 对象。 /// /// /// /// /// - public static TEvent DeserializeEventFromXml(this ByteDanceMicroAppOpenApiClient client, string webhookXml) - where TEvent : ByteDanceMicroAppOpenApiEvent, new() + public static TEvent DeserializeEventFromXml(this DouyinMicroAppOpenApiClient client, string webhookXml) + where TEvent : DouyinMicroAppOpenApiEvent, new() { return InnerDeserializeEventFromXml(client, webhookXml); } /// - /// 从 XML 反序列化得到 对象。 + /// 从 XML 反序列化得到 对象。 /// /// /// /// - public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromXml(this ByteDanceMicroAppOpenApiClient client, string webhookXml) + public static DouyinMicroAppOpenApiEvent DeserializeEventFromXml(this DouyinMicroAppOpenApiClient client, string webhookXml) { - return InnerDeserializeEventFromXml(client, webhookXml); + return InnerDeserializeEventFromXml(client, webhookXml); } /// @@ -68,7 +68,7 @@ public static ByteDanceMicroAppOpenApiEvent DeserializeEventFromXml(this ByteDan /// /// /// - public static ErroredResult VerifyEventSignatureFromJson(this ByteDanceMicroAppOpenApiClient client, string webhookJson) + public static ErroredResult VerifyEventSignatureFromJson(this DouyinMicroAppOpenApiClient client, string webhookJson) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -108,7 +108,7 @@ public static ErroredResult VerifyEventSignatureFromJson(this ByteDanceMicroAppO /// /// /// - public static ErroredResult VerifyEventSignatureFromXml(this ByteDanceMicroAppOpenApiClient client, string webhookXml) + public static ErroredResult VerifyEventSignatureFromXml(this DouyinMicroAppOpenApiClient client, string webhookXml) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -139,7 +139,7 @@ public static ErroredResult VerifyEventSignatureFromXml(this ByteDanceMicroAppOp } } - partial class ByteDanceMicroAppOpenApiClientEventExtensions + partial class DouyinMicroAppOpenApiClientEventExtensions { private class InnerEncryptedEvent { @@ -165,8 +165,8 @@ private class InnerEncryptedEvent public string Signature { get; set; } = default!; } - private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppOpenApiClient client, string webhookJson) - where TEvent : ByteDanceMicroAppOpenApiEvent + private static TEvent InnerDeserializeEventFromJson(DouyinMicroAppOpenApiClient client, string webhookJson) + where TEvent : DouyinMicroAppOpenApiEvent { if (client is null) throw new ArgumentNullException(nameof(client)); if (webhookJson is null) throw new ArgumentNullException(webhookJson); @@ -181,18 +181,18 @@ private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppOpe return client.JsonSerializer.Deserialize(webhookJson); } - catch (ByteDanceMicroAppException) + catch (DouyinMicroAppException) { throw; } catch (Exception ex) { - throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + throw new DouyinMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); } } - private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppOpenApiClient client, string webhookXml) - where TEvent : ByteDanceMicroAppOpenApiEvent + private static TEvent InnerDeserializeEventFromXml(DouyinMicroAppOpenApiClient client, string webhookXml) + where TEvent : DouyinMicroAppOpenApiEvent { if (client is null) throw new ArgumentNullException(nameof(client)); if (webhookXml is null) throw new ArgumentNullException(webhookXml); @@ -202,20 +202,20 @@ private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppOpen if (webhookXml.Contains("") && webhookXml.Contains("")) { if (!Utilities.DyMsgCryptor.TryParseXml(webhookXml, out string encryptedXml)) - throw new ByteDanceMicroAppException("Failed to decrypt event data, because the encrypted data is empty."); + throw new DouyinMicroAppException("Failed to decrypt event data, because the encrypted data is empty."); webhookXml = Utilities.DyMsgCryptor.AESDecrypt(cipherText: encryptedXml, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); } return Utilities.XmlHelper.Deserialize(webhookXml); } - catch (ByteDanceMicroAppException) + catch (DouyinMicroAppException) { throw; } catch (Exception ex) { - throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + throw new DouyinMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs index cdd29a45..ae66f751 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { - public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions + public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions { #region Auth /// @@ -21,7 +21,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiAuthThirdPartyTokenV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiAuthThirdPartyTokenV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiAuthThirdPartyTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthThirdPartyTokenV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -49,7 +49,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiAuthPreAuthCodeV2Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiAuthPreAuthCodeV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiAuthPreAuthCodeV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthPreAuthCodeV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -73,7 +73,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiAuthGenerateLinkV2Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiAuthGenerateLinkV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiAuthGenerateLinkV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthGenerateLinkV2Request 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 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiAuthRetrieveV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiAuthRetrieveV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiAuthRetrieveV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthRetrieveV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -125,7 +125,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiOAuthTokenV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiOAuthTokenV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiOAuthTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiOAuthTokenV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -158,7 +158,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyAuthAppListV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyAuthAppListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyAuthAppListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyAuthAppListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -184,7 +184,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyUploadPictureMaterialV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyUploadPictureMaterialV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyUploadPictureMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyUploadPictureMaterialV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -215,7 +215,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyDownloadWebviewFileV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyDownloadWebviewFileV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyDownloadWebviewFileV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyDownloadWebviewFileV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -241,7 +241,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierMatchV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierMatchV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyPOISupplierMatchV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierMatchV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -265,7 +265,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchTaskV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchTaskV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -290,7 +290,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -315,7 +315,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierSyncV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierSyncV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyPOISupplierSyncV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierSyncV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -339,7 +339,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -364,7 +364,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyPOIBaseQueryAMapV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOIBaseQueryAMapV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyPOIBaseQueryAMapV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOIBaseQueryAMapV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -391,7 +391,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateListV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -416,7 +416,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// [Obsolete("相关接口或字段于 2022-12-28 下线。")] - public static async Task ExecuteOpenApiThirdPartyTemplateGetDraftListV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetDraftListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyTemplateGetDraftListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetDraftListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -440,7 +440,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateAppListV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateAppListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateAppListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateAppListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -464,7 +464,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyTemplateAddTemplateV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateAddTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyTemplateAddTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateAddTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -488,7 +488,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyTemplateDeleteTemplateV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateDeleteTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiThirdPartyTemplateDeleteTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateDeleteTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -515,7 +515,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppCode2SessionV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppCode2SessionV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppCode2SessionV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppCode2SessionV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -541,7 +541,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppUploadMaterialV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppUploadMaterialV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppUploadMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppUploadMaterialV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -575,7 +575,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppInfoV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppInfoV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppInfoV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppInfoV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -599,7 +599,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppQrcodeV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppQrcodeV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppQrcodeV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppQrcodeV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -623,7 +623,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppCheckAppNameV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCheckAppNameV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppCheckAppNameV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCheckAppNameV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -648,7 +648,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppModifyAppNameV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppNameV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppModifyAppNameV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppNameV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -672,7 +672,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppModifyAppIntroductionV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppIntroductionV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppModifyAppIntroductionV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppIntroductionV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -696,7 +696,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppModifyAppIconV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppIconV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppModifyAppIconV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppIconV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -720,7 +720,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppAllCategoriesV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppAllCategoriesV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppAllCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppAllCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -744,7 +744,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppCategoriesV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCategoriesV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -768,7 +768,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppAddCategoriesV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppAddCategoriesV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppAddCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppAddCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -792,7 +792,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppDeleteCategoriesV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppDeleteCategoriesV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppDeleteCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppDeleteCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -816,7 +816,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppSupplyCategoriesV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppSupplyCategoriesV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppSupplyCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppSupplyCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -840,7 +840,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppModifyServerDomainV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyServerDomainV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppModifyServerDomainV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyServerDomainV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -864,7 +864,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppModifyWebviewDomainV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyWebviewDomainV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppModifyWebviewDomainV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyWebviewDomainV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -888,7 +888,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppQualityRatingV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppQualityRatingV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppQualityRatingV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppQualityRatingV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -912,7 +912,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppAppCreditScoreV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCreditScoreV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppAppCreditScoreV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCreditScoreV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -938,7 +938,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationVideoApplicationStatusV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationVideoApplicationStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationVideoApplicationStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationVideoApplicationStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -962,7 +962,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationVideoApplicationV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationVideoApplicationV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationVideoApplicationV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationVideoApplicationV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -986,7 +986,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationLiveApplicationStatusV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationLiveApplicationStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationLiveApplicationStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationLiveApplicationStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1010,7 +1010,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationLiveApplicationV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationLiveApplicationV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationLiveApplicationV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationLiveApplicationV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1034,7 +1034,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationPhoneNumberApplicationStatusV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationPhoneNumberApplicationStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1058,7 +1058,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationPhoneNumberApplicationV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationPhoneNumberApplicationV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationPhoneNumberApplicationV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationPhoneNumberApplicationV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1082,7 +1082,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationShareTemplateListV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationShareTemplateListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationShareTemplateListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationShareTemplateListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1108,7 +1108,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationAddShareTemplateV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationAddShareTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationAddShareTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationAddShareTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1132,7 +1132,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationModifyShareTemplateV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationModifyShareTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationModifyShareTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationModifyShareTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1156,7 +1156,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationDeleteShareTemplateV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationDeleteShareTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationDeleteShareTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationDeleteShareTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1180,7 +1180,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationSetDefaultShareTemplateV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationSetDefaultShareTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationSetDefaultShareTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationSetDefaultShareTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1204,7 +1204,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationAddShopMaterialV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationAddShopMaterialV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationAddShopMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationAddShopMaterialV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1228,7 +1228,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppOperationQueryShopMaterialV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationQueryShopMaterialV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppOperationQueryShopMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppOperationQueryShopMaterialV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1255,7 +1255,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppPackageUploadV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageUploadV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppPackageUploadV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageUploadV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1279,7 +1279,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppPackageAuditHostsV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageAuditHostsV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppPackageAuditHostsV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageAuditHostsV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1303,7 +1303,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppPackageAuditV2Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageAuditV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppPackageAuditV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageAuditV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1327,7 +1327,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppPackageRevokeAuditV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageRevokeAuditV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppPackageRevokeAuditV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageRevokeAuditV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1351,7 +1351,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppPackageReleaseV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageReleaseV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppPackageReleaseV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageReleaseV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1375,7 +1375,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppPackageRollbackV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageRollbackV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppPackageRollbackV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageRollbackV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1399,7 +1399,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiMicroAppPackageVersionsV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageVersionsV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiMicroAppPackageVersionsV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageVersionsV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1426,7 +1426,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiSettlePreCheckV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiSettlePreCheckV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiSettlePreCheckV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettlePreCheckV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1450,7 +1450,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiSettleApplyV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiSettleApplyV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiSettleApplyV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettleApplyV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1474,7 +1474,7 @@ public static class ByteDanceMicroAppOpenApiClientExecuteOpenApiExtensions /// /// /// - public static async Task ExecuteOpenApiSettleGetApplyStatusV1Async(this ByteDanceMicroAppOpenApiClient client, Models.OpenApiSettleGetApplyStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiSettleGetApplyStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettleGetApplyStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs index d609514b..e0e6ce14 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/ByteDanceMicroAppOpenApiClientParameterExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs @@ -2,7 +2,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { - public static class ByteDanceMicroAppOpenApiClientParameterExtensions + public static class DouyinMicroAppOpenApiClientParameterExtensions { /// /// 生成第三方应用服务商授权 URL。 @@ -15,9 +15,9 @@ public static class ByteDanceMicroAppOpenApiClientParameterExtensions /// /// /// - public static string GenerateParameterizedUrlForOpenComponentThirdPartyAuthorization(this ByteDanceMicroAppOpenApiClient client, string preAuthCode, string redirectUrl) + public static string GenerateParameterizedUrlForOpenComponentThirdPartyAuthorization(this DouyinMicroAppOpenApiClient client, string preAuthCode, string redirectUrl) { - return new Url(ByteDanceMicroAppOpenApiEndpoints.DEFAULT) + return new Url(DouyinMicroAppOpenApiEndpoints.DEFAULT) .AppendPathSegments("mappconsole", "tp", "authorization") .SetQueryParam("component_appid", client.Credentials.ComponentAppId) .SetQueryParam("pre_auth_code", preAuthCode) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs index f9a83bae..ec8c3af3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/auth/gen_link 接口的请求。 /// - public class OpenApiAuthGenerateLinkV2Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiAuthGenerateLinkV2Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs index 95ca9dcd..97aa2e3d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/auth/gen_link 接口的响应。 /// - public class OpenApiAuthGenerateLinkV2Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiAuthGenerateLinkV2Response : DouyinMicroAppOpenApiResponse { /// /// 获取或设置授权链接。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs index cd04b7c2..736f472b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/auth/pre_auth_code 接口的请求。 /// - public class OpenApiAuthPreAuthCodeV2Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiAuthPreAuthCodeV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置预授权码类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs index 1b3ac22b..472fd511 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v2/auth/pre_auth_code 接口的响应。 /// - public class OpenApiAuthPreAuthCodeV2Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiAuthPreAuthCodeV2Response : DouyinMicroAppOpenApiResponse { /// /// 获取或设置预授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs index 294cde1f..85bfaad2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/auth/retrieve 接口的请求。 /// - public class OpenApiAuthRetrieveV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiAuthRetrieveV1Request : DouyinMicroAppOpenApiRequest { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs index ae690d41..81e3ccbb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/auth/retrieve 接口的响应。 /// - public class OpenApiAuthRetrieveV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiAuthRetrieveV1Response : DouyinMicroAppOpenApiResponse { /// /// 获取或设置授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs index 5c267271..13f34e95 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs @@ -3,10 +3,10 @@ /// /// 表示 [GET] /v1/auth/tp/token 接口的请求。 /// - public class OpenApiAuthThirdPartyTokenV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiAuthThirdPartyTokenV1Request : DouyinMicroAppOpenApiRequest { /// - /// 获取或设置第三方应用 AppSecret。如果不指定将使用构造 时的 参数。 + /// 获取或设置第三方应用 AppSecret。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs index 56bde8a0..c21ddd9c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/auth/tp/token 接口的响应。 /// - public class OpenApiAuthThirdPartyTokenV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiAuthThirdPartyTokenV1Response : DouyinMicroAppOpenApiResponse { /// /// 获取或设置第三方平台 AccessToken。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs index 09283fac..f59979ef 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/add_categories 接口的请求。 /// - public class OpenApiMicroAppAppAddCategoriesV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppAddCategoriesV1Request : DouyinMicroAppOpenApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs index 9e5ce582..3df95163 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/add_categories 接口的响应。 /// - public class OpenApiMicroAppAppAddCategoriesV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppAddCategoriesV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs index fe5758a5..31a1e2dd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/all_categories 接口的请求。 /// - public class OpenApiMicroAppAppAllCategoriesV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppAllCategoriesV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs index af4a029d..336af07f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/all_categories 接口的响应。 /// - public class OpenApiMicroAppAppAllCategoriesV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppAllCategoriesV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs index c68b8125..8aa222c5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/categories 接口的请求。 /// - public class OpenApiMicroAppAppCategoriesV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppCategoriesV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs index fdeb902b..e8d07ddd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/categories 接口的响应。 /// - public class OpenApiMicroAppAppCategoriesV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppCategoriesV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs index 5af6ae50..9b6a5edc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/del_categories 接口的请求。 /// - public class OpenApiMicroAppAppDeleteCategoriesV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppDeleteCategoriesV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置服务类目 ID 字符串(以逗号分隔)列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs index bc9310bc..09e891cb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/del_categories 接口的响应。 /// - public class OpenApiMicroAppAppDeleteCategoriesV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppDeleteCategoriesV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs index 58aaf960..3b8c1e02 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/supply_categories 接口的请求。 /// - public class OpenApiMicroAppAppSupplyCategoriesV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppSupplyCategoriesV1Request : DouyinMicroAppOpenApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs index 1f338e79..a528a256 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/supply_categories 接口的响应。 /// - public class OpenApiMicroAppAppSupplyCategoriesV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppSupplyCategoriesV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs index baf58db8..a9bd2b73 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/check_app_name 接口的请求。 /// - public class OpenApiMicroAppAppCheckAppNameV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppCheckAppNameV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置待检测的小程序名称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs index 9b9e1431..fc32db15 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/check_app_name 接口的响应。 /// - public class OpenApiMicroAppAppCheckAppNameV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppCheckAppNameV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs index e750b46f..dffe42c0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/credit_score 接口的请求。 /// - public class OpenApiMicroAppAppCreditScoreV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppCreditScoreV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs index 37dffe9f..986732e8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/credit_score 接口的响应。 /// - public class OpenApiMicroAppAppCreditScoreV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppCreditScoreV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs index b239f57f..52664f6c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/info 接口的请求。 /// - public class OpenApiMicroAppAppInfoV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppInfoV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs index cb2747e2..6cd1546a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/info 接口的响应。 /// - public class OpenApiMicroAppAppInfoV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppInfoV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs index 679f994a..541a3b10 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/modify_app_icon 接口的请求。 /// - public class OpenApiMicroAppAppModifyAppIconV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppModifyAppIconV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置准备修改的小程序图标路径。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs index 50065669..ac25a81c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/app/modify_app_icon 接口的响应。 /// - public class OpenApiMicroAppAppModifyAppIconV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyAppIconV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs index 94762c94..c91412c1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/modify_app_intro 接口的请求。 /// - public class OpenApiMicroAppAppModifyAppIntroductionV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppModifyAppIntroductionV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置准备修改的小程序简介。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs index 76dbde10..2bdf5f11 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/app/modify_app_intro 接口的响应。 /// - public class OpenApiMicroAppAppModifyAppIntroductionV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyAppIntroductionV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs index 04737dc9..c3cc9f3e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/modify_app_name 接口的请求。 /// - public class OpenApiMicroAppAppModifyAppNameV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppModifyAppNameV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置准备修改的小程序名称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs index ec7a02b2..c3d4c19d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/app/modify_app_name 接口的响应。 /// - public class OpenApiMicroAppAppModifyAppNameV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyAppNameV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs index 6d04e0c3..2ced81c2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/modify_server_domain 接口的请求。 /// - public class OpenApiMicroAppAppModifyServerDomainV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppModifyServerDomainV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置执行动作。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs index bc8f55a3..3db3a8a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/modify_server_domain 接口的响应。 /// - public class OpenApiMicroAppAppModifyServerDomainV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyServerDomainV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs index 5d65c98b..2b1cc0dd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/modify_webview_domain 接口的请求。 /// - public class OpenApiMicroAppAppModifyWebviewDomainV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppModifyWebviewDomainV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置执行动作。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs index 0fb077f0..9da95a53 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/modify_webview_domain 接口的响应。 /// - public class OpenApiMicroAppAppModifyWebviewDomainV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyWebviewDomainV1Response : DouyinMicroAppOpenApiResponse { /// /// 获取或设置 Webview 域名列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs index 90ebcc25..513500bc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/app/qrcode 接口的请求。 /// - public class OpenApiMicroAppAppQrcodeV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppQrcodeV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置新名称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs index 4e4a7f11..f7c0aa51 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/qrcode 接口的响应。 /// - public class OpenApiMicroAppAppQrcodeV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppQrcodeV1Response : DouyinMicroAppOpenApiResponse { public override bool IsSuccessful() { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs index 0031034a..105812eb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/quality_rating 接口的请求。 /// - public class OpenApiMicroAppAppQualityRatingV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppAppQualityRatingV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs index 8485bfe6..4235dd18 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/app/quality_rating 接口的响应。 /// - public class OpenApiMicroAppAppQualityRatingV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppAppQualityRatingV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs index a5fdcf91..354a857a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/code2session 接口的请求。 /// - public class OpenApiMicroAppCode2SessionV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppCode2SessionV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置登录 Code。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs index d9f6af12..440dadb5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/code2session 接口的响应。 /// - public class OpenApiMicroAppCode2SessionV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppCode2SessionV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs index 8de725f1..291f2b7a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/upload_material 接口的请求。 /// - public class OpenApiMicroAppUploadMaterialV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppUploadMaterialV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置上传文件类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs index 6a88a7ca..86545726 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/upload_material 接口的响应。 /// - public class OpenApiMicroAppUploadMaterialV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppUploadMaterialV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs index 4272a9b1..a72e181c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/live_application_status 接口的请求。 /// - public class OpenApiMicroAppOperationLiveApplicationStatusV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationLiveApplicationStatusV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs index 3b80d3ad..1baf77e6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/live_application_status 接口的响应。 /// - public class OpenApiMicroAppOperationLiveApplicationStatusV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationLiveApplicationStatusV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs index 163e3ac7..a57ce4a3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/operation/live_application 接口的请求。 /// - public class OpenApiMicroAppOperationLiveApplicationV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationLiveApplicationV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置申请原因以及挂载内容介绍。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs index 4a6e22ae..0d931157 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/live_application 接口的响应。 /// - public class OpenApiMicroAppOperationLiveApplicationV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationLiveApplicationV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs index f66b68f0..cdbb3b6f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/phone_number_application_status 接口的请求。 /// - public class OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs index 494f50c9..cd770762 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/phone_number_application_status 接口的响应。 /// - public class OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs index 8b7ab21b..b618fd54 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/operation/phone_number_application 接口的请求。 /// - public class OpenApiMicroAppOperationPhoneNumberApplicationV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationPhoneNumberApplicationV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置申请原因。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs index 072bc23d..69e7f178 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/phone_number_application 接口的响应。 /// - public class OpenApiMicroAppOperationPhoneNumberApplicationV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationPhoneNumberApplicationV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs index cf2718f5..90249a5e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/video_application_status 接口的请求。 /// - public class OpenApiMicroAppOperationVideoApplicationStatusV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationVideoApplicationStatusV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs index 244e3605..eb152533 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/video_application_status 接口的响应。 /// - public class OpenApiMicroAppOperationVideoApplicationStatusV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationVideoApplicationStatusV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs index d6bd16bb..b3d039b1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/operation/video_application 接口的请求。 /// - public class OpenApiMicroAppOperationVideoApplicationV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationVideoApplicationV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置申请原因以及挂载内容介绍。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs index 27875388..0f9ac384 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/video_application 接口的响应。 /// - public class OpenApiMicroAppOperationVideoApplicationV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationVideoApplicationV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs index f8865c5a..d1b6a1e4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/operation/add_share_tpl 接口的请求。 /// - public class OpenApiMicroAppOperationAddShareTemplateV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationAddShareTemplateV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置分享标题。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs index e8da96c8..25340371 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/add_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationAddShareTemplateV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationAddShareTemplateV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs index 544f53a5..25e42651 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/operation/del_share_tpl 接口的请求。 /// - public class OpenApiMicroAppOperationDeleteShareTemplateV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationDeleteShareTemplateV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置模板 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs index 03c747d0..9532353b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/del_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationDeleteShareTemplateV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationDeleteShareTemplateV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs index 7225cff3..0339ba9b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/operation/modify_share_tpl 接口的请求。 /// - public class OpenApiMicroAppOperationModifyShareTemplateV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationModifyShareTemplateV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置模板 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs index 389de881..91ca89c2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/modify_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationModifyShareTemplateV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationModifyShareTemplateV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs index 6ed1f95c..75a0859c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/operation/set_default_share_tpl 接口的请求。 /// - public class OpenApiMicroAppOperationSetDefaultShareTemplateV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationSetDefaultShareTemplateV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置模板 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs index 2d484997..eb787d99 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/set_default_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationSetDefaultShareTemplateV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationSetDefaultShareTemplateV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs index 4c241a8f..0a29e804 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/share_tpl_list 接口的请求。 /// - public class OpenApiMicroAppOperationShareTemplateListV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationShareTemplateListV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置分页页数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs index 513fed6a..70c9df17 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/microapp/operation/share_tpl_list 接口的响应。 /// - public class OpenApiMicroAppOperationShareTemplateListV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationShareTemplateListV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs index b3d2ca89..f2a04c3a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/operation/add_shop_material 接口的请求。 /// - public class OpenApiMicroAppOperationAddShopMaterialV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationAddShopMaterialV1Request : DouyinMicroAppOpenApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs index bcbb1395..a4522dcb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/operation/add_shop_material 接口的响应。 /// - public class OpenApiMicroAppOperationAddShopMaterialV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationAddShopMaterialV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs index 89d14893..9f2158ac 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/query_shop_material 接口的请求。 /// - public class OpenApiMicroAppOperationQueryShopMaterialV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppOperationQueryShopMaterialV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置接入方店铺 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs index 353aef92..86b99174 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/operation/query_shop_material 接口的响应。 /// - public class OpenApiMicroAppOperationQueryShopMaterialV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppOperationQueryShopMaterialV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs index 83296579..50fe2544 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/package/audit_hosts 接口的请求。 /// - public class OpenApiMicroAppPackageAuditHostsV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppPackageAuditHostsV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs index df903842..7476c0a1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/package/audit_hosts 接口的响应。 /// - public class OpenApiMicroAppPackageAuditHostsV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppPackageAuditHostsV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs index 4e0e0281..dbdf731b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/microapp/package/audit 接口的请求。 /// - public class OpenApiMicroAppPackageAuditV2Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppPackageAuditV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置本次提审的宿主端列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs index 0dc9ceb8..bbf6387a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs @@ -3,6 +3,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/microapp/package/audit 接口的响应。 /// - public class OpenApiMicroAppPackageAuditV2Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppPackageAuditV2Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs index f060af7a..9d92b04f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/package/release 接口的请求。 /// - public class OpenApiMicroAppPackageReleaseV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppPackageReleaseV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs index 767a52ac..d76f1d82 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/package/release 接口的响应。 /// - public class OpenApiMicroAppPackageReleaseV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppPackageReleaseV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs index c82453ca..0585ce88 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/package/revoke_audit 接口的请求。 /// - public class OpenApiMicroAppPackageRevokeAuditV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppPackageRevokeAuditV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs index 81cb4f22..533c8c7b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/package/revoke_audit 接口的响应。 /// - public class OpenApiMicroAppPackageRevokeAuditV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppPackageRevokeAuditV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs index e38542cf..0c7f06a4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/microapp/package/rollback 接口的请求。 /// - public class OpenApiMicroAppPackageRollbackV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppPackageRollbackV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs index cb621b8b..e0eb57a6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/package/rollback 接口的响应。 /// - public class OpenApiMicroAppPackageRollbackV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppPackageRollbackV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs index bd37c0c4..7e7c69a1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/package/upload 接口的请求。 /// - public class OpenApiMicroAppPackageUploadV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppPackageUploadV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置提交 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs index df01184e..ab1a5c71 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/microapp/package/upload 接口的响应。 /// - public class OpenApiMicroAppPackageUploadV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppPackageUploadV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs index 3f41aaa9..0174eb25 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/microapp/package/versions 接口的请求。 /// - public class OpenApiMicroAppPackageVersionsV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiMicroAppPackageVersionsV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs index 7b4d7837..3d567bea 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/microapp/package/versions 接口的响应。 /// - public class OpenApiMicroAppPackageVersionsV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiMicroAppPackageVersionsV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs index 11658ebb..cda79c97 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/oauth/token 接口的请求。 /// - public class OpenApiOAuthTokenV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiOAuthTokenV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置授权码。与字段 二选一。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs index a6e6138c..9b29a88c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/oauth/token 接口的响应。 /// - public class OpenApiOAuthTokenV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiOAuthTokenV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs index f75360ee..87212c50 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/settle/apply 接口的请求。 /// - public class OpenApiSettleApplyV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiSettleApplyV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置手机号码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs index 81da0c9b..7e25c6a4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/settle/apply 接口的响应。 /// - public class OpenApiSettleApplyV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiSettleApplyV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs index a56593ec..3c19594e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/settle/get_apply_status 接口的请求。 /// - public class OpenApiSettleGetApplyStatusV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiSettleGetApplyStatusV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置申请请求 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs index 780ee74f..7f4e215c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/settle/get_apply_status 接口的响应。 /// - public class OpenApiSettleGetApplyStatusV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiSettleGetApplyStatusV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs index 6e9f97e6..f7d0fd65 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/settle/pre_check 接口的请求。 /// - public class OpenApiSettlePreCheckV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiSettlePreCheckV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置主体类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs index fe0b6ff2..8bd08d2f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/settle/pre_check 接口的响应。 /// - public class OpenApiSettlePreCheckV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiSettlePreCheckV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs index 644d61d5..0419959e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/download/webview_file 接口的请求。 /// - public class OpenApiThirdPartyDownloadWebviewFileV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyDownloadWebviewFileV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs index bd0c2584..d3007456 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/tp/download/webview_file 接口的响应。 /// - public class OpenApiThirdPartyDownloadWebviewFileV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyDownloadWebviewFileV1Response : DouyinMicroAppOpenApiResponse { public override bool IsSuccessful() { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs index 99286ead..1808f8b8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/auth_app_list 接口的请求。 /// - public class OpenApiThirdPartyAuthAppListV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyAuthAppListV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置分页页数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs index eb77f389..217bf9b1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/auth_app_list 接口的响应。 /// - public class OpenApiThirdPartyAuthAppListV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyAuthAppListV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs index 055ed917..2995b13d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/tp/upload_pic_material 接口的请求。 /// - public class OpenApiThirdPartyUploadPictureMaterialV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyUploadPictureMaterialV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置上传的文件类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs index 297b74b0..cefe83d8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/tp/upload_pic_material 接口的响应。 /// - public class OpenApiThirdPartyUploadPictureMaterialV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyUploadPictureMaterialV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs index 4a12bdc2..204a386c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/poi/base/query/amap 接口的请求。 /// - public class OpenApiThirdPartyPOIBaseQueryAMapV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyPOIBaseQueryAMapV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置高德 POI ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs index 5b557303..00bc2fdc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/poi/base/query/amap 接口的响应。 /// - public class OpenApiThirdPartyPOIBaseQueryAMapV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyPOIBaseQueryAMapV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs index ddd5199a..0e45d7a8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/tp/poi/supplier/match 接口的请求。 /// - public class OpenApiThirdPartyPOISupplierMatchV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyPOISupplierMatchV1Request : DouyinMicroAppOpenApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs index 5a14436b..fa45ca66 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/tp/poi/supplier/match 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierMatchV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierMatchV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs index 41594070..5913ddf1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/tp/poi/supplier/query/match_task 接口的请求。 /// - public class OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置匹配任务 ID 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs index 368b0deb..e7f41690 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/poi/supplier/query/match_task 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs index 46fe1028..32c89437 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/tp/poi/supplier/query/match 接口的请求。 /// - public class OpenApiThirdPartyPOISupplierQueryMatchV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyPOISupplierQueryMatchV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置外部商铺 ID 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs index 2fe281db..4eb151fa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/poi/supplier/query/match 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierQueryMatchV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierQueryMatchV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs index 41423232..419fcb89 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/poi/supplier/query 接口的请求。 /// - public class OpenApiThirdPartyPOISupplierQueryV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyPOISupplierQueryV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置外部商铺 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs index a54ee321..26182217 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/poi/supplier/query 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierQueryV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierQueryV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs index 3bf5db3e..2d43f098 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/tp/poi/supplier/sync 接口的请求。 /// - public class OpenApiThirdPartyPOISupplierSyncV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyPOISupplierSyncV1Request : DouyinMicroAppOpenApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs index b2305447..2dab8d43 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/tp/poi/supplier/sync 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierSyncV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierSyncV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs index a000f10b..30a871da 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/tp/template/add_tpl 接口的请求。 /// - public class OpenApiThirdPartyTemplateAddTemplateV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyTemplateAddTemplateV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置草稿 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs index deca1fea..375bf3a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/tp/template/add_tpl 接口的响应。 /// - public class OpenApiThirdPartyTemplateAddTemplateV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyTemplateAddTemplateV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs index 27f83dbc..656eb5a9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v1/tp/template/del_tpl 接口的请求。 /// - public class OpenApiThirdPartyTemplateDeleteTemplateV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyTemplateDeleteTemplateV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置模板 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs index 09435f23..00d6a552 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs @@ -3,6 +3,6 @@ /// /// 表示 [POST] /v1/tp/template/del_tpl 接口的响应。 /// - public class OpenApiThirdPartyTemplateDeleteTemplateV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyTemplateDeleteTemplateV1Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs index 1bd6793c..787ddfcf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [GET] /v1/tp/template/get_draft_list 接口的请求。 /// [Obsolete("相关接口或字段于 2022-12-28 下线。")] - public class OpenApiThirdPartyTemplateGetDraftListV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyTemplateGetDraftListV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs index 24b1fcb8..e3b37dad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [GET] /v1/tp/template/get_draft_list 接口的响应。 /// [Obsolete("相关接口或字段于 2022-12-28 下线。")] - public class OpenApiThirdPartyTemplateGetDraftListV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyTemplateGetDraftListV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs index e82138a4..58b3d795 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/tp/template/get_tpl_app_list 接口的请求。 /// - public class OpenApiThirdPartyTemplateGetTemplateAppListV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyTemplateGetTemplateAppListV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs index 80a302b7..69395c29 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/tp/template/get_tpl_app_list 接口的响应。 /// - public class OpenApiThirdPartyTemplateGetTemplateAppListV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyTemplateGetTemplateAppListV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs index 00155822..9d31dd79 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/template/get_tpl_list 接口的请求。 /// - public class OpenApiThirdPartyTemplateGetTemplateListV1Request : ByteDanceMicroAppOpenApiRequest + public class OpenApiThirdPartyTemplateGetTemplateListV1Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs index dd227599..f63f61d9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [GET] /v1/tp/template/get_tpl_list 接口的响应。 /// - public class OpenApiThirdPartyTemplateGetTemplateListV1Response : ByteDanceMicroAppOpenApiResponse + public class OpenApiThirdPartyTemplateGetTemplateListV1Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Settings/Credentials.cs index 4a774de8..549333b6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Settings/Credentials.cs @@ -5,26 +5,26 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Settings public class Credentials { /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string ComponentAppId { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string ComponentAppSecret { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string? PushToken { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string? PushEncodingAESKey { get; set; } - internal Credentials(ByteDanceMicroAppOpenApiClientOptions options) + internal Credentials(DouyinMicroAppOpenApiClientOptions options) { if (options is null) throw new ArgumentNullException(nameof(options)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClient.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClient.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClient.cs index d43c7f77..84066734 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClient.cs @@ -7,20 +7,20 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// - /// 一个字节小程序泛知识课程库 API HTTP 客户端。 + /// 一个抖音小程序泛知识课程库 API HTTP 客户端。 /// - public class ByteDanceMicroAppProductApiClient : CommonClientBase, ICommonClient + public class DouyinMicroAppProductApiClient : CommonClientBase, ICommonClient { /// - /// 获取当前客户端使用的字节小程序凭证。 + /// 获取当前客户端使用的抖音小程序凭证。 /// public Settings.Credentials Credentials { get; } /// - /// 用指定的配置项初始化 类的新实例。 + /// 用指定的配置项初始化 类的新实例。 /// /// 配置项。 - public ByteDanceMicroAppProductApiClient(ByteDanceMicroAppProductApiClientOptions options) + public DouyinMicroAppProductApiClient(DouyinMicroAppProductApiClientOptions options) : this(options, null) { } @@ -31,14 +31,14 @@ public ByteDanceMicroAppProductApiClient(ByteDanceMicroAppProductApiClientOption /// /// /// - internal protected ByteDanceMicroAppProductApiClient(ByteDanceMicroAppProductApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) + internal protected DouyinMicroAppProductApiClient(DouyinMicroAppProductApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) : base(httpClient, disposeClient) { if (options is null) throw new ArgumentNullException(nameof(options)); Credentials = new Settings.Credentials(options); - FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppProductApiEndpoints.DEFAULT; + FlurlClient.BaseUrl = options.Endpoints ?? DouyinMicroAppProductApiEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); } @@ -49,7 +49,7 @@ internal protected ByteDanceMicroAppProductApiClient(ByteDanceMicroAppProductApi /// /// /// - public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppProductApiRequest request, HttpMethod httpMethod, params object[] urlSegments) + public IFlurlRequest CreateFlurlRequest(DouyinMicroAppProductApiRequest request, HttpMethod httpMethod, params object[] urlSegments) { IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); @@ -70,7 +70,7 @@ public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppProductApiRequest reque /// /// public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppProductApiResponse, new() + where T : DouyinMicroAppProductApiResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); @@ -87,7 +87,7 @@ public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpCo /// /// public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppProductApiResponse, new() + where T : DouyinMicroAppProductApiResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientOptions.cs similarity index 53% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientOptions.cs index 965213a5..00c89687 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientOptions.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// - /// 一个用于构造 时使用的配置项。 + /// 一个用于构造 时使用的配置项。 /// - public class ByteDanceMicroAppProductApiClientOptions + public class DouyinMicroAppProductApiClientOptions { /// /// 获取或设置请求超时时间(单位:毫秒)。 @@ -12,18 +12,18 @@ public class ByteDanceMicroAppProductApiClientOptions public int Timeout { get; set; } = 30 * 1000; /// - /// 获取或设置字节小程序泛知识课程库 API 域名。 - /// 默认值: + /// 获取或设置抖音小程序泛知识课程库 API 域名。 + /// 默认值: /// - public string Endpoints { get; set; } = ByteDanceMicroAppProductApiEndpoints.DEFAULT; + public string Endpoints { get; set; } = DouyinMicroAppProductApiEndpoints.DEFAULT; /// - /// 获取或设置字节小程序 AppId。 + /// 获取或设置抖音小程序 AppId。 /// public string AppId { get; set; } = default!; /// - /// 获取或设置字节小程序 AppSecret。 + /// 获取或设置抖音小程序 AppSecret。 /// public string AppSecret { get; set; } = default!; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiEndpoints.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiEndpoints.cs index 0b7ef87c..14f2e82f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiEndpoints.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// - /// 字节小程序泛知识课程库 API 接口域名。 + /// 抖音小程序泛知识课程库 API 接口域名。 /// - public static class ByteDanceMicroAppProductApiEndpoints + public static class DouyinMicroAppProductApiEndpoints { /// /// 泛知识课程接口域名(默认)。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiEvent.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiEvent.cs index 9b7b7bc3..5bb24e34 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiEvent.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// - /// 表示字节小程序泛知识课程库 API 消息推送事件的基类。 + /// 表示抖音小程序泛知识课程库 API 消息推送事件的基类。 /// - public class ByteDanceMicroAppProductApiEvent : ICommonWebhookEvent + public class DouyinMicroAppProductApiEvent : ICommonWebhookEvent { /// /// 获取或设置通知类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiRequest.cs similarity index 65% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiRequest.cs index 33729b5a..48c7ad6b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiRequest.cs @@ -1,19 +1,19 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// - /// 字节小程序泛知识课程库 API 请求的基类。 + /// 抖音小程序泛知识课程库 API 请求的基类。 /// - public abstract class ByteDanceMicroAppProductApiRequest : CommonRequestBase, ICommonRequest + public abstract class DouyinMicroAppProductApiRequest : CommonRequestBase, ICommonRequest { /// - /// 获取或设置字节小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置抖音小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public virtual string? AppId { get; set; } /// - /// 获取或设置字节小程序的 AccessToken。 + /// 获取或设置抖音小程序的 AccessToken。 /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiResponse.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiResponse.cs index 55d86b8a..0dfb3b1e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/ByteDanceMicroAppProductApiResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiResponse.cs @@ -1,26 +1,26 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// - /// 字节小程序泛知识课程库 API 响应的基类。 + /// 抖音小程序泛知识课程库 API 响应的基类。 /// - public abstract class ByteDanceMicroAppProductApiResponse : CommonResponseBase, ICommonResponse + public abstract class DouyinMicroAppProductApiResponse : CommonResponseBase, ICommonResponse { /// - /// 获取字节小程序 API 返回的错误码。 + /// 获取抖音小程序 API 返回的错误码。 /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public virtual int ErrorNumber { get; set; } /// - /// 获取字节小程序 API 返回的错误描述。 + /// 获取抖音小程序 API 返回的错误描述。 /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public virtual string? ErrorMessage { get; set; } /// - /// 获取字节小程序 API 返回的日志 ID。 + /// 获取抖音小程序 API 返回的日志 ID。 /// [Newtonsoft.Json.JsonProperty("log_id")] [System.Text.Json.Serialization.JsonPropertyName("log_id")] @@ -28,7 +28,7 @@ public abstract class ByteDanceMicroAppProductApiResponse : CommonResponseBase, public virtual string? LogId { get; set; } /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// 获取一个值,该值指示调用抖音小程序 API 是否成功。 /// /// (即 HTTP 状态码为 200,且 值为 0) /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductEvent.cs index 3c5e3896..b5e15237 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductEvent.cs @@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events /// /// /// - public class ProductEvent : ByteDanceMicroAppProductApiEvent + public class ProductEvent : DouyinMicroAppProductApiEvent { /// /// 获取或设置商品 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductFulfilmentEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductFulfilmentEvent.cs index a0aa252a..27181d91 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductFulfilmentEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductFulfilmentEvent.cs @@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events /// /// /// - public class ProductFulfilmentEvent : ByteDanceMicroAppProductApiEvent + public class ProductFulfilmentEvent : DouyinMicroAppProductApiEvent { /// /// 获取或设置商品 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductQualificationEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductQualificationEvent.cs index cf0e335d..b3aefc82 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductQualificationEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductQualificationEvent.cs @@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events /// /// /// - public class ProductQualificationEvent : ByteDanceMicroAppProductApiEvent + public class ProductQualificationEvent : DouyinMicroAppProductApiEvent { /// /// 获取或设置审核主体 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductResourceEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductResourceEvent.cs index 20ae097e..d583fe5a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductResourceEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Events/ProductResourceEvent.cs @@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events /// /// /// - public class ProductResourceEvent : ByteDanceMicroAppProductApiEvent + public class ProductResourceEvent : DouyinMicroAppProductApiEvent { /// /// 获取或设置资源路径。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs index f2544553..78b0d1b5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs @@ -19,7 +19,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiAddAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiAddRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiAddAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiAddRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -45,7 +45,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiModifyRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiModifyAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -71,7 +71,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyStatusAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiModifyStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiModifyStatusAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyStatusRequest 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 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyNoAuditAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiModifyNoAuditRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiModifyNoAuditAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyNoAuditRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -126,7 +126,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiQueryRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiQueryAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -149,7 +149,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryReviewAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiQueryReviewRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiQueryReviewAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryReviewRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -171,7 +171,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryTemplateInfoAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiQueryTemplateInfoRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiQueryTemplateInfoAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryTemplateInfoRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -193,7 +193,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryClassInfoAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiQueryClassInfoRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiQueryClassInfoAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryClassInfoRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -216,7 +216,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiUploadResourceAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiUploadResourceRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiUploadResourceAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiUploadResourceRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -238,7 +238,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryResourceStatusAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiQueryResourceStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiQueryResourceStatusAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryResourceStatusRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -262,7 +262,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiAddQualificationAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiAddQualificationRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiAddQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiAddQualificationRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -285,7 +285,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyQualificationAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiModifyQualificationRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiModifyQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyQualificationRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -308,7 +308,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryQualificationAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiQueryQualificationRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiQueryQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryQualificationRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -332,7 +332,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryRefundRuleMetaAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiQueryRefundRuleMetaRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiQueryRefundRuleMetaAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryRefundRuleMetaRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -355,7 +355,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyRefundRuleAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiModifyRefundRuleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiModifyRefundRuleAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyRefundRuleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -380,7 +380,7 @@ public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiSyncCallbackUrlAsync(this ByteDanceMicroAppProductApiClient client, Models.ProductApiSyncCallbackUrlRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductApiSyncCallbackUrlAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiSyncCallbackUrlRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientEventExtensions.cs similarity index 50% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientEventExtensions.cs index 3ac34dff..9f543237 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientEventExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientEventExtensions.cs @@ -3,39 +3,39 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { /// - /// 为 提供回调通知事件的扩展方法。 + /// 为 提供回调通知事件的扩展方法。 /// - public static partial class ByteDanceMicroAppProductApiClientEventExtensions + public static partial class DouyinMicroAppProductApiClientEventExtensions { /// - /// 从 JSON 反序列化得到 对象。 + /// 从 JSON 反序列化得到 对象。 /// /// /// /// /// - public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppProductApiClient client, string webhookJson) - where TEvent : ByteDanceMicroAppProductApiEvent, new() + public static TEvent DeserializeEventFromJson(this DouyinMicroAppProductApiClient client, string webhookJson) + where TEvent : DouyinMicroAppProductApiEvent, new() { return InnerDeserializeEventFromJson(client, webhookJson); } /// - /// 从 JSON 反序列化得到 对象。 + /// 从 JSON 反序列化得到 对象。 /// /// /// /// - public static ByteDanceMicroAppProductApiEvent DeserializeEventFromJson(this ByteDanceMicroAppProductApiClient client, string webhookJson) + public static DouyinMicroAppProductApiEvent DeserializeEventFromJson(this DouyinMicroAppProductApiClient client, string webhookJson) { - return InnerDeserializeEventFromJson(client, webhookJson); + return InnerDeserializeEventFromJson(client, webhookJson); } } - partial class ByteDanceMicroAppProductApiClientEventExtensions + partial class DouyinMicroAppProductApiClientEventExtensions { - private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppProductApiClient client, string webhookJson) - where TEvent : ByteDanceMicroAppProductApiEvent + private static TEvent InnerDeserializeEventFromJson(DouyinMicroAppProductApiClient client, string webhookJson) + where TEvent : DouyinMicroAppProductApiEvent { if (client is null) throw new ArgumentNullException(nameof(client)); if (webhookJson is null) throw new ArgumentNullException(webhookJson); @@ -46,7 +46,7 @@ private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppPro } catch (Exception ex) { - throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + throw new DouyinMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs index 29d98e77..37ca5542 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /sync_callback_url 接口的请求。 /// - public class ProductApiSyncCallbackUrlRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiSyncCallbackUrlRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置接受通知的 URL。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs index b82a107b..023a2dbc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /sync_callback_url 接口的响应。 /// - public class ProductApiSyncCallbackUrlResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiSyncCallbackUrlResponse : DouyinMicroAppProductApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs index 362b2a5c..a4183cc2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /add 接口的请求。 /// - public class ProductApiAddRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiAddRequest : DouyinMicroAppProductApiRequest { public static class Types { @@ -185,7 +185,7 @@ public class VideoAnchorInfo } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs index fba38d1a..c757035a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /add 接口的响应。 /// - public class ProductApiAddResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiAddResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs index c6231f8c..7baa9083 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_no_audit 接口的请求。 /// - public class ProductApiModifyNoAuditRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiModifyNoAuditRequest : DouyinMicroAppProductApiRequest { public static class Types { @@ -32,7 +32,7 @@ public class MiniAppPageInfo } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs index 0515055a..c38ea767 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_no_audit 接口的响应。 /// - public class ProductApiModifyNoAuditResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiModifyNoAuditResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs index 8cf99ad5..9202b7b8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify 接口的请求。 /// - public class ProductApiModifyRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiModifyRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs index 69022c5c..fa16381a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /modify 接口的响应。 /// - public class ProductApiModifyResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiModifyResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs index 21c5ed02..53a92b2c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs @@ -3,14 +3,14 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_status 接口的请求。 /// - public class ProductApiModifyStatusRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiModifyStatusRequest : DouyinMicroAppProductApiRequest { public static class Types { public class ProductStatusInfo { /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs index ad122b8c..f9710e86 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /modify_status 接口的响应。 /// - public class ProductApiModifyStatusResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiModifyStatusResponse : DouyinMicroAppProductApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs index c62e070d..eca99667 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_class_info 接口的请求。 /// - public class ProductApiQueryClassInfoRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiQueryClassInfoRequest : DouyinMicroAppProductApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs index db57e743..c7f4665a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_class_info 接口的响应。 /// - public class ProductApiQueryClassInfoResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiQueryClassInfoResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs index 8d704560..9cfff6e2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query 接口的请求。 /// - public class ProductApiQueryRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiQueryRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置商品 ID 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs index 9660f63b..bb2066d7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query 接口的响应。 /// - public class ProductApiQueryResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiQueryResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs index b27fdd53..fdfeb207 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_review 接口的请求。 /// - public class ProductApiQueryReviewRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiQueryReviewRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置商品 ID 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs index 1e5e41aa..d832bdd1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_review 接口的响应。 /// - public class ProductApiQueryReviewResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiQueryReviewResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs index 88d427d4..7a96dc45 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_template_info 接口的请求。 /// - public class ProductApiQueryTemplateInfoRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiQueryTemplateInfoRequest : DouyinMicroAppProductApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs index e1a0df9d..9701e9a5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_template_info 接口的响应。 /// - public class ProductApiQueryTemplateInfoResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiQueryTemplateInfoResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs index b38dcba1..3273852a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /add_qualification 接口的请求。 /// - public class ProductApiAddQualificationRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiAddQualificationRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs index 39c1dc6f..07782d0a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /add_qualification 接口的响应。 /// - public class ProductApiAddQualificationResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiAddQualificationResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs index ea00c3e0..92bd3681 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_qualification 接口的请求。 /// - public class ProductApiModifyQualificationRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiModifyQualificationRequest : DouyinMicroAppProductApiRequest { public static class Types { @@ -13,28 +13,91 @@ public class Qualification { public static class Types { - public class TeacherQualification : ProductApiAddQualificationRequest.Types.Qualification.Types.TeacherQualification + public class TeacherQualification { - public static new class Types + public static class Types { public class DouyinAuthInfo : ProductApiAddQualificationRequest.Types.Qualification.Types.TeacherQualification.Types.DouyinAuthInfo { } } + /// + /// 获取或设置姓名。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 获取或设置一级类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("first_class")] + [System.Text.Json.Serialization.JsonPropertyName("first_class")] + public int? FirstClassId { get; set; } + + /// + /// 获取或设置二级类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("second_class")] + [System.Text.Json.Serialization.JsonPropertyName("second_class")] + public int? SecondClassId { get; set; } + + /// + /// 获取或设置三级类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("third_class")] + [System.Text.Json.Serialization.JsonPropertyName("third_class")] + public int? ThirdClassId { get; set; } + + /// + /// 获取或设置身份证号码。 + /// + [Newtonsoft.Json.JsonProperty("ID_number")] + [System.Text.Json.Serialization.JsonPropertyName("ID_number")] + public string IdCardNumber { get; set; } = string.Empty; + + /// + /// 获取或设置身份证照片资源路径列表。 + /// + [Newtonsoft.Json.JsonProperty("ID_img_uris")] + [System.Text.Json.Serialization.JsonPropertyName("ID_img_uris")] + public IList IdCardImagePathList { get; set; } = new List(); + + /// + /// 获取或设置照片资源路径。 + /// + [Newtonsoft.Json.JsonProperty("img_uri")] + [System.Text.Json.Serialization.JsonPropertyName("img_uri")] + public string? ImagePath { get; set; } + + /// + /// 获取或设置昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = string.Empty; + + /// + /// 获取或设置简介。 + /// + [Newtonsoft.Json.JsonProperty("introduction")] + [System.Text.Json.Serialization.JsonPropertyName("introduction")] + public string Introduction { get; set; } = string.Empty; + /// /// 获取或设置材料列表。 /// [Newtonsoft.Json.JsonProperty("qualification_info_lst")] [System.Text.Json.Serialization.JsonPropertyName("qualification_info_lst")] - public new IList MaterialList { get; set; } = new List(); + public IList MaterialList { get; set; } = new List(); /// /// 获取或设置抖音授权信息列表。 /// [Newtonsoft.Json.JsonProperty("douyin_auth_info")] [System.Text.Json.Serialization.JsonPropertyName("douyin_auth_info")] - public new IList? DouyinAuthInfoList { get; set; } + public IList? DouyinAuthInfoList { get; set; } } public class InstitutionQualification : ProductApiAddQualificationRequest.Types.Qualification.Types.InstitutionQualification diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs index bdc74ca5..87084023 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_qualification 接口的响应。 /// - public class ProductApiModifyQualificationResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiModifyQualificationResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs index bb4d7a8a..a501e652 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_qualification 接口的请求。 /// - public class ProductApiQueryQualificationRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiQueryQualificationRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs index 395e343d..5aa1f19f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_qualification 接口的响应。 /// - public class ProductApiQueryQualificationResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiQueryQualificationResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs index e3487bb9..290c1db1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_refund_rule 接口的请求。 /// - public class ProductApiModifyRefundRuleRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiModifyRefundRuleRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置商品 ID 以及对应的规则 ID 字典。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs index 2a31ca0c..73731c1d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_refund_rule 接口的响应。 /// - public class ProductApiModifyRefundRuleResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiModifyRefundRuleResponse : DouyinMicroAppProductApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs index 97b3b61c..baca5a06 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_refund_rule_meta 接口的请求。 /// - public class ProductApiQueryRefundRuleMetaRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiQueryRefundRuleMetaRequest : DouyinMicroAppProductApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs index 3f178a16..83359a11 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_refund_rule_meta 接口的响应。 /// - public class ProductApiQueryRefundRuleMetaResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiQueryRefundRuleMetaResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs index d4135def..f62ae776 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /query_resource_status 接口的请求。 /// - public class ProductApiQueryResourceStatusRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiQueryResourceStatusRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置资源文件路径。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs index 9c912c03..0853a239 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /query_resource_status 接口的响应。 /// - public class ProductApiQueryResourceStatusResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiQueryResourceStatusResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs index a167702f..3f7f8492 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /upload_resource 接口的请求。 /// - public class ProductApiUploadResourceRequest : ByteDanceMicroAppProductApiRequest + public class ProductApiUploadResourceRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置资源类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs index b085f0f9..98cc25f6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /upload_resource 接口的响应。 /// - public class ProductApiUploadResourceResponse : ByteDanceMicroAppProductApiResponse + public class ProductApiUploadResourceResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Settings/Credentials.cs index 0ed92f95..0bde3496 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Settings/Credentials.cs @@ -5,16 +5,16 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Setting public class Credentials { /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string AppId { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string AppSecret { get; } - internal Credentials(ByteDanceMicroAppProductApiClientOptions options) + internal Credentials(DouyinMicroAppProductApiClientOptions options) { if (options is null) throw new ArgumentNullException(nameof(options)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClient.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClient.cs index 651d36f3..201e25ae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClient.cs @@ -7,20 +7,20 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// - /// 一个字节小程序泛知识角色系统 API HTTP 客户端。 + /// 一个抖音小程序泛知识角色系统 API HTTP 客户端。 /// - public class ByteDanceMicroAppRoleApiClient : CommonClientBase, ICommonClient + public class DouyinMicroAppRoleApiClient : CommonClientBase, ICommonClient { /// - /// 获取当前客户端使用的字节小程序凭证。 + /// 获取当前客户端使用的抖音小程序凭证。 /// public Settings.Credentials Credentials { get; } /// - /// 用指定的配置项初始化 类的新实例。 + /// 用指定的配置项初始化 类的新实例。 /// /// 配置项。 - public ByteDanceMicroAppRoleApiClient(ByteDanceMicroAppRoleApiClientOptions options) + public DouyinMicroAppRoleApiClient(DouyinMicroAppRoleApiClientOptions options) : this(options, null) { } @@ -31,14 +31,14 @@ public ByteDanceMicroAppRoleApiClient(ByteDanceMicroAppRoleApiClientOptions opti /// /// /// - internal protected ByteDanceMicroAppRoleApiClient(ByteDanceMicroAppRoleApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) + internal protected DouyinMicroAppRoleApiClient(DouyinMicroAppRoleApiClientOptions options, HttpClient? httpClient, bool disposeClient = true) : base(httpClient, disposeClient) { if (options is null) throw new ArgumentNullException(nameof(options)); Credentials = new RoleApi.Settings.Credentials(options); - FlurlClient.BaseUrl = options.Endpoints ?? ByteDanceMicroAppRoleApiEndpoints.DEFAULT; + FlurlClient.BaseUrl = options.Endpoints ?? DouyinMicroAppRoleApiEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); } @@ -49,7 +49,7 @@ internal protected ByteDanceMicroAppRoleApiClient(ByteDanceMicroAppRoleApiClient /// /// /// - public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppRoleApiRequest request, HttpMethod httpMethod, params object[] urlSegments) + public IFlurlRequest CreateFlurlRequest(DouyinMicroAppRoleApiRequest request, HttpMethod httpMethod, params object[] urlSegments) { IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); @@ -65,7 +65,7 @@ public IFlurlRequest CreateFlurlRequest(ByteDanceMicroAppRoleApiRequest request, /// /// public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppRoleApiResponse, new() + where T : DouyinMicroAppRoleApiResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); @@ -82,7 +82,7 @@ public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpCo /// /// public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) - where T : ByteDanceMicroAppRoleApiResponse, new() + where T : DouyinMicroAppRoleApiResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientOptions.cs similarity index 54% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientOptions.cs index 9d4d4423..ed36ff13 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientOptions.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// - /// 一个用于构造 时使用的配置项。 + /// 一个用于构造 时使用的配置项。 /// - public class ByteDanceMicroAppRoleApiClientOptions + public class DouyinMicroAppRoleApiClientOptions { /// /// 获取或设置请求超时时间(单位:毫秒)。 @@ -12,18 +12,18 @@ public class ByteDanceMicroAppRoleApiClientOptions public int Timeout { get; set; } = 30 * 1000; /// - /// 获取或设置字节小程序泛知识角色系统 API 域名。 - /// 默认值: + /// 获取或设置抖音小程序泛知识角色系统 API 域名。 + /// 默认值: /// - public string Endpoints { get; set; } = ByteDanceMicroAppRoleApiEndpoints.DEFAULT; + public string Endpoints { get; set; } = DouyinMicroAppRoleApiEndpoints.DEFAULT; /// - /// 获取或设置字节小程序 AppId。 + /// 获取或设置抖音小程序 AppId。 /// public string AppId { get; set; } = default!; /// - /// 获取或设置字节小程序 AppSecret。 + /// 获取或设置抖音小程序 AppSecret。 /// public string AppSecret { get; set; } = default!; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiEndpoints.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiEndpoints.cs index 70a7a214..8409ecaf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiEndpoints.cs @@ -1,9 +1,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// - /// 字节小程序角色系统 API 接口域名。 + /// 抖音小程序角色系统 API 接口域名。 /// - public class ByteDanceMicroAppRoleApiEndpoints + public class DouyinMicroAppRoleApiEndpoints { /// /// 接口域名(默认)。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiRequest.cs similarity index 57% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiRequest.cs index e7c94884..bcc78c74 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiRequest.cs @@ -1,19 +1,19 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// - /// 字节小程序泛知识角色系统 API 请求的基类。 + /// 抖音小程序泛知识角色系统 API 请求的基类。 /// - public class ByteDanceMicroAppRoleApiRequest : CommonRequestBase, ICommonRequest + public class DouyinMicroAppRoleApiRequest : CommonRequestBase, ICommonRequest { /// - /// 获取或设置字节小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置抖音小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public virtual string? AppId { get; set; } /// - /// 获取或设置字节小程序的 AccessToken。 + /// 获取或设置抖音小程序的 AccessToken。 /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiResponse.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiResponse.cs index 6045b224..99de7a93 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/ByteDanceMicroAppRoleApiResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiResponse.cs @@ -1,33 +1,33 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { /// - /// 字节小程序泛知识角色系统 API 响应的基类。 + /// 抖音小程序泛知识角色系统 API 响应的基类。 /// - public abstract class ByteDanceMicroAppRoleApiResponse : CommonResponseBase, ICommonResponse + public abstract class DouyinMicroAppRoleApiResponse : CommonResponseBase, ICommonResponse { /// - /// 获取字节小程序 API 返回的错误码。 + /// 获取抖音小程序 API 返回的错误码。 /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public virtual int ErrorNumber { get; set; } /// - /// 获取字节小程序 API 返回的错误描述。 + /// 获取抖音小程序 API 返回的错误描述。 /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public virtual string? ErrorTips { get; set; } /// - /// 获取字节小程序 API 返回的错误信息。 + /// 获取抖音小程序 API 返回的错误信息。 /// [Newtonsoft.Json.JsonProperty("err")] [System.Text.Json.Serialization.JsonPropertyName("err")] public virtual ByteDanceMicroAppRoleApiResponseError? Error { get; set; } /// - /// 获取一个值,该值指示调用字节小程序 API 是否成功。 + /// 获取一个值,该值指示调用抖音小程序 API 是否成功。 /// ///(即 HTTP 状态码为 200,且 值为 0、 值为 0) /// @@ -42,14 +42,14 @@ public override bool IsSuccessful() public class ByteDanceMicroAppRoleApiResponseError { /// - /// 获取字节小程序 API 返回的错误码。 + /// 获取抖音小程序 API 返回的错误码。 /// [Newtonsoft.Json.JsonProperty("err_code")] [System.Text.Json.Serialization.JsonPropertyName("err_code")] public int ErrorCode { get; set; } /// - /// 获取字节小程序 API 返回的错误描述。 + /// 获取抖音小程序 API 返回的错误描述。 /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs index ff71a313..bec44aa3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/ByteDanceMicroAppRoleApiClientExecuteRoleExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi { - public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions + public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions { /// /// 异步调用 [POST] /upload_material 接口。 @@ -19,7 +19,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityUploadMaterialAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityUploadMaterialRequest request,CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUploadMaterialAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUploadMaterialRequest request,CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -54,7 +54,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityQueryEntityInfoAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityQueryEntityInfoRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityQueryEntityInfoAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityQueryEntityInfoRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -79,7 +79,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityEnableMountScopeAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityEnableMountScopeRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityEnableMountScopeAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityEnableMountScopeRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -105,7 +105,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityByPartnerAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityByPartnerRequest request,CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityByPartnerAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityByPartnerRequest request,CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -130,7 +130,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityBySelfAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityBySelfRequest request,CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityBySelfAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityBySelfRequest request,CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -156,7 +156,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityGetBasicAuthAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityGetBasicAuthRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityGetBasicAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetBasicAuthRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -181,7 +181,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityUpdateBasicAuthAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityUpdateBasicAuthRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUpdateBasicAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUpdateBasicAuthRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -206,7 +206,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityGetClassAuthAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityGetClassAuthRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityGetClassAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetClassAuthRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -231,7 +231,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityUpdateClassAuthAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityUpdateClassAuthRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUpdateClassAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUpdateClassAuthRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -256,7 +256,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityAddClassAuthAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityAddClassAuthRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityAddClassAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityAddClassAuthRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -281,7 +281,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityGetAuditDetailAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityGetAuditDetailRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityGetAuditDetailAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetAuditDetailRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -308,7 +308,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityAddRoleAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityAddRoleRequest request,CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityAddRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityAddRoleRequest request,CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -333,7 +333,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityBindRoleAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityBindRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityBindRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityBindRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -358,7 +358,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityUnbindRoleAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityUnbindRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUnbindRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUnbindRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -383,7 +383,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityGetBindListAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityGetBindListRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityGetBindListAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetBindListRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -408,7 +408,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityAuthRoleAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityAuthRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityAuthRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityAuthRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -433,7 +433,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityUnauthRoleAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityUnauthRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUnauthRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUnauthRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -458,7 +458,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityUpdateAuthLetterAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityUpdateAuthLetterRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUpdateAuthLetterAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUpdateAuthLetterRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -483,7 +483,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityGetAppIdAuthAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityGetAppIdAuthRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityGetAppIdAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetAppIdAuthRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -510,7 +510,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityActivateMerchantCodeAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityActivateMerchantCodeRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityActivateMerchantCodeAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityActivateMerchantCodeRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -535,7 +535,7 @@ public static class ByteDanceMicroAppRoleApiClientExecuteRoleExtensions /// /// /// - public static async Task ExecuteAuthEntityQueryMerchantCodeStatusAsync(this ByteDanceMicroAppRoleApiClient client, Models.AuthEntityQueryMerchantCodeStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityQueryMerchantCodeStatusAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityQueryMerchantCodeStatusRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs index 9221233f..a64476d7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /add_class_auth 接口的请求。 /// - public class AuthEntityAddClassAuthRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityAddClassAuthRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs index 16fd6cb9..1a0fae00 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityAddClassAuthResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /add_class_auth 接口的响应。 /// - public class AuthEntityAddClassAuthResponse: ByteDanceMicroAppRoleApiResponse + public class AuthEntityAddClassAuthResponse: DouyinMicroAppRoleApiResponse { /// /// 获取或设置类目审核任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs index 650eeb08..3e17ecc2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /bypartner 接口的请求。 /// - public class AuthEntityByPartnerRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityByPartnerRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs index 377542ad..02aa4c39 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityByPartnerResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /bypartner 接口的响应。 /// - public class AuthEntityByPartnerResponse: ByteDanceMicroAppRoleApiResponse + public class AuthEntityByPartnerResponse: DouyinMicroAppRoleApiResponse { /// /// 获取或设置基础认证任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs index 884ee502..b3b06e26 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /byself 接口的请求。 /// - public class AuthEntityBySelfRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityBySelfRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs index 91abd3b2..a87868b8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityBySelfResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /byself 接口的响应。 /// - public class AuthEntityBySelfResponse: ByteDanceMicroAppRoleApiResponse + public class AuthEntityBySelfResponse: DouyinMicroAppRoleApiResponse { /// /// 获取或设置基础认证任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs index 31928c30..371b9a17 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_audit_detail 接口的请求。 /// - public class AuthEntityGetAuditDetailRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityGetAuditDetailRequest : DouyinMicroAppRoleApiRequest { /// /// 获取或设置审核类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs index da811700..f8574e40 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetAuditDetailResponse.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_audit_detail 接口的响应。 /// - public class AuthEntityGetAuditDetailResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityGetAuditDetailResponse : DouyinMicroAppRoleApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs index f4add49e..7a87cb10 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_basic_auth 接口的请求。 /// - public class AuthEntityGetBasicAuthRequest: ByteDanceMicroAppRoleApiRequest + public class AuthEntityGetBasicAuthRequest: DouyinMicroAppRoleApiRequest { /// /// 获取或设置实体 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs index ce49d645..6393922d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetBasicAuthResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_basic_auth 接口的响应。 /// - public class AuthEntityGetBasicAuthResponse: ByteDanceMicroAppRoleApiResponse + public class AuthEntityGetBasicAuthResponse: DouyinMicroAppRoleApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs index dc4860cb..dabc9441 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_class_auth 接口的请求。 /// - public class AuthEntityGetClassAuthRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityGetClassAuthRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs index f03ae8c3..483d2438 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityGetClassAuthResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_class_auth 接口的响应。 /// - public class AuthEntityGetClassAuthResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityGetClassAuthResponse : DouyinMicroAppRoleApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs index 70348236..eb9a1a57 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /update_basic_auth 接口的请求。 /// - public class AuthEntityUpdateBasicAuthRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityUpdateBasicAuthRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs index 35042f09..f4ffb30c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateBasicAuthResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /update_basic_auth 接口的响应。 /// - public class AuthEntityUpdateBasicAuthResponse: ByteDanceMicroAppRoleApiResponse + public class AuthEntityUpdateBasicAuthResponse: DouyinMicroAppRoleApiResponse { /// /// 获取或设置基础认证任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs index befba07b..181181e3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /update_class_auth 接口的请求。 /// - public class AuthEntityUpdateClassAuthRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityUpdateClassAuthRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs index b080cbaa..dcc53628 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Auth/AuthEntityUpdateClassAuthResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /update_class_auth 接口的响应。 /// - public class AuthEntityUpdateClassAuthResponse: ByteDanceMicroAppRoleApiResponse + public class AuthEntityUpdateClassAuthResponse: DouyinMicroAppRoleApiResponse { /// /// 获取或设置类目审核任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs index 8b791e9c..d5c73d32 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /enable_mountscope 接口的请求。 /// - public class AuthEntityEnableMountScopeRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityEnableMountScopeRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs index 3a7703ee..30e801e9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /enable_mountscope 接口的响应。 /// - public class AuthEntityEnableMountScopeResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityEnableMountScopeResponse : DouyinMicroAppRoleApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs index 0e1e91ae..228e66c7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /query_entity_info 接口的请求。 /// - public class AuthEntityQueryEntityInfoRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityQueryEntityInfoRequest : DouyinMicroAppRoleApiRequest { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs index 3fde0ef1..fcd486a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /query_entity_info 接口的响应。 /// - public class AuthEntityQueryEntityInfoResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityQueryEntityInfoResponse : DouyinMicroAppRoleApiResponse { /// /// 获取或设置实体 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs index 35b6cc10..0952778e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /upload_material 接口的请求。 /// - public class AuthEntityUploadMaterialRequest: ByteDanceMicroAppRoleApiRequest + public class AuthEntityUploadMaterialRequest: DouyinMicroAppRoleApiRequest { /// /// 获取或设置文件类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs index 7db50096..3bbf1997 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityUploadMaterialResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /upload_material 接口的响应。 /// - public class AuthEntityUploadMaterialResponse: ByteDanceMicroAppRoleApiResponse + public class AuthEntityUploadMaterialResponse: DouyinMicroAppRoleApiResponse { /// /// 获取或设置资源路径。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs index 1f9a1dc5..d105e7d4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /activate_merchantcode 接口的请求。 /// - public class AuthEntityActivateMerchantCodeRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityActivateMerchantCodeRequest : DouyinMicroAppRoleApiRequest { /// /// 获取或设置证件号码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs index 9537fae6..ba04eeaa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityActivateMerchantCodeResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /activate_merchantcode 接口的响应。 /// - public class AuthEntityActivateMerchantCodeResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityActivateMerchantCodeResponse : DouyinMicroAppRoleApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs index 8096a3e2..eaca7efe 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /query_merchantcode_status 接口的请求。 /// - public class AuthEntityQueryMerchantCodeStatusRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityQueryMerchantCodeStatusRequest : DouyinMicroAppRoleApiRequest { /// /// 获取或设置证件号码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs index e4b0f21c..be957e84 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/MerchantCode/AuthEntityQueryMerchantCodeStatusResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /query_merchantcode_status 接口的响应。 /// - public class AuthEntityQueryMerchantCodeStatusResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityQueryMerchantCodeStatusResponse : DouyinMicroAppRoleApiResponse { /// /// 获取或设置激活状态。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs index 3933c073..284c8f86 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /add_role 接口的请求。 /// - public class AuthEntityAddRoleRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityAddRoleRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs index dccd5d2e..940013c1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAddRoleResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /add_role 接口的响应。 /// - public class AuthEntityAddRoleResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityAddRoleResponse : DouyinMicroAppRoleApiResponse { /// /// 获取或设置类目认证任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs index 4a414b21..0668e3e1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /auth_role 接口的请求。 /// - public class AuthEntityAuthRoleRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityAuthRoleRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs index 359aaafb..ff8a61ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityAuthRoleResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /auth_role 接口的响应。 /// - public class AuthEntityAuthRoleResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityAuthRoleResponse : DouyinMicroAppRoleApiResponse { /// /// 获取或设置绑定审核任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs index e62012ba..00d91ec1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /bind_role 接口的请求。 /// - public class AuthEntityBindRoleRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityBindRoleRequest : DouyinMicroAppRoleApiRequest { /// /// 获取或设置商户实体 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs index dd298d62..003cf1a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityBindRoleResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /bind_role 接口的响应。 /// - public class AuthEntityBindRoleResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityBindRoleResponse : DouyinMicroAppRoleApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs index 75821981..2808109b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_appid_auth 接口的请求。 /// - public class AuthEntityGetAppIdAuthRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityGetAppIdAuthRequest : DouyinMicroAppRoleApiRequest { /// /// 获取或设置服务商实体 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs index bdd25ad1..506dcfde 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetAppIdAuthResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_appid_auth 接口的响应。 /// - public class AuthEntityGetAppIdAuthResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityGetAppIdAuthResponse : DouyinMicroAppRoleApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs index 26bc0e37..710d546e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_bind_list 接口的请求。 /// - public class AuthEntityGetBindListRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityGetBindListRequest : DouyinMicroAppRoleApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs index 774a0424..a1e76d8a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityGetBindListResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /get_bind_list 接口的响应。 /// - public class AuthEntityGetBindListResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityGetBindListResponse : DouyinMicroAppRoleApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs index 175bc091..01731c8d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /un_auth_role 接口的请求。 /// - public class AuthEntityUnauthRoleRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityUnauthRoleRequest : DouyinMicroAppRoleApiRequest { /// /// 获取或设置服务商实体 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs index 352e6ccf..69022a97 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnauthRoleResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /un_auth_role 接口的响应。 /// - public class AuthEntityUnauthRoleResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityUnauthRoleResponse : DouyinMicroAppRoleApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs index 36d7d314..f4325225 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /unbind_role 接口的请求。 /// - public class AuthEntityUnbindRoleRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityUnbindRoleRequest : DouyinMicroAppRoleApiRequest { /// /// 获取或设置商户实体 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs index 60e3648f..bd1dadf7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUnbindRoleResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /unbind_role 接口的响应。 /// - public class AuthEntityUnbindRoleResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityUnbindRoleResponse : DouyinMicroAppRoleApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs index 398c7429..44e40b2c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /update_authletter 接口的请求。 /// - public class AuthEntityUpdateAuthLetterRequest : ByteDanceMicroAppRoleApiRequest + public class AuthEntityUpdateAuthLetterRequest : DouyinMicroAppRoleApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs index 80f6d0cd..64108faf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Role/AuthEntityUpdateAuthLetterResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models /// /// 表示 [POST] /update_authletter 接口的响应。 /// - public class AuthEntityUpdateAuthLetterResponse : ByteDanceMicroAppRoleApiResponse + public class AuthEntityUpdateAuthLetterResponse : DouyinMicroAppRoleApiResponse { /// /// 获取或设置审核任务 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Settings/Credentials.cs index 4a935061..8076081c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Settings/Credentials.cs @@ -5,16 +5,16 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Settings public class Credentials { /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string AppId { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string AppSecret { get; } - internal Credentials(ByteDanceMicroAppRoleApiClientOptions options) + internal Credentials(DouyinMicroAppRoleApiClientOptions options) { if (options is null) throw new ArgumentNullException(nameof(options)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientEventExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientEventExtensions.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientEventExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientEventExtensions.cs index b78cf395..1f7ef113 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientEventExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientEventExtensions.cs @@ -7,56 +7,56 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp using SKIT.FlurlHttpClient.Primitives; /// - /// 为 提供回调通知事件的扩展方法。 + /// 为 提供回调通知事件的扩展方法。 /// - public static partial class ByteDanceMicroAppClientEventExtensions + public static partial class DouyinMicroAppClientEventExtensions { /// - /// 从 JSON 反序列化得到 对象。 + /// 从 JSON 反序列化得到 对象。 /// /// /// /// /// - public static TEvent DeserializeEventFromJson(this ByteDanceMicroAppClient client, string webhookJson) - where TEvent : ByteDanceMicroAppEvent, new() + public static TEvent DeserializeEventFromJson(this DouyinMicroAppClient client, string webhookJson) + where TEvent : DouyinMicroAppEvent, new() { return InnerDeserializeEventFromJson(client, webhookJson); } /// - /// 从 JSON 反序列化得到 对象。 + /// 从 JSON 反序列化得到 对象。 /// /// /// /// - public static ByteDanceMicroAppEvent DeserializeEventFromJson(this ByteDanceMicroAppClient client, string webhookJson) + public static DouyinMicroAppEvent DeserializeEventFromJson(this DouyinMicroAppClient client, string webhookJson) { - return InnerDeserializeEventFromJson(client, webhookJson); + return InnerDeserializeEventFromJson(client, webhookJson); } /// - /// 从 XML 反序列化得到 对象。 + /// 从 XML 反序列化得到 对象。 /// /// /// /// /// - public static TEvent DeserializeEventFromXml(this ByteDanceMicroAppClient client, string webhookXml) - where TEvent : ByteDanceMicroAppEvent, new() + public static TEvent DeserializeEventFromXml(this DouyinMicroAppClient client, string webhookXml) + where TEvent : DouyinMicroAppEvent, new() { return InnerDeserializeEventFromXml(client, webhookXml); } /// - /// 从 XML 反序列化得到 对象。 + /// 从 XML 反序列化得到 对象。 /// /// /// /// - public static ByteDanceMicroAppEvent DeserializeEventFromXml(this ByteDanceMicroAppClient client, string webhookXml) + public static DouyinMicroAppEvent DeserializeEventFromXml(this DouyinMicroAppClient client, string webhookXml) { - return InnerDeserializeEventFromXml(client, webhookXml); + return InnerDeserializeEventFromXml(client, webhookXml); } /// @@ -72,7 +72,7 @@ public static ByteDanceMicroAppEvent DeserializeEventFromXml(this ByteDanceMicro /// 头条回调通知中的 "msg" 查询参数。 /// 头条回调通知中的 "signature" 查询参数。 /// - public static ErroredResult VerifyEventSignatureForEcho(this ByteDanceMicroAppClient client, string webhookTimestamp, string webhookNonce, string webhookMsg, string webhookSignature) + public static ErroredResult VerifyEventSignatureForEcho(this DouyinMicroAppClient client, string webhookTimestamp, string webhookNonce, string webhookMsg, string webhookSignature) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -108,7 +108,7 @@ public static ErroredResult VerifyEventSignatureForEcho(this ByteDanceMicroAppCl /// /// /// - public static ErroredResult VerifyEventSignatureFromJson(this ByteDanceMicroAppClient client, string webhookJson) + public static ErroredResult VerifyEventSignatureFromJson(this DouyinMicroAppClient client, string webhookJson) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -148,7 +148,7 @@ public static ErroredResult VerifyEventSignatureFromJson(this ByteDanceMicroAppC /// /// /// - public static ErroredResult VerifyEventSignatureFromXml(this ByteDanceMicroAppClient client, string webhookXml) + public static ErroredResult VerifyEventSignatureFromXml(this DouyinMicroAppClient client, string webhookXml) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -179,7 +179,7 @@ public static ErroredResult VerifyEventSignatureFromXml(this ByteDanceMicroAppCl } } - partial class ByteDanceMicroAppClientEventExtensions + partial class DouyinMicroAppClientEventExtensions { private class InnerEncryptedEvent { @@ -205,8 +205,8 @@ private class InnerEncryptedEvent public string Signature { get; set; } = default!; } - private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppClient client, string webhookJson) - where TEvent : ByteDanceMicroAppEvent + private static TEvent InnerDeserializeEventFromJson(DouyinMicroAppClient client, string webhookJson) + where TEvent : DouyinMicroAppEvent { if (client is null) throw new ArgumentNullException(nameof(client)); if (webhookJson is null) throw new ArgumentNullException(webhookJson); @@ -221,18 +221,18 @@ private static TEvent InnerDeserializeEventFromJson(ByteDanceMicroAppCli return client.JsonSerializer.Deserialize(webhookJson); } - catch (ByteDanceMicroAppException) + catch (DouyinMicroAppException) { throw; } catch (Exception ex) { - throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + throw new DouyinMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); } } - private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppClient client, string webhookXml) - where TEvent : ByteDanceMicroAppEvent + private static TEvent InnerDeserializeEventFromXml(DouyinMicroAppClient client, string webhookXml) + where TEvent : DouyinMicroAppEvent { if (client is null) throw new ArgumentNullException(nameof(client)); if (webhookXml is null) throw new ArgumentNullException(webhookXml); @@ -242,20 +242,20 @@ private static TEvent InnerDeserializeEventFromXml(ByteDanceMicroAppClie if (webhookXml.Contains("") && webhookXml.Contains("")) { if (!Utilities.DyMsgCryptor.TryParseXml(webhookXml, out string encryptedXml)) - throw new ByteDanceMicroAppException("Failed to decrypt event data, because the encrypted data is empty."); + throw new DouyinMicroAppException("Failed to decrypt event data, because the encrypted data is empty."); webhookXml = Utilities.DyMsgCryptor.AESDecrypt(cipherText: encryptedXml, encodingAESKey: client.Credentials.PushEncodingAESKey!, out _); } return Utilities.XmlHelper.Deserialize(webhookXml); } - catch (ByteDanceMicroAppException) + catch (DouyinMicroAppException) { throw; } catch (Exception ex) { - throw new ByteDanceMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); + throw new DouyinMicroAppException("Failed to deserialize event data. Please see the inner exception for more details.", ex); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsECPayExtensions.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsECPayExtensions.cs index fb47947c..04b1aad8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsECPayExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsECPayExtensions.cs @@ -9,10 +9,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class ByteDanceMicroAppClientExecuteAppsECPayExtensions + public static class DouyinMicroAppClientExecuteAppsECPayExtensions { - private static string GenerateRequestSignature(this ByteDanceMicroAppClient client, TRequest request, Dictionary? extraParamMap = null) - where TRequest : ByteDanceMicroAppRequest + private static string GenerateRequestSignature(DouyinMicroAppClient client, TRequest request, Dictionary? extraParams = null) + where TRequest : DouyinMicroAppRequest { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -25,9 +25,9 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC IList tempList = new List() { client.Credentials.ECPaySalt! }; IDictionary paramMap = Newtonsoft.Json.JsonConvert.DeserializeObject>(json)!; - if (extraParamMap is not null) + if (extraParams is not null) { - foreach (KeyValuePair item in extraParamMap) + foreach (KeyValuePair item in extraParams) { paramMap[item.Key] = item.Value; } @@ -79,7 +79,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSCreateMerchantAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSCreateMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSCreateMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSCreateMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -88,7 +88,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "create_merchant"); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -104,7 +104,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSImageUploadAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSImageUploadRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSImageUploadAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSImageUploadRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -126,13 +126,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSQueryMerchantStatusAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSQueryMerchantStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSQueryMerchantStatusAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryMerchantStatusRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_status"); @@ -154,7 +154,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSAddMerchantAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSAddMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSAddMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAddMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -180,7 +180,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSGetAppMerchantAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSGetAppMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSGetAppMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSGetAppMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -189,7 +189,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.ComponentAppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "get_app_merchant"); @@ -209,13 +209,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSAppAddSubMerchantAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSAppAddSubMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSAppAddSubMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAppAddSubMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "app_add_sub_merchant"); @@ -235,7 +235,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSAddSubMerchantAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSAddSubMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSAddSubMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAddSubMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -244,7 +244,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.ComponentAppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_sub_merchant"); @@ -265,13 +265,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSQueryMerchantBalanceAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSQueryMerchantBalanceRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSQueryMerchantBalanceAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryMerchantBalanceRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_balance"); @@ -290,13 +290,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSMerchantWithdrawAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSMerchantWithdrawRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSMerchantWithdrawAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSMerchantWithdrawRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "merchant_withdraw"); @@ -315,13 +315,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySaaSQueryWithdrawOrderAsync(this ByteDanceMicroAppClient client, Models.AppsECPaySaaSQueryWithdrawOrderRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSQueryWithdrawOrderAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryWithdrawOrderRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_withdraw_order"); @@ -343,7 +343,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayCreateOrderV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayCreateOrderV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayCreateOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateOrderV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -352,7 +352,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_order"); @@ -371,7 +371,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayQueryOrderV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayQueryOrderV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryOrderV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -380,7 +380,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_order"); @@ -399,7 +399,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayCreateRefundV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayCreateRefundV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayCreateRefundV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateRefundV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -408,7 +408,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_refund"); @@ -427,7 +427,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayQueryRefundV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayQueryRefundV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryRefundV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryRefundV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -436,7 +436,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_refund"); @@ -455,7 +455,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPaySettleV1Async(this ByteDanceMicroAppClient client, Models.AppsECPaySettleV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySettleV1Async(this DouyinMicroAppClient client, Models.AppsECPaySettleV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -464,7 +464,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "settle"); @@ -483,7 +483,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayQuerySettleV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayQuerySettleV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQuerySettleV1Async(this DouyinMicroAppClient client, Models.AppsECPayQuerySettleV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -492,7 +492,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_settle"); @@ -511,7 +511,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayCreateReturnV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayCreateReturnV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayCreateReturnV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateReturnV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -520,7 +520,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_return"); @@ -539,7 +539,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayQueryReturnV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayQueryReturnV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryReturnV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryReturnV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -548,7 +548,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_return"); @@ -567,7 +567,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsECPayQueryPlatformOrderV1Async(this ByteDanceMicroAppClient client, Models.AppsECPayQueryPlatformOrderV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryPlatformOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryPlatformOrderV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -576,7 +576,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request); + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_platform_order"); @@ -597,7 +597,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsBillsAsync(this ByteDanceMicroAppClient client, Models.AppsBillsRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsBillsAsync(this DouyinMicroAppClient client, Models.AppsBillsRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -607,7 +607,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (request.Signature is null) { - request.Signature = client.GenerateRequestSignature(request, new () + request.Signature = GenerateRequestSignature(client, request, new () { { "merchant_id" , request.MerchantId }, { "bill_date" , request.DateString }, @@ -640,7 +640,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsFundBillsAsync(this ByteDanceMicroAppClient client, Models.AppsFundBillsRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsFundBillsAsync(this DouyinMicroAppClient client, Models.AppsFundBillsRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -650,7 +650,7 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC if (request.Signature is null) { - request.Signature = client.GenerateRequestSignature(request, new() + request.Signature = GenerateRequestSignature(client, request, new() { { "merchant_id" , request.MerchantId }, { "bill_date" , request.DateString }, diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index 27c9e5cc..63282916 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -8,7 +8,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class ByteDanceMicroAppClientExecuteAppsExtensions + public static class DouyinMicroAppClientExecuteAppsExtensions { /// /// 异步调用 [POST] /apps/v2/token 接口。 @@ -23,7 +23,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsTokenV2Async(this ByteDanceMicroAppClient client, Models.AppsTokenV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsTokenV2Async(this DouyinMicroAppClient client, Models.AppsTokenV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -53,7 +53,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsJsCode2SessionV2Async(this ByteDanceMicroAppClient client, Models.AppsJsCode2SessionV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsJsCode2SessionV2Async(this DouyinMicroAppClient client, Models.AppsJsCode2SessionV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -82,7 +82,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityUploadMaterialV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityUploadMaterialV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityUploadMaterialV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUploadMaterialV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -111,7 +111,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAwemePermissionListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAwemePermissionListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAwemePermissionListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemePermissionListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -134,7 +134,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityApplyAwemePermissionV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityApplyAwemePermissionV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityApplyAwemePermissionV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyAwemePermissionV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -157,7 +157,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryScopeQuotaDetailV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryScopeQuotaDetailV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryScopeQuotaDetailV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryScopeQuotaDetailV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -181,7 +181,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityApplyScopeQuotaV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityApplyScopeQuotaV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityApplyScopeQuotaV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyScopeQuotaV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -204,7 +204,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAwemeVideoKeywordListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAwemeVideoKeywordListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAwemeVideoKeywordListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemeVideoKeywordListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -229,7 +229,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityAddAwemeVideoKeywordV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityAddAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityAddAwemeVideoKeywordV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -252,7 +252,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityDeleteAwemeVideoKeywordV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityDeleteAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityDeleteAwemeVideoKeywordV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -277,7 +277,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityAddAliasV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityAddAliasV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityAddAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAliasV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -300,7 +300,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAliasListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAliasListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAliasListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAliasListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -323,7 +323,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityModifyAliasV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityModifyAliasV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityModifyAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityModifyAliasV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -346,7 +346,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityDeleteAliasV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityDeleteAliasV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityDeleteAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAliasV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -369,7 +369,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacitySetSearchTagV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacitySetSearchTagV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacitySetSearchTagV1Async(this DouyinMicroAppClient client, Models.AppsCapacitySetSearchTagV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -392,7 +392,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQuerySearchTagListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQuerySearchTagListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQuerySearchTagListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySearchTagListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -417,7 +417,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityBindAwemeUserV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityBindAwemeUserV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityBindAwemeUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityBindAwemeUserV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -440,7 +440,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityUnbindAwemeUserV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityUnbindAwemeUserV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityUnbindAwemeUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUnbindAwemeUserV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -463,7 +463,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityGetAwemeUserBindQrcodeV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityGetAwemeUserBindQrcodeV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityGetAwemeUserBindQrcodeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetAwemeUserBindQrcodeV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -487,7 +487,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAwemeUserBindListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAwemeUserBindListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAwemeUserBindListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemeUserBindListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -520,7 +520,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityApplyCapacityV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityApplyCapacityV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityApplyCapacityV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyCapacityV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -547,7 +547,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryApplyStatusV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryApplyStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryApplyStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryApplyStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -571,7 +571,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityBindSelfMountUserV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityBindSelfMountUserV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityBindSelfMountUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityBindSelfMountUserV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -594,7 +594,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityUnbindSelfMountUserV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityUnbindSelfMountUserV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityUnbindSelfMountUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUnbindSelfMountUserV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -617,7 +617,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityGetSelfMountBindQrcodeV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityGetSelfMountBindQrcodeV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityGetSelfMountBindQrcodeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetSelfMountBindQrcodeV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -641,7 +641,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQuerySelfMountUserListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQuerySelfMountUserListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQuerySelfMountUserListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySelfMountUserListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -668,7 +668,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryCapcutInfoV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryCapcutInfoV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryCapcutInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCapcutInfoV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -691,7 +691,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryCapcutTemplateListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryCapcutTemplateListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryCapcutTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCapcutTemplateListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -716,7 +716,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityUpdateCapcutTemplateStatusV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityUpdateCapcutTemplateStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityUpdateCapcutTemplateStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateCapcutTemplateStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -742,7 +742,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQuerySimpleQrcodeBindListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQuerySimpleQrcodeBindListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQuerySimpleQrcodeBindListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySimpleQrcodeBindListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -767,7 +767,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityAddSimpleQrcodeBindV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityAddSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityAddSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -790,7 +790,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -813,7 +813,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindStatusV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -836,7 +836,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityDeleteSimpleQrcodeBindV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityDeleteSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityDeleteSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -861,7 +861,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQuerySubscribeNotificationTemplateListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQuerySubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQuerySubscribeNotificationTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -894,7 +894,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAppSubscribeNotificationTemplateV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -923,7 +923,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -951,7 +951,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityAddAppSubscribeNotificationTemplateV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityAddAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityAddAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -974,7 +974,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityModifyAppSubscribeNotificationTemplateV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityModifyAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityModifyAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityModifyAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -997,7 +997,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityDeleteAppSubscribeNotificationTemplateV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityDeleteAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1020,7 +1020,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityCreateAppSubscribeNotificationTemplateV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityCreateAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityCreateAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityCreateAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1045,7 +1045,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryTrafficPermissionStatusV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryTrafficPermissionStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryTrafficPermissionStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryTrafficPermissionStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1068,7 +1068,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityOpenTrafficPermissionV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityOpenTrafficPermissionV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityOpenTrafficPermissionV1Async(this DouyinMicroAppClient client, Models.AppsCapacityOpenTrafficPermissionV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1091,7 +1091,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAdPlacementListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAdPlacementListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAdPlacementListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdPlacementListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1114,7 +1114,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityAddAdPlacementV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityAddAdPlacementV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityAddAdPlacementV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAdPlacementV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1137,7 +1137,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityUpdateAdPlacementStatusV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityUpdateAdPlacementStatusV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityUpdateAdPlacementStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateAdPlacementStatusV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1160,7 +1160,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAdIncomeV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAdIncomeV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAdIncomeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdIncomeV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1188,7 +1188,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCapacityQueryAdSettlementListV1Async(this ByteDanceMicroAppClient client, Models.AppsCapacityQueryAdSettlementListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCapacityQueryAdSettlementListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdSettlementListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1220,7 +1220,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCategoryQueryAppCategoriesV1Async(this ByteDanceMicroAppClient client, Models.AppsCategoryQueryAppCategoriesV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCategoryQueryAppCategoriesV1Async(this DouyinMicroAppClient client, Models.AppsCategoryQueryAppCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1246,7 +1246,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCensorImageAsync(this ByteDanceMicroAppClient client, Models.AppsCensorImageRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCensorImageAsync(this DouyinMicroAppClient client, Models.AppsCensorImageRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1272,7 +1272,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsChatCustomerServiceUrlAsync(this ByteDanceMicroAppClient client, Models.AppsChatCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsChatCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsChatCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1310,7 +1310,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsCustomerServiceUrlAsync(this ByteDanceMicroAppClient client, Models.AppsCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1343,7 +1343,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryDealOverviewDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryDealOverviewDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryDealOverviewDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryDealOverviewDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1374,7 +1374,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryVideoDealDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryVideoDealDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryVideoDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryVideoDealDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1402,7 +1402,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryLiveRoomV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryLiveRoomV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1428,7 +1428,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryLiveRoomDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryLiveRoomDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1452,7 +1452,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryLiveDealDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryLiveDealDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryLiveDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveDealDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1476,7 +1476,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryProductDealDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryProductDealDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryProductDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryProductDealDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1508,7 +1508,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryBehaviorDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryBehaviorDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryBehaviorDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryBehaviorDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1542,7 +1542,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryRealTimeUserDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryRealTimeUserDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryRealTimeUserDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryRealTimeUserDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1571,7 +1571,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryRetentionDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryRetentionDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryRetentionDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryRetentionDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1608,7 +1608,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQuerySceneDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQuerySceneDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQuerySceneDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQuerySceneDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1639,7 +1639,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryUserPortraitDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryUserPortraitDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryUserPortraitDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryUserPortraitDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1673,7 +1673,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryClientDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryClientDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryClientDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryClientDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1707,7 +1707,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsDataAnalysisQueryPageDataV1Async(this ByteDanceMicroAppClient client, Models.AppsDataAnalysisQueryPageDataV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsDataAnalysisQueryPageDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryPageDataV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1744,7 +1744,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsUploadLiveImageAsync(this ByteDanceMicroAppClient client, Models.AppsUploadLiveImageRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsUploadLiveImageAsync(this DouyinMicroAppClient client, Models.AppsUploadLiveImageRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1778,7 +1778,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsLiveSetBlackWhiteListV1Async(this ByteDanceMicroAppClient client, Models.AppsLiveSetBlackWhiteListV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsLiveSetBlackWhiteListV1Async(this DouyinMicroAppClient client, Models.AppsLiveSetBlackWhiteListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1805,7 +1805,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsMessageCustomSendAsync(this ByteDanceMicroAppClient client, Models.AppsMessageCustomSendRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsMessageCustomSendAsync(this DouyinMicroAppClient client, Models.AppsMessageCustomSendRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1831,7 +1831,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsOrderPushV2Async(this ByteDanceMicroAppClient client, Models.AppsOrderPushV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsOrderPushV2Async(this DouyinMicroAppClient client, Models.AppsOrderPushV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1854,7 +1854,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsOrderDeleteAsync(this ByteDanceMicroAppClient client, Models.AppsOrderDeleteRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsOrderDeleteAsync(this DouyinMicroAppClient client, Models.AppsOrderDeleteRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1881,7 +1881,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsQrcodeAsync(this ByteDanceMicroAppClient client, Models.AppsQrcodeRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsQrcodeAsync(this DouyinMicroAppClient client, Models.AppsQrcodeRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1905,7 +1905,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsShareConfigAsync(this ByteDanceMicroAppClient client, Models.AppsShareConfigRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsShareConfigAsync(this DouyinMicroAppClient client, Models.AppsShareConfigRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1933,7 +1933,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsSubscribeNotificationDeveloperNotifyV1Async(this ByteDanceMicroAppClient client, Models.AppsSubscribeNotificationDeveloperNotifyV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsSubscribeNotificationDeveloperNotifyV1Async(this DouyinMicroAppClient client, Models.AppsSubscribeNotificationDeveloperNotifyV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1960,7 +1960,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsTaskBoxAddTaskAsync(this ByteDanceMicroAppClient client, Models.AppsTaskBoxAddTaskRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsTaskBoxAddTaskAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxAddTaskRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1985,7 +1985,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsTaskBoxUpdateTaskAsync(this ByteDanceMicroAppClient client, Models.AppsTaskBoxUpdateTaskRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsTaskBoxUpdateTaskAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxUpdateTaskRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2010,7 +2010,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsTaskBoxUpdateStatusAsync(this ByteDanceMicroAppClient client, Models.AppsTaskBoxUpdateStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsTaskBoxUpdateStatusAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxUpdateStatusRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2035,7 +2035,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsTaskBoxQueryAppTaskIdAsync(this ByteDanceMicroAppClient client, Models.AppsTaskBoxQueryAppTaskIdRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsTaskBoxQueryAppTaskIdAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxQueryAppTaskIdRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2060,7 +2060,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsTaskBoxQueryTaskVideoDataAsync(this ByteDanceMicroAppClient client, Models.AppsTaskBoxQueryTaskVideoDataRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsTaskBoxQueryTaskVideoDataAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxQueryTaskVideoDataRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2087,7 +2087,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsUrlLinkGenerateAsync(this ByteDanceMicroAppClient client, Models.AppsUrlLinkGenerateRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsUrlLinkGenerateAsync(this DouyinMicroAppClient client, Models.AppsUrlLinkGenerateRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2112,7 +2112,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsUrlLinkQueryInfoAsync(this ByteDanceMicroAppClient client, Models.AppsUrlLinkQueryInfoRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsUrlLinkQueryInfoAsync(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryInfoRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2137,7 +2137,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsUrlLinkQueryQuotaAsync(this ByteDanceMicroAppClient client, Models.AppsUrlLinkQueryQuotaRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsUrlLinkQueryQuotaAsync(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryQuotaRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2164,7 +2164,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsConvertVideoIdToOpenItemIdAsync(this ByteDanceMicroAppClient client, Models.AppsConvertVideoIdToOpenItemIdRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsConvertVideoIdToOpenItemIdAsync(this DouyinMicroAppClient client, Models.AppsConvertVideoIdToOpenItemIdRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2189,7 +2189,7 @@ public static class ByteDanceMicroAppClientExecuteAppsExtensions /// /// /// - public static async Task ExecuteAppsConvertOpenItemIdToEncryptIdAsync(this ByteDanceMicroAppClient client, Models.AppsConvertOpenItemIdToEncryptIdRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsConvertOpenItemIdToEncryptIdAsync(this DouyinMicroAppClient client, Models.AppsConvertOpenItemIdToEncryptIdRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsGameExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsGameExtensions.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsGameExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsGameExtensions.cs index 6766c422..f7f7722b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsGameExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsGameExtensions.cs @@ -9,9 +9,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class ByteDanceMicroAppClientExecuteAppsGameExtensions + public static class DouyinMicroAppClientExecuteAppsGameExtensions { - private static string GenerateRequestSignature(this ByteDanceMicroAppClient client, ref TRequest request, string method, string reqLoc) + private static string GenerateRequestSignature(DouyinMicroAppClient client, TRequest request, string httpMethod, string httpLocation) where TRequest : Models.AppsGameWalletRequestBase { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -21,16 +21,6 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC * REF: https://developer.open-douyin.com/docs/resource/zh-CN/mini-game/develop/api/payment/payment-signature-generation-algorithm */ - if (request.AppId is null) - { - request.AppId = client.Credentials.AppId; - } - - if (request.Timestamp is null) - { - request.Timestamp = DateTimeOffset.Now.ToLocalTime().ToUnixTimeSeconds(); - } - IDictionary paramMap = new SortedDictionary( new Dictionary() { @@ -44,8 +34,8 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC StringComparer.Ordinal ); string plainText = string.Join("&", paramMap.Select(e => $"{e.Key}={e.Value}")) - + $"&org_loc={reqLoc}" - + $"&method={method.ToUpper()}"; + + $"&org_loc={httpLocation}" + + $"&method={httpMethod.ToUpper()}"; return Utilities.HMACUtility.HashWithSHA256(client.Credentials.ECPaySalt ?? string.Empty, plainText).Value!.ToLower(); } @@ -60,13 +50,19 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsGameWalletGetBalanceAsync(this ByteDanceMicroAppClient client, Models.AppsGameWalletGetBalanceRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsGameWalletGetBalanceAsync(this DouyinMicroAppClient client, Models.AppsGameWalletGetBalanceRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.Timestamp is null) + request.Timestamp = DateTimeOffset.Now.ToLocalTime().ToUnixTimeSeconds(); + if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(ref request, HttpMethod.Post.Method, "/api/apps/game/wallet/get_balance"); + request.Signature = GenerateRequestSignature(client, request, HttpMethod.Post.Method, "/api/apps/game/wallet/get_balance"); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "get_balance"); @@ -85,13 +81,19 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsGameWalletGamePayAsync(this ByteDanceMicroAppClient client, Models.AppsGameWalletGamePayRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsGameWalletGamePayAsync(this DouyinMicroAppClient client, Models.AppsGameWalletGamePayRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.Timestamp is null) + request.Timestamp = DateTimeOffset.Now.ToLocalTime().ToUnixTimeSeconds(); + if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(ref request, HttpMethod.Post.Method, "/api/apps/game/wallet/game_pay"); + request.Signature = GenerateRequestSignature(client, request, HttpMethod.Post.Method, "/api/apps/game/wallet/game_pay"); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "game_pay"); @@ -110,13 +112,19 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsGameWalletAddCoinAsync(this ByteDanceMicroAppClient client, Models.AppsGameWalletAddCoinRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsGameWalletAddCoinAsync(this DouyinMicroAppClient client, Models.AppsGameWalletAddCoinRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.Timestamp is null) + request.Timestamp = DateTimeOffset.Now.ToLocalTime().ToUnixTimeSeconds(); + if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(ref request, HttpMethod.Post.Method, "/api/apps/game/wallet/add_coin"); + request.Signature = GenerateRequestSignature(client, request, HttpMethod.Post.Method, "/api/apps/game/wallet/add_coin"); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "add_coin"); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsStorageExtensions.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsStorageExtensions.cs index 8e81cc77..21cfd485 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteAppsStorageExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsStorageExtensions.cs @@ -7,10 +7,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class ByteDanceMicroAppClientExecuteAppsStorageExtensions + public static class DouyinMicroAppClientExecuteAppsStorageExtensions { - private static string GenerateRequestSignature(this ByteDanceMicroAppClient client, TRequest request, string signMethod, string sessionKey) - where TRequest : ByteDanceMicroAppRequest + private static string GenerateRequestSignature(DouyinMicroAppClient client, TRequest request, string signMethod, string sessionKey) + where TRequest : DouyinMicroAppRequest { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -45,13 +45,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsSetUserStorageAsync(this ByteDanceMicroAppClient client, Models.AppsSetUserStorageRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsSetUserStorageAsync(this DouyinMicroAppClient client, Models.AppsSetUserStorageRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request, request.SignMethod, request.SessionKey!); + request.Signature = GenerateRequestSignature(client, request, request.SignMethod, request.SessionKey!); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "set_user_storage") @@ -75,13 +75,13 @@ private static string GenerateRequestSignature(this ByteDanceMicroAppC /// /// /// - public static async Task ExecuteAppsRemoveUserStorageAsync(this ByteDanceMicroAppClient client, Models.AppsRemoveUserStorageRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsRemoveUserStorageAsync(this DouyinMicroAppClient client, Models.AppsRemoveUserStorageRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); if (request.Signature is null) - request.Signature = client.GenerateRequestSignature(request, request.SignMethod, request.SessionKey!); + request.Signature = GenerateRequestSignature(client, request, request.SignMethod, request.SessionKey!); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "remove_user_storage") diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteCommentExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteCommentExtensions.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteCommentExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteCommentExtensions.cs index abf654aa..9406bf26 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteCommentExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteCommentExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class ByteDanceMicroAppClientExecuteCommentExtensions + public static class DouyinMicroAppClientExecuteCommentExtensions { /// /// 异步调用 [POST] /comment/open/get 接口。 @@ -19,7 +19,7 @@ public static class ByteDanceMicroAppClientExecuteCommentExtensions /// /// /// - public static async Task ExecuteCommentOpenGetAsync(this ByteDanceMicroAppClient client, Models.CommentOpenGetRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteCommentOpenGetAsync(this DouyinMicroAppClient client, Models.CommentOpenGetRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteTagsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteTagsExtensions.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteTagsExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteTagsExtensions.cs index 0f41e55c..3f09e925 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteTagsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteTagsExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class ByteDanceMicroAppClientExecuteTagsExtensions + public static class DouyinMicroAppClientExecuteTagsExtensions { /// /// 异步调用 [POST] /v2/tags/text/antidirt 接口。 @@ -20,7 +20,7 @@ public static class ByteDanceMicroAppClientExecuteTagsExtensions /// /// /// - public static async Task ExecuteTagsTextAntiDirtV2Async(this ByteDanceMicroAppClient client, Models.TagsTextAntiDirtV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteTagsTextAntiDirtV2Async(this DouyinMicroAppClient client, Models.TagsTextAntiDirtV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -43,7 +43,7 @@ public static class ByteDanceMicroAppClientExecuteTagsExtensions /// /// /// - public static async Task ExecuteTagsImageV2Async(this ByteDanceMicroAppClient client, Models.TagsImageV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteTagsImageV2Async(this DouyinMicroAppClient client, Models.TagsImageV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteWebcastExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteWebcastExtensions.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteWebcastExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteWebcastExtensions.cs index beb3302b..fe74693a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/ByteDanceMicroAppClientExecuteWebcastExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteWebcastExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class ByteDanceMicroAppClientExecuteWebcastExtensions + public static class DouyinMicroAppClientExecuteWebcastExtensions { #region LiveData /// @@ -20,7 +20,7 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskStartAsync(this ByteDanceMicroAppClient client, Models.WebcastLiveDataTaskStartRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskStartAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskStartRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -47,7 +47,7 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskStopAsync(this ByteDanceMicroAppClient client, Models.WebcastLiveDataTaskStopRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskStopAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskStopRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -74,7 +74,7 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskGetAsync(this ByteDanceMicroAppClient client, Models.WebcastLiveDataTaskGetRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskGetAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskGetRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -104,7 +104,7 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskFailDataGetAsync(this ByteDanceMicroAppClient client, Models.WebcastLiveDataTaskFailDataGetRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskFailDataGetAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskFailDataGetRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -138,7 +138,7 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastGiftTopGiftAsync(this ByteDanceMicroAppClient client, Models.WebcastGiftTopGiftRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastGiftTopGiftAsync(this DouyinMicroAppClient client, Models.WebcastGiftTopGiftRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -167,7 +167,7 @@ public static class ByteDanceMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLinkMicQueryAsync(this ByteDanceMicroAppClient client, Models.WebcastLinkMicQueryRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLinkMicQueryAsync(this DouyinMicroAppClient client, Models.WebcastLinkMicQueryRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs index 6d5146eb..ed2e95a8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs @@ -3,17 +3,17 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v2/jscode2session 接口的请求。 /// - public class AppsJsCode2SessionV2Request : ByteDanceMicroAppRequest + public class AppsJsCode2SessionV2Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public string? AppId { get; set; } /// - /// 获取或设置小程序的 AppSecret。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppSecret。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("secret")] [System.Text.Json.Serialization.JsonPropertyName("secret")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs index d1536aa3..b3be6bca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/v2/jscode2session 接口的响应。 /// - public class AppsJsCode2SessionV2Response : ByteDanceMicroAppResponse + public class AppsJsCode2SessionV2Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs index 5dbd6383..47742f32 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs @@ -3,17 +3,17 @@ /// /// 表示 [POST] /apps/v2/token 接口的请求。 /// - public class AppsTokenV2Request : ByteDanceMicroAppRequest + public class AppsTokenV2Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public string? AppId { get; set; } /// - /// 获取或设置小程序的 AppSecret。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppSecret。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("secret")] [System.Text.Json.Serialization.JsonPropertyName("secret")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs index fc8a8f50..77bacc02 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/v2/token 接口的响应。 /// - public class AppsTokenV2Response : ByteDanceMicroAppResponse + public class AppsTokenV2Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs index 8636279b..4380919a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/upload_material 接口的请求。 /// - public class AppsCapacityUploadMaterialV1Request : ByteDanceMicroAppRequest + public class AppsCapacityUploadMaterialV1Request : DouyinMicroAppRequest { /// /// 获取或设置上传的文件类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs index 9a024c02..6f6a09ce 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/upload_material 接口的响应。 /// - public class AppsCapacityUploadMaterialV1Response : ByteDanceMicroAppResponse + public class AppsCapacityUploadMaterialV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs index 743adfec..3f839bc3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口的请求。 /// - public class AppsCapacityAddAwemeVideoKeywordV1Request : ByteDanceMicroAppRequest + public class AppsCapacityAddAwemeVideoKeywordV1Request : DouyinMicroAppRequest { /// /// 获取或设置关键词。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs index 9eab3ac3..10011c6e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口的响应。 /// - public class AppsCapacityAddAwemeVideoKeywordV1Response : ByteDanceMicroAppResponse + public class AppsCapacityAddAwemeVideoKeywordV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs index 39073310..66274b8c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/apply_aweme_permission 接口的请求。 /// - public class AppsCapacityApplyAwemePermissionV1Request : ByteDanceMicroAppRequest + public class AppsCapacityApplyAwemePermissionV1Request : DouyinMicroAppRequest { /// /// 获取或设置权限 Key。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs index 76743565..affceb21 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/apply_aweme_permission 接口的响应。 /// - public class AppsCapacityApplyAwemePermissionV1Response : ByteDanceMicroAppResponse + public class AppsCapacityApplyAwemePermissionV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs index 6600d21e..a61fe89c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/apply_scope_quota 接口的请求。 /// - public class AppsCapacityApplyScopeQuotaV1Request : ByteDanceMicroAppRequest + public class AppsCapacityApplyScopeQuotaV1Request : DouyinMicroAppRequest { /// /// 获取或设置权限 Key。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs index 18dda660..19f7d52e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/apply_scope_quota 接口的响应。 /// - public class AppsCapacityApplyScopeQuotaV1Response : ByteDanceMicroAppResponse + public class AppsCapacityApplyScopeQuotaV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs index 7235a7e9..898a760e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口的请求。 /// - public class AppsCapacityDeleteAwemeVideoKeywordV1Request : ByteDanceMicroAppRequest + public class AppsCapacityDeleteAwemeVideoKeywordV1Request : DouyinMicroAppRequest { /// /// 获取或设置关键词 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs index 61affc77..494a04d9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口的响应。 /// - public class AppsCapacityDeleteAwemeVideoKeywordV1Response : ByteDanceMicroAppResponse + public class AppsCapacityDeleteAwemeVideoKeywordV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs index 12037e1d..f0f16490 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_aweme_permission_list 接口的请求。 /// - public class AppsCapacityQueryAwemePermissionListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAwemePermissionListV1Request : DouyinMicroAppRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs index 14a784c6..607541c2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_aweme_permission_list 接口的响应。 /// - public class AppsCapacityQueryAwemePermissionListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAwemePermissionListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs index 5462b986..71b00b08 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口的请求。 /// - public class AppsCapacityQueryAwemeVideoKeywordListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAwemeVideoKeywordListV1Request : DouyinMicroAppRequest { /// /// 获取或设置分页页数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs index bd2e8517..2368a2b7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口的响应。 /// - public class AppsCapacityQueryAwemeVideoKeywordListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAwemeVideoKeywordListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs index 9fe6b865..8a1c308a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_scope_quota_detail 接口的请求。 /// - public class AppsCapacityQueryScopeQuotaDetailV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryScopeQuotaDetailV1Request : DouyinMicroAppRequest { /// /// 获取或设置权限 Key。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs index 393afb8c..18d475d6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_scope_quota_detail 接口的响应。 /// - public class AppsCapacityQueryScopeQuotaDetailV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryScopeQuotaDetailV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.cs index 874678d0..cafd5685 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_alias 接口的请求。 /// - public class AppsCapacityAddAliasV1Request : ByteDanceMicroAppRequest + public class AppsCapacityAddAliasV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序别名。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs index fbb0bf6d..d06c338c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_alias 接口的响应。 /// - public class AppsCapacityAddAliasV1Response : ByteDanceMicroAppResponse + public class AppsCapacityAddAliasV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.cs index ea313392..7010def6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_alias 接口的请求。 /// - public class AppsCapacityDeleteAliasV1Request : ByteDanceMicroAppRequest + public class AppsCapacityDeleteAliasV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序别名。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs index e23e456c..9247b79c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_alias 接口的响应。 /// - public class AppsCapacityDeleteAliasV1Response : ByteDanceMicroAppResponse + public class AppsCapacityDeleteAliasV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.cs index 8534db58..3d12c916 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/modify_alias 接口的请求。 /// - public class AppsCapacityModifyAliasV1Request : ByteDanceMicroAppRequest + public class AppsCapacityModifyAliasV1Request : DouyinMicroAppRequest { /// /// 获取或设置修改前小程序别名。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs index 8400bbf8..8f950a6c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/modify_alias 接口的响应。 /// - public class AppsCapacityModifyAliasV1Response : ByteDanceMicroAppResponse + public class AppsCapacityModifyAliasV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Request.cs index f402fef3..3a51467f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_alias_list 接口的请求。 /// - public class AppsCapacityQueryAliasListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAliasListV1Request : DouyinMicroAppRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs index 4649982a..5abd6b79 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_alias_list 接口的响应。 /// - public class AppsCapacityQueryAliasListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAliasListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs index 354f7e2a..79512188 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_search_tag_list 接口的请求。 /// - public class AppsCapacityQuerySearchTagListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQuerySearchTagListV1Request : DouyinMicroAppRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs index 516b1cb2..f0490a47 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_search_tag_list 接口的响应。 /// - public class AppsCapacityQuerySearchTagListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQuerySearchTagListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.cs index 63b274db..245e719c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/set_search_tag 接口的请求。 /// - public class AppsCapacitySetSearchTagV1Request : ByteDanceMicroAppRequest + public class AppsCapacitySetSearchTagV1Request : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs index 3497d70d..332c64b7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/set_search_tag 接口的响应。 /// - public class AppsCapacitySetSearchTagV1Response : ByteDanceMicroAppResponse + public class AppsCapacitySetSearchTagV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs index 3111118f..3fe6210e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/bind_aweme_user 接口的请求。 /// - public class AppsCapacityBindAwemeUserV1Request : ByteDanceMicroAppRequest + public class AppsCapacityBindAwemeUserV1Request : DouyinMicroAppRequest { /// /// 获取或设置绑定类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs index 00314686..738e1aa0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/bind_aweme_user 接口的响应。 /// - public class AppsCapacityBindAwemeUserV1Response : ByteDanceMicroAppResponse + public class AppsCapacityBindAwemeUserV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs index cd38b9b7..a70e1567 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/get_aweme_user_bind_qrcode 接口的请求。 /// - public class AppsCapacityGetAwemeUserBindQrcodeV1Request : ByteDanceMicroAppRequest + public class AppsCapacityGetAwemeUserBindQrcodeV1Request : DouyinMicroAppRequest { /// /// 获取或设置绑定类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs index 050f49e5..2374eee0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/get_aweme_user_bind_qrcode 接口的响应。 /// - public class AppsCapacityGetAwemeUserBindQrcodeV1Response : ByteDanceMicroAppResponse + public class AppsCapacityGetAwemeUserBindQrcodeV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs index eb3c5fc3..9f815afe 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_aweme_user_bind_list 接口的请求。 /// - public class AppsCapacityQueryAwemeUserBindListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAwemeUserBindListV1Request : DouyinMicroAppRequest { /// /// 获取或设置绑定类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs index 0ec48a3c..5def7278 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_aweme_user_bind_list 接口的响应。 /// - public class AppsCapacityQueryAwemeUserBindListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAwemeUserBindListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs index e8fb9aa1..9c659602 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/apply_capacity 接口的请求。 /// - public class AppsCapacityApplyCapacityV1Request : ByteDanceMicroAppRequest + public class AppsCapacityApplyCapacityV1Request : DouyinMicroAppRequest { /// /// 获取或设置挂载能力标识。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs index 889174d3..02a23002 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/apply_capacity 接口的响应。 /// - public class AppsCapacityApplyCapacityV1Response : ByteDanceMicroAppResponse + public class AppsCapacityApplyCapacityV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs index 7abfcaf2..537beb81 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/bind_self_mount_user 接口的请求。 /// - public class AppsCapacityBindSelfMountUserV1Request : ByteDanceMicroAppRequest + public class AppsCapacityBindSelfMountUserV1Request : DouyinMicroAppRequest { /// /// 获取或设置挂载能力标识。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs index 6eb73cd1..d448a4ad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/bind_self_mount_user 接口的响应。 /// - public class AppsCapacityBindSelfMountUserV1Response : ByteDanceMicroAppResponse + public class AppsCapacityBindSelfMountUserV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs index 897b7690..da67cdc6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/get_self_mount_bind_qrcode 接口的请求。 /// - public class AppsCapacityGetSelfMountBindQrcodeV1Request : ByteDanceMicroAppRequest + public class AppsCapacityGetSelfMountBindQrcodeV1Request : DouyinMicroAppRequest { /// /// 获取或设置挂载能力标识。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs index eb9b6036..16e9b44b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/get_self_mount_bind_qrcode 接口的响应。 /// - public class AppsCapacityGetSelfMountBindQrcodeV1Response : ByteDanceMicroAppResponse + public class AppsCapacityGetSelfMountBindQrcodeV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs index 07bfd9bf..47cf147a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_apply_status 接口的请求。 /// - public class AppsCapacityQueryApplyStatusV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryApplyStatusV1Request : DouyinMicroAppRequest { /// /// 获取或设置挂载能力标识。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs index 63267d72..f860fa44 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_apply_status 接口的响应。 /// - public class AppsCapacityQueryApplyStatusV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryApplyStatusV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs index 343f318b..9824a05c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_self_mount_user_list 接口的请求。 /// - public class AppsCapacityQuerySelfMountUserListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQuerySelfMountUserListV1Request : DouyinMicroAppRequest { /// /// 获取或设置挂载能力标识。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs index 5807ae3f..f640e668 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_self_mount_user_list 接口的响应。 /// - public class AppsCapacityQuerySelfMountUserListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQuerySelfMountUserListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs index ce89ed43..a2b76fea 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_capcut_info 接口的请求。 /// - public class AppsCapacityQueryCapcutInfoV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryCapcutInfoV1Request : DouyinMicroAppRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs index 58429b6d..2fbf2889 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_capcut_info 接口的响应。 /// - public class AppsCapacityQueryCapcutInfoV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryCapcutInfoV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs index 4caabe62..9d7896b5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_capcut_template_list 接口的请求。 /// - public class AppsCapacityQueryCapcutTemplateListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryCapcutTemplateListV1Request : DouyinMicroAppRequest { /// /// 获取或设置分页页数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs index 0a870b77..635f69f6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_capcut_template_list 接口的响应。 /// - public class AppsCapacityQueryCapcutTemplateListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryCapcutTemplateListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs index 309e7552..18f99801 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_capcut_template_status 接口的请求。 /// - public class AppsCapacityUpdateCapcutTemplateStatusV1Request : ByteDanceMicroAppRequest + public class AppsCapacityUpdateCapcutTemplateStatusV1Request : DouyinMicroAppRequest { /// /// 获取或设置模版 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs index 032439b5..7aa100a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_capcut_template_status 接口的响应。 /// - public class AppsCapacityUpdateCapcutTemplateStatusV1Response : ByteDanceMicroAppResponse + public class AppsCapacityUpdateCapcutTemplateStatusV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs index fd3fd1f3..0a1ecf5a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_simple_qr_bind 接口的请求。 /// - public class AppsCapacityAddSimpleQrcodeBindV1Request : ByteDanceMicroAppRequest + public class AppsCapacityAddSimpleQrcodeBindV1Request : DouyinMicroAppRequest { /// /// 获取或设置链接地址。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs index 47600481..5617af56 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_simple_qr_bind 接口的响应。 /// - public class AppsCapacityAddSimpleQrcodeBindV1Response : ByteDanceMicroAppResponse + public class AppsCapacityAddSimpleQrcodeBindV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs index 456684bc..2cf6c762 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口的请求。 /// - public class AppsCapacityDeleteSimpleQrcodeBindV1Request : ByteDanceMicroAppRequest + public class AppsCapacityDeleteSimpleQrcodeBindV1Request : DouyinMicroAppRequest { /// /// 获取或设置链接地址。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs index 3f61d2b9..c275e634 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口的响应。 /// - public class AppsCapacityDeleteSimpleQrcodeBindV1Response : ByteDanceMicroAppResponse + public class AppsCapacityDeleteSimpleQrcodeBindV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs index 021ce4bb..d3a3edf2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口的请求。 /// - public class AppsCapacityQuerySimpleQrcodeBindListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQuerySimpleQrcodeBindListV1Request : DouyinMicroAppRequest { /// /// 获取或设置分页页数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs index 8f802f76..7e194d31 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口的响应。 /// - public class AppsCapacityQuerySimpleQrcodeBindListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQuerySimpleQrcodeBindListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs index 45dfdd95..c7649535 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口的请求。 /// - public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Request : ByteDanceMicroAppRequest + public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Request : DouyinMicroAppRequest { /// /// 获取或设置链接地址。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs index cfcc81dd..caa664bd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口的响应。 /// - public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Response : ByteDanceMicroAppResponse + public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs index 33057d21..8b2d38d6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind 接口的请求。 /// - public class AppsCapacityUpdateSimpleQrcodeBindV1Request : ByteDanceMicroAppRequest + public class AppsCapacityUpdateSimpleQrcodeBindV1Request : DouyinMicroAppRequest { /// /// 获取或设置更新前的链接地址。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs index 91ec99cf..4c356429 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind 接口的响应。 /// - public class AppsCapacityUpdateSimpleQrcodeBindV1Response : ByteDanceMicroAppResponse + public class AppsCapacityUpdateSimpleQrcodeBindV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs index e953d552..62c3247d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_app_subscribe_notification_tpl 接口的请求。 /// - public class AppsCapacityAddAppSubscribeNotificationTemplateV1Request : ByteDanceMicroAppRequest + public class AppsCapacityAddAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// /// 获取或设置模板 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs index 4d17a77d..055a1eb0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_app_subscribe_notification_tpl 接口的响应。 /// - public class AppsCapacityAddAppSubscribeNotificationTemplateV1Response : ByteDanceMicroAppResponse + public class AppsCapacityAddAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs index 21794239..25658836 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口的请求。 /// - public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Request : ByteDanceMicroAppRequest + public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// /// 获取或设置订阅消息类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs index a9f58875..03a6de6e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口的响应。 /// - public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Response : ByteDanceMicroAppResponse + public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs index 04ce9c4b..cac0fc83 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口的请求。 /// - public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request : ByteDanceMicroAppRequest + public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序消息模版 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs index bdab91ec..15cefb53 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口的响应。 /// - public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response : ByteDanceMicroAppResponse + public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs index 77cf1ea2..ec8abba5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口的请求。 /// - public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Request : ByteDanceMicroAppRequest + public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序消息模版 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs index 6c0d23ea..080bd084 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口的响应。 /// - public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Response : ByteDanceMicroAppResponse + public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs index b0f939b8..880d1f74 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_app_subscribe_notification_tpl 接口的请求。 /// - public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// /// 获取或设置订阅消息类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs index 62027855..01a5580b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_app_subscribe_notification_tpl 接口的响应。 /// - public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs index b54c971c..b014aa4a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_created_subscribe_notification_tpl_list 接口的请求。 /// - public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request : DouyinMicroAppRequest { /// /// 获取或设置审核状态。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs index 81da778c..ade39884 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_created_subscribe_notification_tpl_list 接口的响应。 /// - public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs index f14418a8..e857f050 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口的请求。 /// - public class AppsCapacityQuerySubscribeNotificationTemplateListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQuerySubscribeNotificationTemplateListV1Request : DouyinMicroAppRequest { /// /// 获取或设置订阅消息类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs index 0546f896..f81d6a85 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口的响应。 /// - public class AppsCapacityQuerySubscribeNotificationTemplateListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQuerySubscribeNotificationTemplateListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs index 0c8dcf65..7672a054 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_ad_placement 接口的请求。 /// - public class AppsCapacityAddAdPlacementV1Request : ByteDanceMicroAppRequest + public class AppsCapacityAddAdPlacementV1Request : DouyinMicroAppRequest { /// /// 获取或设置广告位名称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs index 506890b6..f6a4ea37 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_ad_placement 接口的响应。 /// - public class AppsCapacityAddAdPlacementV1Response : ByteDanceMicroAppResponse + public class AppsCapacityAddAdPlacementV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs index dd73276f..0bde8bb8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/open_traffic_permission 接口的请求。 /// - public class AppsCapacityOpenTrafficPermissionV1Request : ByteDanceMicroAppRequest + public class AppsCapacityOpenTrafficPermissionV1Request : DouyinMicroAppRequest { /// /// 获取或设置纳税人性质类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs index 65113681..0fff8eb5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/open_traffic_permission 接口的响应。 /// - public class AppsCapacityOpenTrafficPermissionV1Response : ByteDanceMicroAppResponse + public class AppsCapacityOpenTrafficPermissionV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs index 873e9ed0..71074d2f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_ad_income 接口的请求。 /// - public class AppsCapacityQueryAdIncomeV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAdIncomeV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始日期字符串(格式:yyyy-MM-dd)。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs index 6d3d985c..d494c2a6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_ad_income 接口的响应。 /// - public class AppsCapacityQueryAdIncomeV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAdIncomeV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs index 792347a2..aff2531f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_ad_placement_list 接口的请求。 /// - public class AppsCapacityQueryAdPlacementListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAdPlacementListV1Request : DouyinMicroAppRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs index 6eef0ad4..bdc24bd0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_ad_placement_list 接口的响应。 /// - public class AppsCapacityQueryAdPlacementListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAdPlacementListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs index ee38f961..e87f5051 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_ad_settlement_list 接口的请求。 /// - public class AppsCapacityQueryAdSettlementListV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryAdSettlementListV1Request : DouyinMicroAppRequest { /// /// 获取或设置结算周期字符串(格式:yyyy-MM)。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs index d34d9c74..d2a1f2ad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_ad_settlement_list 接口的响应。 /// - public class AppsCapacityQueryAdSettlementListV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryAdSettlementListV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs index eb30de23..c2ecf797 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_traffic_permission_status 接口的请求。 /// - public class AppsCapacityQueryTrafficPermissionStatusV1Request : ByteDanceMicroAppRequest + public class AppsCapacityQueryTrafficPermissionStatusV1Request : DouyinMicroAppRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs index b687a5f6..3dd4b93a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_traffic_permission_status 接口的响应。 /// - public class AppsCapacityQueryTrafficPermissionStatusV1Response : ByteDanceMicroAppResponse + public class AppsCapacityQueryTrafficPermissionStatusV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs index c4e50e9c..bb1bfc92 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_ad_placement_status 接口的请求。 /// - public class AppsCapacityUpdateAdPlacementStatusV1Request : ByteDanceMicroAppRequest + public class AppsCapacityUpdateAdPlacementStatusV1Request : DouyinMicroAppRequest { /// /// 获取或设置广告位 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs index b3bbb536..223b7863 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/update_ad_placement_status 接口的响应。 /// - public class AppsCapacityUpdateAdPlacementStatusV1Response : ByteDanceMicroAppResponse + public class AppsCapacityUpdateAdPlacementStatusV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Request.cs index 0cd3995a..dccd2768 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/category/query_app_categories 接口的请求。 /// - public class AppsCategoryQueryAppCategoriesV1Request : ByteDanceMicroAppRequest + public class AppsCategoryQueryAppCategoriesV1Request : DouyinMicroAppRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs index 25dc23d7..e3f78e78 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/category/query_app_categories 接口的响应。 /// - public class AppsCategoryQueryAppCategoriesV1Response : ByteDanceMicroAppResponse + public class AppsCategoryQueryAppCategoriesV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageRequest.cs index 50331589..19dbd6b9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/censor/image 接口的请求。 /// - public class AppsCensorImageRequest : ByteDanceMicroAppRequest + public class AppsCensorImageRequest : DouyinMicroAppRequest { /// /// @@ -13,7 +13,7 @@ public class AppsCensorImageRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs index 1c760cd1..874a2a92 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/censor/image 接口的响应。 /// - public class AppsCensorImageResponse : ByteDanceMicroAppResponse + public class AppsCensorImageResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs index 57b745d5..e5a35756 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/chat/customer_service_url 接口的请求。 /// - public class AppsChatCustomerServiceUrlRequest : ByteDanceMicroAppRequest + public class AppsChatCustomerServiceUrlRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs index e0fc3a48..1b7b7250 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/chat/customer_service_url 接口的响应。 /// - public class AppsChatCustomerServiceUrlResponse : ByteDanceMicroAppResponse + public class AppsChatCustomerServiceUrlResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs index b88572b4..12322fab 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/customer_service/url 接口的请求。 /// - public class AppsCustomerServiceUrlRequest : ByteDanceMicroAppRequest + public class AppsCustomerServiceUrlRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs index 574cb565..fa4969f4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/customer_service/url 接口的响应。 /// - public class AppsCustomerServiceUrlResponse : ByteDanceMicroAppResponse + public class AppsCustomerServiceUrlResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs index a3adfb6e..59ee84d5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口的请求。 /// - public class AppsDataAnalysisQueryDealOverviewDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryDealOverviewDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs index 82df217a..040ada43 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口的响应。 /// - public class AppsDataAnalysisQueryDealOverviewDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryDealOverviewDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs index fc200a77..5c8d9817 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_live_deal_data 接口的请求。 /// - public class AppsDataAnalysisQueryLiveDealDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryLiveDealDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置直播间 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs index e6e346ec..a910f3fc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_live_deal_data 接口的响应。 /// - public class AppsDataAnalysisQueryLiveDealDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryLiveDealDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs index bafb6304..05173263 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room_data 接口的请求。 /// - public class AppsDataAnalysisQueryLiveRoomDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryLiveRoomDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置直播间 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs index 34c5a59a..7d756611 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room_data 接口的响应。 /// - public class AppsDataAnalysisQueryLiveRoomDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryLiveRoomDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs index b945af28..01bee2e3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room 接口的请求。 /// - public class AppsDataAnalysisQueryLiveRoomV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryLiveRoomV1Request : DouyinMicroAppRequest { /// /// 获取或设置主播昵称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs index 8f1b1941..a4460353 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room 接口的响应。 /// - public class AppsDataAnalysisQueryLiveRoomV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryLiveRoomV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs index fc05d1f2..919a43ab 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_product_deal_data 接口的请求。 /// - public class AppsDataAnalysisQueryProductDealDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryProductDealDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs index 6599e5a6..0835b88b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_product_deal_data 接口的响应。 /// - public class AppsDataAnalysisQueryProductDealDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryProductDealDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs index a08a8d16..ca5bb58d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_video_deal_data 接口的请求。 /// - public class AppsDataAnalysisQueryVideoDealDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryVideoDealDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs index f4d42317..a1982f5f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_video_deal_data 接口的响应。 /// - public class AppsDataAnalysisQueryVideoDealDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryVideoDealDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs index 7653cae7..4db37736 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_behavior_data 接口的请求。 /// - public class AppsDataAnalysisQueryBehaviorDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryBehaviorDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs index 0c92de08..c0b19962 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_behavior_data 接口的响应。 /// - public class AppsDataAnalysisQueryBehaviorDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryBehaviorDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs index 764e83d7..217e1b9f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_client_data 接口的请求。 /// - public class AppsDataAnalysisQueryClientDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryClientDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs index 08a1fb3d..f2bb6732 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_client_data 接口的响应。 /// - public class AppsDataAnalysisQueryClientDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryClientDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs index 726145f8..6a6c3ffb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_page_data 接口的请求。 /// - public class AppsDataAnalysisQueryPageDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryPageDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs index 391f6e6e..eecbee8b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_page_data 接口的响应。 /// - public class AppsDataAnalysisQueryPageDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryPageDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs index eab6388c..7229bd3c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_real_time_user_data 接口的请求。 /// - public class AppsDataAnalysisQueryRealTimeUserDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryRealTimeUserDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置宿主名称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs index 23377eec..c33dfea5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_real_time_user_data 接口的响应。 /// - public class AppsDataAnalysisQueryRealTimeUserDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryRealTimeUserDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs index cfadbc0b..652197e8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_retention_data 接口的请求。 /// - public class AppsDataAnalysisQueryRetentionDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryRetentionDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs index 9af39c6c..f981d969 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_retention_data 接口的响应。 /// - public class AppsDataAnalysisQueryRetentionDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryRetentionDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs index 9d27966a..54759339 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_scene_data 接口的请求。 /// - public class AppsDataAnalysisQuerySceneDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQuerySceneDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs index 96352bf5..3fd8eb67 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_scene_data 接口的响应。 /// - public class AppsDataAnalysisQuerySceneDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQuerySceneDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs index 73125f6b..acf5cd72 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_user_portrait_data 接口的请求。 /// - public class AppsDataAnalysisQueryUserPortraitDataV1Request : ByteDanceMicroAppRequest + public class AppsDataAnalysisQueryUserPortraitDataV1Request : DouyinMicroAppRequest { /// /// 获取或设置开始时间戳。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs index 77ee598b..af66a8ef 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/data_analysis/query_user_portrait_data 接口的响应。 /// - public class AppsDataAnalysisQueryUserPortraitDataV1Response : ByteDanceMicroAppResponse + public class AppsDataAnalysisQueryUserPortraitDataV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs index 1207dd5f..3aa74030 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/live/set_black_white_list 接口的请求。 /// - public class AppsLiveSetBlackWhiteListV1Request : ByteDanceMicroAppRequest + public class AppsLiveSetBlackWhiteListV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs index 0e0792c6..da81c292 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/live/set_black_white_list 接口的响应。 /// - public class AppsLiveSetBlackWhiteListV1Response : ByteDanceMicroAppResponse + public class AppsLiveSetBlackWhiteListV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageRequest.cs index 5b2635f0..f7af9ffb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageRequest.cs @@ -5,10 +5,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/upload_live_image 接口的请求。 /// - public class AppsUploadLiveImageRequest : ByteDanceMicroAppRequest + public class AppsUploadLiveImageRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs index 1bc9bf25..e50a2934 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/upload_live_image 接口的响应。 /// - public class AppsUploadLiveImageResponse : ByteDanceMicroAppResponse + public class AppsUploadLiveImageResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendRequest.cs index 149addc5..c06b1df7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/message/custom/send 接口的请求。 /// - public class AppsMessageCustomSendRequest : ByteDanceMicroAppRequest + public class AppsMessageCustomSendRequest : DouyinMicroAppRequest { /// /// 获取或设置用户的 OpenId。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs index 0de3c774..53719170 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/message/custom/send 接口的响应。 /// - public class AppsMessageCustomSendResponse : ByteDanceMicroAppResponse + public class AppsMessageCustomSendResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs index 60c6a11c..d48ee78e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/order/delete 接口的请求。 /// - public class AppsOrderDeleteRequest : ByteDanceMicroAppRequest + public class AppsOrderDeleteRequest : DouyinMicroAppRequest { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs index 34ca6e4a..8f02a6f8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/order/delete 接口的响应。 /// - public class AppsOrderDeleteResponse : ByteDanceMicroAppResponse + public class AppsOrderDeleteResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs index 3bcafff6..a25d9c58 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/order/v2/push 接口的请求。 /// - public class AppsOrderPushV2Request : ByteDanceMicroAppRequest + public class AppsOrderPushV2Request : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs index 2b14019f..a3eed6f7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/order/v2/push 接口的响应。 /// - public class AppsOrderPushV2Response : ByteDanceMicroAppResponse + public class AppsOrderPushV2Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs index 444ad79c..c5adc4e5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/qrcode 接口的请求。 /// - public class AppsQrcodeRequest : ByteDanceMicroAppRequest + public class AppsQrcodeRequest : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs index 67bcf54a..c7ecf17c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/qrcode 接口的响应。 /// - public class AppsQrcodeResponse : ByteDanceMicroAppResponse + public class AppsQrcodeResponse : DouyinMicroAppResponse { public override bool IsSuccessful() { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs index 87c114ae..b94d736f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/share_config 接口的请求。 /// - public class AppsShareConfigRequest : ByteDanceMicroAppRequest + public class AppsShareConfigRequest : DouyinMicroAppRequest { /// /// @@ -13,7 +13,7 @@ public class AppsShareConfigRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs index e2328228..3ac071bf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/share_config 接口的响应。 /// - public class AppsShareConfigResponse : ByteDanceMicroAppResponse + public class AppsShareConfigResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs index 23bc5688..34750c39 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/subscribe_notification/developer/v1/notify 接口的请求。 /// - public class AppsSubscribeNotificationDeveloperNotifyV1Request : ByteDanceMicroAppRequest + public class AppsSubscribeNotificationDeveloperNotifyV1Request : DouyinMicroAppRequest { /// /// @@ -15,7 +15,7 @@ public class AppsSubscribeNotificationDeveloperNotifyV1Request : ByteDanceMicroA public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs index 5c1f61db..1a7a367d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/subscribe_notification/developer/v1/notify 接口的响应。 /// - public class AppsSubscribeNotificationDeveloperNotifyV1Response : ByteDanceMicroAppResponse + public class AppsSubscribeNotificationDeveloperNotifyV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs index 6b42e32c..821be29f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/add_task 接口的请求。 /// - public class AppsTaskBoxAddTaskRequest : ByteDanceMicroAppRequest + public class AppsTaskBoxAddTaskRequest : DouyinMicroAppRequest { /// /// @@ -29,7 +29,7 @@ public class AppsTaskBoxAddTaskRequest : ByteDanceMicroAppRequest public int TaskSettleType { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs index 3cc65cd3..aefe7616 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/add_task 接口的响应。 /// - public class AppsTaskBoxAddTaskResponse : ByteDanceMicroAppResponse + public class AppsTaskBoxAddTaskResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs index a19d6a74..6f68dced 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/query_app_task_id 接口的请求。 /// - public class AppsTaskBoxQueryAppTaskIdRequest : ByteDanceMicroAppRequest + public class AppsTaskBoxQueryAppTaskIdRequest : DouyinMicroAppRequest { /// /// @@ -13,7 +13,7 @@ public class AppsTaskBoxQueryAppTaskIdRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs index 52a95987..fe86dc1b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/query_app_task_id 接口的响应。 /// - public class AppsTaskBoxQueryAppTaskIdResponse : ByteDanceMicroAppResponse + public class AppsTaskBoxQueryAppTaskIdResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs index 601c8e6b..573af58b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/query_task_video_data 接口的请求。 /// - public class AppsTaskBoxQueryTaskVideoDataRequest : ByteDanceMicroAppRequest + public class AppsTaskBoxQueryTaskVideoDataRequest : DouyinMicroAppRequest { /// /// @@ -15,7 +15,7 @@ public class AppsTaskBoxQueryTaskVideoDataRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs index 9b37acad..d6b01f84 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/query_task_video_data 接口的响应。 /// - public class AppsTaskBoxQueryTaskVideoDataResponse : ByteDanceMicroAppResponse + public class AppsTaskBoxQueryTaskVideoDataResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs index d567e4d9..aa1132ba 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/update/status 接口的请求。 /// - public class AppsTaskBoxUpdateStatusRequest : ByteDanceMicroAppRequest + public class AppsTaskBoxUpdateStatusRequest : DouyinMicroAppRequest { /// /// @@ -27,7 +27,7 @@ public class AppsTaskBoxUpdateStatusRequest : ByteDanceMicroAppRequest public int TaskStatus { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs index 560fe1f8..6a3dc8ff 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/update/status 接口的响应。 /// - public class AppsTaskBoxUpdateStatusResponse : ByteDanceMicroAppResponse + public class AppsTaskBoxUpdateStatusResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs index fdb6832e..686e255b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/update_task 接口的请求。 /// - public class AppsTaskBoxUpdateTaskRequest : ByteDanceMicroAppRequest + public class AppsTaskBoxUpdateTaskRequest : DouyinMicroAppRequest { /// /// @@ -36,7 +36,7 @@ public class AppsTaskBoxUpdateTaskRequest : ByteDanceMicroAppRequest public int TaskSettleType { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs index 5d4e57cf..a456a05f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/update_task 接口的响应。 /// - public class AppsTaskBoxUpdateTaskResponse : ByteDanceMicroAppResponse + public class AppsTaskBoxUpdateTaskResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs index e3b09320..4245c350 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/url_link/generate 接口的请求。 /// - public class AppsUrlLinkGenerateRequest : ByteDanceMicroAppRequest + public class AppsUrlLinkGenerateRequest : DouyinMicroAppRequest { /// /// @@ -13,7 +13,7 @@ public class AppsUrlLinkGenerateRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("ma_app_id")] [System.Text.Json.Serialization.JsonPropertyName("ma_app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs index cb8a2cab..4e84b5c3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/url_link/generate 接口的响应。 /// - public class AppsUrlLinkGenerateResponse : ByteDanceMicroAppResponse + public class AppsUrlLinkGenerateResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs index 851841de..0214d029 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/url_link/query_info 接口的请求。 /// - public class AppsUrlLinkQueryInfoRequest : ByteDanceMicroAppRequest + public class AppsUrlLinkQueryInfoRequest : DouyinMicroAppRequest { /// /// @@ -13,7 +13,7 @@ public class AppsUrlLinkQueryInfoRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("ma_app_id")] [System.Text.Json.Serialization.JsonPropertyName("ma_app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs index db2e204c..c23c4981 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/url_link/query_info 接口的响应。 /// - public class AppsUrlLinkQueryInfoResponse : ByteDanceMicroAppResponse + public class AppsUrlLinkQueryInfoResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs index 7462c44b..97302b99 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/url_link/query_quota 接口的请求。 /// - public class AppsUrlLinkQueryQuotaRequest : ByteDanceMicroAppRequest + public class AppsUrlLinkQueryQuotaRequest : DouyinMicroAppRequest { /// /// @@ -13,7 +13,7 @@ public class AppsUrlLinkQueryQuotaRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("ma_app_id")] [System.Text.Json.Serialization.JsonPropertyName("ma_app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs index 5d933b66..8bf478b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/url_link/query_quota 接口的响应。 /// - public class AppsUrlLinkQueryQuotaResponse : ByteDanceMicroAppResponse + public class AppsUrlLinkQueryQuotaResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs index 979e9343..cb7c1151 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/convert_video_id/open_item_id_to_encrypt_id 接口的请求。 /// - public class AppsConvertOpenItemIdToEncryptIdRequest : ByteDanceMicroAppRequest + public class AppsConvertOpenItemIdToEncryptIdRequest : DouyinMicroAppRequest { /// /// 获取或设置访问密钥。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs index d41b31ef..3b4aacc8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/convert_video_id/open_item_id_to_encrypt_id 接口的响应。 /// - public class AppsConvertOpenItemIdToEncryptIdResponse : ByteDanceMicroAppResponse + public class AppsConvertOpenItemIdToEncryptIdResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs index 661aaf58..ffaab75c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/convert_video_id/video_id_to_open_item_id 接口的请求。 /// - public class AppsConvertVideoIdToOpenItemIdRequest : ByteDanceMicroAppRequest + public class AppsConvertVideoIdToOpenItemIdRequest : DouyinMicroAppRequest { /// /// @@ -15,7 +15,7 @@ public class AppsConvertVideoIdToOpenItemIdRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs index 5293a911..5bc9eed9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/convert_video_id/video_id_to_open_item_id 接口的响应。 /// - public class AppsConvertVideoIdToOpenItemIdResponse : ByteDanceMicroAppResponse + public class AppsConvertVideoIdToOpenItemIdResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsRequest.cs index 57b34add..f358f33b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/bills 接口的请求。 /// - public class AppsBillsRequest : ByteDanceMicroAppRequest + public class AppsBillsRequest : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsBillsRequest : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs index 3540bf7d..7a345ab6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/bills 接口的响应。 /// - public class AppsBillsResponse : ByteDanceMicroAppResponse + public class AppsBillsResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsRequest.cs index 088d93bc..a3a3bb84 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/fund/bills 接口的请求。 /// - public class AppsFundBillsRequest : ByteDanceMicroAppRequest + public class AppsFundBillsRequest : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsFundBillsRequest : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs index d2e40c5d..604308e3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/fund/bills 接口的响应。 /// - public class AppsFundBillsResponse : ByteDanceMicroAppResponse + public class AppsFundBillsResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs index 257baa64..339c7d7b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/v1/create_order 接口的请求。 /// - public class AppsECPayCreateOrderV1Request : ByteDanceMicroAppRequest + public class AppsECPayCreateOrderV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsECPayCreateOrderV1Request : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs index 3db78c33..4a0c7963 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/create_order 接口的响应。 /// - public class AppsECPayCreateOrderV1Response : ByteDanceMicroAppResponse + public class AppsECPayCreateOrderV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs index 61e89659..21b768e8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/v1/create_refund 接口的请求。 /// - public class AppsECPayCreateRefundV1Request : ByteDanceMicroAppRequest + public class AppsECPayCreateRefundV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsECPayCreateRefundV1Request : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs index 0d972fae..43c3af93 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/create_refund 接口的响应。 /// - public class AppsECPayCreateRefundV1Response : ByteDanceMicroAppResponse + public class AppsECPayCreateRefundV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs index 0b7e0dd7..88b99be9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/create_return 接口的请求。 /// - public class AppsECPayCreateReturnV1Request : ByteDanceMicroAppRequest + public class AppsECPayCreateReturnV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsECPayCreateReturnV1Request : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs index 82554bef..cd409c5d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/create_return 接口的响应。 /// - public class AppsECPayCreateReturnV1Response : ByteDanceMicroAppResponse + public class AppsECPayCreateReturnV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs index 356a2ab9..309d19bb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/query_order 接口的请求。 /// - public class AppsECPayQueryOrderV1Request : ByteDanceMicroAppRequest + public class AppsECPayQueryOrderV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsECPayQueryOrderV1Request : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs index 3e31ce17..053e4454 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/v1/query_order 接口的响应。 /// - public class AppsECPayQueryOrderV1Response : ByteDanceMicroAppResponse + public class AppsECPayQueryOrderV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs index 499ec0c3..50d7c9bf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs @@ -7,10 +7,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/v1/query_platform_order 接口的请求。 /// - public class AppsECPayQueryPlatformOrderV1Request : ByteDanceMicroAppRequest + public class AppsECPayQueryPlatformOrderV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs index b1c5e2d2..e9716586 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/v1/query_platform_order 接口的响应。 /// - public class AppsECPayQueryPlatformOrderV1Response : ByteDanceMicroAppResponse + public class AppsECPayQueryPlatformOrderV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs index 66442960..dd86eb63 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/query_refund 接口的请求。 /// - public class AppsECPayQueryRefundV1Request : ByteDanceMicroAppRequest + public class AppsECPayQueryRefundV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsECPayQueryRefundV1Request : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs index cebe47b3..e194d386 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/query_refund 接口的响应。 /// - public class AppsECPayQueryRefundV1Response : ByteDanceMicroAppResponse + public class AppsECPayQueryRefundV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs index 6e7b47f6..7d4c9645 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/query_return 接口的请求。 /// - public class AppsECPayQueryReturnV1Request : ByteDanceMicroAppRequest + public class AppsECPayQueryReturnV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsECPayQueryReturnV1Request : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs index d736e2f3..05684648 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/query_return 接口的响应。 /// - public class AppsECPayQueryReturnV1Response : ByteDanceMicroAppResponse + public class AppsECPayQueryReturnV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs index a49ad8d6..f725f58c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/query_settle 接口的请求。 /// - public class AppsECPayQuerySettleV1Request : ByteDanceMicroAppRequest + public class AppsECPayQuerySettleV1Request : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 @@ -13,7 +13,7 @@ public class AppsECPayQuerySettleV1Request : ByteDanceMicroAppRequest public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs index e7903ef3..a118fe0f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/query_settle 接口的响应。 /// - public class AppsECPayQuerySettleV1Response : ByteDanceMicroAppResponse + public class AppsECPayQuerySettleV1Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs index b003c521..f4e7245c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/v1/settle 接口的请求。 /// - public class AppsECPaySettleV1Request : ByteDanceMicroAppRequest + public class AppsECPaySettleV1Request : DouyinMicroAppRequest { public static class Types { @@ -35,7 +35,7 @@ public class SettleParameter public string? ComponentAppId { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs index 7bc34bd4..f36376d8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/v1/settle 接口的响应。 /// - public class AppsECPaySettleV1Response : ByteDanceMicroAppResponse + public class AppsECPaySettleV1Response : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs index a4ce6018..badd2347 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/saas/create_merchant 接口的请求。 /// - public class AppsECPaySaaSCreateMerchantRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSCreateMerchantRequest : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs index 30f733c8..6942d142 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/create_merchant 接口的响应。 /// - public class AppsECPaySaaSCreateMerchantResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSCreateMerchantResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs index c606b51f..9a3720a7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/saas/image_upload 接口的请求。 /// - public class AppsECPaySaaSImageUploadRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSImageUploadRequest : DouyinMicroAppRequest { /// /// 获取或设置小程序 AppId。与字段 二选一。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs index a8ff18e0..4cd1b0a8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/image_upload 接口的响应。 /// - public class AppsECPaySaaSImageUploadResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSImageUploadResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs index a2d087fc..fce3763f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs @@ -3,10 +3,10 @@ /// /// 表示 [POST] /apps/ecpay/saas/query_merchant_status 接口的请求。 /// - public class AppsECPaySaaSQueryMerchantStatusRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSQueryMerchantStatusRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("thirdparty_id")] [System.Text.Json.Serialization.JsonPropertyName("thirdparty_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs index abbd3e4b..d076c6e8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/ecpay/saas/query_merchant_status 接口的响应。 /// - public class AppsECPaySaaSQueryMerchantStatusResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSQueryMerchantStatusResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs index 06c3f278..2005535a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs @@ -3,10 +3,10 @@ /// /// 表示 [POST] /apps/ecpay/saas/add_merchant 接口的请求。 /// - public class AppsECPaySaaSAddMerchantRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSAddMerchantRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("thirdparty_component_id")] [System.Text.Json.Serialization.JsonPropertyName("thirdparty_component_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs index e9c2e5d2..b16fa564 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/add_merchant 接口的响应。 /// - public class AppsECPaySaaSAddMerchantResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSAddMerchantResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs index 5571e954..7329def5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs @@ -3,10 +3,10 @@ /// /// 表示 [POST] /apps/ecpay/saas/add_sub_merchant 接口的请求。 /// - public class AppsECPaySaaSAddSubMerchantRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSAddSubMerchantRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("thirdparty_id")] [System.Text.Json.Serialization.JsonPropertyName("thirdparty_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs index 7bc6d1a6..595c761b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/add_sub_merchant 接口的响应。 /// - public class AppsECPaySaaSAddSubMerchantResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSAddSubMerchantResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs index 8112e4c7..86da6515 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/app_add_sub_merchant 接口的请求。 /// - public class AppsECPaySaaSAppAddSubMerchantRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSAppAddSubMerchantRequest : DouyinMicroAppRequest { /// /// 获取或设置小程序的 AppId。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs index 6cdf8746..0a4ce426 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/app_add_sub_merchant 接口的响应。 /// - public class AppsECPaySaaSAppAddSubMerchantResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSAppAddSubMerchantResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs index 22ec3d95..5290c493 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs @@ -3,10 +3,10 @@ /// /// 表示 [POST] /apps/ecpay/saas/get_app_merchant 接口的请求。 /// - public class AppsECPaySaaSGetAppMerchantRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSGetAppMerchantRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序第三方平台应用 ID。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("thirdparty_id")] [System.Text.Json.Serialization.JsonPropertyName("thirdparty_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs index ca278d2b..9b17325e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/get_app_merchant 接口的响应。 /// - public class AppsECPaySaaSGetAppMerchantResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSGetAppMerchantResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs index b7644fec..38b98b0d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/merchant_withdraw 接口的请求。 /// - public class AppsECPaySaaSMerchantWithdrawRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSMerchantWithdrawRequest : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs index 5a5a4f84..cd4c4a3c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/merchant_withdraw 接口的响应。 /// - public class AppsECPaySaaSMerchantWithdrawResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSMerchantWithdrawResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs index cffabecf..969a5868 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/query_merchant_balance 接口的请求。 /// - public class AppsECPaySaaSQueryMerchantBalanceRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSQueryMerchantBalanceRequest : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs index 17732c2f..98a24cc8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/query_merchant_balance 接口的响应。 /// - public class AppsECPaySaaSQueryMerchantBalanceResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSQueryMerchantBalanceResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs index ee8d7e8c..68ecdd95 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/query_withdraw_order 接口的请求。 /// - public class AppsECPaySaaSQueryWithdrawOrderRequest : ByteDanceMicroAppRequest + public class AppsECPaySaaSQueryWithdrawOrderRequest : DouyinMicroAppRequest { /// /// 获取或设置小程序第三方平台应用 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs index ed691bff..1848b75c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/ecpay/saas/query_withdraw_order 接口的响应。 /// - public class AppsECPaySaaSQueryWithdrawOrderResponse : ByteDanceMicroAppResponse + public class AppsECPaySaaSQueryWithdrawOrderResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs index 0eb9fe3a..93a9748c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs @@ -1,6 +1,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { - public abstract class AppsGameWalletRequestBase : ByteDanceMicroAppRequest + public abstract class AppsGameWalletRequestBase : DouyinMicroAppRequest { /// /// @@ -10,7 +10,7 @@ public abstract class AppsGameWalletRequestBase : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinResponse.cs index 32500ecc..58afe271 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/game/wallet/add_coin 接口的响应。 /// - public class AppsGameWalletAddCoinResponse : ByteDanceMicroAppResponse + public class AppsGameWalletAddCoinResponse : DouyinMicroAppResponse { /// /// 获取或设置赠送游戏币的订单号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayResponse.cs index 702eb9ff..b26fb449 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/game/wallet/game_pay 接口的响应。 /// - public class AppsGameWalletGamePayResponse : ByteDanceMicroAppResponse + public class AppsGameWalletGamePayResponse : DouyinMicroAppResponse { /// /// 获取或设置订单号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceResponse.cs index f118d1da..2fc3ced7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/game/wallet/get_balance 接口的响应。 /// - public class AppsGameWalletGetBalanceResponse : ByteDanceMicroAppResponse + public class AppsGameWalletGetBalanceResponse : DouyinMicroAppResponse { /// /// 获取或设置游戏币数量。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageRequest.cs index 0dc9eb74..203af033 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/remove_user_storage 接口的请求。 /// - public class AppsRemoveUserStorageRequest : ByteDanceMicroAppRequest + public class AppsRemoveUserStorageRequest : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageResponse.cs index 01e51d0a..65076536 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/remove_user_storage 接口的响应。 /// - public class AppsRemoveUserStorageResponse : ByteDanceMicroAppResponse + public class AppsRemoveUserStorageResponse : DouyinMicroAppResponse { /// /// 获取或设置错误代号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageRequest.cs index e17acee8..e1b8fc44 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/set_user_storage 接口的请求。 /// - public class AppsSetUserStorageRequest : ByteDanceMicroAppRequest + public class AppsSetUserStorageRequest : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageResponse.cs index 58e134b0..a0748e58 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /apps/set_user_storage 接口的响应。 /// - public class AppsSetUserStorageResponse : ByteDanceMicroAppResponse + public class AppsSetUserStorageResponse : DouyinMicroAppResponse { /// /// 获取或设置错误代号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetRequest.cs index 972e2a59..4701dc6a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /comment/open/get 接口的请求。 /// - public class CommentOpenGetRequest : ByteDanceMicroAppRequest + public class CommentOpenGetRequest : DouyinMicroAppRequest { /// /// @@ -13,7 +13,7 @@ public class CommentOpenGetRequest : ByteDanceMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs index 7b248c4b..6b8fea97 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /comment/open/get 接口的响应。 /// - public class CommentOpenGetResponse : ByteDanceMicroAppResponse + public class CommentOpenGetResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Request.cs index d6460025..21d28709 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /v2/tags/image 接口的请求。 /// - public class TagsImageV2Request : ByteDanceMicroAppRequest + public class TagsImageV2Request : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs index d4d931e3..264e3ca4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v2/tags/image 接口的响应。 /// - public class TagsImageV2Response : ByteDanceMicroAppResponse + public class TagsImageV2Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Request.cs index e2f65f89..40ab5760 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /v2/tags/text/antidirt 接口的请求。 /// - public class TagsTextAntiDirtV2Request : ByteDanceMicroAppRequest + public class TagsTextAntiDirtV2Request : DouyinMicroAppRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs index afd3f1ff..48ad92ea 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /v2/tags/text/antidirt 接口的响应。 /// - public class TagsTextAntiDirtV2Response : ByteDanceMicroAppResponse + public class TagsTextAntiDirtV2Response : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftRequest.cs index 2ffcee72..bcb63b7b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftRequest.cs @@ -5,10 +5,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /gift/top_gift 接口的请求。 /// - public class WebcastGiftTopGiftRequest : ByteDanceMicroAppRequest + public class WebcastGiftTopGiftRequest : DouyinMicroAppRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftResponse.cs index 9bc573ea..fcd5fe4e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /gift/top_gift 接口的响应。 /// - public class WebcastGiftTopGiftResponse : ByteDanceMicroAppResponse + public class WebcastGiftTopGiftResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryRequest.cs index 74ab1195..4609e1fe 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryRequest.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /linkmic/query 接口的请求。 /// - public class WebcastLinkMicQueryRequest : ByteDanceMicroAppRequest + public class WebcastLinkMicQueryRequest : DouyinMicroAppRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryResponse.cs index c8151ac2..ec7ff36a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /linkmic/query 接口的响应。 /// - public class WebcastLinkMicQueryResponse : ByteDanceMicroAppResponse + public class WebcastLinkMicQueryResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs index 25cc6205..5d987aac 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /live_data/task/fail_data/get 接口的请求。 /// - public class WebcastLiveDataTaskFailDataGetRequest : ByteDanceMicroAppRequest + public class WebcastLiveDataTaskFailDataGetRequest : DouyinMicroAppRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs index c26eb6f3..cef5530c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /live_data/task/fail_data/get 接口的响应。 /// - public class WebcastLiveDataTaskFailDataGetResponse : ByteDanceMicroAppResponse + public class WebcastLiveDataTaskFailDataGetResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetRequest.cs index 206170de..91388bcf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetRequest.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /live_data/task/get 接口的请求。 /// - public class WebcastLiveDataTaskGetRequest : ByteDanceMicroAppRequest + public class WebcastLiveDataTaskGetRequest : DouyinMicroAppRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetResponse.cs index 0a8f2b8d..4626325c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /live_data/task/get 接口的响应。 /// - public class WebcastLiveDataTaskGetResponse : ByteDanceMicroAppResponse + public class WebcastLiveDataTaskGetResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartRequest.cs index 017f180f..941c93d9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartRequest.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /live_data/task/start 接口的请求。 /// - public class WebcastLiveDataTaskStartRequest : ByteDanceMicroAppRequest + public class WebcastLiveDataTaskStartRequest : DouyinMicroAppRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartResponse.cs index 822b6a96..20546f59 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /live_data/task/start 接口的响应。 /// - public class WebcastLiveDataTaskStartResponse : ByteDanceMicroAppResponse + public class WebcastLiveDataTaskStartResponse : DouyinMicroAppResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopRequest.cs index 59640314..7d90806a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopRequest.cs @@ -3,10 +3,10 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /live_data/task/stop 接口的请求。 /// - public class WebcastLiveDataTaskStopRequest : ByteDanceMicroAppRequest + public class WebcastLiveDataTaskStopRequest : DouyinMicroAppRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopResponse.cs index 82c2aa11..f6c45ea9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /live_data/task/stop 接口的响应。 /// - public class WebcastLiveDataTaskStopResponse : ByteDanceMicroAppResponse + public class WebcastLiveDataTaskStopResponse : DouyinMicroAppResponse { /// /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md index 464cc6e7..28ac2495 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md @@ -2,14 +2,14 @@ [![GitHub Stars](https://img.shields.io/github/stars/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance?logo=github&label=Stars)](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance) [![GitHub Forks](https://img.shields.io/github/forks/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance?logo=github&label=Forks)](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance) [![NuGet Download](https://img.shields.io/nuget/dt/SKIT.FlurlHttpClient.ByteDance.MicroApp.svg?sanitize=true&label=Downloads)](https://www.nuget.org/packages/SKIT.FlurlHttpClient.ByteDance.MicroApp) [![License](https://img.shields.io/github/license/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance?label=License)](https://mit-license.org/) -基于 `Flurl.Http` 的字节小程序开放平台 HTTP API SDK。 +基于 `Flurl.Http` 的抖音小程序开放平台 HTTP API SDK。 --- ### 【功能特性】 -- 基于字节小程序开放平台 API 封装。 -- 提供了字节小程序所需的 AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 +- 基于抖音小程序开放平台 API 封装。 +- 提供了抖音小程序所需的 AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 - 提供了解析回调通知事件等扩展方法。 --- diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj index fa3c04b5..10f0b78b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj @@ -13,9 +13,9 @@ README.md MIT https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance - Flurl.Http ByteDance MicroApp 字节 字节小程序 字节跳动 字节跳动小程序 头条 头条小程序 今日头条 今日头条小程序 + Flurl.Http ByteDance MicroApp 字节 字节跳动 头条 今日头条 抖音 字节小程序 字节跳动小程序 头条小程序 今日头条小程序 抖音小程序 3.0.0-preview.1 - 基于 Flurl.Http 的字节小程序开放平台 API 客户端,支持小程序、小游戏、服务商平台、泛知识课程库&角色系统、直播小玩法等接口。 + 基于 Flurl.Http 的抖音小程序开放平台 API 客户端,支持小程序、小游戏、服务商平台、泛知识课程库+角色系统、直播小玩法等接口。 Fu Diwei git https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance.git diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs index 6533efee..40a54744 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Settings/Credentials.cs @@ -5,31 +5,31 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Settings public class Credentials { /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string AppId { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string AppSecret { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string? PushToken { get; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string? PushEncodingAESKey { get; set; } /// - /// 初始化客户端时 的副本。 + /// 初始化客户端时 的副本。 /// public string? ECPaySalt { get; } - internal Credentials(ByteDanceMicroAppClientOptions options) + internal Credentials(DouyinMicroAppClientOptions options) { if (options is null) throw new ArgumentNullException(nameof(options)); diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs index 167f3581..3deaca45 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs @@ -24,7 +24,7 @@ public void CodeAnalyze() { var options = new TypeDeclarationAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp", @@ -45,7 +45,7 @@ public void CodeAnalyze() var options = new SourceFileAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", @@ -71,7 +71,7 @@ public void CodeAnalyze() { var options = new TypeDeclarationAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi", @@ -91,7 +91,7 @@ public void CodeAnalyze() var options = new SourceFileAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppOpenApiClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppOpenApiClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events", @@ -121,7 +121,7 @@ public void CodeAnalyze() { var options = new TypeDeclarationAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppProductApiClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppProductApiClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi", @@ -141,7 +141,7 @@ public void CodeAnalyze() var options = new SourceFileAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppProductApiClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppProductApiClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events", @@ -171,7 +171,7 @@ public void CodeAnalyze() { var options = new TypeDeclarationAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppRoleApiClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppRoleApiClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi", @@ -189,7 +189,7 @@ public void CodeAnalyze() var options = new SourceFileAnalyzerOptions() { - SdkAssembly = Assembly.GetAssembly(typeof(ByteDanceMicroAppRoleApiClient))!, + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppRoleApiClient))!, SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_ApiExecuteAppsECPayTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_ApiExecuteAppsECPayTests.cs index c813018e..fcd2da03 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_ApiExecuteAppsECPayTests.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_ApiExecuteAppsECPayTests.cs @@ -8,7 +8,7 @@ public class TestCase_ApiExecuteAppsECPayTests [Fact(DisplayName = "测试用例:担保支付请求签名")] public async Task TestECPayRequestSignature() { - using var client = new ByteDanceMicroAppClient(new ByteDanceMicroAppClientOptions() { ECPaySalt = "your_payment_salt" }); + using var client = new DouyinMicroAppClient(new DouyinMicroAppClientOptions() { ECPaySalt = "your_payment_salt" }); var request = new Models.AppsECPayCreateOrderV1Request() { AppId = "ttcfdbb9xxxxxxxxxxx", diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs index 9bca861c..27c59bd7 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestCase_EventVerificationTests.cs @@ -15,13 +15,13 @@ public void TestVerifyJsonEvent() string callbackRawJson = "{\"ToUserName\":\"appid\",\"FromUserName\":\"openid\",\"CreateTime\":1577364225,\"MsgType\":\"text\",\"Content\":\"text content\"}"; string callbackSecretJson = "{\"Nonce\":\"1372623149\",\"TimeStamp\":\"1409659813\",\"Encrypt\":\"qc4kT4X+UzU6/qfguyGDpAd6mt2SmOYc1FE9DkulrGWTeHgMu3cPa1WQiNQ61+GMZI2DOzHbu4QVxduzuwh83Q3umURGKyRdNgaEY1GNGt+hhVOjLSkU8wHPNbZ8YfBGsZdZfdWxTy+e36Utetrw17T8MYcoHOhOcIml4dD8DU90SAL6oCA7AZrB8nh+J1kahSQ3c30D6LKlPk044cEWKkVBSzF2XWaPuaUIlUVXigknfFVAhfFFKAuQ7e6ftzJ2\",\"MsgSignature\":\"599c9a6a625fec4c7f13cbafbf4083491a515e6b\"}"; - var options = new ByteDanceMicroAppClientOptions() + var options = new DouyinMicroAppClientOptions() { AppId = "tt5823bf96d3bd56c7", PushEncodingAESKey = "jWmYm7qr5nMoAUwZRjGtBxmz3KA1tkAj3ykkR6q2B2C", PushToken = "QDG6eK" }; - var client = new ByteDanceMicroAppClient(options); + var client = new DouyinMicroAppClient(options); var eventModel1 = client.DeserializeEventFromJson(callbackRawJson); var eventModel2 = client.DeserializeEventFromJson(callbackSecretJson); @@ -43,13 +43,13 @@ public void TestVerifyJsonEvent() string callbackRawJson = "{\"FromUserName\":\"ByteDanceMicroApp\",\"CreateTime\":\"2019-01-14 12:45:10\",\"Event\":\"PUSH\",\"MsgType\":\"Ticket\",\"Ticket\":\"8c0da4968b0d1e28acbc1d738a56607d\"}"; string callbackSecretJson = "{\"Nonce\":\"1372623149\",\"TimeStamp\":\"1409659813\",\"Encrypt\":\"OheJ/nrK5Liim/H6TjL6ufUBwoxRP4sy2e0mS7IO47WESBIHgIXdGLwhs8iDCgMsPe0I78q2jUNtdO7w6+Vg+gtmEm5mbcljWv18Fs5hw91+hwID9uOGNC5ICeLGMMXW0uaGtqn8XgwXxtROAK220M5oRYK9MvmIoU/Q7Tvx1xnP4Jfunww+2mYqgD3YIYvTFVReX+3BeRuBh7zOK7tRbdqXaPbK/Cko0Vnt82rikDmItgXLUtJC4wxJohhXKZGb/12oFq6L/Uy+CtLqVLZMIH4uxlb5cO9exYfArVocZTc=\",\"MsgSignature\":\"e51e71c9087fc57ae1cf8eb25c0d1ba837db5b7c\"}"; - var options = new ByteDanceMicroAppOpenApiClientOptions() + var options = new DouyinMicroAppOpenApiClientOptions() { ComponentAppId = "tt5823bf96d3bd56c7", PushEncodingAESKey = "jWmYm7qr5nMoAUwZRjGtBxmz3KA1tkAj3ykkR6q2B2C", PushToken = "QDG6eK" }; - var client = new ByteDanceMicroAppOpenApiClient(options); + var client = new DouyinMicroAppOpenApiClient(options); var eventModel1 = client.DeserializeEventFromJson(callbackRawJson); var eventModel2 = client.DeserializeEventFromJson(callbackSecretJson); @@ -75,13 +75,13 @@ public void TestVerifyXmlEvent() string callbackRawXml = "1577364225"; string callbackSecretXml = "13726231491409659813"; - var options = new ByteDanceMicroAppClientOptions() + var options = new DouyinMicroAppClientOptions() { AppId = "tt5823bf96d3bd56c7", PushEncodingAESKey = "jWmYm7qr5nMoAUwZRjGtBxmz3KA1tkAj3ykkR6q2B2C", PushToken = "QDG6eK" }; - var client = new ByteDanceMicroAppClient(options); + var client = new DouyinMicroAppClient(options); var eventModel1 = client.DeserializeEventFromXml(callbackRawXml); var eventModel2 = client.DeserializeEventFromXml(callbackSecretXml); @@ -103,13 +103,13 @@ public void TestVerifyXmlEvent() string callbackRawXml = ""; string callbackSecretXml = "13726231491409659813"; - var options = new ByteDanceMicroAppOpenApiClientOptions() + var options = new DouyinMicroAppOpenApiClientOptions() { ComponentAppId = "tt5823bf96d3bd56c7", PushEncodingAESKey = "jWmYm7qr5nMoAUwZRjGtBxmz3KA1tkAj3ykkR6q2B2C", PushToken = "QDG6eK" }; - var client = new ByteDanceMicroAppOpenApiClient(options); + var client = new DouyinMicroAppOpenApiClient(options); var eventModel1 = client.DeserializeEventFromXml(callbackRawXml); var eventModel2 = client.DeserializeEventFromXml(callbackSecretXml); diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestClients.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestClients.cs index 8f2b2017..399f8db7 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestClients.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/TestClients.cs @@ -4,13 +4,13 @@ internal class TestClients { static TestClients() { - Instance = new ByteDanceMicroAppClient(new ByteDanceMicroAppClientOptions() + Instance = new DouyinMicroAppClient(new DouyinMicroAppClientOptions() { AppId = TestConfigs.ByteDanceMicroAppId, AppSecret = TestConfigs.ByteDanceMicroAppSecret }); } - public static readonly ByteDanceMicroAppClient Instance; + public static readonly DouyinMicroAppClient Instance; } } From dadc44203dd4677c81fe5d4b3eed1162e2823cc5 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 14:45:43 +0800 Subject: [PATCH 03/42] =?UTF-8?q?feat(microapp):=20=E6=9E=84=E9=80=A0?= =?UTF-8?q?=E5=99=A8=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DouyinMicroAppClientBuilder.cs | 94 +++++++++++++++++++ .../DouyinMicroAppOpenApiClientBuilder.cs | 94 +++++++++++++++++++ .../DouyinMicroAppProductApiClientBuilder.cs | 94 +++++++++++++++++++ .../DouyinMicroAppRoleApiClientBuilder.cs | 94 +++++++++++++++++++ 4 files changed, 376 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientBuilder.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientBuilder.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientBuilder.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientBuilder.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientBuilder.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientBuilder.cs new file mode 100644 index 00000000..22efdb02 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientBuilder.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + /// + /// 用于构造 实例的构造器。 + /// + public partial class DouyinMicroAppClientBuilder : ICommonClientBuilder + { + private readonly DouyinMicroAppClientOptions _options; + private readonly IList> _configures; + private readonly IList _interceptors; + private HttpClient? _httpClient; + private bool? _disposeClient; + + private DouyinMicroAppClientBuilder(DouyinMicroAppClientOptions options) + { + _options = options; + _configures = new List>(); + _interceptors = new List(); + } + + ICommonClientBuilder ICommonClientBuilder.ConfigureSettings(Action configure) + { + return ConfigureSettings(configure); + } + + ICommonClientBuilder ICommonClientBuilder.UseInterceptor(HttpInterceptor interceptor) + { + return UseInterceptor(interceptor); + } + + ICommonClientBuilder ICommonClientBuilder.UseHttpClient(HttpClient httpClient, bool disposeClient) + { + return UseHttpClient(httpClient, disposeClient); + } + + public DouyinMicroAppClientBuilder ConfigureSettings(Action configure) + { + if (configure is null) throw new ArgumentNullException(nameof(configure)); + + _configures.Add(configure); + return this; + } + + public DouyinMicroAppClientBuilder UseInterceptor(HttpInterceptor interceptor) + { + if (interceptor is null) throw new ArgumentNullException(nameof(interceptor)); + + _interceptors.Add(interceptor); + return this; + } + + public DouyinMicroAppClientBuilder UseHttpClient(HttpClient httpClient, bool disposeClient = true) + { + if (httpClient is null) throw new ArgumentNullException(nameof(httpClient)); + + _httpClient = httpClient; + _disposeClient = disposeClient; + return this; + } + + public DouyinMicroAppClient Build() + { + DouyinMicroAppClient client = _disposeClient.HasValue + ? new DouyinMicroAppClient(_options, _httpClient, _disposeClient.Value) + : new DouyinMicroAppClient(_options, _httpClient); + + foreach (Action configure in _configures) + { + client.Configure(configure); + } + + foreach (HttpInterceptor interceptor in _interceptors) + { + client.Interceptors.Add(interceptor); + } + + return client; + } + } + + partial class DouyinMicroAppClientBuilder + { + public static DouyinMicroAppClientBuilder Create(DouyinMicroAppClientOptions options) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + return new DouyinMicroAppClientBuilder(options); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientBuilder.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientBuilder.cs new file mode 100644 index 00000000..b4bce120 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientBuilder.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + /// + /// 用于构造 实例的构造器。 + /// + public partial class DouyinMicroAppOpenApiClientBuilder : ICommonClientBuilder + { + private readonly DouyinMicroAppOpenApiClientOptions _options; + private readonly IList> _configures; + private readonly IList _interceptors; + private HttpClient? _httpClient; + private bool? _disposeClient; + + private DouyinMicroAppOpenApiClientBuilder(DouyinMicroAppOpenApiClientOptions options) + { + _options = options; + _configures = new List>(); + _interceptors = new List(); + } + + ICommonClientBuilder ICommonClientBuilder.ConfigureSettings(Action configure) + { + return ConfigureSettings(configure); + } + + ICommonClientBuilder ICommonClientBuilder.UseInterceptor(HttpInterceptor interceptor) + { + return UseInterceptor(interceptor); + } + + ICommonClientBuilder ICommonClientBuilder.UseHttpClient(HttpClient httpClient, bool disposeClient) + { + return UseHttpClient(httpClient, disposeClient); + } + + public DouyinMicroAppOpenApiClientBuilder ConfigureSettings(Action configure) + { + if (configure is null) throw new ArgumentNullException(nameof(configure)); + + _configures.Add(configure); + return this; + } + + public DouyinMicroAppOpenApiClientBuilder UseInterceptor(HttpInterceptor interceptor) + { + if (interceptor is null) throw new ArgumentNullException(nameof(interceptor)); + + _interceptors.Add(interceptor); + return this; + } + + public DouyinMicroAppOpenApiClientBuilder UseHttpClient(HttpClient httpClient, bool disposeClient = true) + { + if (httpClient is null) throw new ArgumentNullException(nameof(httpClient)); + + _httpClient = httpClient; + _disposeClient = disposeClient; + return this; + } + + public DouyinMicroAppOpenApiClient Build() + { + DouyinMicroAppOpenApiClient client = _disposeClient.HasValue + ? new DouyinMicroAppOpenApiClient(_options, _httpClient, _disposeClient.Value) + : new DouyinMicroAppOpenApiClient(_options, _httpClient); + + foreach (Action configure in _configures) + { + client.Configure(configure); + } + + foreach (HttpInterceptor interceptor in _interceptors) + { + client.Interceptors.Add(interceptor); + } + + return client; + } + } + + partial class DouyinMicroAppOpenApiClientBuilder + { + public static DouyinMicroAppOpenApiClientBuilder Create(DouyinMicroAppOpenApiClientOptions options) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + return new DouyinMicroAppOpenApiClientBuilder(options); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientBuilder.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientBuilder.cs new file mode 100644 index 00000000..9edd2691 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientBuilder.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi +{ + /// + /// 用于构造 实例的构造器。 + /// + public partial class DouyinMicroAppProductApiClientBuilder : ICommonClientBuilder + { + private readonly DouyinMicroAppProductApiClientOptions _options; + private readonly IList> _configures; + private readonly IList _interceptors; + private HttpClient? _httpClient; + private bool? _disposeClient; + + private DouyinMicroAppProductApiClientBuilder(DouyinMicroAppProductApiClientOptions options) + { + _options = options; + _configures = new List>(); + _interceptors = new List(); + } + + ICommonClientBuilder ICommonClientBuilder.ConfigureSettings(Action configure) + { + return ConfigureSettings(configure); + } + + ICommonClientBuilder ICommonClientBuilder.UseInterceptor(HttpInterceptor interceptor) + { + return UseInterceptor(interceptor); + } + + ICommonClientBuilder ICommonClientBuilder.UseHttpClient(HttpClient httpClient, bool disposeClient) + { + return UseHttpClient(httpClient, disposeClient); + } + + public DouyinMicroAppProductApiClientBuilder ConfigureSettings(Action configure) + { + if (configure is null) throw new ArgumentNullException(nameof(configure)); + + _configures.Add(configure); + return this; + } + + public DouyinMicroAppProductApiClientBuilder UseInterceptor(HttpInterceptor interceptor) + { + if (interceptor is null) throw new ArgumentNullException(nameof(interceptor)); + + _interceptors.Add(interceptor); + return this; + } + + public DouyinMicroAppProductApiClientBuilder UseHttpClient(HttpClient httpClient, bool disposeClient = true) + { + if (httpClient is null) throw new ArgumentNullException(nameof(httpClient)); + + _httpClient = httpClient; + _disposeClient = disposeClient; + return this; + } + + public DouyinMicroAppProductApiClient Build() + { + DouyinMicroAppProductApiClient client = _disposeClient.HasValue + ? new DouyinMicroAppProductApiClient(_options, _httpClient, _disposeClient.Value) + : new DouyinMicroAppProductApiClient(_options, _httpClient); + + foreach (Action configure in _configures) + { + client.Configure(configure); + } + + foreach (HttpInterceptor interceptor in _interceptors) + { + client.Interceptors.Add(interceptor); + } + + return client; + } + } + + partial class DouyinMicroAppProductApiClientBuilder + { + public static DouyinMicroAppProductApiClientBuilder Create(DouyinMicroAppProductApiClientOptions options) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + return new DouyinMicroAppProductApiClientBuilder(options); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientBuilder.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientBuilder.cs new file mode 100644 index 00000000..44d6d817 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientBuilder.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi +{ + /// + /// 用于构造 实例的构造器。 + /// + public partial class DouyinMicroAppRoleApiClientBuilder : ICommonClientBuilder + { + private readonly DouyinMicroAppRoleApiClientOptions _options; + private readonly IList> _configures; + private readonly IList _interceptors; + private HttpClient? _httpClient; + private bool? _disposeClient; + + private DouyinMicroAppRoleApiClientBuilder(DouyinMicroAppRoleApiClientOptions options) + { + _options = options; + _configures = new List>(); + _interceptors = new List(); + } + + ICommonClientBuilder ICommonClientBuilder.ConfigureSettings(Action configure) + { + return ConfigureSettings(configure); + } + + ICommonClientBuilder ICommonClientBuilder.UseInterceptor(HttpInterceptor interceptor) + { + return UseInterceptor(interceptor); + } + + ICommonClientBuilder ICommonClientBuilder.UseHttpClient(HttpClient httpClient, bool disposeClient) + { + return UseHttpClient(httpClient, disposeClient); + } + + public DouyinMicroAppRoleApiClientBuilder ConfigureSettings(Action configure) + { + if (configure is null) throw new ArgumentNullException(nameof(configure)); + + _configures.Add(configure); + return this; + } + + public DouyinMicroAppRoleApiClientBuilder UseInterceptor(HttpInterceptor interceptor) + { + if (interceptor is null) throw new ArgumentNullException(nameof(interceptor)); + + _interceptors.Add(interceptor); + return this; + } + + public DouyinMicroAppRoleApiClientBuilder UseHttpClient(HttpClient httpClient, bool disposeClient = true) + { + if (httpClient is null) throw new ArgumentNullException(nameof(httpClient)); + + _httpClient = httpClient; + _disposeClient = disposeClient; + return this; + } + + public DouyinMicroAppRoleApiClient Build() + { + DouyinMicroAppRoleApiClient client = _disposeClient.HasValue + ? new DouyinMicroAppRoleApiClient(_options, _httpClient, _disposeClient.Value) + : new DouyinMicroAppRoleApiClient(_options, _httpClient); + + foreach (Action configure in _configures) + { + client.Configure(configure); + } + + foreach (HttpInterceptor interceptor in _interceptors) + { + client.Interceptors.Add(interceptor); + } + + return client; + } + } + + partial class DouyinMicroAppRoleApiClientBuilder + { + public static DouyinMicroAppRoleApiClientBuilder Create(DouyinMicroAppRoleApiClientOptions options) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + return new DouyinMicroAppRoleApiClientBuilder(options); + } + } +} From 20013904ee66b8b28d004809df24f3f1940dd86a Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 14:45:52 +0800 Subject: [PATCH 04/42] =?UTF-8?q?docs:=20=E5=AE=8C=E5=96=84=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/MicroApp/Advanced_Dispose.md | 13 +++ docs/MicroApp/Advanced_IHttpClientFactory.md | 4 +- docs/MicroApp/Advanced_Interceptor.md | 2 +- docs/MicroApp/Advanced_JsonSerializer.md | 2 +- docs/MicroApp/Basic_EventDeserialization.md | 20 ++-- .../Basic_EventSignatureVerification.md | 19 ++-- docs/MicroApp/Basic_Extensions.md | 20 ++-- docs/MicroApp/Basic_ModelDefinition.md | 10 +- docs/MicroApp/README.md | 97 ++++++++++++------- 9 files changed, 112 insertions(+), 75 deletions(-) create mode 100644 docs/MicroApp/Advanced_Dispose.md diff --git a/docs/MicroApp/Advanced_Dispose.md b/docs/MicroApp/Advanced_Dispose.md new file mode 100644 index 00000000..cf2f55e3 --- /dev/null +++ b/docs/MicroApp/Advanced_Dispose.md @@ -0,0 +1,13 @@ +## 如何销毁客户端? + +--- + +本功能来自于公共组件,请参阅公共组件下的相关文档: + +> [《SKIT.FlurlHttpClient FAQ:如何销毁客户端(避免内存泄漏)?》](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/blob/main/docs/README.md) + +--- + +### 镜像站点 + +国内用户如访问 GitHub 网络状况不佳,可在打开上述链接后,手动将域名部分的 **github.com** 替换为 **gitee.com**、剩余路径部分保持不变,即可访问。 diff --git a/docs/MicroApp/Advanced_IHttpClientFactory.md b/docs/MicroApp/Advanced_IHttpClientFactory.md index d73d446a..48061b9b 100644 --- a/docs/MicroApp/Advanced_IHttpClientFactory.md +++ b/docs/MicroApp/Advanced_IHttpClientFactory.md @@ -1,10 +1,10 @@ -## 如何在 ASP.NET Core 中与 `IHttpClientFactory` 集成? +## 如何与 `IHttpClientFactory` 集成? --- 本功能来自于公共组件,请参阅公共组件下的相关文档: -> [《SKIT.FlurlHttpClient FAQ:如何在 ASP.NET Core 中与 IHttpClientFactory 集成?》](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/blob/main/docs/FAQ_IHttpClientFactory.md) +> [《SKIT.FlurlHttpClient FAQ:如何与 IHttpClientFactory 集成?》](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/blob/main/docs/README.md) --- diff --git a/docs/MicroApp/Advanced_Interceptor.md b/docs/MicroApp/Advanced_Interceptor.md index 2bc28620..23f63eb1 100644 --- a/docs/MicroApp/Advanced_Interceptor.md +++ b/docs/MicroApp/Advanced_Interceptor.md @@ -4,7 +4,7 @@ 本功能来自于公共组件,请参阅公共组件下的相关文档: -> [《SKIT.FlurlHttpClient FAQ:如何使用拦截器?》](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/blob/main/docs/FAQ_Interceptor.md) +> [《SKIT.FlurlHttpClient FAQ:如何使用拦截器?》](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/blob/main/docs/README.md) --- diff --git a/docs/MicroApp/Advanced_JsonSerializer.md b/docs/MicroApp/Advanced_JsonSerializer.md index a9df787e..251fe34f 100644 --- a/docs/MicroApp/Advanced_JsonSerializer.md +++ b/docs/MicroApp/Advanced_JsonSerializer.md @@ -4,7 +4,7 @@ 本功能来自于公共组件,请参阅公共组件下的相关文档: -> [《SKIT.FlurlHttpClient FAQ:如何指定 JSON 序列化器?》](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/blob/main/docs/FAQ_JsonSerializer.md) +> [《SKIT.FlurlHttpClient FAQ:如何指定 JSON 序列化器?》](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient/blob/main/docs/README.md) --- diff --git a/docs/MicroApp/Basic_EventDeserialization.md b/docs/MicroApp/Basic_EventDeserialization.md index 35e37bc8..8f8567e7 100644 --- a/docs/MicroApp/Basic_EventDeserialization.md +++ b/docs/MicroApp/Basic_EventDeserialization.md @@ -2,46 +2,46 @@ --- -对于字节小程序推送过来的回调通知事件,本库封装了直接解析成事件模型的扩展方法,下面给出一个示例: +对于抖音小程序推送过来的回调通知事件,本库封装了直接解析成事件模型的扩展方法,下面给出一个示例: ```csharp /* 如果是 JSON 格式的通知内容,以 text 事件为例 */ -string callbackJson = "{ ... }"; -var callbackModel = client.DeserializeEventFromJson(callbackJson); +string webhookJson = "{ ... }"; +var webhookModel = client.DeserializeEventFromJson(webhookJson); /* 如果是 XML 格式的通知内容,以 text 事件为例 */ -string callbackXml = " ... "; -var callbackModel = client.DeserializeEventFromXml(callbackXml); +string webhookXml = " ... "; +var webhookModel = client.DeserializeEventFromXml(webhookXml); ``` -完整的回调通知模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/ProductApi/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/OpenApi/Events_ 目录。 +完整的回调通知模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/OpenApi/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/ProductApi/Events_ 目录。 --- ### 事件类型: -由于字节小程序会将全部事件推送到同一个回调通知地址上,开发者需要根据事件类型才能决定如何反序列化。 +由于抖音小程序会将全部事件推送到同一个回调通知地址上,开发者需要根据事件类型才能决定如何反序列化。 这里给出两种解决方案。 一种是利用 `System.Xml.Linq`: ```csharp -XDocument xDoc = XDocument.Parse(callbackXml); +XDocument xDoc = XDocument.Parse(webhookXml); string msgType = xDoc.Root?.Element("MsgType")?.Value?.ToUpper(); ``` 另一种是利用本库的扩展方法: ```csharp -ByteDanceMicroAppEvent eventModel = client.DeserializeEventFromXml(callbackXml); +ByteDanceMicroAppEvent eventModel = client.DeserializeEventFromXml(webhookXml); string msgType = eventModel.MessageType?.ToUpper(); switch (msgType) { case "TEXT": { - var callbackModel = client.DeserializeEventFromXml(callbackXml); + var webhookModel = client.DeserializeEventFromXml(webhookXml); } break; // 省略其他情况 diff --git a/docs/MicroApp/Basic_EventSignatureVerification.md b/docs/MicroApp/Basic_EventSignatureVerification.md index e6c0bf9c..a7661713 100644 --- a/docs/MicroApp/Basic_EventSignatureVerification.md +++ b/docs/MicroApp/Basic_EventSignatureVerification.md @@ -4,25 +4,24 @@ > 请先自行阅读: > -> [《字节小程序文档 - 消息推送客服:验证消息来自今日头条》](https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/component/message-push-customer-service) +> [《抖音小程序文档 - 消息推送客服:验证消息来自今日头条》](https://microapp.bytedance.com/docs/zh-CN/mini-app/develop/component/message-push-customer-service) 同样的,你既可以利用本库提供的 `SHA1Utility` 工具类自行进行签名验证,也可以通过扩展方法实现: ```csharp /* 在初始化客户端时需指定服务器推送的相关参数 */ -var options = new ByteDanceMicroAppClientOptions() +var options = new DouyinMicroAppClientOptions() { - AppId = "字节小程序 AppId", - AppSecret = "字节小程序 AppSecret", + // 其他配置项略 PushToken = "服务器推送的 Token" }; -var client = new ByteDanceMicroAppClient(options); +var client = DouyinMicroAppClientBuilder.Create(options).Build(); -/* 验证字节小程序服务器 */ +/* 验证抖音服务器 */ bool ret = client.VerifyEventSignatureForEcho( - callbackTimestamp: "字节小程序回调通知中的 timestamp 字段", - callbackNonce: "字节小程序回调通知中的 nonce 字段", - callbackMessage: "头条回调通知中的 msg 字段", - callbackSignature: "头条回调通知中的 signature 字段" + webhookTimestamp: "抖音小程序回调通知中的 timestamp 字段", + webhookNonce: "抖音小程序回调通知中的 nonce 字段", + webhookMsg: "抖音回调通知中的 msg 字段", + webhookSignature: "抖音回调通知中的 signature 字段" ); ``` diff --git a/docs/MicroApp/Basic_Extensions.md b/docs/MicroApp/Basic_Extensions.md index ab08244d..855bd998 100644 --- a/docs/MicroApp/Basic_Extensions.md +++ b/docs/MicroApp/Basic_Extensions.md @@ -5,26 +5,26 @@ 如果有某些接口本库尚未支持,你可按照下面的示例自行扩展: ```csharp -/* 继承 ByteDanceMicroAppRequest 实现自定义请求类 */ -public class MyFakeRequest : ByteDanceMicroAppRequest +/* 继承 DouyinMicroAppRequest 实现自定义请求类 */ +public class MyFakeRequest : DouyinMicroAppRequest { [Newtonsoft.Json.JsonProperty("my_fake_props")] [System.Text.Json.Serialization.JsonPropertyName("my_fake_props")] public string MyFakeProps { get; set; } } -/* 继承 ByteDanceMicroAppResponse 实现自定义响应类 */ -public class MyFakeResponse : ByteDanceMicroAppResponse +/* 继承 DouyinMicroAppResponse 实现自定义响应类 */ +public class MyFakeResponse : DouyinMicroAppResponse { [Newtonsoft.Json.JsonProperty("my_fake_props")] [System.Text.Json.Serialization.JsonPropertyName("my_fake_props")] public string MyFakeProps { get; set; } } -/* 扩展 ByteDanceMicroAppClient 方法 */ +/* 扩展 DouyinMicroAppClient 方法 */ public static class MyFakeClientExtensions { - public static async Task ExecuteMyFakeAsync(this ByteDanceMicroAppClient client, MyFakeRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteMyFakeAsync(this DouyinMicroAppClient client, MyFakeRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -41,16 +41,16 @@ public static class MyFakeClientExtensions 同样的,你也可自行扩展回调通知事件模型: ```csharp -/* 继承 ByteDanceMicroAppEvent 实现自定义的 JSON 格式的回调通知事件 */ -public class MyFakeEvent : ByteDanceMicroAppEvent, ByteDanceMicroAppEvent.Serialization.IJsonSerializable +/* 继承 DouyinMicroAppEvent 实现自定义的 JSON 格式的回调通知事件 */ +public class MyFakeEvent : DouyinMicroAppEvent, DouyinMicroAppEvent.Serialization.IJsonSerializable { [Newtonsoft.Json.JsonProperty("my_fake_props")] [System.Text.Json.Serialization.JsonPropertyName("my_fake_props")] public string MyFakeProps { get; set; } } -/* 继承 ByteDanceMicroAppEvent 实现自定义的 XML 格式的回调通知事件 */ -public class MyFakeEvent : ByteDanceMicroAppEvent, ByteDanceMicroAppEvent.Serialization.IXmlSerializable +/* 继承 DouyinMicroAppEvent 实现自定义的 XML 格式的回调通知事件 */ +public class MyFakeEvent : DouyinMicroAppEvent, DouyinMicroAppEvent.Serialization.IXmlSerializable { [System.Xml.Serialization.XmlElement("my_fake_props")] public string MyFakeProps { get; set; } diff --git a/docs/MicroApp/Basic_ModelDefinition.md b/docs/MicroApp/Basic_ModelDefinition.md index 68b68ac0..e127711d 100644 --- a/docs/MicroApp/Basic_ModelDefinition.md +++ b/docs/MicroApp/Basic_ModelDefinition.md @@ -8,11 +8,11 @@ 再有,每个对象的命名与官方文档的接口地址大体保持一致。例如刚刚提到的发送订阅消息,它的接口地址是 `[POST] /apps/message/custom/send`,将其中的反斜杠去掉、并以大驼峰命名法的方式调整它,就可以得到前文提到的几个对象了。如果路由中带有版本信息,那么版本号一般都在结尾处,例如接口 `[POST] /v2/tags/image` 对应的是 `TagsImageV2`。 -完整的模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.Api/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/ProductApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/OpenApi/Models_ 目录。 +完整的模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.Api/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/OpenApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/ProductApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/RoleApi/Models_ 目录。 --- -### 字节小程序开放平台 API 支持情况: +### 抖音小程序开放平台 API 支持情况: #### 1. 小程序 @@ -20,7 +20,7 @@ [展开查看] -| | 字节 API | 备注 | +| | 抖音 API | 备注 | | :-: | :------------------------------------: | :------------------: | | √ | 接口调用凭证 | | | √ | 登录 | | @@ -50,7 +50,7 @@ [展开查看] -| | 字节 API | 备注 | +| | 抖音 API | 备注 | | :-: | :----------: | :--: | | √ | 接口调用凭证 | | | √ | 登录 | | @@ -66,7 +66,7 @@ [展开查看] -| | 字节 API | 备注 | +| | 抖音 API | 备注 | | :-: | :--------------------: | :--: | | √ | 授权相关接口 | | | √ | 域名相关接口 | | diff --git a/docs/MicroApp/README.md b/docs/MicroApp/README.md index 63564402..23d7d775 100644 --- a/docs/MicroApp/README.md +++ b/docs/MicroApp/README.md @@ -1,19 +1,22 @@ # SKIT.FlurlHttpClient.ByteDance.MicroApp -基于 `Flurl.Http` 的[字节小程序开放平台](https://microapp.bytedance.com/) HTTP API SDK。 +基于 `Flurl.Http` 的[抖音小程序开放平台](https://microapp.bytedance.com/) HTTP API SDK。 --- ## 功能 -- 基于字节小程序开放平台 API 封装。 -- 提供了字节小程序所需的 AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 +- 基于抖音小程序开放平台 API 封装。 +- 提供了抖音小程序所需的 AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 - 提供了解析回调通知事件等扩展方法。 --- ## 快速入门 +> [!IMPORTANT] +> 此目录下的文档适用于 v3.x 版本的模块。如果你正在使用 2.x 版本,请移步至 GitHub/Gitee 的已归档分支。 + ### 安装: 提示:如果你使用 Visual Studio NuGet 管理器图形化界面,请在搜索结果中勾选“**包括预发行版**”。 @@ -29,41 +32,16 @@ ### 初始化: ```csharp -/* 以基础 API 为例 */ using SKIT.FlurlHttpClient.ByteDance.MicroApp; -var options = new ByteDanceMicroAppClientOptions() +var options = new DouyinMicroAppClientOptions() { - Endpoints = ByteDanceMicroAppEndpoints.API_MINIAPP, // 指定接入点。需注意小程序、小游戏拥有不同的接入点。 - AppId = "字节小程序 AppId", - AppSecret = "字节小程序 AppSecret", + Endpoints = DouyinMicroAppEndpoints.API_MINIAPP, // 指定接入点。需注意小程序、小游戏拥有不同的接入点。 + AppId = "抖音小程序 AppId", + AppSecret = "抖音小程序 AppSecret", ECPaySalt = "担保支付相关服务的密钥,不用则不填" }; -var client = new ByteDanceMicroAppClient(options); - - - -/* 以泛知识课程库 API 为例 */ -using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi; - -var options = new ByteDanceMicroAppProductApiClientOptions() -{ - AppId = "字节小程序 AppId", - AppSecret = "字节小程序 AppSecret" -}; -var client = new ByteDanceMicroAppProductApiClient(options); - - - -/* 以服务商平台 API 为例 */ -using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi; - -var options = new ByteDanceMicroAppOpenApiClientOptions() -{ - ComponentAppId = "字节小程序第三方应用 AppId", - ComponentAppSecret = "字节小程序第三方应用 AppSecret" -}; -var client = new ByteDanceMicroAppOpenApiClient(options); +var client = DouyinMicroAppClientBuilder.Create(options).Build(); ``` ### 请求 & 响应: @@ -92,11 +70,56 @@ else } ``` +### 独立的(服务商平台、泛知识课程库、泛知识角色系统等)扩展客户端: + +部分 API 的接入点、接口模型公共参数等配置项与基础 API 完全不同,需要使用独立的扩展客户端。 + +- 服务商平台: + +```csharp +using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi; + +var options = new DouyinMicroAppOpenApiClientOptions() +{ + ComponentAppId = "第三方应用 AppId", + ComponentAppSecret = "第三方应用 AppSecret" +}; +var client = DouyinMicroAppOpenApiClientBuilder.Create(options).Build(); +``` + +- 泛知识课程库: + +```csharp +using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi; + +var options = new DouyinMicroAppProductApiClientOptions() +{ + AppId = "抖音小程序 AppId", + AppSecret = "抖音小程序 AppSecret" +}; +var client = DouyinMicroAppProductApiClientBuilder.Create(options).Build(); +``` + +- 泛知识角色系统: + +```csharp +using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi; + +var options = new DouyinMicroAppRoleApiClientOptions() +{ + AppId = "抖音小程序 AppId", + AppSecret = "抖音小程序 AppSecret" +}; +var client = DouyinMicroAppRoleApiClientBuilder.Create(options).Build(); +``` + +这些扩展客户端在用法上基础客户端完全相同,只需引入各自的命名空间即可。 + --- ## 基础用法 -- [如何快速找到需要调用的 API 模型类名 / 方法名?](./Basic_ModelDefinition.md) +- ⭐ [如何快速找到需要调用的 API 模型类名 / 方法名?](./Basic_ModelDefinition.md) - [如何解析回调通知事件?](./Basic_EventDeserialization.md) @@ -106,9 +129,11 @@ else --- -## 快速高级技巧入门 +## 高级技巧 + +- [如何销毁客户端?](./Advanced_Dispose.md) -- [如何在 ASP.NET Core 中与 `IHttpClientFactory` 集成?](./Advanced_IHttpClientFactory.md) +- [如何与 `IHttpClientFactory` 集成?](./Advanced_IHttpClientFactory.md) - [如何指定 JSON 序列化器?](./Advanced_JsonSerializer.md) From 89ba25b7edb4c8ebd455f229c8744ca5b4e39ffa Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 15:40:22 +0800 Subject: [PATCH 05/42] =?UTF-8?q?feat(microapp):=20=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=81=E5=B0=8F=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E7=9A=84=E6=8E=A5=E5=85=A5=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/MicroApp/README.md | 3 ++- .../DouyinMicroAppClient.cs | 2 +- .../DouyinMicroAppClientOptions.cs | 4 ++-- .../DouyinMicroAppEndpoints.cs | 13 ++++--------- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/docs/MicroApp/README.md b/docs/MicroApp/README.md index 23d7d775..ecd36a1c 100644 --- a/docs/MicroApp/README.md +++ b/docs/MicroApp/README.md @@ -2,6 +2,8 @@ 基于 `Flurl.Http` 的[抖音小程序开放平台](https://microapp.bytedance.com/) HTTP API SDK。 +本模块仅支持抖音小程序专属的 API,如需接入与抖音开放平台共享的 API,请移步 [`SKIT.FlurlHttpClient.ByteDance.DouyinOpen`](../DouyinOpen/README.md) 模块。 + --- ## 功能 @@ -36,7 +38,6 @@ using SKIT.FlurlHttpClient.ByteDance.MicroApp; var options = new DouyinMicroAppClientOptions() { - Endpoints = DouyinMicroAppEndpoints.API_MINIAPP, // 指定接入点。需注意小程序、小游戏拥有不同的接入点。 AppId = "抖音小程序 AppId", AppSecret = "抖音小程序 AppSecret", ECPaySalt = "担保支付相关服务的密钥,不用则不填" diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs index 56b48c43..fe2e51af 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs @@ -50,7 +50,7 @@ internal protected DouyinMicroAppClient(DouyinMicroAppClientOptions options, Htt EndpointForDefault = options.Endpoint; EndpointForWebcast = options.EndpointForWebcastAPI; - FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppEndpoints.API_MINIAPP; + FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs index f42707d8..d57566b8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs @@ -13,9 +13,9 @@ public class DouyinMicroAppClientOptions /// /// 获取或设置抖音小程序 API 入口点。 - /// 默认值: + /// 默认值: /// - public string Endpoint { get; set; } = DouyinMicroAppEndpoints.API_MINIAPP; + public string Endpoint { get; set; } = DouyinMicroAppEndpoints.DEFAULT; /// /// 获取或设置抖音小程序直播小玩法 API 入口点。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs index e8b2a982..e3449019 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs @@ -6,19 +6,14 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp public static class DouyinMicroAppEndpoints { /// - /// 小程序 API 域名(默认)。 + /// 默认域名。 /// - public const string API_MINIAPP = "https://developer.toutiao.com/api"; + public const string DEFAULT = "https://developer.toutiao.com/api"; /// - /// 小程序 API 沙盒环境域名。 + /// 沙盒环境域名。 /// - public const string API_MINIAPP_SANDBOX = "https://open-sandbox.douyin.com/api"; - - /// - /// 小游戏 API 域名。 - /// - public const string API_MINIGAME = "https://minigame.zijieapi.com/mgplatform/api"; + public const string SANGBOX = "https://open-sandbox.douyin.com/api"; } /// From 4bb51dc5b6655bd0c2a178b935977556fe6cd363 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 16:37:54 +0800 Subject: [PATCH 06/42] =?UTF-8?q?feat(microapp):=20=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E5=8C=96=E7=9B=B4=E6=92=AD=E5=B0=8F=E7=8E=A9=E6=B3=95=20API=20?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/MicroApp/Basic_ModelDefinition.md | 12 ++- docs/MicroApp/README.md | 15 ++- .../DouyinMicroAppClient.cs | 12 --- .../DouyinMicroAppClientOptions.cs | 6 -- .../DouyinMicroAppEndpoints.cs | 11 --- .../DouyinMicroAppRequest.cs | 4 +- .../Webcast/DouyinMicroAppWebcastClient.cs | 99 +++++++++++++++++++ .../DouyinMicroAppWebcastClientBuilder.cs | 94 ++++++++++++++++++ .../DouyinMicroAppWebcastClientOptions.cs | 30 ++++++ .../Webcast/DouyinMicroAppWebcastEndpoints.cs | 13 +++ .../Webcast/DouyinMicroAppWebcastRequest.cs | 15 +++ .../Webcast/DouyinMicroAppWebcastResponse.cs | 34 +++++++ ...roAppWebcastClientExecuteGiftExtensions.cs | 37 +++++++ ...ppWebcastClientExecuteLinkMicExtensions.cs | 37 +++++++ ...WebcastClientExecuteLiveDataExtensions.cs} | 76 ++------------ .../Models}/Gift/WebcastGiftTopGiftRequest.cs | 4 +- .../Gift/WebcastGiftTopGiftResponse.cs | 4 +- .../LinkMic/WebcastLinkMicQueryRequest.cs | 4 +- .../LinkMic/WebcastLinkMicQueryResponse.cs | 4 +- .../WebcastLiveDataTaskFailDataGetRequest.cs | 4 +- .../WebcastLiveDataTaskFailDataGetResponse.cs | 12 +-- .../LiveData/WebcastLiveDataTaskGetRequest.cs | 4 +- .../WebcastLiveDataTaskGetResponse.cs | 12 +-- .../WebcastLiveDataTaskStartRequest.cs | 4 +- .../WebcastLiveDataTaskStartResponse.cs | 12 +-- .../WebcastLiveDataTaskStopRequest.cs | 4 +- .../WebcastLiveDataTaskStopResponse.cs | 12 +-- .../Webcast/Settings/Credentials.cs | 25 +++++ ....FlurlHttpClient.ByteDance.MicroApp.csproj | 2 +- .../IMPORTANT_CodeAnalyzeTests.cs | 46 +++++++++ .../Gift/WebcastGiftTopGiftRequest.json | 0 .../Gift/WebcastGiftTopGiftResponse.json | 0 .../LinkMic/WebcastLinkMicQueryRequest.json | 0 .../LinkMic/WebcastLinkMicQueryResponse.json | 0 ...ebcastLiveDataTaskFailDataGetResponse.json | 0 .../WebcastLiveDataTaskGetResponse.json | 0 .../WebcastLiveDataTaskStartRequest.json | 0 .../WebcastLiveDataTaskStartResponse.json | 0 .../WebcastLiveDataTaskStopRequest.json | 0 39 files changed, 497 insertions(+), 151 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientBuilder.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastEndpoints.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Extensions/DouyinMicroAppClientExecuteWebcastExtensions.cs => ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLiveDataExtensions.cs} (58%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/Gift/WebcastGiftTopGiftRequest.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/Gift/WebcastGiftTopGiftResponse.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LinkMic/WebcastLinkMicQueryRequest.cs (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LinkMic/WebcastLinkMicQueryResponse.cs (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskGetRequest.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskGetResponse.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskStartRequest.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskStartResponse.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskStopRequest.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/{Models/Webcast => ExtendedSDK/Webcast/Models}/LiveData/WebcastLiveDataTaskStopResponse.cs (76%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/Gift/WebcastGiftTopGiftRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/Gift/WebcastGiftTopGiftResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/LinkMic/WebcastLinkMicQueryRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/LinkMic/WebcastLinkMicQueryResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/LiveData/WebcastLiveDataTaskGetResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/LiveData/WebcastLiveDataTaskStartRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/LiveData/WebcastLiveDataTaskStartResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/{_ => }/Webcast/LiveData/WebcastLiveDataTaskStopRequest.json (100%) diff --git a/docs/MicroApp/Basic_ModelDefinition.md b/docs/MicroApp/Basic_ModelDefinition.md index e127711d..8cfb48b8 100644 --- a/docs/MicroApp/Basic_ModelDefinition.md +++ b/docs/MicroApp/Basic_ModelDefinition.md @@ -8,7 +8,7 @@ 再有,每个对象的命名与官方文档的接口地址大体保持一致。例如刚刚提到的发送订阅消息,它的接口地址是 `[POST] /apps/message/custom/send`,将其中的反斜杠去掉、并以大驼峰命名法的方式调整它,就可以得到前文提到的几个对象了。如果路由中带有版本信息,那么版本号一般都在结尾处,例如接口 `[POST] /v2/tags/image` 对应的是 `TagsImageV2`。 -完整的模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.Api/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/OpenApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/ProductApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/RoleApi/Models_ 目录。 +完整的模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.Api/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/ExtendedSdk/OpenApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/ExtendedSdk/ProductApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/ExtendedSdk/RoleApi/Models_、_src/SKIT.FlurlHttpClient.ByteDance.Api/ExtendedSdk/Webcast/Models_ 目录。 --- @@ -76,3 +76,13 @@ | √ | 代商家入驻抖音开放平台 | | + +#### 4. 直播小玩法 + +
+ +[展开查看] + +| | 抖音 API | 备注 | +| :-: | :------: | :--: | +| √ | 直播能力 | | diff --git a/docs/MicroApp/README.md b/docs/MicroApp/README.md index ecd36a1c..041e5c35 100644 --- a/docs/MicroApp/README.md +++ b/docs/MicroApp/README.md @@ -71,7 +71,7 @@ else } ``` -### 独立的(服务商平台、泛知识课程库、泛知识角色系统等)扩展客户端: +### 独立的扩展客户端(服务商平台、泛知识课程库、泛知识角色系统、直播小玩法等): 部分 API 的接入点、接口模型公共参数等配置项与基础 API 完全不同,需要使用独立的扩展客户端。 @@ -114,6 +114,19 @@ var options = new DouyinMicroAppRoleApiClientOptions() var client = DouyinMicroAppRoleApiClientBuilder.Create(options).Build(); ``` +- 直播小玩法: + +```csharp +using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.Webcast; + +var options = new DouyinMicroAppWebcastClientOptions() +{ + AppId = "抖音小程序 AppId", + AppSecret = "抖音小程序 AppSecret" +}; +var client = DouyinMicroAppWebcastClientBuilder.Create(options).Build(); +``` + 这些扩展客户端在用法上基础客户端完全相同,只需引入各自的命名空间即可。 --- diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs index fe2e51af..bfd2856a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs @@ -16,16 +16,6 @@ public class DouyinMicroAppClient : CommonClientBase, ICommonClient ///
public Settings.Credentials Credentials { get; } - /// - /// 获取当前客户端使用的抖音小程序 API 接入点。 - /// - protected internal string EndpointForDefault { get; } - - /// - /// 获取当前客户端使用的抖音小程序直播小玩法 API 接入点。 - /// - protected internal string EndpointForWebcast { get; } - /// /// 用指定的配置项初始化 类的新实例。 /// @@ -47,8 +37,6 @@ internal protected DouyinMicroAppClient(DouyinMicroAppClientOptions options, Htt if (options is null) throw new ArgumentNullException(nameof(options)); Credentials = new Settings.Credentials(options); - EndpointForDefault = options.Endpoint; - EndpointForWebcast = options.EndpointForWebcastAPI; FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs index d57566b8..dc576861 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs @@ -17,12 +17,6 @@ public class DouyinMicroAppClientOptions ///
public string Endpoint { get; set; } = DouyinMicroAppEndpoints.DEFAULT; - /// - /// 获取或设置抖音小程序直播小玩法 API 入口点。 - /// 默认值: - /// - public string EndpointForWebcastAPI { get; set; } = DouyinMicroAppWebcastEndpoints.DEFAULT; - /// /// 获取或设置抖音小程序 AppId。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs index e3449019..6d7e0cad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs @@ -15,15 +15,4 @@ public static class DouyinMicroAppEndpoints ///
public const string SANGBOX = "https://open-sandbox.douyin.com/api"; } - - /// - /// 抖音小程序直播小玩法 API 接口域名。 - /// - public static class DouyinMicroAppWebcastEndpoints - { - /// - /// 主域名(默认)。 - /// - public const string DEFAULT = "https://webcast.bytedance.com/api"; - } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs index c4a16ca2..05eb8c9e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs @@ -7,7 +7,9 @@ public abstract class DouyinMicroAppRequest : CommonRequestBase, ICommonRequest { /// /// 获取或设置抖音小程序的 AccessToken。 - /// 注意:部分第三方平台的接口中该字段表示授权方的 AuthorizerAccessToken。 + /// + /// 注意:部分第三方平台的接口中该字段表示授权方的 AuthorizerAccessToken。 + /// /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs new file mode 100644 index 00000000..574ea53f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs @@ -0,0 +1,99 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + /// + /// 一个抖音小程序直播小玩法 API HTTP 客户端。 + /// + public class DouyinMicroAppWebcastClient : CommonClientBase, ICommonClient + { + /// + /// 获取当前客户端使用的抖音小程序凭证。 + /// + public Settings.Credentials Credentials { get; } + + /// + /// 用指定的配置项初始化 类的新实例。 + /// + /// 配置项。 + public DouyinMicroAppWebcastClient(DouyinMicroAppWebcastClientOptions options) + : this(options, null) + { + } + + /// + /// + /// + /// + /// + /// + internal protected DouyinMicroAppWebcastClient(DouyinMicroAppWebcastClientOptions options, HttpClient? httpClient, bool disposeClient = true) + : base(httpClient, disposeClient) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + Credentials = new Settings.Credentials(options); + + FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppWebcastEndpoints.DEFAULT; + FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); + } + + /// + /// 使用当前客户端生成一个新的 对象。 + /// + /// + /// + /// + /// + public IFlurlRequest CreateFlurlRequest(DouyinMicroAppWebcastRequest request, HttpMethod httpMethod, params object[] urlSegments) + { + IFlurlRequest flurlRequest = base.CreateFlurlRequest(request, httpMethod, urlSegments); + + return flurlRequest; + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsync(IFlurlRequest flurlRequest, HttpContent? httpContent = null, CancellationToken cancellationToken = default) + where T : DouyinMicroAppWebcastResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + using IFlurlResponse flurlResponse = await base.SendFlurlRequestAsync(flurlRequest, httpContent, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步发起请求。 + /// + /// + /// + /// + /// + /// + public async Task SendFlurlRequestAsJsonAsync(IFlurlRequest flurlRequest, object? data = null, CancellationToken cancellationToken = default) + where T : DouyinMicroAppWebcastResponse, new() + { + if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + + bool isSimpleRequest = data is null || + flurlRequest.Verb == HttpMethod.Get || + flurlRequest.Verb == HttpMethod.Head || + flurlRequest.Verb == HttpMethod.Options; + using IFlurlResponse flurlResponse = isSimpleRequest ? + await base.SendFlurlRequestAsync(flurlRequest, null, cancellationToken) : + await base.SendFlurlRequestAsJsonAsync(flurlRequest, data, cancellationToken).ConfigureAwait(false); + return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientBuilder.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientBuilder.cs new file mode 100644 index 00000000..3f193e99 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientBuilder.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + /// + /// 用于构造 实例的构造器。 + /// + public partial class DouyinMicroAppWebcastClientBuilder : ICommonClientBuilder + { + private readonly DouyinMicroAppWebcastClientOptions _options; + private readonly IList> _configures; + private readonly IList _interceptors; + private HttpClient? _httpClient; + private bool? _disposeClient; + + private DouyinMicroAppWebcastClientBuilder(DouyinMicroAppWebcastClientOptions options) + { + _options = options; + _configures = new List>(); + _interceptors = new List(); + } + + ICommonClientBuilder ICommonClientBuilder.ConfigureSettings(Action configure) + { + return ConfigureSettings(configure); + } + + ICommonClientBuilder ICommonClientBuilder.UseInterceptor(HttpInterceptor interceptor) + { + return UseInterceptor(interceptor); + } + + ICommonClientBuilder ICommonClientBuilder.UseHttpClient(HttpClient httpClient, bool disposeClient) + { + return UseHttpClient(httpClient, disposeClient); + } + + public DouyinMicroAppWebcastClientBuilder ConfigureSettings(Action configure) + { + if (configure is null) throw new ArgumentNullException(nameof(configure)); + + _configures.Add(configure); + return this; + } + + public DouyinMicroAppWebcastClientBuilder UseInterceptor(HttpInterceptor interceptor) + { + if (interceptor is null) throw new ArgumentNullException(nameof(interceptor)); + + _interceptors.Add(interceptor); + return this; + } + + public DouyinMicroAppWebcastClientBuilder UseHttpClient(HttpClient httpClient, bool disposeClient = true) + { + if (httpClient is null) throw new ArgumentNullException(nameof(httpClient)); + + _httpClient = httpClient; + _disposeClient = disposeClient; + return this; + } + + public DouyinMicroAppWebcastClient Build() + { + DouyinMicroAppWebcastClient client = _disposeClient.HasValue + ? new DouyinMicroAppWebcastClient(_options, _httpClient, _disposeClient.Value) + : new DouyinMicroAppWebcastClient(_options, _httpClient); + + foreach (Action configure in _configures) + { + client.Configure(configure); + } + + foreach (HttpInterceptor interceptor in _interceptors) + { + client.Interceptors.Add(interceptor); + } + + return client; + } + } + + partial class DouyinMicroAppWebcastClientBuilder + { + public static DouyinMicroAppWebcastClientBuilder Create(DouyinMicroAppWebcastClientOptions options) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + return new DouyinMicroAppWebcastClientBuilder(options); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs new file mode 100644 index 00000000..f5ba3ade --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + /// + /// 一个用于构造 时使用的配置项。 + /// + public class DouyinMicroAppWebcastClientOptions + { + /// + /// 获取或设置请求超时时间(单位:毫秒)。 + /// 默认值:30000 + /// + public int Timeout { get; set; } = 30 * 1000; + + /// + /// 获取或设置抖音小程序直播小玩法 API 入口点。 + /// 默认值: + /// + public string Endpoint { get; set; } = DouyinMicroAppWebcastEndpoints.DEFAULT; + + /// + /// 获取或设置抖音小程序 AppId。 + /// + public string AppId { get; set; } = default!; + + /// + /// 获取或设置抖音小程序 AppSecret。 + /// + public string AppSecret { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastEndpoints.cs new file mode 100644 index 00000000..a507d441 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastEndpoints.cs @@ -0,0 +1,13 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + /// + /// 抖音小程序直播小玩法 API 接口域名。 + /// + public static class DouyinMicroAppWebcastEndpoints + { + /// + /// 主域名(默认)。 + /// + public const string DEFAULT = "https://webcast.bytedance.com/api"; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastRequest.cs new file mode 100644 index 00000000..49188a19 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastRequest.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + /// + /// 抖音小程序直播小玩法 API 请求的基类。 + /// + public abstract class DouyinMicroAppWebcastRequest : CommonRequestBase, ICommonRequest + { + /// + /// 获取或设置抖音小程序的 AccessToken。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public virtual string? AccessToken { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs new file mode 100644 index 00000000..07ddb23f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs @@ -0,0 +1,34 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + /// + /// 抖音小程序直播小玩法 API 响应的基类。 + /// + public abstract class DouyinMicroAppWebcastResponse : CommonResponseBase, ICommonResponse + { + /// + /// 获取抖音小程序 API 返回的详细错误号。 + /// + [Newtonsoft.Json.JsonProperty("errcode")] + [System.Text.Json.Serialization.JsonPropertyName("errcode")] + public virtual long ErrorCode { get; set; } + + /// + /// 获取抖音小程序 API 返回的错误描述。 + /// + [Newtonsoft.Json.JsonProperty("errmsg")] + [System.Text.Json.Serialization.JsonPropertyName("errmsg")] + public virtual string? ErrorMessage { get; set; } + + /// + /// 获取一个值,该值指示调用抖音小程序 API 是否成功。 + /// + ///(即 HTTP 状态码为 200,且 值为 0) + /// + /// + /// + public override bool IsSuccessful() + { + return GetRawStatus() == 200 && ErrorCode == 0; + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs new file mode 100644 index 00000000..278225ef --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs @@ -0,0 +1,37 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + public static class DouyinMicroAppWebcastClientExecuteGiftExtensions + { + /// + /// 异步调用 [POST] /gift/top_gift 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastGiftTopGiftAsync(this DouyinMicroAppWebcastClient client, Models.WebcastGiftTopGiftRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "gift", "top_gift") + .WithHeader("x-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs new file mode 100644 index 00000000..736d8b22 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs @@ -0,0 +1,37 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + public static class DouyinMicroAppWebcastClientExecuteLinkMicExtensions + { + /// + /// 异步调用 [POST] /linkmic/query 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastLinkMicQueryAsync(this DouyinMicroAppWebcastClient client, Models.WebcastLinkMicQueryRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "linkmic", "query") + .WithHeader("x-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteWebcastExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLiveDataExtensions.cs similarity index 58% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteWebcastExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLiveDataExtensions.cs index fe74693a..d68d50d2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteWebcastExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLiveDataExtensions.cs @@ -4,11 +4,10 @@ using System.Threading.Tasks; using Flurl.Http; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast { - public static class DouyinMicroAppClientExecuteWebcastExtensions + public static class DouyinMicroAppWebcastClientExecuteLiveDataExtensions { - #region LiveData /// /// 异步调用 [POST] /live_data/task/start 接口。 /// @@ -20,7 +19,7 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskStartAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskStartRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskStartAsync(this DouyinMicroAppWebcastClient client, Models.WebcastLiveDataTaskStartRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -30,7 +29,6 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "live_data", "task", "start") - .WithUrl($"{client.EndpointForWebcast}/live_data/task/start") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -47,7 +45,7 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskStopAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskStopRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskStopAsync(this DouyinMicroAppWebcastClient client, Models.WebcastLiveDataTaskStopRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -57,7 +55,6 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "live_data", "task", "stop") - .WithUrl($"{client.EndpointForWebcast}/live_data/task/stop") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -74,7 +71,7 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskGetAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskGetRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskGetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastLiveDataTaskGetRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -84,7 +81,6 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "live_data", "task", "get") - .WithUrl($"{client.EndpointForWebcast}/live_data/task/get") .WithHeader("access-token", request.AccessToken) .WithHeader("appid", request.AppId) .WithHeader("roomid", request.RoomId) @@ -104,7 +100,7 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions /// /// /// - public static async Task ExecuteWebcastLiveDataTaskFailDataGetAsync(this DouyinMicroAppClient client, Models.WebcastLiveDataTaskFailDataGetRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteWebcastLiveDataTaskFailDataGetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastLiveDataTaskFailDataGetRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -114,7 +110,6 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "live_data", "task", "fail_data", "get") - .WithUrl($"{client.EndpointForWebcast}/live_data/task/fail_data/get") .WithHeader("access-token", request.AccessToken) .WithHeader("appid", request.AppId) .WithHeader("roomid", request.RoomId) @@ -124,64 +119,5 @@ public static class DouyinMicroAppClientExecuteWebcastExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - #endregion - - #region Gift - /// - /// 异步调用 [POST] /gift/top_gift 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteWebcastGiftTopGiftAsync(this DouyinMicroAppClient client, Models.WebcastGiftTopGiftRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "gift", "top_gift") - .WithUrl($"{client.EndpointForWebcast}/gift/top_gift") - .WithHeader("x-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region LinkMic - /// - /// 异步调用 [POST] /linkmic/query 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteWebcastLinkMicQueryAsync(this DouyinMicroAppClient client, Models.WebcastLinkMicQueryRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "linkmic", "query") - .WithUrl($"{client.EndpointForWebcast}/linkmic/query") - .WithHeader("x-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftRequest.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftRequest.cs index bcb63b7b..d1064b0a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftRequest.cs @@ -1,11 +1,11 @@ using System.Collections.Generic; -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /gift/top_gift 接口的请求。 /// - public class WebcastGiftTopGiftRequest : DouyinMicroAppRequest + public class WebcastGiftTopGiftRequest : DouyinMicroAppWebcastRequest { /// /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftResponse.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftResponse.cs index fcd5fe4e..69f00735 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/Gift/WebcastGiftTopGiftResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /gift/top_gift 接口的响应。 /// - public class WebcastGiftTopGiftResponse : DouyinMicroAppResponse + public class WebcastGiftTopGiftResponse : DouyinMicroAppWebcastResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryRequest.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryRequest.cs index 4609e1fe..09615853 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryRequest.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /linkmic/query 接口的请求。 /// - public class WebcastLinkMicQueryRequest : DouyinMicroAppRequest + public class WebcastLinkMicQueryRequest : DouyinMicroAppWebcastRequest { /// /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryResponse.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryResponse.cs index ec7ff36a..00e7282c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LinkMic/WebcastLinkMicQueryResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /linkmic/query 接口的响应。 /// - public class WebcastLinkMicQueryResponse : DouyinMicroAppResponse + public class WebcastLinkMicQueryResponse : DouyinMicroAppWebcastResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs index 5d987aac..88ebd713 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [GET] /live_data/task/fail_data/get 接口的请求。 /// - public class WebcastLiveDataTaskFailDataGetRequest : DouyinMicroAppRequest + public class WebcastLiveDataTaskFailDataGetRequest : DouyinMicroAppWebcastRequest { /// /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs index cef5530c..f5970df9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [GET] /live_data/task/fail_data/get 接口的响应。 /// - public class WebcastLiveDataTaskFailDataGetResponse : DouyinMicroAppResponse + public class WebcastLiveDataTaskFailDataGetResponse : DouyinMicroAppWebcastResponse { public static class Types { @@ -59,26 +59,22 @@ public class FailedData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } /// - /// + /// 获取或设置请求日志 ID。 /// [Newtonsoft.Json.JsonProperty("logid")] [System.Text.Json.Serialization.JsonPropertyName("logid")] - public override string? LogId { get; set; } + public string? LogId { get; set; } /// /// 获取或设置返回数据。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetRequest.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetRequest.cs index 91388bcf..48f44df6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetRequest.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [GET] /live_data/task/get 接口的请求。 /// - public class WebcastLiveDataTaskGetRequest : DouyinMicroAppRequest + public class WebcastLiveDataTaskGetRequest : DouyinMicroAppWebcastRequest { /// /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetResponse.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetResponse.cs index 4626325c..c9f400b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [GET] /live_data/task/get 接口的响应。 /// - public class WebcastLiveDataTaskGetResponse : DouyinMicroAppResponse + public class WebcastLiveDataTaskGetResponse : DouyinMicroAppWebcastResponse { public static class Types { @@ -18,26 +18,22 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } /// - /// + /// 获取或设置请求日志 ID。 /// [Newtonsoft.Json.JsonProperty("logid")] [System.Text.Json.Serialization.JsonPropertyName("logid")] - public override string? LogId { get; set; } + public string? LogId { get; set; } /// /// 获取或设置返回数据。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartRequest.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartRequest.cs index 941c93d9..0a5d4472 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartRequest.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /live_data/task/start 接口的请求。 /// - public class WebcastLiveDataTaskStartRequest : DouyinMicroAppRequest + public class WebcastLiveDataTaskStartRequest : DouyinMicroAppWebcastRequest { /// /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartResponse.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartResponse.cs index 20546f59..09cc7bb5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStartResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /live_data/task/start 接口的响应。 /// - public class WebcastLiveDataTaskStartResponse : DouyinMicroAppResponse + public class WebcastLiveDataTaskStartResponse : DouyinMicroAppWebcastResponse { public static class Types { @@ -18,26 +18,22 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } /// - /// + /// 获取或设置请求日志 ID。 /// [Newtonsoft.Json.JsonProperty("logid")] [System.Text.Json.Serialization.JsonPropertyName("logid")] - public override string? LogId { get; set; } + public string? LogId { get; set; } /// /// 获取或设置返回数据。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopRequest.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopRequest.cs index 7d90806a..1f675ace 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopRequest.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /live_data/task/stop 接口的请求。 /// - public class WebcastLiveDataTaskStopRequest : DouyinMicroAppRequest + public class WebcastLiveDataTaskStopRequest : DouyinMicroAppWebcastRequest { /// /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopResponse.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopResponse.cs index f6c45ea9..1145464c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Webcast/LiveData/WebcastLiveDataTaskStopResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopResponse.cs @@ -1,29 +1,25 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models { /// /// 表示 [POST] /live_data/task/stop 接口的响应。 /// - public class WebcastLiveDataTaskStopResponse : DouyinMicroAppResponse + public class WebcastLiveDataTaskStopResponse : DouyinMicroAppWebcastResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } /// - /// + /// 获取或设置请求日志 ID。 /// [Newtonsoft.Json.JsonProperty("logid")] [System.Text.Json.Serialization.JsonPropertyName("logid")] - public override string? LogId { get; set; } + public string? LogId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs new file mode 100644 index 00000000..96ebae60 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs @@ -0,0 +1,25 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Settings +{ + public class Credentials + { + /// + /// 初始化客户端时 的副本。 + /// + public string AppId { get; } + + /// + /// 初始化客户端时 的副本。 + /// + public string AppSecret { get; } + + internal Credentials(DouyinMicroAppWebcastClientOptions options) + { + if (options is null) throw new ArgumentNullException(nameof(options)); + + AppId = options.AppId; + AppSecret = options.AppSecret; + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj index 10f0b78b..e5f51554 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj @@ -15,7 +15,7 @@ https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance Flurl.Http ByteDance MicroApp 字节 字节跳动 头条 今日头条 抖音 字节小程序 字节跳动小程序 头条小程序 今日头条小程序 抖音小程序 3.0.0-preview.1 - 基于 Flurl.Http 的抖音小程序开放平台 API 客户端,支持小程序、小游戏、服务商平台、泛知识课程库+角色系统、直播小玩法等接口。 + 基于 Flurl.Http 的抖音小程序开放平台 API 客户端,支持小程序、小游戏、服务商平台、泛知识课程库、泛知识角色系统、直播小玩法等接口。 Fu Diwei git https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance.git diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs index 3deaca45..53c245cd 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs @@ -9,6 +9,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi; using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi; using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi; + using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast; public class CodeAnalyzeTests { @@ -210,6 +211,51 @@ public void CodeAnalyze() new SourceFileAnalyzer(options).AssertNoIssues(); })) ); + + Assert.Multiple( + () => Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppWebcastClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })), + + () => Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); + + var options = new SourceFileAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppWebcastClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/Webcast/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/Webcast/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/Webcast/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/Webcast/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/Webcast/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/Webcast/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/Webcast/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })) + ); } } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/Gift/WebcastGiftTopGiftRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Gift/WebcastGiftTopGiftRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/Gift/WebcastGiftTopGiftRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Gift/WebcastGiftTopGiftRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/Gift/WebcastGiftTopGiftResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Gift/WebcastGiftTopGiftResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/Gift/WebcastGiftTopGiftResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Gift/WebcastGiftTopGiftResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LinkMic/WebcastLinkMicQueryRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LinkMic/WebcastLinkMicQueryRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LinkMic/WebcastLinkMicQueryRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LinkMic/WebcastLinkMicQueryRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LinkMic/WebcastLinkMicQueryResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LinkMic/WebcastLinkMicQueryResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LinkMic/WebcastLinkMicQueryResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LinkMic/WebcastLinkMicQueryResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskFailDataGetResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskGetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskGetResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskGetResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskGetResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskStartRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskStartRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskStartRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskStartRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskStartResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskStartResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskStartResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskStartResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskStopRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskStopRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Webcast/LiveData/WebcastLiveDataTaskStopRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/LiveData/WebcastLiveDataTaskStopRequest.json From 5ba374d3b0c8a4c984c4b462de8cbefbd0b4789b Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 17:14:31 +0800 Subject: [PATCH 07/42] =?UTF-8?q?feat(microapp):=20=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E5=B0=8F=E7=8E=A9=E6=B3=95=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E8=AF=B7=E6=B1=82=E7=AD=BE?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/MicroApp/README.md | 5 +- .../Webcast/DouyinMicroAppWebcastClient.cs | 7 + .../DouyinMicroAppWebcastClientOptions.cs | 16 ++ .../Webcast/DouyinMicroAppWebcastResponse.cs | 21 ++ ...astClientResponseVerificationExtensions.cs | 61 ++++++ ...icroAppWebcastRequestSigningInterceptor.cs | 60 ++++++ .../Webcast/Settings/Credentials.cs | 6 + ....FlurlHttpClient.ByteDance.MicroApp.csproj | 3 +- .../Utilities/RSAUtility.cs | 197 ++++++++++++++++++ 9 files changed, 374 insertions(+), 2 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/RSAUtility.cs diff --git a/docs/MicroApp/README.md b/docs/MicroApp/README.md index 041e5c35..70cedc51 100644 --- a/docs/MicroApp/README.md +++ b/docs/MicroApp/README.md @@ -122,7 +122,10 @@ using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.Webcast; var options = new DouyinMicroAppWebcastClientOptions() { AppId = "抖音小程序 AppId", - AppSecret = "抖音小程序 AppSecret" + AppSecret = "抖音小程序 AppSecret", + ApplicationPublicKeyVersion = "应用密钥公钥版本号", + ApplicationPrivateKey = "应用密钥私钥", + PlatformPublicKey = "平台密钥公钥" }; var client = DouyinMicroAppWebcastClientBuilder.Create(options).Build(); ``` diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs index 574ea53f..a21dc74d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClient.cs @@ -39,7 +39,14 @@ internal protected DouyinMicroAppWebcastClient(DouyinMicroAppWebcastClientOption Credentials = new Settings.Credentials(options); FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppWebcastEndpoints.DEFAULT; + FlurlClient.WithHeader(HttpHeaders.Accept, MimeTypes.Json); FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); + + Interceptors.Add(new Interceptors.DouyinMicroAppWebcastRequestSigningInterceptor( + appId: options.AppId, + pkVersion: options.ApplicationPublicKeyVersion, + pkPem: options.ApplicationPrivateKey + )); } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs index f5ba3ade..4632c3bd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastClientOptions.cs @@ -26,5 +26,21 @@ public class DouyinMicroAppWebcastClientOptions /// 获取或设置抖音小程序 AppSecret。 /// public string AppSecret { get; set; } = default!; + + /// + /// 获取或设置抖音小程序应用公钥版本号。 + /// 默认值:"1" + /// + public string ApplicationPublicKeyVersion { get; set; } = "1"; + + /// + /// 获取或设置抖音小程序应用私钥。 + /// + public string ApplicationPrivateKey { get; set; } = default!; + + /// + /// 获取或设置抖音小程序平台公钥。 + /// + public string PlatformPublicKey { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs index 07ddb23f..d35c31fe 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs @@ -19,6 +19,27 @@ public abstract class DouyinMicroAppWebcastResponse : CommonResponseBase, ICommo [System.Text.Json.Serialization.JsonPropertyName("errmsg")] public virtual string? ErrorMessage { get; set; } + /// + /// 获取抖音应答时间戳。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ByteTimestamp { get { return GetRawHeaders().GetFirstValueOrEmpty("Byte-Timestamp"); } } + + /// + /// 获取抖音应答随机串。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ByteNonce { get { return GetRawHeaders().GetFirstValueOrEmpty("Byte-Nonce-Str"); } } + + /// + /// 获取抖音应答签名。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ByteSignature { get { return GetRawHeaders().GetFirstValueOrEmpty("Byte-Signature"); } } + /// /// 获取一个值,该值指示调用抖音小程序 API 是否成功。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs new file mode 100644 index 00000000..b22d4947 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs @@ -0,0 +1,61 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + using System.Text; + using SKIT.FlurlHttpClient.Primitives; + + public static class DouyinMicroAppWebcastClientResponseVerificationExtensions + { + /// + /// 验证响应签名。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + public static ErroredResult VerifyResponseSignature(this DouyinMicroAppWebcastClient client, TResponse response) + where TResponse : DouyinMicroAppWebcastResponse + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (response is null) throw new ArgumentNullException(nameof(response)); + + ErroredResult result; + + try + { + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.Append(response.ByteTimestamp); + stringBuilder.Append("\n"); + stringBuilder.Append(response.ByteNonce); + stringBuilder.Append("\n"); + stringBuilder.Append(Encoding.UTF8.GetString(response.GetRawBytes())); + stringBuilder.Append("\n"); + + bool valid = Utilities.RSAUtility.Verify( + publicKeyPem: client.Credentials.PlatformPublicKey, + messageData: new EncodedString(stringBuilder.ToString(), EncodingKinds.Literal), + encodingSignature: new EncodedString(response.ByteSignature, EncodingKinds.Base64), + Utilities.RSAUtility.DIGEST_ALGORITHM_SHA256 + ); + if (valid) + result = ErroredResult.Ok(); + else + result = ErroredResult.Fail(new Exception($"Signature does not match. Maybe \"{response.ByteSignature}\" is an illegal signature.")); + } + catch (Exception ex) + { + result = ErroredResult.Fail(ex); + } + + return result; + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs new file mode 100644 index 00000000..c7b84f9c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs @@ -0,0 +1,60 @@ +using System; +using System.Linq; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Interceptors +{ + using SKIT.FlurlHttpClient.Internal; + + internal class DouyinMicroAppWebcastRequestSigningInterceptor : HttpInterceptor + { + private readonly string _appId; + private readonly string _pkVersion; + private readonly string _pkPem; + + public DouyinMicroAppWebcastRequestSigningInterceptor(string appId, string pkVersion, string pkPem) + { + _appId = appId; + _pkVersion = pkVersion; + _pkPem = pkPem; + } + + public override async Task BeforeCallAsync(HttpInterceptorContext context, CancellationToken cancellationToken = default) + { + if (context is null) throw new ArgumentNullException(nameof(context)); + if (context.FlurlCall.Completed) throw new DouyinMicroAppException("Failed to sign request. This interceptor must be called before request completed."); + + string method = context.FlurlCall.HttpRequestMessage.Method.ToString().ToUpper(); + string url = context.FlurlCall.HttpRequestMessage.RequestUri?.PathAndQuery ?? string.Empty; + string timestamp = DateTimeOffset.Now.ToLocalTime().ToUnixTimeSeconds().ToString(); + string nonce = Guid.NewGuid().ToString("N"); + string body = string.Empty; + + if (context.FlurlCall.HttpRequestMessage?.Content is not null) + { + if (method != "GET") + { + HttpContent httpContent = context.FlurlCall.HttpRequestMessage.Content; + body = await _AsyncEx.RunTaskWithCancellationTokenAsync(httpContent.ReadAsStringAsync(), cancellationToken).ConfigureAwait(false); + } + } + + string signData = $"{method}\n{url}\n{timestamp}\n{nonce}\n{body}\n"; + string sign; + + try + { + sign = Utilities.RSAUtility.Sign(_pkPem, signData, Utilities.RSAUtility.DIGEST_ALGORITHM_SHA256).Value!; + } + catch (Exception ex) + { + throw new DouyinMicroAppException("Failed to sign request. Please see the inner exception for more details.", ex); + } + + context.FlurlCall.Request.WithHeader("Byte-Authorization", $"SHA256-RSA2048 appid=\"{_appId}\",nonce_str=\"{nonce}\",timestamp=\"{timestamp}\",key_version=\"{_pkVersion}\",signature=\"{sign}\""); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs index 96ebae60..8aebe067 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Settings/Credentials.cs @@ -14,12 +14,18 @@ public class Credentials ///
public string AppSecret { get; } + /// + /// 初始化客户端时 的副本。 + /// + public string PlatformPublicKey { get; set; } = default!; + internal Credentials(DouyinMicroAppWebcastClientOptions options) { if (options is null) throw new ArgumentNullException(nameof(options)); AppId = options.AppId; AppSecret = options.AppSecret; + PlatformPublicKey = options.PlatformPublicKey; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj index e5f51554..24726c68 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj @@ -39,7 +39,8 @@ - + + diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/RSAUtility.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/RSAUtility.cs new file mode 100644 index 00000000..a4118e6a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Utilities/RSAUtility.cs @@ -0,0 +1,197 @@ +using System; +using System.IO; +using System.Text.RegularExpressions; +using Org.BouncyCastle.Crypto; +using Org.BouncyCastle.Crypto.Parameters; +using Org.BouncyCastle.OpenSsl; +using Org.BouncyCastle.Security; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Utilities +{ + using SKIT.FlurlHttpClient.Primitives; + + /// + /// RSA 算法工具类。 + /// + public static class RSAUtility + { + /// + /// 签名算法:SHA-256withRSA。 + /// + public const string DIGEST_ALGORITHM_SHA256 = "SHA-256withRSA"; + + private static byte[] ConvertPrivateKeyPemToByteArray(string privateKeyPem) + { + if (!privateKeyPem.StartsWith("-----BEGIN PRIVATE KEY-----")) + { + using (TextReader textReader = new StringReader(privateKeyPem)) + using (PemReader pemReader = new PemReader(textReader)) + { + object pemObject = pemReader.ReadObject(); + + if (pemObject is AsymmetricCipherKeyPair) + { + // PKCS#1 格式 + AsymmetricCipherKeyPair cipherKeyPair = (AsymmetricCipherKeyPair)pemObject; + using (TextWriter textWriter = new StringWriter()) + using (PemWriter pemWriter = new PemWriter(textWriter)) + { + Pkcs8Generator pkcs8 = new Pkcs8Generator(cipherKeyPair.Private); + pemWriter.WriteObject(pkcs8); + pemWriter.Writer.Close(); + + privateKeyPem = textWriter.ToString()!; + } + } + else if (pemObject is RsaPrivateCrtKeyParameters) + { + // PKCS#8 格式 + } + else + { + throw new NotSupportedException("Private key format is not supported."); + } + } + } + + privateKeyPem = privateKeyPem + .Replace("-----BEGIN PRIVATE KEY-----", string.Empty) + .Replace("-----END PRIVATE KEY-----", string.Empty); + privateKeyPem = Regex.Replace(privateKeyPem, "\\s+", string.Empty); + return Convert.FromBase64String(privateKeyPem); + } + + private static byte[] ConvertPublicKeyPemToByteArray(string publicKeyPem) + { + if (!publicKeyPem.StartsWith("-----BEGIN PUBLIC KEY-----")) + { + using (TextReader textReader = new StringReader(publicKeyPem)) + using (PemReader pemReader = new PemReader(textReader)) + { + object pemObject = pemReader.ReadObject(); + if (pemObject is RsaKeyParameters) + { + // PKCS#1 或 PKCS#8 格式 + RsaKeyParameters rsaKeyParams = (RsaKeyParameters)pemObject; + using (TextWriter textWriter = new StringWriter()) + using (PemWriter pemWriter = new PemWriter(textWriter)) + { + pemWriter.WriteObject(rsaKeyParams); + pemWriter.Writer.Close(); + + publicKeyPem = textWriter.ToString()!; + } + } + else + { + throw new NotSupportedException("Public key format is not supported."); + } + } + } + + publicKeyPem = publicKeyPem + .Replace("-----BEGIN PUBLIC KEY-----", string.Empty) + .Replace("-----END PUBLIC KEY-----", string.Empty); + publicKeyPem = Regex.Replace(publicKeyPem, "\\s+", string.Empty); + return Convert.FromBase64String(publicKeyPem); + } + + private static RsaKeyParameters ParsePrivateKeyToParameters(byte[] privateKeyBytes) + { + return (RsaKeyParameters)PrivateKeyFactory.CreateKey(privateKeyBytes); + } + + private static RsaKeyParameters ParsePublicKeyToParameters(byte[] publicKeyBytes) + { + return (RsaKeyParameters)PublicKeyFactory.CreateKey(publicKeyBytes); + } + + private static byte[] Sign(RsaKeyParameters rsaPrivateKeyParams, byte[] messageBytes, string digestAlgorithm) + { + ISigner signer = SignerUtilities.GetSigner(digestAlgorithm); + signer.Init(true, rsaPrivateKeyParams); + signer.BlockUpdate(messageBytes, 0, messageBytes.Length); + return signer.GenerateSignature(); + } + + private static bool Verify(RsaKeyParameters rsaPublicKeyParams, byte[] messageBytes, byte[] signBytes, string digestAlgorithm) + { + ISigner signer = SignerUtilities.GetSigner(digestAlgorithm); + signer.Init(false, rsaPublicKeyParams); + signer.BlockUpdate(messageBytes, 0, messageBytes.Length); + return signer.VerifySignature(signBytes); + } + + /// + /// 使用私钥生成签名。 + /// + /// PKCS#1/PKCS#8 私钥字节数组。 + /// 待签名的数据字节数组。 + /// 签名算法。(默认值:) + /// 签名字节数组。 + public static byte[] Sign(byte[] privateKeyBytes, byte[] messageBytes, string digestAlgorithm = DIGEST_ALGORITHM_SHA256) + { + if (privateKeyBytes is null) throw new ArgumentNullException(nameof(privateKeyBytes)); + if (messageBytes is null) throw new ArgumentNullException(nameof(messageBytes)); + + RsaKeyParameters rsaPrivateKeyParams = ParsePrivateKeyToParameters(privateKeyBytes); + return Sign(rsaPrivateKeyParams, messageBytes, digestAlgorithm); + } + + /// + /// 使用私钥生成签名。 + /// + /// PKCS#1/PKCS#8 私钥(PEM 格式)。 + /// 待签名的数据。 + /// 签名算法。(默认值:) + /// 经过 Base64 编码的签名。 + public static EncodedString Sign(string privateKeyPem, string messageData, string digestAlgorithm = DIGEST_ALGORITHM_SHA256) + { + if (privateKeyPem is null) throw new ArgumentNullException(nameof(privateKeyPem)); + if (messageData is null) throw new ArgumentNullException(nameof(messageData)); + + byte[] privateKeyBytes = ConvertPrivateKeyPemToByteArray(privateKeyPem); + byte[] messageBytes = EncodedString.FromLiteralString(messageData); + byte[] signBytes = Sign(privateKeyBytes, messageBytes, digestAlgorithm); + return EncodedString.ToBase64String(signBytes); + } + + /// + /// 使用公钥验证签名。 + /// + /// PKCS#1/PKCS#8 公钥字节数组。 + /// 待验证的数据字节数组。 + /// 签名字节数组。 + /// 签名算法。(默认值:) + /// 验证结果。 + public static bool Verify(byte[] publicKeyBytes, byte[] messageBytes, byte[] signBytes, string digestAlgorithm = DIGEST_ALGORITHM_SHA256) + { + if (publicKeyBytes is null) throw new ArgumentNullException(nameof(publicKeyBytes)); + if (messageBytes is null) throw new ArgumentNullException(nameof(messageBytes)); + if (signBytes is null) throw new ArgumentNullException(nameof(signBytes)); + + RsaKeyParameters rsaPublicKeyParams = ParsePublicKeyToParameters(publicKeyBytes); + return Verify(rsaPublicKeyParams, messageBytes, signBytes, digestAlgorithm); + } + + /// + /// 使用公钥验证签名。 + /// + /// PKCS#1/PKCS#8 公钥(PEM 格式)。 + /// 待验证的数据。 + /// 经过编码后的(通常为 Base64)签名。 + /// 签名算法。(默认值:) + /// 验证结果。 + public static bool Verify(string publicKeyPem, string messageData, EncodedString encodingSignature, string digestAlgorithm = DIGEST_ALGORITHM_SHA256) + { + if (publicKeyPem is null) throw new ArgumentNullException(nameof(publicKeyPem)); + if (messageData is null) throw new ArgumentNullException(nameof(messageData)); + if (encodingSignature.Value is null) throw new ArgumentNullException(nameof(encodingSignature)); + + byte[] publicKeyBytes = ConvertPublicKeyPemToByteArray(publicKeyPem); + byte[] messageBytes = EncodedString.FromLiteralString(messageData); + byte[] signBytes = EncodedString.FromString(encodingSignature, fallbackEncodingKind: EncodingKinds.Base64); + return Verify(publicKeyBytes, messageBytes, signBytes, digestAlgorithm); + } + } +} From db5f38ccc21913746a21be12712bf1150e578c9c Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 17:24:36 +0800 Subject: [PATCH 08/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E5=B0=8F=E7=8E=A9=E6=B3=95=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=A2=98=E5=BA=93=E5=88=97=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Webcast/DouyinMicroAppWebcastResponse.cs | 2 +- ...roAppWebcastClientExecuteQuizExtensions.cs | 43 +++++++++++++ .../Models/Gift/WebcastGiftTopGiftResponse.cs | 14 ----- .../LinkMic/WebcastLinkMicQueryResponse.cs | 14 ----- .../Models/Quiz/WebcastQuizGetRequest.cs | 29 +++++++++ .../Models/Quiz/WebcastQuizGetResponse.cs | 62 +++++++++++++++++++ .../Webcast/Quiz/WebcastQuizGetResponse.json | 28 +++++++++ 7 files changed, 163 insertions(+), 29 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Quiz/WebcastQuizGetResponse.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs index d35c31fe..c20704af 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/DouyinMicroAppWebcastResponse.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast public abstract class DouyinMicroAppWebcastResponse : CommonResponseBase, ICommonResponse { /// - /// 获取抖音小程序 API 返回的详细错误号。 + /// 获取抖音小程序 API 返回的错误码。 /// [Newtonsoft.Json.JsonProperty("errcode")] [System.Text.Json.Serialization.JsonPropertyName("errcode")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs new file mode 100644 index 00000000..d28609fc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs @@ -0,0 +1,43 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + public static class DouyinMicroAppWebcastClientExecuteQuizExtensions + { + /// + /// 异步调用 [GET] /quiz/get 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastQuizGetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastQuizGetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "quiz", "get") + .WithHeader("x-token", request.AccessToken); + + if (request.Level is not null) + flurlReq.SetQueryParam("level", request.Level.Value); + + if (request.Type is not null) + flurlReq.SetQueryParam("type", request.Type.Value); + + if (request.Number is not null) + flurlReq.SetQueryParam("num", request.Number.Value); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftResponse.cs index 69f00735..32dfb950 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftResponse.cs @@ -18,20 +18,6 @@ public class Data } } - /// - /// - /// - [Newtonsoft.Json.JsonProperty("errcode")] - [System.Text.Json.Serialization.JsonPropertyName("errcode")] - public override long ErrorCode { get; set; } - - /// - /// - /// - [Newtonsoft.Json.JsonProperty("errmsg")] - [System.Text.Json.Serialization.JsonPropertyName("errmsg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryResponse.cs index 00e7282c..03b28653 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryResponse.cs @@ -98,20 +98,6 @@ public class User } } - /// - /// - /// - [Newtonsoft.Json.JsonProperty("errcode")] - [System.Text.Json.Serialization.JsonPropertyName("errcode")] - public override long ErrorCode { get; set; } - - /// - /// - /// - [Newtonsoft.Json.JsonProperty("errmsg")] - [System.Text.Json.Serialization.JsonPropertyName("errmsg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置麦位基本信息。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetRequest.cs new file mode 100644 index 00000000..30f99f28 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [GET] /quiz/get 接口的请求。 + /// + public class WebcastQuizGetRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置难度等级。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Level { get; set; } + + /// + /// 获取或设置题目类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Type { get; set; } + + /// + /// 获取或设置题目数量。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Number { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetResponse.cs new file mode 100644 index 00000000..6a25e4fa --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Quiz/WebcastQuizGetResponse.cs @@ -0,0 +1,62 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [GET] /quiz/get 接口的响应。 + /// + public class WebcastQuizGetResponse : DouyinMicroAppWebcastResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Quiz + { + /// + /// 获取或设置题目 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; + + /// + /// 获取或设置题目标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置题目选项列表。 + /// + [Newtonsoft.Json.JsonProperty("options")] + [System.Text.Json.Serialization.JsonPropertyName("options")] + public string[] OptionList { get; set; } = default!; + + /// + /// 获取或设置题目答案下标。 + /// + [Newtonsoft.Json.JsonProperty("answer")] + [System.Text.Json.Serialization.JsonPropertyName("answer")] + public int AnswerIndex { get; set; } + } + } + + /// + /// 获取或设置题目列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Quiz[] QuizList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Quiz/WebcastQuizGetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Quiz/WebcastQuizGetResponse.json new file mode 100644 index 00000000..a3639df0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Quiz/WebcastQuizGetResponse.json @@ -0,0 +1,28 @@ +{ + "data": { + "list": [ + { + "title": "题目1", + "options": [ + "选项1", + "选项2", + "选项3", + "选项4" + ], + "answer": 1, + "id": "EYDnokrgyVeOeFa" + }, + { + "title": "题目2", + "options": [ + "选项1", + "选项2", + "选项3", + "选项4" + ], + "answer": 4, + "id": "TlL6LwvWapkoBMv" + } + ] + } +} From df4b8bacefc8a75ca927f0aa72f0147be806e9c3 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 19:05:12 +0800 Subject: [PATCH 09/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E5=B0=8F=E7=8E=A9=E6=B3=95=E6=8A=96=E5=B8=81?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pWebcastClientExecuteBusinessExtensions.cs | 111 ++++++++++++++++++ .../WebcastBusinessDiamondOrderAckRequest.cs | 36 ++++++ .../WebcastBusinessDiamondOrderAckResponse.cs | 15 +++ .../WebcastBusinessDiamondQueryRequest.cs | 22 ++++ .../WebcastBusinessDiamondQueryResponse.cs | 43 +++++++ ...astBusinessDiamondReconciliationRequest.cs | 50 ++++++++ ...stBusinessDiamondReconciliationResponse.cs | 81 +++++++++++++ .../WebcastBusinessOrderPrecreateRequest.cs | 57 +++++++++ .../WebcastBusinessOrderPrecreateResponse.cs | 15 +++ .../Models/Gift/WebcastGiftTopGiftRequest.cs | 2 +- .../LinkMic/WebcastLinkMicQueryRequest.cs | 2 +- .../WebcastLiveDataTaskFailDataGetRequest.cs | 2 +- .../LiveData/WebcastLiveDataTaskGetRequest.cs | 2 +- .../WebcastLiveDataTaskStartRequest.cs | 2 +- .../WebcastLiveDataTaskStopRequest.cs | 2 +- ...WebcastBusinessDiamondOrderAckRequest.json | 6 + ...ebcastBusinessDiamondOrderAckResponse.json | 3 + .../WebcastBusinessDiamondQueryRequest.json | 4 + .../WebcastBusinessDiamondQueryResponse.json | 7 ++ ...tBusinessDiamondReconciliationRequest.json | 7 ++ ...BusinessDiamondReconciliationResponse.json | 14 +++ .../WebcastBusinessOrderPrecreateRequest.json | 9 ++ ...WebcastBusinessOrderPrecreateResponse.json | 3 + 23 files changed, 489 insertions(+), 6 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteBusinessExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateResponse.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteBusinessExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteBusinessExtensions.cs new file mode 100644 index 00000000..16184c75 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteBusinessExtensions.cs @@ -0,0 +1,111 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + public static class DouyinMicroAppWebcastClientExecuteBusinessExtensions + { + /// + /// 异步调用 [POST] /business/order/pre_create 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastBusinessOrderPrecreateAsync(this DouyinMicroAppWebcastClient client, Models.WebcastBusinessOrderPrecreateRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "business", "order", "pre_create"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /business/diamond/query 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastBusinessDiamondQueryAsync(this DouyinMicroAppWebcastClient client, Models.WebcastBusinessDiamondQueryRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "business", "diamond", "query"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /business/diamond/reconciliation 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastBusinessDiamondReconciliationAsync(this DouyinMicroAppWebcastClient client, Models.WebcastBusinessDiamondReconciliationRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "business", "diamond", "reconciliation"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /business/diamond/order_ack 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastBusinessDiamondOrderAckAsync(this DouyinMicroAppWebcastClient client, Models.WebcastBusinessDiamondOrderAckRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "business", "diamond", "order_ack"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckRequest.cs new file mode 100644 index 00000000..17e34f06 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckRequest.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/diamond/order_ack 接口的请求。 + /// + public class WebcastBusinessDiamondOrderAckRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = string.Empty; + + /// + /// 获取或设置抖币数量。 + /// + [Newtonsoft.Json.JsonProperty("diamonds")] + [System.Text.Json.Serialization.JsonPropertyName("diamonds")] + public int Diamonds { get; set; } + + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckResponse.cs new file mode 100644 index 00000000..51c1749d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondOrderAckResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/diamond/order_ack 接口的响应。 + /// + public class WebcastBusinessDiamondOrderAckResponse : DouyinMicroAppWebcastResponse + { + /// + /// 获取或设置支付状态。 + /// + [Newtonsoft.Json.JsonProperty("ack_status")] + [System.Text.Json.Serialization.JsonPropertyName("ack_status")] + public int AckStatus { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryRequest.cs new file mode 100644 index 00000000..4452fdb5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/diamond/query 接口的请求。 + /// + public class WebcastBusinessDiamondQueryRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string? AppId { get; set; } + + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryResponse.cs new file mode 100644 index 00000000..731ea082 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondQueryResponse.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/diamond/query 接口的响应。 + /// + public class WebcastBusinessDiamondQueryResponse : DouyinMicroAppWebcastResponse + { + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = default!; + + /// + /// 获取或设置订单状态。 + /// + [Newtonsoft.Json.JsonProperty("order_status")] + [System.Text.Json.Serialization.JsonPropertyName("order_status")] + public int OrderStatus { get; set; } + + /// + /// 获取或设置付费点。 + /// + [Newtonsoft.Json.JsonProperty("pay_tag")] + [System.Text.Json.Serialization.JsonPropertyName("pay_tag")] + public string PayTag { get; set; } = default!; + + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = default!; + + /// + /// 获取或设置抖币数量。 + /// + [Newtonsoft.Json.JsonProperty("diamonds")] + [System.Text.Json.Serialization.JsonPropertyName("diamonds")] + public int Diamonds { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationRequest.cs new file mode 100644 index 00000000..6d5cc0bf --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationRequest.cs @@ -0,0 +1,50 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/diamond/reconciliation 接口的请求。 + /// + public class WebcastBusinessDiamondReconciliationRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string? AppId { get; set; } + + /// + /// 获取或设置查询起始时间。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.BasicDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.BasicDateTimeOffsetConverter))] + public DateTimeOffset StartTime { get; set; } + + /// + /// 获取或设置查询终止时间。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.BasicDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.BasicDateTimeOffsetConverter))] + public DateTimeOffset EndTime { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:100 + /// + [Newtonsoft.Json.JsonProperty("limit")] + [System.Text.Json.Serialization.JsonPropertyName("limit")] + public int Limit { get; set; } = 100; + + /// + /// 获取或设置分页起始位置。 + /// + [Newtonsoft.Json.JsonProperty("offset")] + [System.Text.Json.Serialization.JsonPropertyName("offset")] + public int Offset { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationResponse.cs new file mode 100644 index 00000000..60d7865b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessDiamondReconciliationResponse.cs @@ -0,0 +1,81 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/diamond/reconciliation 接口的响应。 + /// + public class WebcastBusinessDiamondReconciliationResponse : DouyinMicroAppWebcastResponse + { + public static class Types + { + public class Order + { + /// + /// 获取或设置直播间 ID。 + /// + [Newtonsoft.Json.JsonProperty("room_id")] + [System.Text.Json.Serialization.JsonPropertyName("room_id")] + public string RoomId { get; set; } = default!; + + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = default!; + + /// + /// 获取或设置订单状态。 + /// + [Newtonsoft.Json.JsonProperty("order_status")] + [System.Text.Json.Serialization.JsonPropertyName("order_status")] + public int OrderStatus { get; set; } + + /// + /// 获取或设置付费点。 + /// + [Newtonsoft.Json.JsonProperty("pay_tag")] + [System.Text.Json.Serialization.JsonPropertyName("pay_tag")] + public string PayTag { get; set; } = default!; + + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = default!; + + /// + /// 获取或设置抖币数量。 + /// + [Newtonsoft.Json.JsonProperty("diamonds")] + [System.Text.Json.Serialization.JsonPropertyName("diamonds")] + public int Diamonds { get; set; } + + /// + /// 获取或设置创建时间。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.BasicDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.BasicDateTimeOffsetConverter))] + public DateTimeOffset CreateTime { get; set; } + } + } + + /// + /// 获取或设置订单列表。 + /// + [Newtonsoft.Json.JsonProperty("order_list")] + [System.Text.Json.Serialization.JsonPropertyName("order_list")] + public Types.Order[] OrderList { get; set; } = default!; + + /// + /// 获取或设置数据总量。 + /// + [Newtonsoft.Json.JsonProperty("size")] + [System.Text.Json.Serialization.JsonPropertyName("size")] + public int TotalCount { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateRequest.cs new file mode 100644 index 00000000..bffdf518 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateRequest.cs @@ -0,0 +1,57 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/order/pre_create 接口的请求。 + /// + public class WebcastBusinessOrderPrecreateRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置开发者订单号。 + /// + [Newtonsoft.Json.JsonProperty("out_trade_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_trade_no")] + public string OutTradeNumber { get; set; } = string.Empty; + + /// + /// 获取或设置付费点。 + /// + [Newtonsoft.Json.JsonProperty("pay_tag")] + [System.Text.Json.Serialization.JsonPropertyName("pay_tag")] + public string PayTag { get; set; } = string.Empty; + + /// + /// 获取或设置抖币数量。 + /// + [Newtonsoft.Json.JsonProperty("diamonds")] + [System.Text.Json.Serialization.JsonPropertyName("diamonds")] + public int Diamonds { get; set; } + + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置通知回调 URL。 + /// + [Newtonsoft.Json.JsonProperty("notify_url")] + [System.Text.Json.Serialization.JsonPropertyName("notify_url")] + public string NotifyUrl { get; set; } = string.Empty; + + /// + /// 获取或设置有效期(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("valid_time")] + [System.Text.Json.Serialization.JsonPropertyName("valid_time")] + public int ValidIn { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateResponse.cs new file mode 100644 index 00000000..7c5bc04f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Business/WebcastBusinessOrderPrecreateResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /business/order/pre_create 接口的响应。 + /// + public class WebcastBusinessOrderPrecreateResponse : DouyinMicroAppWebcastResponse + { + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftRequest.cs index d1064b0a..684858ea 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Gift/WebcastGiftTopGiftRequest.cs @@ -8,7 +8,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models public class WebcastGiftTopGiftRequest : DouyinMicroAppWebcastRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryRequest.cs index 09615853..1feda483 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LinkMic/WebcastLinkMicQueryRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models public class WebcastLinkMicQueryRequest : DouyinMicroAppWebcastRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs index 88ebd713..b4b92f46 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskFailDataGetRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models public class WebcastLiveDataTaskFailDataGetRequest : DouyinMicroAppWebcastRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetRequest.cs index 48f44df6..1a2179a1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskGetRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models public class WebcastLiveDataTaskGetRequest : DouyinMicroAppWebcastRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartRequest.cs index 0a5d4472..5ca6c2c4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStartRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models public class WebcastLiveDataTaskStartRequest : DouyinMicroAppWebcastRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopRequest.cs index 1f675ace..d5b553ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/LiveData/WebcastLiveDataTaskStopRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models public class WebcastLiveDataTaskStopRequest : DouyinMicroAppWebcastRequest { /// - /// 获取或设置小玩法的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置应用的 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckRequest.json new file mode 100644 index 00000000..d7561e3e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckRequest.json @@ -0,0 +1,6 @@ +{ + "order_id": "xxx", + "open_id": "123", + "diamonds": 5, + "app_id": "ttc41ab2a75b25dbf110" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckResponse.json new file mode 100644 index 00000000..5000d448 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondOrderAckResponse.json @@ -0,0 +1,3 @@ +{ + "ack_status": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryRequest.json new file mode 100644 index 00000000..11586b56 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryRequest.json @@ -0,0 +1,4 @@ +{ + "appid": "ttxxx", + "order_id": "xxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryResponse.json new file mode 100644 index 00000000..c7cd6104 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondQueryResponse.json @@ -0,0 +1,7 @@ +{ + "order_id": "xxx", + "order_status": 2, + "open_id": "xxx", + "pay_tag": "参与游戏", + "diamonds": 10 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationRequest.json new file mode 100644 index 00000000..22c383cb --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationRequest.json @@ -0,0 +1,7 @@ +{ + "appid": "ttxxx", + "start_time": "2021-12-24 00:00:00", + "end_time": "2021-12-24 00:00:00", + "limit": 100, + "offset": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationResponse.json new file mode 100644 index 00000000..660d0f27 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessDiamondReconciliationResponse.json @@ -0,0 +1,14 @@ +{ + "order_list": [ + { + "order_id": "xxx", + "order_status": 2, + "open_id": "xxx", + "pay_tag": "test", + "create_time": "2006-01-02 15:04:05", + "diamonds": 10, + "room_id": "111" + } + ], + "size": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateRequest.json new file mode 100644 index 00000000..01c3d9f5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateRequest.json @@ -0,0 +1,9 @@ +{ + "diamonds": 32, + "out_trade_no": "1679021609887617444", + "pay_tag": "1", + "open_id": "123", + "valid_time": 300, + "notify_url": "https://turn.365skins.com/front/pay/dy/notify", + "app_id": "ttc41ab2a75b25dbf110" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateResponse.json new file mode 100644 index 00000000..8affbcde --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Business/WebcastBusinessOrderPrecreateResponse.json @@ -0,0 +1,3 @@ +{ + "order_id": "xxx" +} From 33e9432d679eadc0d3a3803287f5470e03865b99 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 20:11:22 +0800 Subject: [PATCH 10/42] style(microapp): clean code --- .../Auth/OpenApiAuthRetrieveV1Request.cs | 6 ----- .../ProductApi/Models/ProductApiAddRequest.cs | 2 -- .../Models/ProductApiModifyNoAuditRequest.cs | 2 -- .../Models/ProductApiModifyRequest.cs | 2 -- .../Models/ProductApiModifyStatusRequest.cs | 2 -- .../AuthEntityQueryEntityInfoRequest.cs | 2 -- .../Apps/AppsJsCode2SessionV2Response.cs | 6 +---- .../Models/Apps/AppsTokenV2Response.cs | 6 +---- .../AppsCapacityUploadMaterialV1Response.cs | 4 --- ...sCapacityAddAwemeVideoKeywordV1Response.cs | 4 --- ...sCapacityApplyAwemePermissionV1Response.cs | 4 --- .../AppsCapacityApplyScopeQuotaV1Response.cs | 4 --- ...pacityDeleteAwemeVideoKeywordV1Response.cs | 4 --- ...acityQueryAwemePermissionListV1Response.cs | 4 --- ...ityQueryAwemeVideoKeywordListV1Response.cs | 4 --- ...CapacityQueryScopeQuotaDetailV1Response.cs | 4 --- .../AppsCapacityAddAliasV1Response.cs | 4 --- .../AppsCapacityDeleteAliasV1Response.cs | 4 --- .../AppsCapacityModifyAliasV1Response.cs | 4 --- .../AppsCapacityQueryAliasListV1Response.cs | 4 --- ...ppsCapacityQuerySearchTagListV1Response.cs | 4 --- .../AppsCapacitySetSearchTagV1Response.cs | 4 --- .../AppsCapacityBindAwemeUserV1Response.cs | 4 --- ...apacityGetAwemeUserBindQrcodeV1Response.cs | 4 --- ...apacityQueryAwemeUserBindListV1Response.cs | 4 --- .../AppsCapacityApplyCapacityV1Response.cs | 4 --- ...AppsCapacityBindSelfMountUserV1Response.cs | 4 --- ...apacityGetSelfMountBindQrcodeV1Response.cs | 4 --- .../AppsCapacityQueryApplyStatusV1Response.cs | 4 --- ...apacityQuerySelfMountUserListV1Response.cs | 4 --- .../AppsCapacityQueryCapcutInfoV1Response.cs | 4 --- ...pacityQueryCapcutTemplateListV1Response.cs | 4 --- ...ityUpdateCapcutTemplateStatusV1Response.cs | 4 --- ...psCapacityAddSimpleQrcodeBindV1Response.cs | 4 --- ...apacityDeleteSimpleQrcodeBindV1Response.cs | 4 --- ...cityQuerySimpleQrcodeBindListV1Response.cs | 4 --- ...yUpdateSimpleQrcodeBindStatusV1Response.cs | 4 --- ...apacityUpdateSimpleQrcodeBindV1Response.cs | 4 --- ...SubscribeNotificationTemplateV1Response.cs | 4 --- ...SubscribeNotificationTemplateV1Response.cs | 4 --- ...SubscribeNotificationTemplateV1Response.cs | 4 --- ...SubscribeNotificationTemplateV1Response.cs | 4 --- ...SubscribeNotificationTemplateV1Response.cs | 4 --- ...cribeNotificationTemplateListV1Response.cs | 4 --- ...cribeNotificationTemplateListV1Response.cs | 4 --- .../AppsCapacityAddAdPlacementV1Response.cs | 4 --- ...CapacityOpenTrafficPermissionV1Response.cs | 4 --- .../AppsCapacityQueryAdIncomeV1Response.cs | 4 --- ...sCapacityQueryAdPlacementListV1Response.cs | 4 --- ...CapacityQueryAdSettlementListV1Response.cs | 4 --- ...yQueryTrafficPermissionStatusV1Response.cs | 4 --- ...pacityUpdateAdPlacementStatusV1Response.cs | 4 --- ...ppsCategoryQueryAppCategoriesV1Response.cs | 4 --- .../Apps/Censor/AppsCensorImageResponse.cs | 4 --- .../AppsChatCustomerServiceUrlResponse.cs | 4 --- .../AppsCustomerServiceUrlResponse.cs | 4 --- ...AnalysisQueryDealOverviewDataV1Response.cs | 4 --- ...DataAnalysisQueryLiveDealDataV1Response.cs | 4 --- ...DataAnalysisQueryLiveRoomDataV1Response.cs | 4 --- ...AppsDataAnalysisQueryLiveRoomV1Response.cs | 4 --- ...aAnalysisQueryProductDealDataV1Response.cs | 4 --- ...ataAnalysisQueryVideoDealDataV1Response.cs | 4 --- ...DataAnalysisQueryBehaviorDataV1Response.cs | 4 --- ...psDataAnalysisQueryClientDataV1Response.cs | 4 --- ...AppsDataAnalysisQueryPageDataV1Response.cs | 4 --- ...AnalysisQueryRealTimeUserDataV1Response.cs | 4 --- ...ataAnalysisQueryRetentionDataV1Response.cs | 4 --- ...ppsDataAnalysisQuerySceneDataV1Response.cs | 4 --- ...AnalysisQueryUserPortraitDataV1Response.cs | 4 --- .../AppsLiveSetBlackWhiteListV1Response.cs | 4 --- .../Apps/Live/AppsUploadLiveImageResponse.cs | 4 --- .../Message/AppsMessageCustomSendResponse.cs | 2 -- .../Apps/Order/AppsOrderDeleteRequest.cs | 2 -- .../Apps/Order/AppsOrderDeleteResponse.cs | 4 --- .../Apps/Order/AppsOrderPushV2Request.cs | 2 -- .../Apps/Order/AppsOrderPushV2Response.cs | 4 --- .../Models/Apps/Qrcode/AppsQrcodeRequest.cs | 2 -- .../ShareConfig/AppsShareConfigRequest.cs | 2 -- .../ShareConfig/AppsShareConfigResponse.cs | 4 --- ...ibeNotificationDeveloperNotifyV1Request.cs | 2 -- ...beNotificationDeveloperNotifyV1Response.cs | 4 --- .../Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs | 2 -- .../TaskBox/AppsTaskBoxAddTaskResponse.cs | 4 --- .../AppsTaskBoxQueryAppTaskIdRequest.cs | 2 -- .../AppsTaskBoxQueryAppTaskIdResponse.cs | 4 --- .../AppsTaskBoxQueryTaskVideoDataRequest.cs | 2 -- .../AppsTaskBoxQueryTaskVideoDataResponse.cs | 4 --- .../TaskBox/AppsTaskBoxUpdateStatusRequest.cs | 2 -- .../AppsTaskBoxUpdateStatusResponse.cs | 4 --- .../TaskBox/AppsTaskBoxUpdateTaskRequest.cs | 2 -- .../TaskBox/AppsTaskBoxUpdateTaskResponse.cs | 4 --- .../UrlLink/AppsUrlLinkGenerateRequest.cs | 2 -- .../UrlLink/AppsUrlLinkGenerateResponse.cs | 4 --- .../UrlLink/AppsUrlLinkQueryInfoRequest.cs | 2 -- .../UrlLink/AppsUrlLinkQueryInfoResponse.cs | 4 --- .../UrlLink/AppsUrlLinkQueryQuotaRequest.cs | 2 -- .../UrlLink/AppsUrlLinkQueryQuotaResponse.cs | 4 --- ...ppsConvertOpenItemIdToEncryptIdResponse.cs | 4 --- .../AppsConvertVideoIdToOpenItemIdRequest.cs | 2 -- .../AppsConvertVideoIdToOpenItemIdResponse.cs | 4 --- .../Models/AppsECPay/AppsBillsResponse.cs | 4 --- .../Models/AppsECPay/AppsFundBillsResponse.cs | 4 --- .../Order/AppsECPayCreateOrderV1Response.cs | 4 --- .../Order/AppsECPayCreateRefundV1Response.cs | 4 --- .../Order/AppsECPayCreateReturnV1Response.cs | 4 --- .../Order/AppsECPayQueryOrderV1Response.cs | 4 --- .../AppsECPayQueryPlatformOrderV1Response.cs | 26 ++++++++----------- .../Order/AppsECPayQueryRefundV1Response.cs | 4 --- .../Order/AppsECPayQueryReturnV1Response.cs | 4 --- .../Order/AppsECPayQuerySettleV1Response.cs | 4 --- .../Order/AppsECPaySettleV1Response.cs | 4 --- .../AppsECPaySaaSCreateMerchantResponse.cs | 4 --- .../Apply/AppsECPaySaaSImageUploadResponse.cs | 4 --- ...ppsECPaySaaSQueryMerchantStatusResponse.cs | 4 --- .../AppsECPaySaaSAddMerchantResponse.cs | 4 --- .../AppsECPaySaaSAddSubMerchantResponse.cs | 4 --- .../AppsECPaySaaSAppAddSubMerchantResponse.cs | 4 --- .../AppsECPaySaaSGetAppMerchantResponse.cs | 4 --- .../AppsECPaySaaSMerchantWithdrawResponse.cs | 4 --- ...psECPaySaaSQueryMerchantBalanceResponse.cs | 4 --- ...AppsECPaySaaSQueryWithdrawOrderResponse.cs | 4 --- .../Abstractions/AppsGameWalletRequestBase.cs | 2 -- .../Models/Comment/CommentOpenGetResponse.cs | 4 --- .../Models/Tags/TagsImageV2Response.cs | 4 --- .../Models/Tags/TagsTextAntiDirtV2Response.cs | 4 --- 125 files changed, 13 insertions(+), 473 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs index 85bfaad2..ad70c720 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs @@ -5,23 +5,17 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models ///
public class OpenApiAuthRetrieveV1Request : DouyinMicroAppOpenApiRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("component_appid")] [System.Text.Json.Serialization.JsonPropertyName("component_appid")] public override string? ComponentAppId { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("component_access_token")] [System.Text.Json.Serialization.JsonPropertyName("component_access_token")] public override string? ComponentAccessToken { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("authorization_appid")] [System.Text.Json.Serialization.JsonPropertyName("authorization_appid")] public override string? AuthorizerAppId { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs index a4183cc2..7d09d255 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs @@ -416,9 +416,7 @@ public class RestNotLearnInfo } } - /// /// - /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public override string? AppId { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs index 7baa9083..da7fbe6a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs @@ -47,9 +47,7 @@ public class MiniAppPageInfo } } - /// /// - /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public override string? AppId { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs index 9202b7b8..bed67319 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs @@ -62,9 +62,7 @@ public class CourseInfo : ProductApiAddRequest.Types.Product.Types.CourseInfo } } - /// /// - /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public override string? AppId { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs index 53a92b2c..8baa8e88 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs @@ -32,9 +32,7 @@ public class ProductStatusInfo } } - /// /// - /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public override string? AppId { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs index 228e66c7..18336672 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityQueryEntityInfoRequest.cs @@ -5,9 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models ///
public class AuthEntityQueryEntityInfoRequest : DouyinMicroAppRoleApiRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] public override string? AppId { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs index b3be6bca..c408abbc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v2/jscode2session 接口的响应。 @@ -39,16 +39,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs index 77bacc02..dd72469b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v2/token 接口的响应。 @@ -25,16 +25,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs index 6f6a09ce..13174961 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs @@ -18,16 +18,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs index 10011c6e..5e93446e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// public class AppsCapacityAddAwemeVideoKeywordV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs index affceb21..8927a70a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// public class AppsCapacityApplyAwemePermissionV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs index 19f7d52e..6a5f2a75 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityApplyScopeQuotaV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs index 494a04d9..d9244b9c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityDeleteAwemeVideoKeywordV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs index 607541c2..98626591 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs @@ -108,16 +108,12 @@ public class Scope } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs index 2368a2b7..7893ad32 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs @@ -59,16 +59,12 @@ public class Keyword } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs index 18d475d6..4a2e1ae4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs @@ -75,16 +75,12 @@ public class Scope } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs index d06c338c..c4359575 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityAddAliasV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs index 9247b79c..858e763f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityDeleteAliasV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs index 8f950a6c..9ee8875f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityModifyAliasV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs index 5abd6b79..2f11598d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs @@ -73,16 +73,12 @@ public class AliasItem } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs index f0490a47..9d811f99 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs @@ -59,16 +59,12 @@ public class TagItem } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs index 332c64b7..c74f352e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacitySetSearchTagV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs index 738e1aa0..c0bc74e5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityBindAwemeUserV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs index 2374eee0..a75b419e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs @@ -25,16 +25,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs index 5def7278..437f0feb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs @@ -66,16 +66,12 @@ public class User } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs index 02a23002..d18d94f9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityApplyCapacityV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs index d448a4ad..38b9846a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityBindSelfMountUserV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs index 16e9b44b..d0ab0771 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs @@ -25,16 +25,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs index f860fa44..945e61c2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs @@ -25,16 +25,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs index f640e668..b066a030 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs @@ -66,16 +66,12 @@ public class User } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs index 2fbf2889..cb9b438e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs @@ -32,16 +32,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs index 635f69f6..3a3e0e3b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs @@ -107,16 +107,12 @@ public class AuditReason } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs index 7aa100a2..020a46c1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityUpdateCapcutTemplateStatusV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs index 5617af56..d461e550 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityAddSimpleQrcodeBindV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs index c275e634..4852d4ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityDeleteSimpleQrcodeBindV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs index 7e194d31..485ed094 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs @@ -96,16 +96,12 @@ public class Qrcode } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs index caa664bd..2e4479a5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs index 4c356429..0c40bbaa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityUpdateSimpleQrcodeBindV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs index 055a1eb0..8cd427c4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs @@ -18,16 +18,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs index 03a6de6e..5c63f4bf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs index 15cefb53..9f19e223 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs index 080bd084..217a60c4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs index 01a5580b..a58ba513 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs @@ -80,16 +80,12 @@ public class Template } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs index ade39884..f9a2c1ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs @@ -80,16 +80,12 @@ public class Template } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs index f81d6a85..f971b182 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs @@ -73,16 +73,12 @@ public class Template } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs index f6a4ea37..92428d23 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityAddAdPlacementV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs index 0fff8eb5..7749c9f4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityOpenTrafficPermissionV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs index d494c2a6..3f122903 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs @@ -38,16 +38,12 @@ public class IncomeData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs index bdc24bd0..383a23d7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs @@ -52,16 +52,12 @@ public class AdPlacement } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs index d2a1f2ad..91ec76e2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs @@ -66,16 +66,12 @@ public class Settlement } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs index 3dd4b93a..35d6cbc7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs @@ -27,16 +27,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs index 223b7863..16dce657 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsCapacityUpdateAdPlacementStatusV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs index e3f78e78..d23d4d6b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs @@ -117,16 +117,12 @@ public class Certificate } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs index 874a2a92..7c93dab4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs @@ -25,16 +25,12 @@ public class Predict } } - /// /// - /// [Newtonsoft.Json.JsonProperty("error")] [System.Text.Json.Serialization.JsonPropertyName("error")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("message")] [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs index 1b7b7250..23f28046 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs @@ -18,16 +18,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs index fa4969f4..9763e922 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs @@ -18,16 +18,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs index 040ada43..39cb0b84 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs @@ -90,16 +90,12 @@ public class DealData : DealOverviewData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs index a910f3fc..b83b75e9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs @@ -104,16 +104,12 @@ public class LiveDealData : LiveDealOverviewData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs index 7d756611..3b71bacb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs @@ -118,16 +118,12 @@ public class LiveData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs index a4460353..bb1a6c97 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs @@ -59,16 +59,12 @@ public class LiveRoom } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs index 0835b88b..bb1f2fcb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs @@ -67,16 +67,12 @@ public class ProductDealData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs index a1982f5f..8c1ba165 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs @@ -76,16 +76,12 @@ public class VideoDealData : VideoDealOverviewData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs index c0b19962..65add5b9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs @@ -94,16 +94,12 @@ public class BehaviorData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs index f2bb6732..230691f0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs @@ -59,16 +59,12 @@ public class ClientData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs index eecbee8b..2ad325d0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs @@ -59,16 +59,12 @@ public class PageData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs index c33dfea5..7fee8262 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs @@ -45,16 +45,12 @@ public class BehaviorData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs index f981d969..4d365509 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs @@ -65,16 +65,12 @@ public class RetentionRate } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs index 3fd8eb67..cf1c52d4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs @@ -232,16 +232,12 @@ public class ScenePVData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs index af66a8ef..4f85d3be 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs @@ -66,16 +66,12 @@ public class UserPortraitData } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs index da81c292..ad5b2ba8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsLiveSetBlackWhiteListV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs index e50a2934..726329f3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsUploadLiveImageResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs index 53719170..024b5bca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs @@ -5,9 +5,7 @@ ///
public class AppsMessageCustomSendResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("errno")] [System.Text.Json.Serialization.JsonPropertyName("errno")] public override long ErrorCode { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs index d48ee78e..eb5607dd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs @@ -5,9 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsOrderDeleteRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs index 8f02a6f8..a491a4a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsOrderDeleteResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_code")] [System.Text.Json.Serialization.JsonPropertyName("err_code")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs index a25d9c58..1fdf1c38 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs @@ -25,9 +25,7 @@ public class KeyValue } } - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs index a3eed6f7..2ffac79f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs @@ -5,16 +5,12 @@ ///
public class AppsOrderPushV2Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_code")] [System.Text.Json.Serialization.JsonPropertyName("err_code")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs index c5adc4e5..acb7ab1b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs @@ -32,9 +32,7 @@ public class Color } } - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs index b94d736f..9810bd5b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs @@ -5,9 +5,7 @@ ///
public class AppsShareConfigRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs index 3ac071bf..2d023b7f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsShareConfigResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs index 34750c39..67902619 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs @@ -7,9 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsSubscribeNotificationDeveloperNotifyV1Request : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs index 1a7a367d..d634245e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsSubscribeNotificationDeveloperNotifyV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs index 821be29f..da986a8c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs @@ -7,9 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsTaskBoxAddTaskRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs index aefe7616..e1460eae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs @@ -19,16 +19,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("error")] [System.Text.Json.Serialization.JsonPropertyName("error")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("message")] [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs index 6f68dced..4cd673e8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs @@ -5,9 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsTaskBoxQueryAppTaskIdRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs index fe86dc1b..a6fccbfe 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsTaskBoxQueryAppTaskIdResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("error")] [System.Text.Json.Serialization.JsonPropertyName("error")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("message")] [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs index 573af58b..52edfb6c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs @@ -7,9 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsTaskBoxQueryTaskVideoDataRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs index d6b01f84..3449649e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs @@ -118,16 +118,12 @@ public class Video } } - /// /// - /// [Newtonsoft.Json.JsonProperty("error")] [System.Text.Json.Serialization.JsonPropertyName("error")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("message")] [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs index aa1132ba..13bf6c09 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs @@ -5,9 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsTaskBoxUpdateStatusRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs index 6a3dc8ff..d086c444 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs @@ -12,16 +12,12 @@ public class Data : AppsTaskBoxAddTaskResponse.Types.Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("error")] [System.Text.Json.Serialization.JsonPropertyName("error")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("message")] [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs index 686e255b..74d0dde0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs @@ -7,9 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsTaskBoxUpdateTaskRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs index a456a05f..18f94821 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs @@ -12,16 +12,12 @@ public class Data : AppsTaskBoxAddTaskResponse.Types.Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("error")] [System.Text.Json.Serialization.JsonPropertyName("error")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("message")] [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs index 4245c350..77aff0f2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs @@ -5,9 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsUrlLinkGenerateRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs index 4e84b5c3..9922da61 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs @@ -5,16 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsUrlLinkGenerateResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs index 0214d029..b9e42fcf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs @@ -5,9 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsUrlLinkQueryInfoRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs index c23c4981..d99fbd6f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs @@ -60,16 +60,12 @@ public class UrlLinkInfo } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs index 97302b99..66151210 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs @@ -5,9 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsUrlLinkQueryQuotaRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs index 8bf478b0..42e420b4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs @@ -25,16 +25,12 @@ public class UrlLinkQuota } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs index 3b4aacc8..bc55733a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs @@ -20,16 +20,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs index ffaab75c..e71933e9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs @@ -7,9 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsConvertVideoIdToOpenItemIdRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs index 5bc9eed9..fa0623c5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs @@ -20,16 +20,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs index 7a345ab6..08fdf7d4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs @@ -7,16 +7,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsBillsResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs index 604308e3..0fe7471e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs @@ -7,16 +7,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models ///
public class AppsFundBillsResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs index 4a0c7963..918aa4d8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs @@ -25,16 +25,12 @@ public class Data } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs index 43c3af93..8b6ef95d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs @@ -5,16 +5,12 @@ ///
public class AppsECPayCreateRefundV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs index cd409c5d..ef8649e5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs @@ -12,16 +12,12 @@ public class Return : AppsECPayQueryReturnV1Response.Types.Return } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs index 053e4454..b3af75e9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs @@ -71,16 +71,12 @@ public class Payment } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs index e9716586..b942cc35 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs @@ -25,7 +25,7 @@ public class SettleParameter [Newtonsoft.Json.JsonProperty("amount")] [System.Text.Json.Serialization.JsonPropertyName("amount")] public int Amount { get; set; } - + /// /// 获取或设置分账方商户号。 /// @@ -34,63 +34,63 @@ public class SettleParameter public string MerchantUid { get; set; } = default!; } } - + /// /// 获取或设置自动结算单号。 /// [Newtonsoft.Json.JsonProperty("out_settle_no")] [System.Text.Json.Serialization.JsonPropertyName("out_settle_no")] public string OutSettleNumber { get; set; } = default!; - + /// /// 获取或设置小程序分账单号。 /// [Newtonsoft.Json.JsonProperty("settle_no")] [System.Text.Json.Serialization.JsonPropertyName("settle_no")] public string SettleNumber { get; set; } = default!; - + /// /// 获取或设置分账参数列表。 /// [Newtonsoft.Json.JsonProperty("settle_param_list")] [System.Text.Json.Serialization.JsonPropertyName("settle_param_list")] public Types.SettleParameter[]? SettleParameterList { get; set; } - + /// /// 获取或设置结算渠道。 /// [Newtonsoft.Json.JsonProperty("settle_way")] [System.Text.Json.Serialization.JsonPropertyName("settle_way")] public string SettleWay { get; set; } = default!; - + /// /// 获取或设置分账状态。 /// [Newtonsoft.Json.JsonProperty("settle_status")] [System.Text.Json.Serialization.JsonPropertyName("settle_status")] public string SettleStatus { get; set; } = default!; - + /// /// 获取或设置 CPS 佣金(单位:分)。 /// [Newtonsoft.Json.JsonProperty("cps")] [System.Text.Json.Serialization.JsonPropertyName("cps")] public int CPS { get; set; } - + /// /// 获取或设置技术服务费(单位:分)。 /// [Newtonsoft.Json.JsonProperty("service_charge")] [System.Text.Json.Serialization.JsonPropertyName("service_charge")] public int ServiceCharge { get; set; } - + /// /// 获取或设置结算创建时间字符串(格式:yyyy-MM-dd HH:mm:ss)。 /// [Newtonsoft.Json.JsonProperty("created_at")] [System.Text.Json.Serialization.JsonPropertyName("created_at")] public string CreateTimeString { get; set; } = default!; - + /// /// 获取或设置结算完成时间字符串(格式:yyyy-MM-dd HH:mm:ss)。 /// @@ -99,7 +99,7 @@ public class SettleParameter public string? SettleTimeString { get; set; } } } - + /// /// 获取或设置小程序 AppId。 /// @@ -130,16 +130,12 @@ public class SettleParameter } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs index e194d386..7773194d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs @@ -32,16 +32,12 @@ public class Refund } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs index 05684648..8ce8d216 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs @@ -102,16 +102,12 @@ public class Return } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs index a118fe0f..bdf0580f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs @@ -32,16 +32,12 @@ public class Settlement } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs index f36376d8..d6ef95e0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySettleV1Response : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs index 6942d142..59a9d692 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySaaSCreateMerchantResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs index 4cd1b0a8..151dc637 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySaaSImageUploadResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs index d076c6e8..f5eff725 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs @@ -48,16 +48,12 @@ public class MerchantStatusInfo } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs index b16fa564..123a046f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySaaSAddMerchantResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs index 595c761b..01ba450a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySaaSAddSubMerchantResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs index 0a4ce426..1f9bec74 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySaaSAppAddSubMerchantResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs index 9b17325e..166a6bb6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySaaSGetAppMerchantResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs index cd4c4a3c..04ac409d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs @@ -5,16 +5,12 @@ ///
public class AppsECPaySaaSMerchantWithdrawResponse : DouyinMicroAppResponse { - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs index 98a24cc8..cfffe5c5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs @@ -63,16 +63,12 @@ public class Settlement } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs index 1848b75c..4a0cae3e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs @@ -63,16 +63,12 @@ public class Settlement } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_tips")] [System.Text.Json.Serialization.JsonPropertyName("err_tips")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs index 93a9748c..e42c538f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs @@ -2,9 +2,7 @@ { public abstract class AppsGameWalletRequestBase : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs index 6b8fea97..3d82e598 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs @@ -127,16 +127,12 @@ public class User } } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_no")] [System.Text.Json.Serialization.JsonPropertyName("err_no")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("err_msg")] [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs index 264e3ca4..6e046a29 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs @@ -74,16 +74,12 @@ public class Predict } } - /// /// - /// [Newtonsoft.Json.JsonProperty("code")] [System.Text.Json.Serialization.JsonPropertyName("code")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("exception")] [System.Text.Json.Serialization.JsonPropertyName("exception")] public override string? ErrorMessage { get; set; } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs index 48ad92ea..e09f9bcf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs @@ -81,16 +81,12 @@ public class Predict } } - /// /// - /// [Newtonsoft.Json.JsonProperty("code")] [System.Text.Json.Serialization.JsonPropertyName("code")] public override long ErrorCode { get; set; } - /// /// - /// [Newtonsoft.Json.JsonProperty("exception")] [System.Text.Json.Serialization.JsonPropertyName("exception")] public override string? ErrorMessage { get; set; } From 84ff5a6209e387bac23f8d7ee250ed0542f16f5b Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 21:18:25 +0800 Subject: [PATCH 11/42] =?UTF-8?q?feat(microapp):=20=E9=9A=8F=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=A8=8B=E5=BA=8F=20URL=20?= =?UTF-8?q?Link=20=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...uyinMicroAppClientExecuteAppsExtensions.cs | 33 +++++++++-------- .../UrlLink/AppsUrlLinkGenerateResponse.cs | 25 ------------- ...est.cs => AppsUrlLinkGenerateV1Request.cs} | 13 +++---- .../UrlLink/AppsUrlLinkGenerateV1Response.cs | 28 +++++++++++++++ ...st.cs => AppsUrlLinkQueryInfoV1Request.cs} | 15 +++----- ...e.cs => AppsUrlLinkQueryInfoV1Response.cs} | 35 +++++-------------- .../UrlLink/AppsUrlLinkQueryQuotaRequest.cs | 20 ----------- .../UrlLink/AppsUrlLinkQueryQuotaV1Request.cs | 15 ++++++++ ....cs => AppsUrlLinkQueryQuotaV1Response.cs} | 24 ++++--------- ...json => AppsUrlLinkGenerateV1Request.json} | 2 +- .../AppsUrlLinkGenerateV1Response.json | 7 ++++ .../UrlLink/AppsUrlLinkQueryInfoRequest.json | 4 --- ...son => AppsUrlLinkQueryInfoV1Request.json} | 3 +- ...on => AppsUrlLinkQueryInfoV1Response.json} | 6 ++-- .../UrlLink/AppsUrlLinkQueryQuotaRequest.json | 4 --- .../AppsUrlLinkQueryQuotaV1Request.json | 3 ++ ...n => AppsUrlLinkQueryQuotaV1Response.json} | 4 +-- 17 files changed, 103 insertions(+), 138 deletions(-) delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/{AppsUrlLinkGenerateRequest.cs => AppsUrlLinkGenerateV1Request.cs} (74%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/{AppsUrlLinkQueryInfoRequest.cs => AppsUrlLinkQueryInfoV1Request.cs} (52%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/{AppsUrlLinkQueryInfoResponse.cs => AppsUrlLinkQueryInfoV1Response.cs} (62%) delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/{AppsUrlLinkQueryQuotaResponse.cs => AppsUrlLinkQueryQuotaV1Response.cs} (50%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/{AppsUrlLinkGenerateRequest.json => AppsUrlLinkGenerateV1Request.json} (71%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Response.json delete mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/{AppsUrlLinkGenerateResponse.json => AppsUrlLinkQueryInfoV1Request.json} (57%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/{AppsUrlLinkQueryInfoResponse.json => AppsUrlLinkQueryInfoV1Response.json} (67%) delete mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/{AppsUrlLinkQueryQuotaResponse.json => AppsUrlLinkQueryQuotaV1Response.json} (67%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index 63282916..96b2ce3a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -2077,17 +2077,17 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #region UrlLink /// - /// 异步调用 [POST] /apps/url_link/generate 接口。 + /// 异步调用 [POST] /apps/v1/url_link/generate 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsUrlLinkGenerateAsync(this DouyinMicroAppClient client, Models.AppsUrlLinkGenerateRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsUrlLinkGenerateV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkGenerateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2096,23 +2096,24 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "url_link", "generate"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "generate") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/url_link/query_info 接口。 + /// 异步调用 [POST] /apps/v1/url_link/query_info 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsUrlLinkQueryInfoAsync(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryInfoRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsUrlLinkQueryInfoV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryInfoV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2121,23 +2122,24 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "url_link", "query_info"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "query_info") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/url_link/query_quota 接口。 + /// 异步调用 [POST] /apps/v1/url_link/query_quota 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsUrlLinkQueryQuotaAsync(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryQuotaRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsUrlLinkQueryQuotaV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryQuotaV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -2146,9 +2148,10 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "url_link", "query_quota"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "query_quota") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs deleted file mode 100644 index 9922da61..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateResponse.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/url_link/generate 接口的响应。 - /// - public class AppsUrlLinkGenerateResponse : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - - /// - /// 获取或设置分享链接。 - /// - [Newtonsoft.Json.JsonProperty("url_link")] - [System.Text.Json.Serialization.JsonPropertyName("url_link")] - public string UrlLink { get; set; } = default!; - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs similarity index 74% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs index 77aff0f2..473f5a55 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs @@ -1,20 +1,15 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/url_link/generate 接口的请求。 + /// 表示 [POST] /apps/v1/url_link/generate 接口的请求。 /// - public class AppsUrlLinkGenerateRequest : DouyinMicroAppRequest + public class AppsUrlLinkGenerateV1Request : DouyinMicroAppRequest { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - /// /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// - [Newtonsoft.Json.JsonProperty("ma_app_id")] - [System.Text.Json.Serialization.JsonPropertyName("ma_app_id")] + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] public string? AppId { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs new file mode 100644 index 00000000..cac6a628 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url_link/generate 接口的响应。 + /// + public class AppsUrlLinkGenerateV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置分享链接。 + /// + [Newtonsoft.Json.JsonProperty("url_link")] + [System.Text.Json.Serialization.JsonPropertyName("url_link")] + public string UrlLink { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs similarity index 52% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs index b9e42fcf..67fd4631 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs @@ -1,20 +1,15 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/url_link/query_info 接口的请求。 + /// 表示 [POST] /apps/v1/url_link/query_info 接口的请求。 /// - public class AppsUrlLinkQueryInfoRequest : DouyinMicroAppRequest + public class AppsUrlLinkQueryInfoV1Request : DouyinMicroAppRequest { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - /// /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 /// - [Newtonsoft.Json.JsonProperty("ma_app_id")] - [System.Text.Json.Serialization.JsonPropertyName("ma_app_id")] + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] public string? AppId { get; set; } /// @@ -22,6 +17,6 @@ public class AppsUrlLinkQueryInfoRequest : DouyinMicroAppRequest /// [Newtonsoft.Json.JsonProperty("url_link")] [System.Text.Json.Serialization.JsonPropertyName("url_link")] - public string? UrlLink { get; set; } + public string UrlLink { get; set; } = string.Empty; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.cs similarity index 62% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.cs index d99fbd6f..1bd080d8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.cs @@ -1,28 +1,21 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/url_link/query_info 接口的响应。 + /// 表示 [POST] /apps/v1/url_link/query_info 接口的响应。 /// - public class AppsUrlLinkQueryInfoResponse : DouyinMicroAppResponse + public class AppsUrlLinkQueryInfoV1Response : DouyinMicroAppResponse { public static class Types { - public class UrlLinkInfo + public class Data { /// /// 获取或设置小程序的 AppId。 /// - [Newtonsoft.Json.JsonProperty("ma_app_id")] - [System.Text.Json.Serialization.JsonPropertyName("ma_app_id")] + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] public string AppId { get; set; } = default!; - /// - /// 获取或设置分享链接。 - /// - [Newtonsoft.Json.JsonProperty("url_link")] - [System.Text.Json.Serialization.JsonPropertyName("url_link")] - public string UrlLink { get; set; } = default!; - /// /// 获取或设置宿主名称。 /// @@ -60,21 +53,11 @@ public class UrlLinkInfo } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// - /// 获取或设置分享链接信息。 + /// 获取或设置返回数据。 /// - [Newtonsoft.Json.JsonProperty("url_link_info")] - [System.Text.Json.Serialization.JsonPropertyName("url_link_info")] - public Types.UrlLinkInfo UrlLinkInfo { get; set; } = default!; + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs deleted file mode 100644 index 66151210..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/url_link/query_quota 接口的请求。 - /// - public class AppsUrlLinkQueryQuotaRequest : DouyinMicroAppRequest - { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - - /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 - /// - [Newtonsoft.Json.JsonProperty("ma_app_id")] - [System.Text.Json.Serialization.JsonPropertyName("ma_app_id")] - public string? AppId { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs new file mode 100644 index 00000000..45141ac2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url_link/query_quota 接口的请求。 + /// + public class AppsUrlLinkQueryQuotaV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.cs similarity index 50% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.cs index 42e420b4..e3132849 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.cs @@ -1,13 +1,13 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/url_link/query_quota 接口的响应。 + /// 表示 [POST] /apps/v1/url_link/query_quota 接口的响应。 /// - public class AppsUrlLinkQueryQuotaResponse : DouyinMicroAppResponse + public class AppsUrlLinkQueryQuotaV1Response : DouyinMicroAppResponse { public static class Types { - public class UrlLinkQuota + public class Data { /// /// 获取或设置已生成次数。 @@ -25,21 +25,11 @@ public class UrlLinkQuota } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// - /// 获取或设置分享配额息。 + /// 获取或设置返回数据。 /// - [Newtonsoft.Json.JsonProperty("url_link_quota")] - [System.Text.Json.Serialization.JsonPropertyName("url_link_quota")] - public Types.UrlLinkQuota UrlLinkQuota { get; set; } = default!; + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Request.json similarity index 71% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Request.json index 6da5a1fc..2ad79f42 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateRequest.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Request.json @@ -1,5 +1,5 @@ { - "access_token": "0801121***********", + "app_id": "tt********", "app_name": "douyin", "path": "xxxx", "query": "{xxx:xxxx}", diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Response.json new file mode 100644 index 00000000..23bfea86 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Response.json @@ -0,0 +1,7 @@ +{ + "err_no": 0, + "err_msg": "", + "data": { + "url_link": "https://z.douyin.com/Lu86lrX" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.json deleted file mode 100644 index 85febaff..00000000 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoRequest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "access_token": "0801121***********", - "url_link": "https://z.douyin.com/Lu86lrX" -} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.json similarity index 57% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.json index a1ae946e..deb778b0 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateResponse.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.json @@ -1,5 +1,4 @@ { - "err_no": 0, - "err_tips": "", + "app_id": "tt***********", "url_link": "https://z.douyin.com/Lu86lrX" } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.json similarity index 67% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.json index 2c230ed5..62bf9699 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoResponse.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.json @@ -1,9 +1,9 @@ { "err_no": 0, - "err_tips": "", - "url_link_info": { + "err_msg": "", + "data": { "app_name": "douyin", - "ma_app_id": "tt6f31198cf00b5xxx", + "app_id": "tt6f31198cf00b5xxx", "path": "xxxx", "query": "xxxx", "create_time": 1644463984, diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.json deleted file mode 100644 index e02b0c1d..00000000 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaRequest.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "access_token": "0801121***********", - "ma_app_id": "tt******" -} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.json new file mode 100644 index 00000000..4e60e710 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.json @@ -0,0 +1,3 @@ +{ + "app_id": "tt******" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.json similarity index 67% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.json index abee0954..c5e09773 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaResponse.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.json @@ -1,7 +1,7 @@ { "err_no": 0, - "err_tips": "", - "url_link_quota": { + "err_msg": "success", + "data": { "url_link_used": 1128, "url_link_limit": 1000000 } From 37cdef70608a831f5b56e7164ea44852b2521440 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 21:28:05 +0800 Subject: [PATCH 12/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=20URL=20Schema=20=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UrlLink/AppsUrlLinkGenerateV1Response.cs | 2 +- .../UrlLink/AppsUrlLinkQueryInfoV1Request.cs | 2 +- .../AppsUrlGenerateSchemaV1Request.cs | 43 ++++++++++++++ .../AppsUrlGenerateSchemaV1Response.cs | 28 ++++++++++ .../AppsUrlQuerySchemaQuotaV1Request.cs | 15 +++++ .../AppsUrlQuerySchemaQuotaV1Response.cs | 55 ++++++++++++++++++ .../UrlSchema/AppsUrlQuerySchemaV1Request.cs | 22 ++++++++ .../UrlSchema/AppsUrlQuerySchemaV1Response.cs | 56 +++++++++++++++++++ .../AppsUrlGenerateSchemaV1Request.json | 7 +++ .../AppsUrlGenerateSchemaV1Response.json | 8 +++ .../AppsUrlQuerySchemaQuotaV1Request.json | 3 + .../AppsUrlQuerySchemaQuotaV1Response.json | 15 +++++ .../AppsUrlQuerySchemaV1Request.json | 4 ++ .../AppsUrlQuerySchemaV1Response.json | 12 ++++ 14 files changed, 270 insertions(+), 2 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs index cac6a628..c2c49477 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs @@ -10,7 +10,7 @@ public static class Types public class Data { /// - /// 获取或设置分享链接。 + /// 获取或设置链接。 /// [Newtonsoft.Json.JsonProperty("url_link")] [System.Text.Json.Serialization.JsonPropertyName("url_link")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs index 67fd4631..b497c4a5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs @@ -13,7 +13,7 @@ public class AppsUrlLinkQueryInfoV1Request : DouyinMicroAppRequest public string? AppId { get; set; } /// - /// 获取或设置分享链接。 + /// 获取或设置链接。 /// [Newtonsoft.Json.JsonProperty("url_link")] [System.Text.Json.Serialization.JsonPropertyName("url_link")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs new file mode 100644 index 00000000..ce45da46 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url/generate_schema 接口的请求。 + /// + public class AppsUrlGenerateSchemaV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置页面路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string? PagePath { get; set; } + + /// + /// 获取或设置页面查询参数。 + /// + [Newtonsoft.Json.JsonProperty("query")] + [System.Text.Json.Serialization.JsonPropertyName("query")] + public string? QueryString { get; set; } + + /// + /// 获取或设置是否永不失效。 + /// + [Newtonsoft.Json.JsonProperty("no_expire")] + [System.Text.Json.Serialization.JsonPropertyName("no_expire")] + public bool IsNoExpire { get; set; } + + /// + /// 获取或设置失效时间戳。 + /// + [Newtonsoft.Json.JsonProperty("expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("expire_time")] + public long? ExpireTimestamp { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs new file mode 100644 index 00000000..31123d03 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url/generate_schema 接口的响应。 + /// + public class AppsUrlGenerateSchemaV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置链接。 + /// + [Newtonsoft.Json.JsonProperty("schema")] + [System.Text.Json.Serialization.JsonPropertyName("schema")] + public string UrlSchema { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs new file mode 100644 index 00000000..9708b473 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url/query_schema_quota 接口的请求。 + /// + public class AppsUrlQuerySchemaQuotaV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs new file mode 100644 index 00000000..925e2cf2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs @@ -0,0 +1,55 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url/query_schema_quota 接口的响应。 + /// + public class AppsUrlQuerySchemaQuotaV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Quota + { + /// + /// 获取或设置已生成次数。 + /// + [Newtonsoft.Json.JsonProperty("schema_used")] + [System.Text.Json.Serialization.JsonPropertyName("schema_used")] + public int UsedCount { get; set; } + + /// + /// 获取或设置次数上限。 + /// + [Newtonsoft.Json.JsonProperty("schema_limit")] + [System.Text.Json.Serialization.JsonPropertyName("schema_limit")] + public int LimitCount { get; set; } + } + } + + /// + /// 获取或设置长期有效的配额信息。 + /// + [Newtonsoft.Json.JsonProperty("long_term_schema_quota")] + [System.Text.Json.Serialization.JsonPropertyName("long_term_schema_quota")] + public Types.Quota LongTermQuota { get; set; } = default!; + + /// + /// 获取或设置短期有效的配额信息。 + /// + [Newtonsoft.Json.JsonProperty("short_term_schema_quota")] + [System.Text.Json.Serialization.JsonPropertyName("short_term_schema_quota")] + public Types.Quota ShortTermQuota { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs new file mode 100644 index 00000000..4fd35726 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url/query_schema 接口的请求。 + /// + public class AppsUrlQuerySchemaV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置链接。 + /// + [Newtonsoft.Json.JsonProperty("schema")] + [System.Text.Json.Serialization.JsonPropertyName("schema")] + public string UrlSchema { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs new file mode 100644 index 00000000..98963f5e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs @@ -0,0 +1,56 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/url/query_schema 接口的响应。 + /// + public class AppsUrlQuerySchemaV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置小程序的 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置页面路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string? PagePath { get; set; } + + /// + /// 获取或设置页面查询参数。 + /// + [Newtonsoft.Json.JsonProperty("query")] + [System.Text.Json.Serialization.JsonPropertyName("query")] + public string? QueryString { get; set; } + + /// + /// 获取或设置生成时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置失效时间戳。 + /// + [Newtonsoft.Json.JsonProperty("expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("expire_time")] + public long ExpireTimestamp { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.json new file mode 100644 index 00000000..a1c33c0e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.json @@ -0,0 +1,7 @@ +{ + "app_id": "tt5da*****", + "query": "{\"key1\":\"val1\",\"key2\":\"val2\"}", + "path": "test_miniapp", + "no_expire": false, + "expire_time": 1685090014 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.json new file mode 100644 index 00000000..6a25dc8e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "schema": "sslocal://miniapp?ticket=v1_*****" + }, + "err_msg": "", + "err_no": 0, + "log_id": "20230828105040791DAA4F7CABB43F2E0D" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.json new file mode 100644 index 00000000..ddd54aec --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.json @@ -0,0 +1,3 @@ +{ + "app_id": "tt********" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.json new file mode 100644 index 00000000..c9001465 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.json @@ -0,0 +1,15 @@ +{ + "err_no": 0, + "log_id": "20230828114955870A641D59241500963C", + "data": { + "long_term_schema_quota": { + "schema_used": 6, + "schema_limit": 0 + }, + "short_term_schema_quota": { + "schema_limit": 0, + "schema_used": 0 + } + }, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.json new file mode 100644 index 00000000..cd8d6eb0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.json @@ -0,0 +1,4 @@ +{ + "schema": "sslocal://miniapp?ticket=v1_*****", + "app_id": "tt*****" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.json new file mode 100644 index 00000000..11585894 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.json @@ -0,0 +1,12 @@ +{ + "data": { + "app_id": "tt******", + "path": "page/index", + "query": "{}", + "create_time": 1682075227, + "expire_time": 0 + }, + "err_msg": "", + "err_no": 0, + "log_id": "2023********7AB1" +} From 696ebbeff308aaac4590bb4ae94ae10c8b9af9e6 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 21:34:48 +0800 Subject: [PATCH 13/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=8C=E7=BB=B4=E7=A0=81=20v2=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Apps/Qrcode/AppsQrcodeCreateV1Request.cs | 91 +++++++++++++++++++ .../Apps/Qrcode/AppsQrcodeCreateV1Response.cs | 28 ++++++ .../UrlLink/AppsUrlLinkGenerateV1Request.cs | 2 +- .../UrlLink/AppsUrlLinkQueryInfoV1Request.cs | 2 +- .../UrlLink/AppsUrlLinkQueryQuotaV1Request.cs | 2 +- .../AppsUrlQuerySchemaQuotaV1Request.cs | 2 +- .../UrlSchema/AppsUrlQuerySchemaV1Request.cs | 2 +- .../Qrcode/AppsQrcodeCreateV1Request.json | 17 ++++ .../Qrcode/AppsQrcodeCreateV1Response.json | 7 ++ 9 files changed, 148 insertions(+), 5 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs new file mode 100644 index 00000000..37643ed3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs @@ -0,0 +1,91 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/qrcode/create 接口的请求。 + /// + public class AppsQrcodeCreateV1Request : DouyinMicroAppRequest + { + public static class Types + { + public class Color + { + /// + /// 获取或设置 RGB 红色色值。 + /// + [Newtonsoft.Json.JsonProperty("r")] + [System.Text.Json.Serialization.JsonPropertyName("r")] + public byte Red { get; set; } + + /// + /// 获取或设置 RGB 绿色色值。 + /// + [Newtonsoft.Json.JsonProperty("g")] + [System.Text.Json.Serialization.JsonPropertyName("g")] + public byte Green { get; set; } + + /// + /// 获取或设置 RGB 蓝色色值。 + /// + [Newtonsoft.Json.JsonProperty("b")] + [System.Text.Json.Serialization.JsonPropertyName("b")] + public byte Blue { get; set; } + } + } + + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string? AppId { get; set; } + + /// + /// 获取或设置宿主名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string? AppName { get; set; } + + /// + /// 获取或设置 URL 编码后的小程序启动路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string? EncodedPath { get; set; } + + /// + /// 获取或设置二维码宽度(单位:像素)。 + /// + [Newtonsoft.Json.JsonProperty("width")] + [System.Text.Json.Serialization.JsonPropertyName("width")] + public int? Width { get; set; } + + /// + /// 获取或设置二维码线条颜色信息。 + /// + [Newtonsoft.Json.JsonProperty("line_color")] + [System.Text.Json.Serialization.JsonPropertyName("line_color")] + public Types.Color? LineColor { get; set; } + + /// + /// 获取或设置二维码背景颜色信息。 + /// + [Newtonsoft.Json.JsonProperty("background")] + [System.Text.Json.Serialization.JsonPropertyName("background")] + public Types.Color? BackgroundColor { get; set; } + + /// + /// 获取或设置是否展示小程序 Icon。 + /// + [Newtonsoft.Json.JsonProperty("set_icon")] + [System.Text.Json.Serialization.JsonPropertyName("set_icon")] + public bool? RequireSetIcon { get; set; } + + /// + /// 获取或设置是否生成抖音码。 + /// + [Newtonsoft.Json.JsonProperty("is_circle_code")] + [System.Text.Json.Serialization.JsonPropertyName("is_circle_code")] + public bool? IsCircleCode { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs new file mode 100644 index 00000000..184a663e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/qrcode/create 接口的响应。 + /// + public class AppsQrcodeCreateV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置经过 Base64 编码的二维码图片数据。 + /// + [Newtonsoft.Json.JsonProperty("img")] + [System.Text.Json.Serialization.JsonPropertyName("img")] + public string EncodingImageData { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs index 473f5a55..0bf625d2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsUrlLinkGenerateV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs index b497c4a5..30fde7a3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsUrlLinkQueryInfoV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs index 45141ac2..aa3ff52f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsUrlLinkQueryQuotaV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs index 9708b473..df7c9480 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsUrlQuerySchemaQuotaV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs index 4fd35726..149abe0f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsUrlQuerySchemaV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Request.json new file mode 100644 index 00000000..48003082 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Request.json @@ -0,0 +1,17 @@ +{ + "app_name": "douyin", + "appid": "tt**********", + "path": "{}", + "width": 1000, + "line_color": { + "r": 0, + "g": 0, + "b": 0 + }, + "background": { + "r": 0, + "g": 0, + "b": 0 + }, + "set_icon": false +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Response.json new file mode 100644 index 00000000..72e94b56 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Response.json @@ -0,0 +1,7 @@ +{ + "err_no": 0, + "err_msg": "", + "data": { + "img": "#######" + } +} From 5d19a09c0fa131a31de8b21ab5a143f48798cb56 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 21:40:56 +0800 Subject: [PATCH 14/42] =?UTF-8?q?feat(microapp):=20=E9=9A=8F=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E6=9B=B4=E6=96=B0=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Models/Apps/AppsJsCode2SessionV2Request.cs | 2 +- .../Models/Apps/AppsJsCode2SessionV2Response.cs | 10 ---------- .../Models/Apps/AppsTokenV2Request.cs | 2 +- .../Models/Apps/AppsTokenV2Response.cs | 10 ---------- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs index ed2e95a8..ac9683cf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsJsCode2SessionV2Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs index c408abbc..4f249d04 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs @@ -39,16 +39,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs index 47742f32..0ebc9ee4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs @@ -6,7 +6,7 @@ public class AppsTokenV2Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs index dd72469b..67a00829 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs @@ -25,16 +25,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// From 4ae273fb45ae74b31c083a4281f0ad7f47a020c0 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 22:04:01 +0800 Subject: [PATCH 15/42] =?UTF-8?q?feat(microapp):=20=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E6=96=B0=E6=97=A7=E7=89=88=E6=8E=A5=E5=8F=A3=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DouyinMicroAppClient.cs | 3 + .../DouyinMicroAppClientOptions.cs | 6 + .../DouyinMicroAppEndpoints.cs | 11 +- ...uyinMicroAppClientExecuteAppsExtensions.cs | 158 ++++++++++-------- ...croAppClientExecuteLegacyAppsExtensions.cs | 101 +++++++++++ .../Apps/AppsJsCode2SessionV2Request.cs | 0 .../Apps/AppsJsCode2SessionV2Response.cs | 0 .../{ => _Legacy}/Apps/AppsTokenV2Request.cs | 0 .../{ => _Legacy}/Apps/AppsTokenV2Response.cs | 0 .../Qrcode/AppsQrcodeRequest.cs | 0 .../Qrcode/AppsQrcodeResponse.cs | 0 .../Apps/AppsJsCode2SessionV2Request.json | 0 .../Apps/AppsJsCode2SessionV2Response.json | 2 +- .../Apps/AppsTokenV2Request.json | 0 .../Apps/AppsTokenV2Response.json | 0 .../Apps/Qrcode/AppsQrcodeRequest.json | 0 16 files changed, 209 insertions(+), 72 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/AppsJsCode2SessionV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/AppsJsCode2SessionV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/AppsTokenV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/AppsTokenV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps => _Legacy}/Qrcode/AppsQrcodeRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps => _Legacy}/Qrcode/AppsQrcodeResponse.cs (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/AppsJsCode2SessionV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/AppsJsCode2SessionV2Response.json (97%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/AppsTokenV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/AppsTokenV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Qrcode/AppsQrcodeRequest.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs index bfd2856a..96ebdc18 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs @@ -11,6 +11,8 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp /// public class DouyinMicroAppClient : CommonClientBase, ICommonClient { + public readonly string _BASEURL_LEGACY; + /// /// 获取当前客户端使用的抖音小程序凭证。 /// @@ -37,6 +39,7 @@ internal protected DouyinMicroAppClient(DouyinMicroAppClientOptions options, Htt if (options is null) throw new ArgumentNullException(nameof(options)); Credentials = new Settings.Credentials(options); + _BASEURL_LEGACY = options.EndpointForLegacy ?? DouyinMicroAppEndpoints.LEGACY_DEFAULT; FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs index dc576861..b9366aac 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClientOptions.cs @@ -17,6 +17,12 @@ public class DouyinMicroAppClientOptions /// public string Endpoint { get; set; } = DouyinMicroAppEndpoints.DEFAULT; + /// + /// 获取或设置抖音小程序旧版 API 入口点。 + /// 默认值: + /// + public string EndpointForLegacy { get; set; } = DouyinMicroAppEndpoints.LEGACY_DEFAULT; + /// /// 获取或设置抖音小程序 AppId。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs index 6d7e0cad..49ae3e76 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppEndpoints.cs @@ -8,11 +8,16 @@ public static class DouyinMicroAppEndpoints /// /// 默认域名。 /// - public const string DEFAULT = "https://developer.toutiao.com/api"; + public const string DEFAULT = "https://open.douyin.com/api"; /// - /// 沙盒环境域名。 + /// 旧版接口默认域名。 /// - public const string SANGBOX = "https://open-sandbox.douyin.com/api"; + public const string LEGACY_DEFAULT = "https://developer.toutiao.com/api"; + + /// + /// 旧版接口沙盒环境域名。 + /// + public const string LEGACY_SANGBOX = "https://open-sandbox.douyin.com/api"; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index 96b2ce3a..513c6e9e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -10,66 +10,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { public static class DouyinMicroAppClientExecuteAppsExtensions { - /// - /// 异步调用 [POST] /apps/v2/token 接口。 - /// - /// REF:
- ///
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTokenV2Async(this DouyinMicroAppClient client, Models.AppsTokenV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - if (request.AppSecret is null) - request.AppSecret = client.Credentials.AppSecret; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "token"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v2/jscode2session 接口。 - /// - /// REF:
- ///
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsJsCode2SessionV2Async(this DouyinMicroAppClient client, Models.AppsJsCode2SessionV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - if (request.AppSecret is null) - request.AppSecret = client.Credentials.AppSecret; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "jscode2session"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #region Capacity /// /// 异步调用 [POST] /apps/v1/capacity/upload_material 接口。 @@ -1869,27 +1809,29 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #region Qrcode /// - /// 异步调用 [POST] /apps/qrcode 接口。 + /// 异步调用 [POST] /apps/v1/qrcode/create 接口。 /// /// REF:
- ///
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsQrcodeAsync(this DouyinMicroAppClient client, Models.AppsQrcodeRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsQrcodeCreateV1Async(this DouyinMicroAppClient client, Models.AppsQrcodeCreateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "qrcode"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "qrcode", "create") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion @@ -2075,7 +2017,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region UrlLink + #region UrlSchema /// /// 异步调用 [POST] /apps/v1/url_link/generate 接口。 /// @@ -2155,6 +2097,86 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion + #region UrlLink + /// + /// 异步调用 [POST] /apps/v1/url/generate_schema 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlGenerateSchemaV1Async(this DouyinMicroAppClient client, Models.AppsUrlGenerateSchemaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "generate_schema") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/url/query_schema 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlQuerySchemaV1Async(this DouyinMicroAppClient client, Models.AppsUrlQuerySchemaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/url/query_schema_quota 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlQuerySchemaQuotaV1Async(this DouyinMicroAppClient client, Models.AppsUrlQuerySchemaQuotaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema_quota") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region Video /// /// 异步调用 [POST] /apps/convert_video_id/video_id_to_open_item_id 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs new file mode 100644 index 00000000..55d04adb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -0,0 +1,101 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteLegacyAppsExtensions + { + /// + /// 异步调用 [POST] /apps/v2/token 接口。 + /// + /// REF:
+ ///
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTokenV2Async(this DouyinMicroAppClient client, Models.AppsTokenV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.AppSecret is null) + request.AppSecret = client.Credentials.AppSecret; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "token") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v2/token"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/jscode2session 接口。 + /// + /// REF:
+ ///
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsJsCode2SessionV2Async(this DouyinMicroAppClient client, Models.AppsJsCode2SessionV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.AppSecret is null) + request.AppSecret = client.Credentials.AppSecret; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "jscode2session") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v2/jscode2session"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + #region Qrcode + /// + /// 异步调用 [POST] /apps/qrcode 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsQrcodeAsync(this DouyinMicroAppClient client, Models.AppsQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "qrcode") + .WithUrl($"{client._BASEURL_LEGACY}/apps/qrcode"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsJsCode2SessionV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsJsCode2SessionV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsJsCode2SessionV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsJsCode2SessionV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsJsCode2SessionV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsTokenV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsTokenV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsTokenV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/AppsTokenV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/AppsTokenV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeResponse.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeResponse.cs diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsJsCode2SessionV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsJsCode2SessionV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsJsCode2SessionV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsJsCode2SessionV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsJsCode2SessionV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsJsCode2SessionV2Response.json similarity index 97% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsJsCode2SessionV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsJsCode2SessionV2Response.json index 4cf9bea5..a92c3e4f 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsJsCode2SessionV2Response.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsJsCode2SessionV2Response.json @@ -1,4 +1,4 @@ -{ +{ "err_no": 0, "err_tips": "success", "data": { diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsTokenV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsTokenV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsTokenV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsTokenV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsTokenV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsTokenV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/AppsTokenV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/AppsTokenV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Qrcode/AppsQrcodeRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Qrcode/AppsQrcodeRequest.json From 51c25b5195950ce42e5f916d9e790f80fa50e3fd Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 23:40:04 +0800 Subject: [PATCH 16/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=BA=BF=E7=B4=A2=E7=BB=84=E4=BB=B6=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DouyinMicroAppClient.cs | 3 +- ...croAppClientExecuteLegacyAppsExtensions.cs | 106 ++++++++++++ ...apacityCreateClueComponentInfoV1Request.cs | 38 +++++ ...pacityCreateClueComponentInfoV1Response.cs | 28 +++ ...apacityDeleteClueComponentInfoV1Request.cs | 15 ++ ...pacityDeleteClueComponentInfoV1Response.cs | 9 + ...CapacityQueryClueComponentInfoV1Request.cs | 22 +++ ...apacityQueryClueComponentInfoV1Response.cs | 159 ++++++++++++++++++ ...apacityUpdateClueComponentInfoV1Request.cs | 45 +++++ ...pacityUpdateClueComponentInfoV1Response.cs | 9 + ...acityCreateClueComponentInfoV1Request.json | 5 + ...cityCreateClueComponentInfoV1Response.json | 8 + ...acityDeleteClueComponentInfoV1Request.json | 3 + ...acityQueryClueComponentInfoV1Response.json | 20 +++ ...acityUpdateClueComponentInfoV1Request.json | 6 + 15 files changed, 475 insertions(+), 1 deletion(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs index 96ebdc18..843e473e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppClient.cs @@ -39,10 +39,11 @@ internal protected DouyinMicroAppClient(DouyinMicroAppClientOptions options, Htt if (options is null) throw new ArgumentNullException(nameof(options)); Credentials = new Settings.Credentials(options); - _BASEURL_LEGACY = options.EndpointForLegacy ?? DouyinMicroAppEndpoints.LEGACY_DEFAULT; FlurlClient.BaseUrl = options.Endpoint ?? DouyinMicroAppEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); + + _BASEURL_LEGACY = options.EndpointForLegacy ?? DouyinMicroAppEndpoints.LEGACY_DEFAULT; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index 55d04adb..0bf8f5bd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -72,6 +72,112 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #region Capacity + #region Capacity/ClueComponent + /// + /// 异步调用 [POST] /apps/v1/capacity/create_clue_component_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityCreateClueComponentInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityCreateClueComponentInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_clue_component_info") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/create_clue_component_info") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_clue_component_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQueryClueComponentInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryClueComponentInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_clue_component_info") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_clue_component_info") + .WithHeader("access-token", request.AccessToken); + + if (request.PageNumber is not null) + flurlReq.SetQueryParam("page_no", request.PageNumber.Value); + + if (request.PageSize is not null) + flurlReq.SetQueryParam("page_size", request.PageSize.Value); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/update_clue_component_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityUpdateClueComponentInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateClueComponentInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_clue_component_info") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_clue_component_info") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [DELETE] /apps/v1/capacity/delete_clue_component_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityDeleteClueComponentInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteClueComponentInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Delete, "apps", "v1", "capacity", "delete_clue_component_info") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/delete_clue_component_info") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #endregion + #region Qrcode /// /// 异步调用 [POST] /apps/qrcode 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs new file mode 100644 index 00000000..16d017e6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs @@ -0,0 +1,38 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/create_clue_component_info 接口的请求。 + /// + public class AppsCapacityCreateClueComponentInfoV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置线索组件名称。 + /// + [Newtonsoft.Json.JsonProperty("config_name")] + [System.Text.Json.Serialization.JsonPropertyName("config_name")] + public string ConfigName { get; set; } = string.Empty; + + /// + /// 获取或设置地区编号。 + /// + [Newtonsoft.Json.JsonProperty("region")] + [System.Text.Json.Serialization.JsonPropertyName("region")] + public string? Region { get; set; } + + /// + /// 获取或设置地区编号列表。 + /// + [Newtonsoft.Json.JsonProperty("region_list")] + [System.Text.Json.Serialization.JsonPropertyName("region_list")] + public IList? RegionList { get; set; } + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category_id")] + [System.Text.Json.Serialization.JsonPropertyName("category_id")] + public string? CategoryIdString { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs new file mode 100644 index 00000000..de6942bc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/create_clue_component_info 接口的响应。 + /// + public class AppsCapacityCreateClueComponentInfoV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置线索组件 ID。 + /// + [Newtonsoft.Json.JsonProperty("config_id")] + [System.Text.Json.Serialization.JsonPropertyName("config_id")] + public string ConfigId { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs new file mode 100644 index 00000000..e4de8895 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [DELETE] /apps/v1/capacity/delete_clue_component_info 接口的请求。 + /// + public class AppsCapacityDeleteClueComponentInfoV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置线索组件 ID。 + /// + [Newtonsoft.Json.JsonProperty("config_id")] + [System.Text.Json.Serialization.JsonPropertyName("config_id")] + public string ConfigId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs new file mode 100644 index 00000000..05fc24e8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [DELETE] /apps/v1/capacity/delete_clue_component_info 接口的响应。 + /// + public class AppsCapacityDeleteClueComponentInfoV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs new file mode 100644 index 00000000..60f9a982 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/query_clue_component_info 接口的请求。 + /// + public class AppsCapacityQueryClueComponentInfoV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置分页页数。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? PageNumber { get; set; } + + /// + /// 获取或设置分页每页页数。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? PageSize { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs new file mode 100644 index 00000000..fda0fb45 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs @@ -0,0 +1,159 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/query_clue_component_info 接口的响应。 + /// + public class AppsCapacityQueryClueComponentInfoV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class ClueComponent + { + public static class Types + { + public class Region + { + /// + /// 获取或设置地区编号。 + /// + [Newtonsoft.Json.JsonProperty("region")] + [System.Text.Json.Serialization.JsonPropertyName("region")] + public string RegionCode { get; set; } = default!; + + /// + /// 获取或设置省份编号。 + /// + [Newtonsoft.Json.JsonProperty("province_code")] + [System.Text.Json.Serialization.JsonPropertyName("province_code")] + public string ProvinceCode { get; set; } = default!; + + /// + /// 获取或设置省份名称。 + /// + [Newtonsoft.Json.JsonProperty("province_name")] + [System.Text.Json.Serialization.JsonPropertyName("province_name")] + public string ProvinceName { get; set; } = default!; + + /// + /// 获取或设置城市编号。 + /// + [Newtonsoft.Json.JsonProperty("city_code")] + [System.Text.Json.Serialization.JsonPropertyName("city_code")] + public string CityCode { get; set; } = default!; + + /// + /// 获取或设置城市名称。 + /// + [Newtonsoft.Json.JsonProperty("city_name")] + [System.Text.Json.Serialization.JsonPropertyName("city_name")] + public string CityName { get; set; } = default!; + + /// + /// 获取或设置区县编号。 + /// + [Newtonsoft.Json.JsonProperty("district_code")] + [System.Text.Json.Serialization.JsonPropertyName("district_code")] + public string DistrictCode { get; set; } = default!; + + /// + /// 获取或设置区县名称。 + /// + [Newtonsoft.Json.JsonProperty("district_name")] + [System.Text.Json.Serialization.JsonPropertyName("district_name")] + public string DistrictName { get; set; } = default!; + } + } + + /// + /// 获取或设置线索组件 ID。 + /// + [Newtonsoft.Json.JsonProperty("config_id")] + [System.Text.Json.Serialization.JsonPropertyName("config_id")] + public string ConfigId { get; set; } = default!; + + /// + /// 获取或设置线索组件名称。 + /// + [Newtonsoft.Json.JsonProperty("config_name")] + [System.Text.Json.Serialization.JsonPropertyName("config_name")] + public string ConfigName { get; set; } = default!; + + /// + /// 获取或设置地区编号。 + /// + [Newtonsoft.Json.JsonProperty("region")] + [System.Text.Json.Serialization.JsonPropertyName("region")] + public string Region { get; set; } = default!; + + /// + /// 获取或设置地区名称。 + /// + [Newtonsoft.Json.JsonProperty("region_name")] + [System.Text.Json.Serialization.JsonPropertyName("region_name")] + public string RegionName { get; set; } = default!; + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category_id")] + [System.Text.Json.Serialization.JsonPropertyName("category_id")] + public string CategoryIdString { get; set; } = default!; + + /// + /// 获取或设置服务类目名称字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category_name")] + [System.Text.Json.Serialization.JsonPropertyName("category_name")] + public string CategoryNameString { get; set; } = default!; + + /// + /// 获取或设置状态。 + /// + [Newtonsoft.Json.JsonProperty("state")] + [System.Text.Json.Serialization.JsonPropertyName("state")] + public string State { get; set; } = default!; + + /// + /// 获取或设置地区列表。 + /// + [Newtonsoft.Json.JsonProperty("region_list")] + [System.Text.Json.Serialization.JsonPropertyName("region_list")] + public Types.Region[]? RegionList { get; set; } + } + } + + /// + /// 获取或设置线索组件列表。 + /// + [Newtonsoft.Json.JsonProperty("clue_component_list")] + [System.Text.Json.Serialization.JsonPropertyName("clue_component_list")] + public Types.ClueComponent[] ClueComponentList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total")] + [System.Text.Json.Serialization.JsonPropertyName("total")] + public int TotalCount { get; set; } + + /// + /// 获取或设置非定向邀约小程序或小程序类目是否符合要求。 + /// + [Newtonsoft.Json.JsonProperty("cert_status")] + [System.Text.Json.Serialization.JsonPropertyName("cert_status")] + public bool? CertStatus { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs new file mode 100644 index 00000000..28cfb323 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs @@ -0,0 +1,45 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/update_clue_component_info 接口的请求。 + /// + public class AppsCapacityUpdateClueComponentInfoV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置线索组件 ID。 + /// + [Newtonsoft.Json.JsonProperty("config_id")] + [System.Text.Json.Serialization.JsonPropertyName("config_id")] + public string ConfigId { get; set; } = string.Empty; + + /// + /// 获取或设置线索组件名称。 + /// + [Newtonsoft.Json.JsonProperty("config_name")] + [System.Text.Json.Serialization.JsonPropertyName("config_name")] + public string ConfigName { get; set; } = string.Empty; + + /// + /// 获取或设置地区编号。 + /// + [Newtonsoft.Json.JsonProperty("region")] + [System.Text.Json.Serialization.JsonPropertyName("region")] + public string? Region { get; set; } + + /// + /// 获取或设置地区编号列表。 + /// + [Newtonsoft.Json.JsonProperty("region_list")] + [System.Text.Json.Serialization.JsonPropertyName("region_list")] + public IList? RegionList { get; set; } + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category_id")] + [System.Text.Json.Serialization.JsonPropertyName("category_id")] + public string? CategoryIdString { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs new file mode 100644 index 00000000..3c680c7b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/update_clue_component_info 接口的响应。 + /// + public class AppsCapacityUpdateClueComponentInfoV1Response : DouyinMicroAppResponse + { + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.json new file mode 100644 index 00000000..4e19f859 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.json @@ -0,0 +1,5 @@ +{ + "config_name": "线索组件测试1", + "region": "110101", + "category_id": "8,9,12" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.json new file mode 100644 index 00000000..fefabd1b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.json @@ -0,0 +1,8 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "xxxx", + "data": { + "config_id": "xxxx" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.json new file mode 100644 index 00000000..7c905247 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.json @@ -0,0 +1,3 @@ +{ + "config_id": "xxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.json new file mode 100644 index 00000000..ea0efaac --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.json @@ -0,0 +1,20 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "xxx", + "data": { + "clue_component_list": [ + { + "config_id": "xxx", + "config_name": "xxx", + "region": "xxx", + "category_id": "xxx", + "state": "xxx", + "region_name": "xxx", + "category_name": "xxx" + } + ], + "cert_status": false, + "total": 32 + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.json new file mode 100644 index 00000000..ecbcb6d7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.json @@ -0,0 +1,6 @@ +{ + "config_id": "xxx", + "config_name": "线索组件测试1", + "region": "110101", + "category_id": "8,9,12" +} From 4e0b83f757106ab61e3b119f550e075ecf372168 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Tue, 5 Mar 2024 23:55:58 +0800 Subject: [PATCH 17/42] refactor(tiktokshop) --- .../TikTokShopClientExecuteAuthExtensions.cs | 4 ++-- .../TikTokShopClient.cs | 20 ++++++------------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/Extensions/TikTokShopClientExecuteAuthExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/Extensions/TikTokShopClientExecuteAuthExtensions.cs index 843d4284..a580b071 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/Extensions/TikTokShopClientExecuteAuthExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/Extensions/TikTokShopClientExecuteAuthExtensions.cs @@ -27,7 +27,7 @@ public static class TikTokShopClientExecuteAuthExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "token", "get") - .WithUrl($"{client.EndpointForAuth}/token/get") + .WithUrl($"{client._BASEURL_AUTHAPI}/token/get") .SetQueryParam("app_key", client.Credentials.AppKey) .SetQueryParam("app_secret", client.Credentials.AppSecret) .SetQueryParam("grant_type", request.GrantType) @@ -56,7 +56,7 @@ public static class TikTokShopClientExecuteAuthExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "token", "refresh") - .WithUrl($"{client.EndpointForAuth}/token/refresh") + .WithUrl($"{client._BASEURL_AUTHAPI}/token/refresh") .SetQueryParam("app_key", client.Credentials.AppKey) .SetQueryParam("app_secret", client.Credentials.AppSecret) .SetQueryParam("grant_type", request.GrantType) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/TikTokShopClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/TikTokShopClient.cs index 2ae8a129..d2e8e64c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/TikTokShopClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop/TikTokShopClient.cs @@ -11,21 +11,13 @@ namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop /// public class TikTokShopClient : CommonClientBase, ICommonClient { + public readonly string _BASEURL_AUTHAPI; + /// /// 获取当前客户端使用的 TikTok Shop API 凭证。 /// public Settings.Credentials Credentials { get; } - /// - /// 获取当前客户端使用的 TikTok Shop API 接入点。 - /// - protected internal string EndpointForDefault { get; } - - /// - /// 获取当前客户端使用的 TikTok Shop Auth API 接入点。 - /// - protected internal string EndpointForAuth { get; } - /// /// 用指定的配置项初始化 类的新实例。 /// @@ -47,13 +39,13 @@ internal protected TikTokShopClient(TikTokShopClientOptions options, HttpClient? if (options is null) throw new ArgumentNullException(nameof(options)); Credentials = new Settings.Credentials(options); - EndpointForDefault = options.Endpoint ?? TikTokShopEndpoints.DEFAULT; - EndpointForAuth = options.EndpointForAuthAPI ?? TikTokShopAuthApiEndpoints.DEFAULT; - FlurlClient.BaseUrl = EndpointForDefault; + FlurlClient.BaseUrl = options.Endpoint ?? TikTokShopEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); - Interceptors.Add(new Interceptors.TikTokShopRequestSigningInterceptor(baseUrl: EndpointForDefault, appSecret: options.AppSecret)); + Interceptors.Add(new Interceptors.TikTokShopRequestSigningInterceptor(baseUrl: FlurlClient.BaseUrl, appSecret: options.AppSecret)); + + _BASEURL_AUTHAPI = options.EndpointForAuthAPI ?? TikTokShopAuthApiEndpoints.DEFAULT; } /// From 4fc736d48cd29fce8b5b6d6ec6d645e9d9557923 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 6 Mar 2024 10:21:47 +0800 Subject: [PATCH 18/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=83=BD=E5=8A=9B=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...uyinMicroAppClientExecuteAppsExtensions.cs | 543 +++++++++++++++++- ...croAppClientExecuteLegacyAppsExtensions.cs | 57 ++ .../Apps/Item/AppsItemBCGetBaseV1Request.cs | 9 + .../Apps/Item/AppsItemBCGetBaseV1Response.cs | 35 ++ .../Item/AppsItemBCGetCommentV1Request.cs | 9 + .../Item/AppsItemBCGetCommentV1Response.cs | 35 ++ .../Apps/Item/AppsItemBCGetLikeV1Request.cs | 9 + .../Apps/Item/AppsItemBCGetLikeV1Response.cs | 35 ++ .../Apps/Item/AppsItemBCGetPlayV1Request.cs | 9 + .../Apps/Item/AppsItemBCGetPlayV1Response.cs | 35 ++ .../Apps/Item/AppsItemBCGetShareV1Request.cs | 9 + .../Apps/Item/AppsItemBCGetShareV1Response.cs | 35 ++ .../Apps/Item/AppsItemGetBaseV1Request.cs | 22 + .../Apps/Item/AppsItemGetBaseV1Response.cs | 69 +++ .../Apps/Item/AppsItemGetCommentV1Request.cs | 29 + .../Apps/Item/AppsItemGetCommentV1Response.cs | 48 ++ .../Apps/Item/AppsItemGetLikeV1Request.cs | 29 + .../Apps/Item/AppsItemGetLikeV1Response.cs | 48 ++ .../Apps/Item/AppsItemGetPlayV1Request.cs | 29 + .../Apps/Item/AppsItemGetPlayV1Response.cs | 48 ++ .../Apps/Item/AppsItemGetShareV1Request.cs | 29 + .../Apps/Item/AppsItemGetShareV1Response.cs | 48 ++ .../AppsItemBCListCommentReplyV1Request.cs | 9 + .../AppsItemBCListCommentReplyV1Response.cs | 49 ++ .../Comment/AppsItemBCListCommentV1Request.cs | 9 + .../AppsItemBCListCommentV1Response.cs | 49 ++ .../AppsItemBCReplyCommentV1Request.cs | 9 + .../AppsItemBCReplyCommentV1Response.cs | 22 + .../Comment/AppsItemBCTopCommentV1Request.cs | 9 + .../Comment/AppsItemBCTopCommentV1Response.cs | 9 + .../AppsItemListCommentReplyV1Request.cs | 52 ++ .../AppsItemListCommentReplyV1Response.cs | 118 ++++ .../Comment/AppsItemListCommentV1Request.cs | 45 ++ .../Comment/AppsItemListCommentV1Response.cs | 111 ++++ .../Comment/AppsItemReplyCommentV1Request.cs | 36 ++ .../Comment/AppsItemReplyCommentV1Response.cs | 28 + .../Comment/AppsItemTopCommentV1Request.cs | 36 ++ .../Comment/AppsItemTopCommentV1Response.cs | 9 + ...psConvertOpenItemIdToEncryptIdV1Request.cs | 24 + ...sConvertOpenItemIdToEncryptIdV1Response.cs | 30 + ...AppsConvertVideoIdToOpenItemIdV1Request.cs | 31 + ...ppsConvertVideoIdToOpenItemIdV1Response.cs | 30 + .../Apps/Video/AppsVideoBCQueryV1Request.cs | 9 + .../Apps/Video/AppsVideoBCQueryV1Response.cs | 35 ++ .../Apps/Video/AppsVideoQueryV1Request.cs | 31 + .../Apps/Video/AppsVideoQueryV1Response.cs | 159 +++++ ...apacityCreateClueComponentInfoV1Request.cs | 0 ...pacityCreateClueComponentInfoV1Response.cs | 0 ...apacityDeleteClueComponentInfoV1Request.cs | 0 ...pacityDeleteClueComponentInfoV1Response.cs | 0 ...CapacityQueryClueComponentInfoV1Request.cs | 0 ...apacityQueryClueComponentInfoV1Response.cs | 0 ...apacityUpdateClueComponentInfoV1Request.cs | 0 ...pacityUpdateClueComponentInfoV1Response.cs | 0 .../{ => Apps}/Qrcode/AppsQrcodeRequest.cs | 0 .../{ => Apps}/Qrcode/AppsQrcodeResponse.cs | 0 ...AppsConvertOpenItemIdToEncryptIdRequest.cs | 6 +- ...ppsConvertOpenItemIdToEncryptIdResponse.cs | 16 +- .../AppsConvertVideoIdToOpenItemIdRequest.cs | 8 +- .../AppsConvertVideoIdToOpenItemIdResponse.cs | 16 +- .../Item/AppsItemBCGetBaseV1Response.json | 11 + .../Item/AppsItemBCGetCommentV1Response.json | 10 + .../Item/AppsItemBCGetLikeV1Response.json | 10 + .../Item/AppsItemBCGetPlayV1Response.json | 10 + .../Item/AppsItemBCGetShareV1Response.json | 10 + .../Apps/Item/AppsItemGetBaseV1Response.json | 11 + .../Item/AppsItemGetCommentV1Response.json | 10 + .../Apps/Item/AppsItemGetLikeV1Response.json | 10 + .../Apps/Item/AppsItemGetPlayV1Response.json | 10 + .../Apps/Item/AppsItemGetShareV1Response.json | 10 + .../AppsItemBCListCommentReplyV1Response.json | 19 + .../AppsItemBCListCommentV1Response.json | 19 + .../AppsItemBCReplyCommentV1Request.json | 5 + .../AppsItemBCReplyCommentV1Response.json | 5 + .../AppsItemBCTopCommentV1Request.json | 5 + .../AppsItemListCommentReplyV1Response.json | 19 + .../AppsItemListCommentV1Response.json | 19 + .../AppsItemReplyCommentV1Request.json | 5 + .../AppsItemReplyCommentV1Response.json | 5 + .../Comment/AppsItemTopCommentV1Request.json | 5 + ...ConvertOpenItemIdToEncryptIdV1Request.json | 6 + ...onvertOpenItemIdToEncryptIdV1Response.json | 10 + ...psConvertVideoIdToOpenItemIdV1Request.json | 7 + ...sConvertVideoIdToOpenItemIdV1Response.json | 10 + .../Apps/Video/AppsVideoBCQueryV1Request.json | 5 + .../Video/AppsVideoBCQueryV1Response.json | 25 + .../_/Apps/Video/AppsVideoQueryV1Request.json | 5 + .../Apps/Video/AppsVideoQueryV1Response.json | 25 + ...psConvertOpenItemIdToEncryptIdRequest.json | 0 ...sConvertOpenItemIdToEncryptIdResponse.json | 0 ...AppsConvertVideoIdToOpenItemIdRequest.json | 0 ...ppsConvertVideoIdToOpenItemIdResponse.json | 0 92 files changed, 2470 insertions(+), 45 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Qrcode/AppsQrcodeRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/{ => Apps}/Qrcode/AppsQrcodeResponse.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs (61%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs (60%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetBaseV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetLikeV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetPlayV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetShareV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetBaseV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetLikeV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetPlayV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetShareV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCTopCommentV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentReplyV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemTopCommentV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Response.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index 513c6e9e..1319d225 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -1672,6 +1672,478 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #endregion #endregion + #region Item + /// + /// 异步调用 [GET] /apps/v1/item/get_base/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetBaseV1Async(this DouyinMicroAppClient client, Models.AppsItemGetBaseV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_base", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_base/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetBaseV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetBaseV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_base", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_like/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsItemGetLikeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_like", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_like/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetLikeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_like", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemGetCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_play/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetPlayV1Async(this DouyinMicroAppClient client, Models.AppsItemGetPlayV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_play", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_play/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetPlayV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetPlayV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_play", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_share/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetShareV1Async(this DouyinMicroAppClient client, Models.AppsItemGetShareV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_share", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_share/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetShareV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetShareV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_share", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + #region Item/Comment + /// + /// 异步调用 [POST] /apps/v1/item/top_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemTopCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemTopCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item", "top_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/item_bc/top_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCTopCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCTopCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item_bc", "top_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/item/reply_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemReplyCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemReplyCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item", "reply_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/item_bc/reply_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCReplyCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCReplyCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item_bc", "reply_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/list_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemListCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemListCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "list_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/list_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCListCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCListCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "list_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/list_comment_reply/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemListCommentReplyV1Async(this DouyinMicroAppClient client, Models.AppsItemListCommentReplyV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "list_comment_reply", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("comment_id", request.CommentId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/list_comment_reply/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCListCommentReplyV1Async(this DouyinMicroAppClient client, Models.AppsItemBCListCommentReplyV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "list_comment_reply", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("comment_id", request.CommentId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #endregion + #region Live /// /// 异步调用 [POST] /apps/upload_live_image 接口。 @@ -2179,50 +2651,97 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #region Video /// - /// 异步调用 [POST] /apps/convert_video_id/video_id_to_open_item_id 接口。 + /// 异步调用 [POST] /apps/v1/video/query/ 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsConvertVideoIdToOpenItemIdAsync(this DouyinMicroAppClient client, Models.AppsConvertVideoIdToOpenItemIdRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsVideoQueryV1Async(this DouyinMicroAppClient client, Models.AppsVideoQueryV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "video", "query", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/video_bc/query/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsVideoBCQueryV1Async(this DouyinMicroAppClient client, Models.AppsVideoBCQueryV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "video_bc", "query", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/convert_video_id/video_id_to_open_item_id/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsConvertVideoIdToOpenItemIdV1Async(this DouyinMicroAppClient client, Models.AppsConvertVideoIdToOpenItemIdV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "video_id_to_open_item_id"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "convert_video_id", "video_id_to_open_item_id", "") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/convert_video_id/open_item_id_to_encrypt_id 接口。 + /// 异步调用 [POST] /apps/v1/convert_video_id/open_item_id_to_encrypt_id/ 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsConvertOpenItemIdToEncryptIdAsync(this DouyinMicroAppClient client, Models.AppsConvertOpenItemIdToEncryptIdRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsConvertOpenItemIdToEncryptIdV1Async(this DouyinMicroAppClient client, Models.AppsConvertOpenItemIdToEncryptIdV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "open_item_id_to_encrypt_id"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "convert_video_id", "open_item_id_to_encrypt_id", "") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index 0bf8f5bd..aa2a89e1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -203,5 +203,62 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion + + #region Video + /// + /// 异步调用 [POST] /apps/convert_video_id/video_id_to_open_item_id 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsConvertVideoIdToOpenItemIdAsync(this DouyinMicroAppClient client, Models.AppsConvertVideoIdToOpenItemIdRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.AccessKey is null) + request.AccessKey = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "video_id_to_open_item_id") + .WithUrl($"{client._BASEURL_LEGACY}/apps/convert_video_id/video_id_to_open_item_id"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/convert_video_id/open_item_id_to_encrypt_id 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsConvertOpenItemIdToEncryptIdAsync(this DouyinMicroAppClient client, Models.AppsConvertOpenItemIdToEncryptIdRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AccessKey is null) + request.AccessKey = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "open_item_id_to_encrypt_id") + .WithUrl($"{client._BASEURL_LEGACY}/apps/convert_video_id/open_item_id_to_encrypt_id"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Request.cs new file mode 100644 index 00000000..94ae1414 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_base/ 接口的请求。 + /// + public class AppsItemBCGetBaseV1Request : AppsItemGetBaseV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Response.cs new file mode 100644 index 00000000..38565820 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_base/ 接口的响应。 + /// + public class AppsItemBCGetBaseV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsItemGetBaseV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result")] + [System.Text.Json.Serialization.JsonPropertyName("result")] + public Types.Result Result { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Request.cs new file mode 100644 index 00000000..f3e75698 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_comment/ 接口的请求。 + /// + public class AppsItemBCGetCommentV1Request : AppsItemGetCommentV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Response.cs new file mode 100644 index 00000000..1a4fa988 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_comment/ 接口的响应。 + /// + public class AppsItemBCGetCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsItemGetCommentV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果列表。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Request.cs new file mode 100644 index 00000000..c273e4b6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_like/ 接口的请求。 + /// + public class AppsItemBCGetLikeV1Request : AppsItemGetLikeV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Response.cs new file mode 100644 index 00000000..f0683916 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_like/ 接口的响应。 + /// + public class AppsItemBCGetLikeV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsItemGetLikeV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果列表。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Request.cs new file mode 100644 index 00000000..a765ffc7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_play/ 接口的请求。 + /// + public class AppsItemBCGetPlayV1Request : AppsItemGetPlayV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Response.cs new file mode 100644 index 00000000..74dab021 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_play/ 接口的响应。 + /// + public class AppsItemBCGetPlayV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsItemGetPlayV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果列表。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Request.cs new file mode 100644 index 00000000..2e13dd74 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_share/ 接口的请求。 + /// + public class AppsItemBCGetShareV1Request : AppsItemGetShareV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Response.cs new file mode 100644 index 00000000..6293a6d3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/get_share/ 接口的响应。 + /// + public class AppsItemBCGetShareV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsItemGetShareV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果列表。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Request.cs new file mode 100644 index 00000000..7d7e741b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_base/ 接口的请求。 + /// + public class AppsItemGetBaseV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ItemId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Response.cs new file mode 100644 index 00000000..276ed837 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Response.cs @@ -0,0 +1,69 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_base/ 接口的响应。 + /// + public class AppsItemGetBaseV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置平均播放时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("avg_play_duration")] + [System.Text.Json.Serialization.JsonPropertyName("avg_play_duration")] + public decimal AveragePlayDuration { get; set; } + + /// + /// 获取或设置播放数。 + /// + [Newtonsoft.Json.JsonProperty("total_play")] + [System.Text.Json.Serialization.JsonPropertyName("total_play")] + public long TotalPlayCount { get; set; } + + /// + /// 获取或设置评论数。 + /// + [Newtonsoft.Json.JsonProperty("total_comment")] + [System.Text.Json.Serialization.JsonPropertyName("total_comment")] + public long TotalCommentCount { get; set; } + + /// + /// 获取或设置点赞数。 + /// + [Newtonsoft.Json.JsonProperty("total_like")] + [System.Text.Json.Serialization.JsonPropertyName("total_like")] + public long TotalLikeCount { get; set; } + + /// + /// 获取或设置分享数。 + /// + [Newtonsoft.Json.JsonProperty("total_share")] + [System.Text.Json.Serialization.JsonPropertyName("total_share")] + public long TotalShareCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result")] + [System.Text.Json.Serialization.JsonPropertyName("result")] + public Types.Result Result { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Request.cs new file mode 100644 index 00000000..8bcd6c5b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Request.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_comment/ 接口的请求。 + /// + public class AppsItemGetCommentV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DataType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Response.cs new file mode 100644 index 00000000..7f4f0356 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_comment/ 接口的响应。 + /// + public class AppsItemGetCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置评论数。 + /// + [Newtonsoft.Json.JsonProperty("comment")] + [System.Text.Json.Serialization.JsonPropertyName("comment")] + public long CommentCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Request.cs new file mode 100644 index 00000000..4434fe3d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Request.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_like/ 接口的请求。 + /// + public class AppsItemGetLikeV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DataType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Response.cs new file mode 100644 index 00000000..8d3adc6d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_like/ 接口的响应。 + /// + public class AppsItemGetLikeV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置点赞数。 + /// + [Newtonsoft.Json.JsonProperty("like")] + [System.Text.Json.Serialization.JsonPropertyName("like")] + public long LikeCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Request.cs new file mode 100644 index 00000000..846b282c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Request.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_play/ 接口的请求。 + /// + public class AppsItemGetPlayV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DataType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Response.cs new file mode 100644 index 00000000..06e8ca76 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_play/ 接口的响应。 + /// + public class AppsItemGetPlayV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置播放数。 + /// + [Newtonsoft.Json.JsonProperty("play")] + [System.Text.Json.Serialization.JsonPropertyName("play")] + public long PlayCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Request.cs new file mode 100644 index 00000000..f6aabea6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Request.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_share/ 接口的请求。 + /// + public class AppsItemGetShareV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DataType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Response.cs new file mode 100644 index 00000000..6b079138 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/get_share/ 接口的响应。 + /// + public class AppsItemGetShareV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置分享数。 + /// + [Newtonsoft.Json.JsonProperty("share")] + [System.Text.Json.Serialization.JsonPropertyName("share")] + public long ShareCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Request.cs new file mode 100644 index 00000000..af43060e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/list_comment_reply/ 接口的请求。 + /// + public class AppsItemBCListCommentReplyV1Request : AppsItemListCommentReplyV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.cs new file mode 100644 index 00000000..bc531271 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.cs @@ -0,0 +1,49 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/list_comment_reply/ 接口的响应。 + /// + public class AppsItemBCListCommentReplyV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Reply : AppsItemListCommentReplyV1Response.Types.Data.Types.Reply + { + } + } + + /// + /// 获取或设置回复列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Reply[] ReplyList { get; set; } = default!; + + /// + /// 获取或设置下一页分页游标。 + /// + [Newtonsoft.Json.JsonProperty("cursor")] + [System.Text.Json.Serialization.JsonPropertyName("cursor")] + public long? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Request.cs new file mode 100644 index 00000000..122c1f97 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/list_comment/ 接口的请求。 + /// + public class AppsItemBCListCommentV1Request : AppsItemListCommentV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Response.cs new file mode 100644 index 00000000..6ddbda3d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Response.cs @@ -0,0 +1,49 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item_bc/list_comment/ 接口的响应。 + /// + public class AppsItemBCListCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Comment : AppsItemListCommentV1Response.Types.Data.Types.Comment + { + } + } + + /// + /// 获取或设置评论列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Comment[] CommentList { get; set; } = default!; + + /// + /// 获取或设置下一页分页游标。 + /// + [Newtonsoft.Json.JsonProperty("cursor")] + [System.Text.Json.Serialization.JsonPropertyName("cursor")] + public long? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.cs new file mode 100644 index 00000000..7b47192c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item_bc/reply_comment/ 接口的请求。 + /// + public class AppsItemBCReplyCommentV1Request : AppsItemReplyCommentV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.cs new file mode 100644 index 00000000..34bf3378 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item_bc/reply_comment/ 接口的响应。 + /// + public class AppsItemBCReplyCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data : AppsItemReplyCommentV1Response.Types.Data + { + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Request.cs new file mode 100644 index 00000000..3d0c811c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item_bc/top_comment/ 接口的请求。 + /// + public class AppsItemBCTopCommentV1Request : AppsItemTopCommentV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Response.cs new file mode 100644 index 00000000..d549055f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item_bc/top_comment/ 接口的响应。 + /// + public class AppsItemBCTopCommentV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Request.cs new file mode 100644 index 00000000..55f01b03 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Request.cs @@ -0,0 +1,52 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/list_comment_reply/ 接口的请求。 + /// + public class AppsItemListCommentReplyV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置评论 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string CommentId { get; set; } = string.Empty; + + /// + /// 获取或设置分页游标。 + /// 默认值:0 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long PageCursor { get; set; } = 0; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + + /// + /// 获取或设置排序方式。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? SortType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Response.cs new file mode 100644 index 00000000..0a3cb771 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Response.cs @@ -0,0 +1,118 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/list_comment_reply/ 接口的响应。 + /// + public class AppsItemListCommentReplyV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Reply + { + /// + /// 获取或设置评论 ID。 + /// + [Newtonsoft.Json.JsonProperty("comment_id")] + [System.Text.Json.Serialization.JsonPropertyName("comment_id")] + public string CommentId { get; set; } = default!; + + /// + /// 获取或设置回复评论 ID。 + /// + [Newtonsoft.Json.JsonProperty("reply_comment_id")] + [System.Text.Json.Serialization.JsonPropertyName("reply_comment_id")] + public string? ReplyCommentId { get; set; } + + /// + /// 获取或设置用户 ID。 + /// + [Newtonsoft.Json.JsonProperty("comment_user_id")] + [System.Text.Json.Serialization.JsonPropertyName("comment_user_id")] + public string UserId { get; set; } = default!; + + /// + /// 获取或设置评论内容。 + /// + [Newtonsoft.Json.JsonProperty("content")] + [System.Text.Json.Serialization.JsonPropertyName("content")] + public string Content { get; set; } = default!; + + /// + /// 获取或设置用户头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("avatar")] + [System.Text.Json.Serialization.JsonPropertyName("avatar")] + public string AvatarUrl { get; set; } = default!; + + /// + /// 获取或设置用户昵称。 + /// + [Newtonsoft.Json.JsonProperty("nick_name")] + [System.Text.Json.Serialization.JsonPropertyName("nick_name")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置点赞数。 + /// + [Newtonsoft.Json.JsonProperty("digg_count")] + [System.Text.Json.Serialization.JsonPropertyName("digg_count")] + public int DiggCount { get; set; } + + /// + /// 获取或设置回复数。 + /// + [Newtonsoft.Json.JsonProperty("reply_comment_total")] + [System.Text.Json.Serialization.JsonPropertyName("reply_comment_total")] + public int ReplyCount { get; set; } + + /// + /// 获取或设置是否置顶。 + /// + [Newtonsoft.Json.JsonProperty("top")] + [System.Text.Json.Serialization.JsonPropertyName("top")] + public bool IsTop { get; set; } + } + } + + /// + /// 获取或设置回复列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Reply[] ReplyList { get; set; } = default!; + + /// + /// 获取或设置下一页分页游标。 + /// + [Newtonsoft.Json.JsonProperty("cursor")] + [System.Text.Json.Serialization.JsonPropertyName("cursor")] + public long? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Request.cs new file mode 100644 index 00000000..d5b54467 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Request.cs @@ -0,0 +1,45 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/list_comment/ 接口的请求。 + /// + public class AppsItemListCommentV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置分页游标。 + /// 默认值:0 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long PageCursor { get; set; } = 0; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + + /// + /// 获取或设置排序方式。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? SortType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Response.cs new file mode 100644 index 00000000..6bdd31d9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Response.cs @@ -0,0 +1,111 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/item/list_comment/ 接口的响应。 + /// + public class AppsItemListCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Comment + { + /// + /// 获取或设置评论 ID。 + /// + [Newtonsoft.Json.JsonProperty("comment_id")] + [System.Text.Json.Serialization.JsonPropertyName("comment_id")] + public string CommentId { get; set; } = default!; + + /// + /// 获取或设置用户 ID。 + /// + [Newtonsoft.Json.JsonProperty("comment_user_id")] + [System.Text.Json.Serialization.JsonPropertyName("comment_user_id")] + public string UserId { get; set; } = default!; + + /// + /// 获取或设置评论内容。 + /// + [Newtonsoft.Json.JsonProperty("content")] + [System.Text.Json.Serialization.JsonPropertyName("content")] + public string Content { get; set; } = default!; + + /// + /// 获取或设置用户头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("avatar")] + [System.Text.Json.Serialization.JsonPropertyName("avatar")] + public string AvatarUrl { get; set; } = default!; + + /// + /// 获取或设置用户昵称。 + /// + [Newtonsoft.Json.JsonProperty("nick_name")] + [System.Text.Json.Serialization.JsonPropertyName("nick_name")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置点赞数。 + /// + [Newtonsoft.Json.JsonProperty("digg_count")] + [System.Text.Json.Serialization.JsonPropertyName("digg_count")] + public int DiggCount { get; set; } + + /// + /// 获取或设置回复数。 + /// + [Newtonsoft.Json.JsonProperty("reply_comment_total")] + [System.Text.Json.Serialization.JsonPropertyName("reply_comment_total")] + public int ReplyCount { get; set; } + + /// + /// 获取或设置是否置顶。 + /// + [Newtonsoft.Json.JsonProperty("top")] + [System.Text.Json.Serialization.JsonPropertyName("top")] + public bool IsTop { get; set; } + } + } + + /// + /// 获取或设置评论列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Comment[] CommentList { get; set; } = default!; + + /// + /// 获取或设置下一页分页游标。 + /// + [Newtonsoft.Json.JsonProperty("cursor")] + [System.Text.Json.Serialization.JsonPropertyName("cursor")] + public long? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Request.cs new file mode 100644 index 00000000..534d5f9c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Request.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item/reply_comment/ 接口的请求。 + /// + public class AppsItemReplyCommentV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("item_id")] + [System.Text.Json.Serialization.JsonPropertyName("item_id")] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置评论 ID。 + /// + [Newtonsoft.Json.JsonProperty("comment_id")] + [System.Text.Json.Serialization.JsonPropertyName("comment_id")] + public string CommentId { get; set; } = string.Empty; + + /// + /// 获取或设置回复内容。 + /// + [Newtonsoft.Json.JsonProperty("content")] + [System.Text.Json.Serialization.JsonPropertyName("content")] + public string Content { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Response.cs new file mode 100644 index 00000000..1531164b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item/reply_comment/ 接口的响应。 + /// + public class AppsItemReplyCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置评论 ID。 + /// + [Newtonsoft.Json.JsonProperty("comment_id")] + [System.Text.Json.Serialization.JsonPropertyName("comment_id")] + public string CommentId { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Request.cs new file mode 100644 index 00000000..8a9510fe --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Request.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item/top_comment/ 接口的请求。 + /// + public class AppsItemTopCommentV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("item_id")] + [System.Text.Json.Serialization.JsonPropertyName("item_id")] + public string ItemId { get; set; } = string.Empty; + + /// + /// 获取或设置评论 ID。 + /// + [Newtonsoft.Json.JsonProperty("comment_id")] + [System.Text.Json.Serialization.JsonPropertyName("comment_id")] + public string CommentId { get; set; } = string.Empty; + + /// + /// 获取或设置是否置顶。 + /// + [Newtonsoft.Json.JsonProperty("top")] + [System.Text.Json.Serialization.JsonPropertyName("top")] + public bool IsTop { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Response.cs new file mode 100644 index 00000000..f9ee28ff --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/item/top_comment/ 接口的响应。 + /// + public class AppsItemTopCommentV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.cs new file mode 100644 index 00000000..050a9852 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/convert_video_id/open_item_id_to_encrypt_id/ 接口的请求。 + /// + public class AppsConvertOpenItemIdToEncryptIdV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置访问密钥。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("access_key")] + [System.Text.Json.Serialization.JsonPropertyName("access_key")] + public string? AccessKey { get; set; } + + /// + /// 获取或设置视频 ItemId 列表。 + /// + [Newtonsoft.Json.JsonProperty("video_ids")] + [System.Text.Json.Serialization.JsonPropertyName("video_ids")] + public IList OpenItemIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.cs new file mode 100644 index 00000000..59def1cd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/convert_video_id/open_item_id_to_encrypt_id/ 接口的响应。 + /// + public class AppsConvertOpenItemIdToEncryptIdV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置转换结果字典。 + /// + [Newtonsoft.Json.JsonProperty("convert_result")] + [System.Text.Json.Serialization.JsonPropertyName("convert_result")] + public IDictionary Result { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.cs new file mode 100644 index 00000000..580e5046 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/convert_video_id/video_id_to_open_item_id/ 接口的请求。 + /// + public class AppsConvertVideoIdToOpenItemIdV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置访问密钥。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("access_key")] + [System.Text.Json.Serialization.JsonPropertyName("access_key")] + public string? AccessKey { get; set; } + + /// + /// 获取或设置视频 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("video_ids")] + [System.Text.Json.Serialization.JsonPropertyName("video_ids")] + public IList VideoIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.cs new file mode 100644 index 00000000..f98632d8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.cs @@ -0,0 +1,30 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/convert_video_id/video_id_to_open_item_id/ 接口的响应。 + /// + public class AppsConvertVideoIdToOpenItemIdV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置转换结果字典。 + /// + [Newtonsoft.Json.JsonProperty("convert_result")] + [System.Text.Json.Serialization.JsonPropertyName("convert_result")] + public IDictionary Result { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Request.cs new file mode 100644 index 00000000..3488df54 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/video_bc/query/ 接口的请求。 + /// + public class AppsVideoBCQueryV1Request : AppsVideoQueryV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Response.cs new file mode 100644 index 00000000..bbba47a0 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/video_bc/query/ 接口的响应。 + /// + public class AppsVideoBCQueryV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Video : AppsVideoQueryV1Response.Types.Data.Types.Video + { + } + } + + /// + /// 获取或设置视频列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Video[] VideoList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Request.cs new file mode 100644 index 00000000..89f16369 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/video/query/ 接口的请求。 + /// + public class AppsVideoQueryV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置视频 ID 列表。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("item_ids")] + [System.Text.Json.Serialization.JsonPropertyName("item_ids")] + public IList? ItemIdList { get; set; } + + /// + /// 获取或设置视频 ID 列表。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("video_ids")] + [System.Text.Json.Serialization.JsonPropertyName("video_ids")] + public IList? VideoIdList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Response.cs new file mode 100644 index 00000000..0077ef27 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Response.cs @@ -0,0 +1,159 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/video/query/ 接口的响应。 + /// + public class AppsVideoQueryV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Video + { + public static class Types + { + public class Statistics + { + /// + /// 获取或设置点赞数。 + /// + [Newtonsoft.Json.JsonProperty("digg_count")] + [System.Text.Json.Serialization.JsonPropertyName("digg_count")] + public int DiggCount { get; set; } + + /// + /// 获取或设置下载数。 + /// + [Newtonsoft.Json.JsonProperty("download_count")] + [System.Text.Json.Serialization.JsonPropertyName("download_count")] + public int DownloadCount { get; set; } + + /// + /// 获取或设置转发数。 + /// + [Newtonsoft.Json.JsonProperty("forward_count")] + [System.Text.Json.Serialization.JsonPropertyName("forward_count")] + public int ForwardCount { get; set; } + + /// + /// 获取或设置播放数。 + /// + [Newtonsoft.Json.JsonProperty("play_count")] + [System.Text.Json.Serialization.JsonPropertyName("play_count")] + public int PlayCount { get; set; } + + /// + /// 获取或设置分享数。 + /// + [Newtonsoft.Json.JsonProperty("share_count")] + [System.Text.Json.Serialization.JsonPropertyName("share_count")] + public int ShareCount { get; set; } + + /// + /// 获取或设置评论数。 + /// + [Newtonsoft.Json.JsonProperty("comment_count")] + [System.Text.Json.Serialization.JsonPropertyName("comment_count")] + public int CommentCount { get; set; } + } + } + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("item_id")] + [System.Text.Json.Serialization.JsonPropertyName("item_id")] + public string? ItemId { get; set; } + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("video_id")] + [System.Text.Json.Serialization.JsonPropertyName("video_id")] + public string? VideoId { get; set; } + + /// + /// 获取或设置视频标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置视频状态。 + /// + [Newtonsoft.Json.JsonProperty("video_status")] + [System.Text.Json.Serialization.JsonPropertyName("video_status")] + public int VideoStatus { get; set; } + + /// + /// 获取或设置视频封面 URL。 + /// + [Newtonsoft.Json.JsonProperty("cover")] + [System.Text.Json.Serialization.JsonPropertyName("cover")] + public string CoverUrl { get; set; } = default!; + + /// + /// 获取或设置分享链接 URL。 + /// + [Newtonsoft.Json.JsonProperty("share_url")] + [System.Text.Json.Serialization.JsonPropertyName("share_url")] + public string ShareUrl { get; set; } = default!; + + /// + /// 获取或设置是否审核结束。 + /// + [Newtonsoft.Json.JsonProperty("is_reviewed")] + [System.Text.Json.Serialization.JsonPropertyName("is_reviewed")] + public bool IsReviewed { get; set; } + + /// + /// 获取或设置是否置顶。 + /// + [Newtonsoft.Json.JsonProperty("is_top")] + [System.Text.Json.Serialization.JsonPropertyName("is_top")] + public bool IsTop { get; set; } + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置媒体类型。 + /// + [Newtonsoft.Json.JsonProperty("media_type")] + [System.Text.Json.Serialization.JsonPropertyName("media_type")] + public int MediaType { get; set; } + + /// + /// 获取或设置统计数据。 + /// + [Newtonsoft.Json.JsonProperty("statistics")] + [System.Text.Json.Serialization.JsonPropertyName("statistics")] + public Types.Statistics Statistics { get; set; } = default!; + } + } + + /// + /// 获取或设置视频列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Video[] VideoList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityCreateClueComponentInfoV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityDeleteClueComponentInfoV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityUpdateClueComponentInfoV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Qrcode/AppsQrcodeRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Qrcode/AppsQrcodeRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Qrcode/AppsQrcodeResponse.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Qrcode/AppsQrcodeResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Qrcode/AppsQrcodeResponse.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs index cb7c1151..660f92d2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -8,11 +8,11 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsConvertOpenItemIdToEncryptIdRequest : DouyinMicroAppRequest { /// - /// 获取或设置访问密钥。 + /// 获取或设置访问密钥。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("access_key")] [System.Text.Json.Serialization.JsonPropertyName("access_key")] - public string AccessKey { get; set; } = string.Empty; + public string? AccessKey { get; set; } /// /// 获取或设置视频 ItemId 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs similarity index 61% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs index bc55733a..78c83044 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -16,22 +16,12 @@ public class Data /// [Newtonsoft.Json.JsonProperty("convert_result")] [System.Text.Json.Serialization.JsonPropertyName("convert_result")] - public Dictionary Result { get; set; } = default!; + public IDictionary Result { get; set; } = default!; } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// - /// 获取或设置返回的数据。 + /// 获取或设置返回数据。 /// [Newtonsoft.Json.JsonProperty("data")] [System.Text.Json.Serialization.JsonPropertyName("data")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs index e71933e9..94d4f5b8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -13,18 +13,18 @@ public class AppsConvertVideoIdToOpenItemIdRequest : DouyinMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] public string? AppId { get; set; } /// - /// 获取或设置访问密钥。 + /// 获取或设置访问密钥。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("access_key")] [System.Text.Json.Serialization.JsonPropertyName("access_key")] - public string AccessKey { get; set; } = string.Empty; + public string? AccessKey { get; set; } /// /// 获取或设置视频 ID 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs similarity index 60% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs index fa0623c5..ea3694a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -16,22 +16,12 @@ public class Data /// [Newtonsoft.Json.JsonProperty("convert_result")] [System.Text.Json.Serialization.JsonPropertyName("convert_result")] - public Dictionary Result { get; set; } = default!; + public IDictionary Result { get; set; } = default!; } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// - /// 获取或设置返回的数据。 + /// 获取或设置返回数据。 /// [Newtonsoft.Json.JsonProperty("data")] [System.Text.Json.Serialization.JsonPropertyName("data")] diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetBaseV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetBaseV1Response.json new file mode 100644 index 00000000..c8ff609d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetBaseV1Response.json @@ -0,0 +1,11 @@ +{ + "data": { + "result": { + "total_like": 200, + "total_comment": 200, + "total_share": 200, + "avg_play_duration": 200, + "total_play": 200 + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetCommentV1Response.json new file mode 100644 index 00000000..ab34757f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetCommentV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "comment": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetLikeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetLikeV1Response.json new file mode 100644 index 00000000..e5bdba2b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetLikeV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "like": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetPlayV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetPlayV1Response.json new file mode 100644 index 00000000..d6768c92 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetPlayV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "play": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetShareV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetShareV1Response.json new file mode 100644 index 00000000..199b8f3a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetShareV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "share": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetBaseV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetBaseV1Response.json new file mode 100644 index 00000000..c8ff609d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetBaseV1Response.json @@ -0,0 +1,11 @@ +{ + "data": { + "result": { + "total_like": 200, + "total_comment": 200, + "total_share": 200, + "avg_play_duration": 200, + "total_play": 200 + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetCommentV1Response.json new file mode 100644 index 00000000..ab34757f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetCommentV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "comment": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetLikeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetLikeV1Response.json new file mode 100644 index 00000000..e5bdba2b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetLikeV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "like": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetPlayV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetPlayV1Response.json new file mode 100644 index 00000000..d6768c92 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetPlayV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "play": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetShareV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetShareV1Response.json new file mode 100644 index 00000000..199b8f3a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetShareV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "share": 200 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.json new file mode 100644 index 00000000..6b93faa8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.json @@ -0,0 +1,19 @@ +{ + "data": { + "cursor": 1, + "has_more": true, + "list": [ + { + "create_time": 1607399832, + "digg_count": 647, + "reply_comment_total": 12, + "top": true, + "comment_id": "", + "comment_user_id": "", + "content": "回复内容", + "avatar": "https://uuue/ehdne", + "nick_name": "xiaoming" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentV1Response.json new file mode 100644 index 00000000..6d45ac9d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentV1Response.json @@ -0,0 +1,19 @@ +{ + "data": { + "cursor": 1, + "has_more": true, + "list": [ + { + "top": false, + "comment_id": "@9VwW0qOBUN9mJyD3bNxvGc791G3uO/mLOZ10oQOjJ1EUafn460zdRmYqig357zEBidswyrkjAGx3+uVUd0cE4Q==", + "comment_user_id": "43eae150-12eb-4035-8d40-3f9a2bfcdf4e", + "content": "评论", + "create_time": 1673507751, + "digg_count": 0, + "reply_comment_total": 0, + "avatar": "https://uuue/ehdne", + "nick_name": "xiaoming" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.json new file mode 100644 index 00000000..96605f49 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.json @@ -0,0 +1,5 @@ +{ + "content": "回复内容", + "item_id": "@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==", + "comment_id": "@kj5k4hai123d22nGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.json new file mode 100644 index 00000000..f0eafe96 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.json @@ -0,0 +1,5 @@ +{ + "data": { + "comment_id": "@kj5k4hai123d22nGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCTopCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCTopCommentV1Request.json new file mode 100644 index 00000000..df3d83dc --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCTopCommentV1Request.json @@ -0,0 +1,5 @@ +{ + "item_id": "@9VwW0qOBUN9mJyD3bNxvGc791GzhPfGHO5F2qQuuL1EUZvX560zdRmYqig357zEBZyxgSWZE1UdFqva5Pf296w==", + "comment_id": "@9VwW0qOBUN9mJyD3bNxvGc7912bvP/mEMpJwqwykKlEaZvn860zdRmYqig357zEB6/24MEvXsIUhf+t3F/Gw6w==", + "top": true +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentReplyV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentReplyV1Response.json new file mode 100644 index 00000000..6b93faa8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentReplyV1Response.json @@ -0,0 +1,19 @@ +{ + "data": { + "cursor": 1, + "has_more": true, + "list": [ + { + "create_time": 1607399832, + "digg_count": 647, + "reply_comment_total": 12, + "top": true, + "comment_id": "", + "comment_user_id": "", + "content": "回复内容", + "avatar": "https://uuue/ehdne", + "nick_name": "xiaoming" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentV1Response.json new file mode 100644 index 00000000..6d45ac9d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentV1Response.json @@ -0,0 +1,19 @@ +{ + "data": { + "cursor": 1, + "has_more": true, + "list": [ + { + "top": false, + "comment_id": "@9VwW0qOBUN9mJyD3bNxvGc791G3uO/mLOZ10oQOjJ1EUafn460zdRmYqig357zEBidswyrkjAGx3+uVUd0cE4Q==", + "comment_user_id": "43eae150-12eb-4035-8d40-3f9a2bfcdf4e", + "content": "评论", + "create_time": 1673507751, + "digg_count": 0, + "reply_comment_total": 0, + "avatar": "https://uuue/ehdne", + "nick_name": "xiaoming" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Request.json new file mode 100644 index 00000000..96605f49 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Request.json @@ -0,0 +1,5 @@ +{ + "content": "回复内容", + "item_id": "@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==", + "comment_id": "@kj5k4hai123d22nGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Response.json new file mode 100644 index 00000000..f0eafe96 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Response.json @@ -0,0 +1,5 @@ +{ + "data": { + "comment_id": "@kj5k4hai123d22nGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemTopCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemTopCommentV1Request.json new file mode 100644 index 00000000..df3d83dc --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemTopCommentV1Request.json @@ -0,0 +1,5 @@ +{ + "item_id": "@9VwW0qOBUN9mJyD3bNxvGc791GzhPfGHO5F2qQuuL1EUZvX560zdRmYqig357zEBZyxgSWZE1UdFqva5Pf296w==", + "comment_id": "@9VwW0qOBUN9mJyD3bNxvGc7912bvP/mEMpJwqwykKlEaZvn860zdRmYqig357zEB6/24MEvXsIUhf+t3F/Gw6w==", + "top": true +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.json new file mode 100644 index 00000000..b35af052 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.json @@ -0,0 +1,6 @@ +{ + "video_ids": [ + "xxxxxxx" + ], + "access_key": "ttxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.json new file mode 100644 index 00000000..94ab95da --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.json @@ -0,0 +1,10 @@ +{ + "err_no": 0, + "err_msg": "", + "data": { + "convert_result": { + "video1": "result1", + "video2": "result2" + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.json new file mode 100644 index 00000000..fca595d8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.json @@ -0,0 +1,7 @@ +{ + "video_ids": [ + "xxxxxxx" + ], + "app_id": "ttxxxxx", + "access_key": "ttxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.json new file mode 100644 index 00000000..94ab95da --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.json @@ -0,0 +1,10 @@ +{ + "err_no": 0, + "err_msg": "", + "data": { + "convert_result": { + "video1": "result1", + "video2": "result2" + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Request.json new file mode 100644 index 00000000..6ca508c8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Request.json @@ -0,0 +1,5 @@ +{ + "item_ids": [ + "@4F9W0/CQCZFnaXXwZow5E6Ku1WSGOvuDPJxyqAKiL1MVavn513fjeWIujgn96zUF4+bMA*****" + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Response.json new file mode 100644 index 00000000..59471f11 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Response.json @@ -0,0 +1,25 @@ +{ + "data": { + "list": [ + { + "title": "测试视频 #测试话题 @抖音小助手", + "create_time": 1571075129, + "video_status": 5, + "share_url": "https://www.iesdouyin.com/share/video/QDlWd0EzdWVMU2Q0aU5tKzVaOElvVU03ODBtRHFQUCtLUHBSMHFRT21MVkFYYi9UMDYwemRSbVlxaWczNTd6RUJRc3MrM2hvRGlqK2EwNnhBc1lGUkpRPT0=/?region=CN&mid=6753173704399670023&u_code=12h9je425&titleType=title", + "cover": "https://p3-dy.byteimg.com/img/tos-cn-p-0015/cfa0d6421bdc4580876cb16974539ff6~c5_300x400.jpeg", + "is_top": false, + "statistics": { + "digg_count": 200, + "download_count": 10, + "play_count": 300, + "share_count": 10, + "forward_count": 10, + "comment_count": 100 + }, + "item_id": "@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==", + "is_reviewed": true, + "media_type": 2 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Request.json new file mode 100644 index 00000000..6ca508c8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Request.json @@ -0,0 +1,5 @@ +{ + "item_ids": [ + "@4F9W0/CQCZFnaXXwZow5E6Ku1WSGOvuDPJxyqAKiL1MVavn513fjeWIujgn96zUF4+bMA*****" + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Response.json new file mode 100644 index 00000000..59471f11 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Response.json @@ -0,0 +1,25 @@ +{ + "data": { + "list": [ + { + "title": "测试视频 #测试话题 @抖音小助手", + "create_time": 1571075129, + "video_status": 5, + "share_url": "https://www.iesdouyin.com/share/video/QDlWd0EzdWVMU2Q0aU5tKzVaOElvVU03ODBtRHFQUCtLUHBSMHFRT21MVkFYYi9UMDYwemRSbVlxaWczNTd6RUJRc3MrM2hvRGlqK2EwNnhBc1lGUkpRPT0=/?region=CN&mid=6753173704399670023&u_code=12h9je425&titleType=title", + "cover": "https://p3-dy.byteimg.com/img/tos-cn-p-0015/cfa0d6421bdc4580876cb16974539ff6~c5_300x400.jpeg", + "is_top": false, + "statistics": { + "digg_count": 200, + "download_count": 10, + "play_count": 300, + "share_count": 10, + "forward_count": 10, + "comment_count": 100 + }, + "item_id": "@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==", + "is_reviewed": true, + "media_type": 2 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertOpenItemIdToEncryptIdResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Video/AppsConvertVideoIdToOpenItemIdResponse.json From 1acfb33b12a4738f0fca6cb687df9f05c6777844 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 6 Mar 2024 22:00:47 +0800 Subject: [PATCH 19/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=83=BD=E5=8A=9B=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...uyinMicroAppClientExecuteAppsExtensions.cs | 109 +++++++++++---- ...pacityCreateMicroAppSubServiceV1Request.cs | 31 +++++ ...acityCreateMicroAppSubServiceV1Response.cs | 9 ++ ...apacityQueryMicroAppSubServiceV1Request.cs | 31 +++++ ...pacityQueryMicroAppSubServiceV1Response.cs | 124 ++++++++++++++++++ .../Apps/Qrcode/AppsQrcodeCreateV1Request.cs | 2 +- .../Apps/Qrcode/AppsQrcodeCreateV1Response.cs | 2 +- .../AppsUrlGenerateSchemaV1Request.cs | 2 +- .../AppsUrlGenerateSchemaV1Response.cs | 2 +- .../AppsUrlQuerySchemaQuotaV1Request.cs | 2 +- .../AppsUrlQuerySchemaQuotaV1Response.cs | 2 +- .../UrlSchema/AppsUrlQuerySchemaV1Request.cs | 2 +- .../UrlSchema/AppsUrlQuerySchemaV1Response.cs | 2 +- ...cityCreateMicroAppSubServiceV1Request.json | 5 + ...cityQueryMicroAppSubServiceV1Response.json | 37 ++++++ 15 files changed, 325 insertions(+), 37 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index 1319d225..fc658284 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -10,7 +10,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { public static class DouyinMicroAppClientExecuteAppsExtensions { - #region Capacity + #region TODO: Capacity /// /// 异步调用 [POST] /apps/v1/capacity/upload_material 接口。 /// @@ -39,7 +39,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } - #region Capacity/AwemeCapacity + #region TODO: Capacity/AwemeCapacity /// /// 异步调用 [GET] /apps/v1/capacity/query_aweme_permission_list 接口。 /// @@ -205,7 +205,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region Capacity/Delivery + #region TODO: Capacity/Delivery /// /// 异步调用 [POST] /apps/v1/capacity/add_alias 接口。 /// @@ -345,7 +345,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region Capacity/FollowAweme + #region TODO: Capacity/FollowAweme /// /// 异步调用 [POST] /apps/v1/capacity/bind_aweme_user 接口。 /// @@ -444,7 +444,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #endregion - #region Capacity/Mount + #region TODO: Capacity/Mount /// /// 异步调用 [POST] /apps/v1/capacity/apply_capacity 接口。 /// @@ -670,7 +670,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #endregion #endregion - #region Capacity/SimpleQrcode + #region TODO: Capacity/SimpleQrcode /// /// 异步调用 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口。 /// @@ -789,7 +789,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region Capacity/SubscribeNotification + #region TODO: Capacity/SubscribeNotification /// /// 异步调用 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口。 /// @@ -973,7 +973,58 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region TrafficPermission + #region Capcity/SubService + /// + /// 异步调用 [POST] /apps/v1/capacity/create_ma_sub_service/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityCreateMicroAppSubServiceV1Async(this DouyinMicroAppClient client, Models.AppsCapacityCreateMicroAppSubServiceV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_ma_sub_service", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_ma_sub_service/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQueryMicroAppSubServiceV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryMicroAppSubServiceV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ma_sub_service", "") + .SetQueryParam("page_no", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .SetQueryParam("approval_state", request.ApprovalState) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region TODO: TrafficPermission /// /// 异步调用 [GET] /apps/v1/capacity/query_traffic_permission_status 接口。 /// @@ -1148,7 +1199,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #endregion #endregion - #region Category + #region TODO: Category /// /// 异步调用 [GET] /apps/v1/category/query_app_categories 接口。 /// @@ -1173,7 +1224,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region Censor + #region TODO: Censor /// /// 异步调用 [POST] /apps/censor/image 接口。 /// @@ -1200,7 +1251,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region Chat + #region TODO: Chat /// /// 异步调用 [GET] /apps/chat/customer_service_url 接口。 /// @@ -1238,7 +1289,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region CustomerService + #region TODO: CustomerService /// /// 异步调用 [GET] /apps/customer_service/url 接口。 /// @@ -1270,8 +1321,8 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region DataAnalysis - #region DataAnalysis/TransactionAnalysis + #region TODO: DataAnalysis + #region TODO: DataAnalysis/TransactionAnalysis /// /// 异步调用 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口。 /// @@ -1436,7 +1487,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region DataAnalysis/UserAnalysis + #region TODO: DataAnalysis/UserAnalysis /// /// 异步调用 [GET] /apps/v1/data_analysis/query_behavior_data 接口。 /// @@ -2144,7 +2195,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #endregion #endregion - #region Live + #region TODO: Live /// /// 异步调用 [POST] /apps/upload_live_image 接口。 /// @@ -2205,7 +2256,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region Message + #region TODO: Message /// /// 异步调用 [POST] /apps/message/custom/send 接口。 /// @@ -2230,7 +2281,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region Order + #region TODO: Order /// /// 异步调用 [POST] /apps/order/v2/push 接口。 /// @@ -2281,7 +2332,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #region Qrcode /// - /// 异步调用 [POST] /apps/v1/qrcode/create 接口。 + /// 异步调用 [POST] /apps/v1/qrcode/create/ 接口。 /// /// REF:
/// @@ -2300,14 +2351,14 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "qrcode", "create") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "qrcode", "create", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion - #region ShareConfig + #region TODO: ShareConfig /// /// 异步调用 [POST] /apps/share_config 接口。 /// @@ -2334,7 +2385,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region SubscribeNotification + #region TODO: SubscribeNotification /// /// 异步调用 [POST] /apps/subscribe_notification/developer/v1/notify 接口。 /// @@ -2362,7 +2413,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region TaskBox + #region TODO: TaskBox /// /// 异步调用 [POST] /apps/taskbox/add_task 接口。 /// @@ -2571,7 +2622,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions #region UrlLink /// - /// 异步调用 [POST] /apps/v1/url/generate_schema 接口。 + /// 异步调用 [POST] /apps/v1/url/generate_schema/ 接口。 /// /// REF:
/// @@ -2590,14 +2641,14 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "generate_schema") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "generate_schema", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/v1/url/query_schema 接口。 + /// 异步调用 [POST] /apps/v1/url/query_schema/ 接口。 /// /// REF:
/// @@ -2616,14 +2667,14 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/v1/url/query_schema_quota 接口。 + /// 异步调用 [POST] /apps/v1/url/query_schema_quota/ 接口。 /// /// REF:
/// @@ -2642,7 +2693,7 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema_quota") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema_quota", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs new file mode 100644 index 00000000..bfa29449 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/create_ma_sub_service/ 接口的请求。 + /// + public class AppsCapacityCreateMicroAppSubServiceV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置检索关键词列表。 + /// + [Newtonsoft.Json.JsonProperty("search_key_word")] + [System.Text.Json.Serialization.JsonPropertyName("search_key_word")] + public IList SearchKeywordList { get; set; } = new List(); + + /// + /// 获取或设置对应功能服务页面的路径链接。 + /// + [Newtonsoft.Json.JsonProperty("start_page_url")] + [System.Text.Json.Serialization.JsonPropertyName("start_page_url")] + public string StartPageUrl { get; set; } = string.Empty; + + /// + /// 获取或设置搜索直达子服务的名称。 + /// + [Newtonsoft.Json.JsonProperty("sub_service_name")] + [System.Text.Json.Serialization.JsonPropertyName("sub_service_name")] + public string SubServiceName { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs new file mode 100644 index 00000000..4c592697 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/create_ma_sub_service/ 接口的响应。 + /// + public class AppsCapacityCreateMicroAppSubServiceV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs new file mode 100644 index 00000000..bdac751a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs @@ -0,0 +1,31 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/query_ma_sub_service/ 接口的请求。 + /// + public class AppsCapacityQueryMicroAppSubServiceV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? ApprovalState { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs new file mode 100644 index 00000000..013a3d79 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs @@ -0,0 +1,124 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/query_ma_sub_service/ 接口的响应。 + /// + public class AppsCapacityQueryMicroAppSubServiceV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class SubService + { + public static class Types + { + public class RejectReason + { + /// + /// 获取或设置审核拒绝标签。 + /// + [Newtonsoft.Json.JsonProperty("audit_field")] + [System.Text.Json.Serialization.JsonPropertyName("audit_field")] + public string AuditField { get; set; } = default!; + + /// + /// 获取或设置审核拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string Reason { get; set; } = default!; + } + } + + /// + /// 获取或设置子服务 ID。 + /// + [Newtonsoft.Json.JsonProperty("sub_service_id")] + [System.Text.Json.Serialization.JsonPropertyName("sub_service_id")] + public string SubServiceId { get; set; } = default!; + + /// + /// 获取或设置子服务名称。 + /// + [Newtonsoft.Json.JsonProperty("sub_service_name")] + [System.Text.Json.Serialization.JsonPropertyName("sub_service_name")] + public string SubServiceName { get; set; } = default!; + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("micro_app_id")] + [System.Text.Json.Serialization.JsonPropertyName("micro_app_id")] + public string MicroAppId { get; set; } = default!; + + /// + /// 获取或设置小程序图标 URL。 + /// + [Newtonsoft.Json.JsonProperty("micro_app_icon")] + [System.Text.Json.Serialization.JsonPropertyName("micro_app_icon")] + public string MicroAppIconUrl { get; set; } = default!; + + /// + /// 获取或设置检索关键词列表。 + /// + [Newtonsoft.Json.JsonProperty("search_key_word")] + [System.Text.Json.Serialization.JsonPropertyName("search_key_word")] + public string SearchKeywordList { get; set; } = default!; + + /// + /// 获取或设置对应功能服务页面的路径链接。 + /// + [Newtonsoft.Json.JsonProperty("start_page_url")] + [System.Text.Json.Serialization.JsonPropertyName("start_page_url")] + public string StartPageUrl { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("approval_state")] + [System.Text.Json.Serialization.JsonPropertyName("approval_state")] + public int ApprovalState { get; set; } + + /// + /// 获取或设置审核拒绝原因列表。 + /// + [Newtonsoft.Json.JsonProperty("reasons")] + [System.Text.Json.Serialization.JsonPropertyName("reasons")] + public Types.RejectReason[]? RejectReasonList { get; set; } + } + } + + /// + /// 获取或设置搜索直达子服务列表。 + /// + [Newtonsoft.Json.JsonProperty("ma_sub_service_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("ma_sub_service_info_list")] + public Types.SubService[] SubServiceList { get; set; } = default!; + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total")] + [System.Text.Json.Serialization.JsonPropertyName("total")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs index 37643ed3..7119d090 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/qrcode/create 接口的请求。 + /// 表示 [POST] /apps/v1/qrcode/create/ 接口的请求。 /// public class AppsQrcodeCreateV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs index 184a663e..bc2d7229 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/qrcode/create 接口的响应。 + /// 表示 [POST] /apps/v1/qrcode/create/ 接口的响应。 /// public class AppsQrcodeCreateV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs index ce45da46..d39f38b5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/url/generate_schema 接口的请求。 + /// 表示 [POST] /apps/v1/url/generate_schema/ 接口的请求。 /// public class AppsUrlGenerateSchemaV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs index 31123d03..df06a015 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/url/generate_schema 接口的响应。 + /// 表示 [POST] /apps/v1/url/generate_schema/ 接口的响应。 /// public class AppsUrlGenerateSchemaV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs index df7c9480..6dbbd526 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/url/query_schema_quota 接口的请求。 + /// 表示 [POST] /apps/v1/url/query_schema_quota/ 接口的请求。 /// public class AppsUrlQuerySchemaQuotaV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs index 925e2cf2..7277397a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/url/query_schema_quota 接口的响应。 + /// 表示 [POST] /apps/v1/url/query_schema_quota/ 接口的响应。 /// public class AppsUrlQuerySchemaQuotaV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs index 149abe0f..92d62e00 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/url/query_schema 接口的请求。 + /// 表示 [POST] /apps/v1/url/query_schema/ 接口的请求。 /// public class AppsUrlQuerySchemaV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs index 98963f5e..a00d432b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/url/query_schema 接口的响应。 + /// 表示 [POST] /apps/v1/url/query_schema/ 接口的响应。 /// public class AppsUrlQuerySchemaV1Response : DouyinMicroAppResponse { diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json new file mode 100644 index 00000000..591cb223 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json @@ -0,0 +1,5 @@ +{ + "sub_service_name": "我的子服务", + "search_key_word": [ "key1" ], + "start_page_url": "http://xxx.com" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json new file mode 100644 index 00000000..04adb18b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json @@ -0,0 +1,37 @@ +{ + "data": { + "has_more": false, + "ma_sub_service_info_list": [ + { + "create_time": "2023-12-21 15:43:02", + "micro_app_icon": "******", + "micro_app_id": "******", + "search_key_word": [ + "******", + "******" + ], + "start_page_url": "******", + "sub_service_id": "******", + "sub_service_name": "******", + "approval_state": 0 + }, + { + "sub_service_id": "*****", + "sub_service_name": "*****", + "approval_state": 0, + "create_time": "2023-12-20 14:20:55", + "micro_app_icon": "", + "micro_app_id": "******", + "search_key_word": [ + "*****1", + "*****2" + ], + "start_page_url": "*****" + } + ], + "total": 2 + }, + "err_msg": "", + "err_no": 0, + "log_id": "202311231517488305C037A785Dxxxxx" +} From b1386718fe8c48513ec1d368d2a1bb626057955b Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 6 Mar 2024 22:49:52 +0800 Subject: [PATCH 20/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E8=83=BD=E5=8A=9B=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...uyinMicroAppClientExecuteAppsExtensions.cs | 94 +++++++++++++++++++ .../Apps/Task/AppsTaskCreateLiveV2Request.cs | 52 ++++++++++ .../Apps/Task/AppsTaskCreateLiveV2Response.cs | 35 +++++++ .../Apps/Task/AppsTaskCreateVideoV2Request.cs | 59 ++++++++++++ .../Task/AppsTaskCreateVideoV2Response.cs | 35 +++++++ .../Task/AppsTaskWriteoffLiveV2Request.cs | 22 +++++ .../Task/AppsTaskWriteoffLiveV2Response.cs | 9 ++ .../Task/AppsTaskWriteoffVideoV2Request.cs | 22 +++++ .../Task/AppsTaskWriteoffVideoV2Response.cs | 9 ++ .../Task/AppsTaskCreateLiveV2Request.json | 12 +++ .../Task/AppsTaskCreateLiveV2Response.json | 9 ++ .../Task/AppsTaskCreateVideoV2Request.json | 9 ++ .../Task/AppsTaskCreateVideoV2Response.json | 9 ++ .../Task/AppsTaskWriteoffLiveV2Request.json | 4 + .../Task/AppsTaskWriteoffVideoV2Request.json | 4 + 15 files changed, 384 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffLiveV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffVideoV2Request.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index fc658284..1b82f584 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -2413,6 +2413,100 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion + #region Task + /// + /// 异步调用 [POST] /apps/v2/task/create_live/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskCreateLiveV2Async(this DouyinMicroAppClient client, Models.AppsTaskCreateLiveV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "create_live", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/task/create_video/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskCreateVideoV2Async(this DouyinMicroAppClient client, Models.AppsTaskCreateVideoV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "create_video", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/task/writeoff_live/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskWriteoffLiveV2Async(this DouyinMicroAppClient client, Models.AppsTaskWriteoffLiveV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "writeoff_live", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/task/writeoff_video/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskWriteoffVideoV2Async(this DouyinMicroAppClient client, Models.AppsTaskWriteoffVideoV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "writeoff_video", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region TODO: TaskBox /// /// 异步调用 [POST] /apps/taskbox/add_task 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Request.cs new file mode 100644 index 00000000..4e53303c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Request.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/create_live/ 接口的请求。 + /// + public class AppsTaskCreateLiveV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置任务名称。 + /// + [Newtonsoft.Json.JsonProperty("task_name")] + [System.Text.Json.Serialization.JsonPropertyName("task_name")] + public string TaskName { get; set; } = string.Empty; + + /// + /// 获取或设置任务开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置任务结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置条件列表。 + /// + [Newtonsoft.Json.JsonProperty("conditions")] + [System.Text.Json.Serialization.JsonPropertyName("conditions")] + public IList? ConditionList { get; set; } + + /// + /// 获取或设置条件阈值列表。 + /// + [Newtonsoft.Json.JsonProperty("condition_value")] + [System.Text.Json.Serialization.JsonPropertyName("condition_value")] + public IList? ConditionValueList { get; set; } + + /// + /// 获取或设置主播抖音号。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string? AwemeId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Response.cs new file mode 100644 index 00000000..505097f1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/create_live/ 接口的响应。 + /// + public class AppsTaskCreateLiveV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + + /// + /// 获取或设置任务状态。 + /// + [Newtonsoft.Json.JsonProperty("task_status")] + [System.Text.Json.Serialization.JsonPropertyName("task_status")] + public int TaskStatus { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Request.cs new file mode 100644 index 00000000..4ed979ca --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Request.cs @@ -0,0 +1,59 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/create_video/ 接口的请求。 + /// + public class AppsTaskCreateVideoV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置任务名称。 + /// + [Newtonsoft.Json.JsonProperty("task_name")] + [System.Text.Json.Serialization.JsonPropertyName("task_name")] + public string TaskName { get; set; } = string.Empty; + + /// + /// 获取或设置任务开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置任务结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置条件列表。 + /// + [Newtonsoft.Json.JsonProperty("conditions")] + [System.Text.Json.Serialization.JsonPropertyName("conditions")] + public IList? ConditionList { get; set; } + + /// + /// 获取或设置条件阈值列表。 + /// + [Newtonsoft.Json.JsonProperty("condition_value")] + [System.Text.Json.Serialization.JsonPropertyName("condition_value")] + public IList? ConditionValueList { get; set; } + + /// + /// 获取或设置视频 ID。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("item_id")] + [System.Text.Json.Serialization.JsonPropertyName("item_id")] + public string? ItemId { get; set; } + + /// + /// 获取或设置视频 URL。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("video_url")] + [System.Text.Json.Serialization.JsonPropertyName("video_url")] + public string? VideoUrl { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Response.cs new file mode 100644 index 00000000..b8ff81c1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/create_video/ 接口的响应。 + /// + public class AppsTaskCreateVideoV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + + /// + /// 获取或设置任务状态。 + /// + [Newtonsoft.Json.JsonProperty("task_status")] + [System.Text.Json.Serialization.JsonPropertyName("task_status")] + public int TaskStatus { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Request.cs new file mode 100644 index 00000000..1cd059ac --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/writeoff_live/ 接口的请求。 + /// + public class AppsTaskWriteoffLiveV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Response.cs new file mode 100644 index 00000000..75ff3dee --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/writeoff_live/ 接口的响应。 + /// + public class AppsTaskWriteoffLiveV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Request.cs new file mode 100644 index 00000000..c34c9694 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/writeoff_video/ 接口的请求。 + /// + public class AppsTaskWriteoffVideoV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Response.cs new file mode 100644 index 00000000..5be0fdb2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/task/writeoff_video/ 接口的响应。 + /// + public class AppsTaskWriteoffVideoV2Response : DouyinMicroAppResponse + { + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Request.json new file mode 100644 index 00000000..97840fd9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Request.json @@ -0,0 +1,12 @@ +{ + "task_name": "xxx", + "conditions": [ + "live_digg" + ], + "condition_value": [ + 1 + ], + "start_time": 1704981661, + "end_time": 1705327261, + "aweme_id": "xxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Response.json new file mode 100644 index 00000000..ade0063f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Response.json @@ -0,0 +1,9 @@ +{ + "err_no": 0, + "err_msg": "", + "log_id": "20240112144846711CC4D3A7098802AA67", + "data": { + "task_id": "@4F9R0vKUDsthbXTzOI1qGaD6umHtss6APKJGnj2RGGb8dKaEfZq7N/GDiSn/7SCD", + "task_status": 1 + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Request.json new file mode 100644 index 00000000..1dc9e104 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Request.json @@ -0,0 +1,9 @@ +{ + "task_name": "xxx", + "conditions": [ + "collection" + ], + "start_time": 1704981661, + "end_time": 1705327261, + "video_url": "https://v.douyin.com/iLjUaXxxU/" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Response.json new file mode 100644 index 00000000..36f08240 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Response.json @@ -0,0 +1,9 @@ +{ + "err_no": 0, + "err_msg": "", + "log_id": "20240112175946DECCEB9239F1D308ABEC", + "data": { + "task_id": "@4F9R0vKUDsthbXTzOI1qGaD6umHxxxvyEPKJGnj2RGGYPw4jaKgpY/EwtBRgbLdFB", + "task_status": 1 + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffLiveV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffLiveV2Request.json new file mode 100644 index 00000000..d79f8ac5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffLiveV2Request.json @@ -0,0 +1,4 @@ +{ + "task_id": "@4F9R0vKUDsthbXTzOI1qGaD6umbhPfCHOqJGnj2RGGZOW2bNPosZist7V6lnmMUd", + "open_id": "grgwsR2Xp-wsvK72" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffVideoV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffVideoV2Request.json new file mode 100644 index 00000000..d79f8ac5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffVideoV2Request.json @@ -0,0 +1,4 @@ +{ + "task_id": "@4F9R0vKUDsthbXTzOI1qGaD6umbhPfCHOqJGnj2RGGZOW2bNPosZist7V6lnmMUd", + "open_id": "grgwsR2Xp-wsvK72" +} From dd800e10a6182f2f64df8e12371b2da777dee89e Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 6 Mar 2024 23:08:32 +0800 Subject: [PATCH 21/42] =?UTF-8?q?feat(microapp):=20=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E9=93=BE=E6=8E=A5=E6=8E=A5=E5=8F=A3=E4=B8=BA?= =?UTF-8?q?=E5=B7=B2=E5=BA=9F=E5=BC=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...uyinMicroAppClientExecuteAppsExtensions.cs | 38 ------------------ ...croAppClientExecuteLegacyAppsExtensions.cs | 40 +++++++++++++++++++ .../Chat/AppsChatCustomerServiceUrlRequest.cs | 5 ++- .../AppsChatCustomerServiceUrlResponse.cs | 13 ++---- .../AppsChatCustomerServiceUrlResponse.json | 0 5 files changed, 47 insertions(+), 49 deletions(-) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs (70%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Chat/AppsChatCustomerServiceUrlResponse.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index 1b82f584..c2ac7bdb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -1251,44 +1251,6 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region TODO: Chat - /// - /// 异步调用 [GET] /apps/chat/customer_service_url 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsChatCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsChatCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "chat", "customer_service_url") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("appid", request.AppId) - .SetQueryParam("openid", request.OpenId) - .SetQueryParam("type", request.Type) - .SetQueryParam("scene", request.Scene); - - if (request.OrderId is not null) - flurlReq.SetQueryParam("order_id", request.OrderId); - - if (request.IMType is not null) - flurlReq.SetQueryParam("im_type", request.IMType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - #region TODO: CustomerService /// /// 异步调用 [GET] /apps/customer_service/url 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index aa2a89e1..53efc6d9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -178,6 +178,46 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions #endregion #endregion + #region Chat + /// + /// 异步调用 [GET] /apps/chat/customer_service_url 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2023-08-29 下线。")] + public static async Task ExecuteAppsChatCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsChatCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "chat", "customer_service_url") + .WithUrl($"{client._BASEURL_LEGACY}/apps/chat/customer_service_url") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("appid", request.AppId) + .SetQueryParam("openid", request.OpenId) + .SetQueryParam("type", request.Type) + .SetQueryParam("scene", request.Scene); + + if (request.OrderId is not null) + flurlReq.SetQueryParam("order_id", request.OrderId); + + if (request.IMType is not null) + flurlReq.SetQueryParam("im_type", request.IMType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region Qrcode /// /// 异步调用 [POST] /apps/qrcode 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs index e5a35756..479d9fa2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlRequest.cs @@ -1,12 +1,15 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/chat/customer_service_url 接口的请求。 /// + [Obsolete("相关接口或字段于 2023-08-29 下线。")] public class AppsChatCustomerServiceUrlRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs similarity index 70% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs index 23f28046..15aba7a4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlResponse.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/chat/customer_service_url 接口的响应。 /// + [Obsolete("相关接口或字段于 2023-08-29 下线。")] public class AppsChatCustomerServiceUrlResponse : DouyinMicroAppResponse { public static class Types @@ -18,16 +21,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Chat/AppsChatCustomerServiceUrlResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Chat/AppsChatCustomerServiceUrlResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Chat/AppsChatCustomerServiceUrlResponse.json From 0f65d6fe47779b5c399518ffe93fc9f98e203590 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 10:35:01 +0800 Subject: [PATCH 22/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E5=AE=89=E5=85=A8=E5=9B=BE=E7=89=87=E6=A3=80?= =?UTF-8?q?=E6=B5=8B=20v3=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...uyinMicroAppClientExecuteAppsExtensions.cs | 15 ++-- ...croAppClientExecuteLegacyAppsExtensions.cs | 29 ++++++++ ...ppClientExecuteLegacyCommentExtensions.cs} | 5 +- ...roAppClientExecuteLegacyTagsExtensions.cs} | 4 +- .../Apps/Censor/AppsCensorImageV1Request.cs | 29 ++++++++ .../Apps/Censor/AppsCensorImageV1Response.cs | 35 +++++++++ .../Apps/Censor/AppsCensorImageRequest.cs | 2 +- .../Apps/Censor/AppsCensorImageResponse.cs | 2 +- .../Comment/CommentOpenGetRequest.cs | 4 +- .../Comment/CommentOpenGetResponse.cs | 10 --- .../{ => _Legacy}/Tags/TagsImageV2Request.cs | 0 .../{ => _Legacy}/Tags/TagsImageV2Response.cs | 14 ++-- .../Tags/TagsTextAntiDirtV2Request.cs | 0 .../Tags/TagsTextAntiDirtV2Response.cs | 14 ++-- ...cityQueryMicroAppSubServiceV1Response.json | 2 - .../Apps/Censor/AppsCensorImageV1Request.json | 5 ++ .../Censor/AppsCensorImageV1Response.json | 74 +++++++++++++++++++ .../Apps/Censor/AppsCensorImageRequest.json | 0 .../Apps/Censor/AppsCensorImageResponse.json | 0 .../Comment/CommentOpenGetRequest.json | 0 .../Comment/CommentOpenGetResponse.json | 0 .../Tags/TagsImageV2Request.json | 0 .../Tags/TagsImageV2Response.json | 4 +- .../Tags/TagsTextAntiDirtV2Request.json | 0 .../Tags/TagsTextAntiDirtV2Response.json | 5 +- 25 files changed, 209 insertions(+), 44 deletions(-) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteCommentExtensions.cs => DouyinMicroAppClientExecuteLegacyCommentExtensions.cs} (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteTagsExtensions.cs => DouyinMicroAppClientExecuteLegacyTagsExtensions.cs} (92%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Censor/AppsCensorImageRequest.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Censor/AppsCensorImageResponse.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Comment/CommentOpenGetRequest.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Comment/CommentOpenGetResponse.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Tags/TagsImageV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Tags/TagsImageV2Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Tags/TagsTextAntiDirtV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Tags/TagsTextAntiDirtV2Response.cs (91%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Response.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Censor/AppsCensorImageRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Censor/AppsCensorImageResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Comment/CommentOpenGetRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Comment/CommentOpenGetResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Tags/TagsImageV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Tags/TagsImageV2Response.json (95%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Tags/TagsTextAntiDirtV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Tags/TagsTextAntiDirtV2Response.json (87%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs index c2ac7bdb..cd7708ba 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs @@ -1224,20 +1224,19 @@ public static class DouyinMicroAppClientExecuteAppsExtensions } #endregion - #region TODO: Censor + #region Censor /// - /// 异步调用 [POST] /apps/censor/image 接口。 + /// 异步调用 [POST] /apps/v1/censor/image 接口。 /// /// REF:
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsCensorImageAsync(this DouyinMicroAppClient client, Models.AppsCensorImageRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsCensorImageV1Async(this DouyinMicroAppClient client, Models.AppsCensorImageV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -1246,8 +1245,10 @@ public static class DouyinMicroAppClientExecuteAppsExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "censor", "image"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "censor", "image") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index 53efc6d9..552c880c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -178,6 +178,35 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions #endregion #endregion + #region Censor + /// + /// 异步调用 [POST] /apps/censor/image 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCensorImageAsync(this DouyinMicroAppClient client, Models.AppsCensorImageRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "censor", "image") + .WithUrl($"{client._BASEURL_LEGACY}/apps/censor/image"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region Chat /// /// 异步调用 [GET] /apps/chat/customer_service_url 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteCommentExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyCommentExtensions.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteCommentExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyCommentExtensions.cs index 9406bf26..3da786bd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteCommentExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyCommentExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteCommentExtensions + public static class DouyinMicroAppClientExecuteLegacyCommentExtensions { /// /// 异步调用 [POST] /comment/open/get 接口。 @@ -28,7 +28,8 @@ public static class DouyinMicroAppClientExecuteCommentExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "comment", "open", "get"); + .CreateFlurlRequest(request, HttpMethod.Post, "comment", "open", "get") + .WithUrl($"{client._BASEURL_LEGACY}/comment/open/get"); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteTagsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyTagsExtensions.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteTagsExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyTagsExtensions.cs index 3f09e925..8c0c04a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteTagsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyTagsExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteTagsExtensions + public static class DouyinMicroAppClientExecuteLegacyTagsExtensions { /// /// 异步调用 [POST] /v2/tags/text/antidirt 接口。 @@ -27,6 +27,7 @@ public static class DouyinMicroAppClientExecuteTagsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v2", "tags", "text", "antidirt") + .WithUrl($"{client._BASEURL_LEGACY}/v2/tags/text/antidirt") .WithHeader("X-Token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -50,6 +51,7 @@ public static class DouyinMicroAppClientExecuteTagsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v2", "tags", "image") + .WithUrl($"{client._BASEURL_LEGACY}/v2/tags/image") .WithHeader("X-Token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Request.cs new file mode 100644 index 00000000..022bd45d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Request.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/censor/image 接口的请求。 + /// + public class AppsCensorImageV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置图片 URL。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("image")] + [System.Text.Json.Serialization.JsonPropertyName("image")] + public string? ImageUrl { get; set; } + + /// + /// 获取或设置经过 Base64 编码的图片数据。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("image_data")] + [System.Text.Json.Serialization.JsonPropertyName("image_data")] + public string? EncodingImageData { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Response.cs new file mode 100644 index 00000000..172441ac --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/censor/image 接口的响应。 + /// + public class AppsCensorImageV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Predict + { + /// + /// 获取或设置置信度模型或标签。 + /// + [Newtonsoft.Json.JsonProperty("model_name")] + [System.Text.Json.Serialization.JsonPropertyName("model_name")] + public string ModelName { get; set; } = default!; + + /// + /// 获取或设置置信度结果。 + /// + [Newtonsoft.Json.JsonProperty("hit")] + [System.Text.Json.Serialization.JsonPropertyName("hit")] + public bool IsHit { get; set; } + } + } + + /// + /// 获取或设置置信度列表。 + /// + [Newtonsoft.Json.JsonProperty("predicts")] + [System.Text.Json.Serialization.JsonPropertyName("predicts")] + public Types.Predict[] PredictList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Censor/AppsCensorImageRequest.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Censor/AppsCensorImageRequest.cs index 19dbd6b9..799075c6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Censor/AppsCensorImageRequest.cs @@ -13,7 +13,7 @@ public class AppsCensorImageRequest : DouyinMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Censor/AppsCensorImageResponse.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Censor/AppsCensorImageResponse.cs index 7c93dab4..a3620811 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Censor/AppsCensorImageResponse.cs @@ -28,7 +28,7 @@ public class Predict /// [Newtonsoft.Json.JsonProperty("error")] [System.Text.Json.Serialization.JsonPropertyName("error")] - public override long ErrorCode { get; set; } + public override int ErrorNumber { get; set; } /// [Newtonsoft.Json.JsonProperty("message")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Comment/CommentOpenGetRequest.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Comment/CommentOpenGetRequest.cs index 4701dc6a..224aec5e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Comment/CommentOpenGetRequest.cs @@ -5,15 +5,13 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// public class CommentOpenGetRequest : DouyinMicroAppRequest { - /// /// - /// [Newtonsoft.Json.JsonProperty("access_token")] [System.Text.Json.Serialization.JsonPropertyName("access_token")] public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Comment/CommentOpenGetResponse.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Comment/CommentOpenGetResponse.cs index 3d82e598..49afd041 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Comment/CommentOpenGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Comment/CommentOpenGetResponse.cs @@ -127,16 +127,6 @@ public class User } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsImageV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsImageV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsImageV2Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsImageV2Response.cs index 6e046a29..3e91c187 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsImageV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsImageV2Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /v2/tags/image 接口的响应。 @@ -74,14 +74,16 @@ public class Predict } } - /// + /// + /// 获取或设置错误代码。 + /// [Newtonsoft.Json.JsonProperty("code")] [System.Text.Json.Serialization.JsonPropertyName("code")] - public override long ErrorCode { get; set; } + public int ErrorCode { get; set; } /// - [Newtonsoft.Json.JsonProperty("exception")] - [System.Text.Json.Serialization.JsonPropertyName("exception")] + [Newtonsoft.Json.JsonProperty("message")] + [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } /// @@ -100,7 +102,7 @@ public class Predict public override bool IsSuccessful() { - return base.IsSuccessful() && string.IsNullOrEmpty(ErrorId); + return base.IsSuccessful() && ErrorCode == 0 && string.IsNullOrEmpty(ErrorId); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsTextAntiDirtV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsTextAntiDirtV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsTextAntiDirtV2Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsTextAntiDirtV2Response.cs index e09f9bcf..84e43b71 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Tags/TagsTextAntiDirtV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Tags/TagsTextAntiDirtV2Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /v2/tags/text/antidirt 接口的响应。 @@ -81,14 +81,16 @@ public class Predict } } - /// + /// + /// 获取或设置错误代码。 + /// [Newtonsoft.Json.JsonProperty("code")] [System.Text.Json.Serialization.JsonPropertyName("code")] - public override long ErrorCode { get; set; } + public int ErrorCode { get; set; } /// - [Newtonsoft.Json.JsonProperty("exception")] - [System.Text.Json.Serialization.JsonPropertyName("exception")] + [Newtonsoft.Json.JsonProperty("message")] + [System.Text.Json.Serialization.JsonPropertyName("message")] public override string? ErrorMessage { get; set; } /// @@ -107,7 +109,7 @@ public class Predict public override bool IsSuccessful() { - return base.IsSuccessful() && string.IsNullOrEmpty(ErrorId); + return base.IsSuccessful() && ErrorCode == 0 && string.IsNullOrEmpty(ErrorId); } } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json index 04adb18b..9d4a63d6 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json @@ -3,7 +3,6 @@ "has_more": false, "ma_sub_service_info_list": [ { - "create_time": "2023-12-21 15:43:02", "micro_app_icon": "******", "micro_app_id": "******", "search_key_word": [ @@ -19,7 +18,6 @@ "sub_service_id": "*****", "sub_service_name": "*****", "approval_state": 0, - "create_time": "2023-12-20 14:20:55", "micro_app_icon": "", "micro_app_id": "******", "search_key_word": [ diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Request.json new file mode 100644 index 00000000..6431dcab --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Request.json @@ -0,0 +1,5 @@ +{ + "app_id": "tt********", + "image": "http://XXXXXX", + "image_data": "XXXXXX" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Response.json new file mode 100644 index 00000000..97ad7770 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Response.json @@ -0,0 +1,74 @@ +{ + "err_no": 0, + "err_msg": "image censor success", + "predicts": [ + { + "model_name": "anniversary_flag", + "hit": false + }, + { + "model_name": "bloody", + "hit": false + }, + { + "model_name": "high_risk_boom", + "hit": false + }, + { + "model_name": "cartoon_leader", + "hit": false + }, + { + "model_name": "fandongtaibiao", + "hit": false + }, + { + "model_name": "leader_recognition", + "hit": false + }, + { + "model_name": "high_risk_money", + "hit": false + }, + { + "model_name": "plant_ppx", + "hit": false + }, + { + "model_name": "porn", + "hit": false + }, + { + "model_name": "sensitive_flag", + "hit": false + }, + { + "model_name": "high_risk_sensitive_map", + "hit": false + }, + { + "model_name": "sensitive_text", + "hit": false + }, + { + "model_name": "high_risk_social_event", + "hit": false + }, + { + "model_name": "high_risk_terrorist_uniform", + "hit": false + }, + { + "model_name": "party_founding_memorial", + "hit": false + }, + { + "model_name": "cartoon_porn", + "hit": false + }, + { + "model_name": "great_hall", + "hit": false + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Censor/AppsCensorImageRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Censor/AppsCensorImageRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Censor/AppsCensorImageResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Censor/AppsCensorImageResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Comment/CommentOpenGetRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Comment/CommentOpenGetRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Comment/CommentOpenGetRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Comment/CommentOpenGetRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Comment/CommentOpenGetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Comment/CommentOpenGetResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Comment/CommentOpenGetResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Comment/CommentOpenGetResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsImageV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsImageV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsImageV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsImageV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsImageV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsImageV2Response.json similarity index 95% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsImageV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsImageV2Response.json index 7edacd3a..0ce64ea7 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsImageV2Response.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsImageV2Response.json @@ -1,4 +1,4 @@ -{ +{ "log_id": "2019010320551501001001621510071", "data": [ { @@ -40,5 +40,5 @@ ], "error_id": "7bf3b7e299e9448796aa99b44750df68", "code": 401, - "exception": "[app token sign fail] bad token" + "message": "[app token sign fail] bad token" } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsTextAntiDirtV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsTextAntiDirtV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsTextAntiDirtV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsTextAntiDirtV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsTextAntiDirtV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsTextAntiDirtV2Response.json similarity index 87% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsTextAntiDirtV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsTextAntiDirtV2Response.json index 9844d0fd..3139c319 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Tags/TagsTextAntiDirtV2Response.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Tags/TagsTextAntiDirtV2Response.json @@ -1,4 +1,4 @@ -{ +{ "log_id": "202008181611370100150421452708466F", "data": [ { @@ -17,6 +17,5 @@ } ], "error_id": "7bf3b7e299e9448796aa99b44750df68", - "code": 401, - "exception": "[app token sign fail] bad token" + "code": 401 } From 15402468ae779da252b8502a86ace6c98bb77dcd Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 11:12:24 +0800 Subject: [PATCH 23/42] =?UTF-8?q?feat(microapp):=20=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=9B=A0=E6=96=B0=E6=97=A7=E7=89=88=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=85=A5=E5=8F=A3=E7=82=B9=E4=B8=8D=E5=90=8C=E8=80=8C?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E7=9A=84=E6=8E=A5=E5=8F=A3=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DouyinMicroAppRequest.cs | 2 +- .../DouyinMicroAppResponse.cs | 23 +- ...oductApiClientExecuteProductExtensions.cs} | 2 +- .../ProductApi/Models/ProductApiAddRequest.cs | 2 +- ...astClientResponseVerificationExtensions.cs | 2 +- ...oAppClientExecuteAppsCapacityExtensions.cs | 276 ++ ...oAppClientExecuteAppsCategoryExtensions.cs | 34 + ...croAppClientExecuteAppsCensorExtensions.cs | 37 + ...uyinMicroAppClientExecuteAppsExtensions.cs | 2856 ----------------- ...MicroAppClientExecuteAppsItemExtensions.cs | 482 +++ ...croAppClientExecuteAppsQrcodeExtensions.cs | 37 + ...MicroAppClientExecuteAppsTaskExtensions.cs | 103 + ...roAppClientExecuteAppsUrlLinkExtensions.cs | 89 + ...AppClientExecuteAppsUrlSchemaExtensions.cs | 89 + ...icroAppClientExecuteAppsVideoExtensions.cs | 106 + ...ClientExecuteLegacyAppsECPayExtensions.cs} | 420 +-- ...croAppClientExecuteLegacyAppsExtensions.cs | 1870 ++++++++++- ...pClientExecuteLegacyAppsGameExtensions.cs} | 11 +- ...ientExecuteLegacyAppsStorageExtensions.cs} | 4 +- ...sCapacityAddAwemeVideoKeywordV1Response.cs | 18 - ...sCapacityApplyAwemePermissionV1Response.cs | 18 - .../AppsCapacityApplyScopeQuotaV1Response.cs | 18 - ...pacityDeleteAwemeVideoKeywordV1Response.cs | 18 - .../AppsCapacityAddAliasV1Response.cs | 18 - .../AppsCapacityDeleteAliasV1Response.cs | 18 - .../AppsCapacityModifyAliasV1Response.cs | 18 - .../AppsCapacitySetSearchTagV1Response.cs | 18 - .../AppsCapacityBindAwemeUserV1Response.cs | 18 - .../AppsCapacityApplyCapacityV1Response.cs | 18 - ...AppsCapacityBindSelfMountUserV1Response.cs | 18 - ...ityUpdateCapcutTemplateStatusV1Response.cs | 18 - ...psCapacityAddSimpleQrcodeBindV1Response.cs | 18 - ...apacityDeleteSimpleQrcodeBindV1Response.cs | 18 - ...yUpdateSimpleQrcodeBindStatusV1Response.cs | 18 - ...apacityUpdateSimpleQrcodeBindV1Response.cs | 18 - ...SubscribeNotificationTemplateV1Response.cs | 18 - ...SubscribeNotificationTemplateV1Response.cs | 18 - ...SubscribeNotificationTemplateV1Response.cs | 18 - .../AppsCapacityAddAdPlacementV1Response.cs | 18 - ...CapacityOpenTrafficPermissionV1Response.cs | 18 - ...pacityUpdateAdPlacementStatusV1Response.cs | 18 - .../AppsLiveSetBlackWhiteListV1Response.cs | 18 - .../Message/AppsMessageCustomSendResponse.cs | 13 - .../ShareConfig/AppsShareConfigResponse.cs | 25 - ...beNotificationDeveloperNotifyV1Response.cs | 18 - .../AppsTaskBoxQueryAppTaskIdResponse.cs | 25 - ...psCapacityAddAwemeVideoKeywordV1Request.cs | 0 ...sCapacityAddAwemeVideoKeywordV1Response.cs | 9 + ...apacityDeleteAwemeVideoKeywordV1Request.cs | 0 ...pacityDeleteAwemeVideoKeywordV1Response.cs | 9 + ...cityQueryAwemeVideoKeywordListV1Request.cs | 4 +- ...ityQueryAwemeVideoKeywordListV1Response.cs | 10 - .../Delivery/AppsCapacityAddAliasV1Request.cs | 0 .../AppsCapacityAddAliasV1Response.cs | 9 + .../AppsCapacityDeleteAliasV1Request.cs | 0 .../AppsCapacityDeleteAliasV1Response.cs | 9 + .../AppsCapacityModifyAliasV1Request.cs | 0 .../AppsCapacityModifyAliasV1Response.cs | 9 + .../AppsCapacityQueryAliasListV1Request.cs | 0 .../AppsCapacityQueryAliasListV1Response.cs | 10 - ...AppsCapacityQuerySearchTagListV1Request.cs | 0 ...ppsCapacityQuerySearchTagListV1Response.cs | 10 - .../AppsCapacitySetSearchTagV1Request.cs | 0 .../AppsCapacitySetSearchTagV1Response.cs | 9 + ...pacityCreateMicroAppSubServiceV1Request.cs | 0 ...acityCreateMicroAppSubServiceV1Response.cs | 0 ...apacityQueryMicroAppSubServiceV1Request.cs | 0 ...pacityQueryMicroAppSubServiceV1Response.cs | 2 +- ...AppsCategoryQueryAppCategoriesV1Request.cs | 2 +- ...ppsCategoryQueryAppCategoriesV1Response.cs | 12 +- .../AppsCensorImageV1Request.cs | 0 .../AppsCensorImageV1Response.cs | 0 .../Models/AppsECPay/AppsBillsResponse.cs | 25 - .../Models/AppsECPay/AppsFundBillsResponse.cs | 25 - .../AppsItemBCGetBaseV1Request.cs | 0 .../AppsItemBCGetBaseV1Response.cs | 0 .../AppsItemBCGetCommentV1Request.cs | 0 .../AppsItemBCGetCommentV1Response.cs | 0 .../AppsItemBCGetLikeV1Request.cs | 0 .../AppsItemBCGetLikeV1Response.cs | 0 .../AppsItemBCGetPlayV1Request.cs | 0 .../AppsItemBCGetPlayV1Response.cs | 0 .../AppsItemBCGetShareV1Request.cs | 0 .../AppsItemBCGetShareV1Response.cs | 0 .../AppsItemGetBaseV1Request.cs | 0 .../AppsItemGetBaseV1Response.cs | 0 .../AppsItemGetCommentV1Request.cs | 0 .../AppsItemGetCommentV1Response.cs | 0 .../AppsItemGetLikeV1Request.cs | 0 .../AppsItemGetLikeV1Response.cs | 0 .../AppsItemGetPlayV1Request.cs | 0 .../AppsItemGetPlayV1Response.cs | 0 .../AppsItemGetShareV1Request.cs | 0 .../AppsItemGetShareV1Response.cs | 0 .../AppsItemBCListCommentReplyV1Request.cs | 0 .../AppsItemBCListCommentReplyV1Response.cs | 0 .../Comment/AppsItemBCListCommentV1Request.cs | 0 .../AppsItemBCListCommentV1Response.cs | 0 .../AppsItemBCReplyCommentV1Request.cs | 0 .../AppsItemBCReplyCommentV1Response.cs | 0 .../Comment/AppsItemBCTopCommentV1Request.cs | 0 .../Comment/AppsItemBCTopCommentV1Response.cs | 0 .../AppsItemListCommentReplyV1Request.cs | 0 .../AppsItemListCommentReplyV1Response.cs | 0 .../Comment/AppsItemListCommentV1Request.cs | 0 .../Comment/AppsItemListCommentV1Response.cs | 0 .../Comment/AppsItemReplyCommentV1Request.cs | 0 .../Comment/AppsItemReplyCommentV1Response.cs | 0 .../Comment/AppsItemTopCommentV1Request.cs | 0 .../Comment/AppsItemTopCommentV1Response.cs | 0 .../AppsQrcodeCreateV1Request.cs | 0 .../AppsQrcodeCreateV1Response.cs | 0 .../AppsTaskCreateLiveV2Request.cs | 0 .../AppsTaskCreateLiveV2Response.cs | 0 .../AppsTaskCreateVideoV2Request.cs | 0 .../AppsTaskCreateVideoV2Response.cs | 0 .../AppsTaskWriteoffLiveV2Request.cs | 0 .../AppsTaskWriteoffLiveV2Response.cs | 0 .../AppsTaskWriteoffVideoV2Request.cs | 0 .../AppsTaskWriteoffVideoV2Response.cs | 0 .../AppsUrlLinkGenerateV1Request.cs | 0 .../AppsUrlLinkGenerateV1Response.cs | 0 .../AppsUrlLinkQueryInfoV1Request.cs | 0 .../AppsUrlLinkQueryInfoV1Response.cs | 0 .../AppsUrlLinkQueryQuotaV1Request.cs | 0 .../AppsUrlLinkQueryQuotaV1Response.cs | 0 .../AppsUrlGenerateSchemaV1Request.cs | 0 .../AppsUrlGenerateSchemaV1Response.cs | 0 .../AppsUrlQuerySchemaQuotaV1Request.cs | 0 .../AppsUrlQuerySchemaQuotaV1Response.cs | 0 .../AppsUrlQuerySchemaV1Request.cs | 0 .../AppsUrlQuerySchemaV1Response.cs | 0 ...psConvertOpenItemIdToEncryptIdV1Request.cs | 0 ...sConvertOpenItemIdToEncryptIdV1Response.cs | 0 ...AppsConvertVideoIdToOpenItemIdV1Request.cs | 0 ...ppsConvertVideoIdToOpenItemIdV1Response.cs | 0 .../AppsVideoBCQueryV1Request.cs | 0 .../AppsVideoBCQueryV1Response.cs | 0 .../AppsVideoQueryV1Request.cs | 0 .../AppsVideoQueryV1Response.cs | 0 .../AppsCapacityUploadMaterialV1Request.cs | 0 .../AppsCapacityUploadMaterialV1Response.cs | 10 - ...psCapacityApplyAwemePermissionV1Request.cs | 3 + ...sCapacityApplyAwemePermissionV1Response.cs | 12 + .../AppsCapacityApplyScopeQuotaV1Request.cs | 3 + .../AppsCapacityApplyScopeQuotaV1Response.cs | 12 + ...pacityQueryAwemePermissionListV1Request.cs | 3 + ...acityQueryAwemePermissionListV1Response.cs | 13 +- ...sCapacityQueryScopeQuotaDetailV1Request.cs | 3 + ...CapacityQueryScopeQuotaDetailV1Response.cs | 13 +- .../AppsCapacityBindAwemeUserV1Request.cs | 3 + .../AppsCapacityBindAwemeUserV1Response.cs | 12 + ...CapacityGetAwemeUserBindQrcodeV1Request.cs | 3 + ...apacityGetAwemeUserBindQrcodeV1Response.cs | 13 +- ...CapacityQueryAwemeUserBindListV1Request.cs | 7 +- ...apacityQueryAwemeUserBindListV1Response.cs | 13 +- .../AppsCapacityUnbindAwemeUserV1Request.cs | 3 + .../AppsCapacityUnbindAwemeUserV1Response.cs | 3 + .../AppsCapacityApplyCapacityV1Request.cs | 3 + .../AppsCapacityApplyCapacityV1Response.cs | 12 + .../AppsCapacityBindSelfMountUserV1Request.cs | 3 + ...AppsCapacityBindSelfMountUserV1Response.cs | 12 + ...CapacityGetSelfMountBindQrcodeV1Request.cs | 3 + ...apacityGetSelfMountBindQrcodeV1Response.cs | 13 +- .../AppsCapacityQueryApplyStatusV1Request.cs | 3 + .../AppsCapacityQueryApplyStatusV1Response.cs | 13 +- ...CapacityQuerySelfMountUserListV1Request.cs | 7 +- ...apacityQuerySelfMountUserListV1Response.cs | 13 +- ...ppsCapacityUnbindSelfMountUserV1Request.cs | 3 + ...psCapacityUnbindSelfMountUserV1Response.cs | 3 + .../AppsCapacityQueryCapcutInfoV1Request.cs | 3 + .../AppsCapacityQueryCapcutInfoV1Response.cs | 13 +- ...apacityQueryCapcutTemplateListV1Request.cs | 7 +- ...pacityQueryCapcutTemplateListV1Response.cs | 13 +- ...cityUpdateCapcutTemplateStatusV1Request.cs | 3 + ...ityUpdateCapcutTemplateStatusV1Response.cs | 12 + ...ppsCapacityAddSimpleQrcodeBindV1Request.cs | 3 + ...psCapacityAddSimpleQrcodeBindV1Response.cs | 12 + ...CapacityDeleteSimpleQrcodeBindV1Request.cs | 3 + ...apacityDeleteSimpleQrcodeBindV1Response.cs | 12 + ...acityQuerySimpleQrcodeBindListV1Request.cs | 7 +- ...cityQuerySimpleQrcodeBindListV1Response.cs | 13 +- ...tyUpdateSimpleQrcodeBindStatusV1Request.cs | 3 + ...yUpdateSimpleQrcodeBindStatusV1Response.cs | 12 + ...CapacityUpdateSimpleQrcodeBindV1Request.cs | 3 + ...apacityUpdateSimpleQrcodeBindV1Response.cs | 12 + ...pSubscribeNotificationTemplateV1Request.cs | 2 + ...SubscribeNotificationTemplateV1Response.cs | 13 +- ...pSubscribeNotificationTemplateV1Request.cs | 2 + ...SubscribeNotificationTemplateV1Response.cs | 12 + ...pSubscribeNotificationTemplateV1Request.cs | 3 + ...SubscribeNotificationTemplateV1Response.cs | 12 + ...pSubscribeNotificationTemplateV1Request.cs | 2 + ...SubscribeNotificationTemplateV1Response.cs | 12 + ...pSubscribeNotificationTemplateV1Request.cs | 6 +- ...SubscribeNotificationTemplateV1Response.cs | 13 +- ...scribeNotificationTemplateListV1Request.cs | 7 +- ...cribeNotificationTemplateListV1Response.cs | 13 +- ...scribeNotificationTemplateListV1Request.cs | 6 +- ...cribeNotificationTemplateListV1Response.cs | 13 +- .../AppsCapacityAddAdPlacementV1Request.cs | 3 + .../AppsCapacityAddAdPlacementV1Response.cs | 12 + ...sCapacityOpenTrafficPermissionV1Request.cs | 3 + ...CapacityOpenTrafficPermissionV1Response.cs | 12 + .../AppsCapacityQueryAdIncomeV1Request.cs | 3 + .../AppsCapacityQueryAdIncomeV1Response.cs | 13 +- ...psCapacityQueryAdPlacementListV1Request.cs | 3 + ...sCapacityQueryAdPlacementListV1Response.cs | 13 +- ...sCapacityQueryAdSettlementListV1Request.cs | 3 + ...CapacityQueryAdSettlementListV1Response.cs | 13 +- ...tyQueryTrafficPermissionStatusV1Request.cs | 3 + ...yQueryTrafficPermissionStatusV1Response.cs | 13 +- ...apacityUpdateAdPlacementStatusV1Request.cs | 3 + ...pacityUpdateAdPlacementStatusV1Response.cs | 12 + .../AppsCustomerServiceUrlRequest.cs | 2 +- .../AppsCustomerServiceUrlResponse.cs | 10 - ...aAnalysisQueryDealOverviewDataV1Request.cs | 3 + ...AnalysisQueryDealOverviewDataV1Response.cs | 13 +- ...sDataAnalysisQueryLiveDealDataV1Request.cs | 3 + ...DataAnalysisQueryLiveDealDataV1Response.cs | 13 +- ...sDataAnalysisQueryLiveRoomDataV1Request.cs | 3 + ...DataAnalysisQueryLiveRoomDataV1Response.cs | 13 +- .../AppsDataAnalysisQueryLiveRoomV1Request.cs | 3 + ...AppsDataAnalysisQueryLiveRoomV1Response.cs | 13 +- ...taAnalysisQueryProductDealDataV1Request.cs | 7 +- ...aAnalysisQueryProductDealDataV1Response.cs | 13 +- ...DataAnalysisQueryVideoDealDataV1Request.cs | 3 + ...ataAnalysisQueryVideoDealDataV1Response.cs | 13 +- ...sDataAnalysisQueryBehaviorDataV1Request.cs | 3 + ...DataAnalysisQueryBehaviorDataV1Response.cs | 13 +- ...ppsDataAnalysisQueryClientDataV1Request.cs | 3 + ...psDataAnalysisQueryClientDataV1Response.cs | 13 +- .../AppsDataAnalysisQueryPageDataV1Request.cs | 3 + ...AppsDataAnalysisQueryPageDataV1Response.cs | 13 +- ...aAnalysisQueryRealTimeUserDataV1Request.cs | 3 + ...AnalysisQueryRealTimeUserDataV1Response.cs | 13 +- ...DataAnalysisQueryRetentionDataV1Request.cs | 3 + ...ataAnalysisQueryRetentionDataV1Response.cs | 13 +- ...AppsDataAnalysisQuerySceneDataV1Request.cs | 3 + ...ppsDataAnalysisQuerySceneDataV1Response.cs | 13 +- ...aAnalysisQueryUserPortraitDataV1Request.cs | 3 + ...AnalysisQueryUserPortraitDataV1Response.cs | 13 +- .../AppsLiveSetBlackWhiteListV1Request.cs | 2 +- .../AppsLiveSetBlackWhiteListV1Response.cs | 9 + .../Apps/Live/AppsUploadLiveImageRequest.cs | 2 +- .../Apps/Live/AppsUploadLiveImageResponse.cs | 12 +- .../Message/AppsMessageCustomSendRequest.cs | 0 .../Message/AppsMessageCustomSendResponse.cs | 9 + .../Apps/Order/AppsOrderDeleteRequest.cs | 0 .../Apps/Order/AppsOrderDeleteResponse.cs | 16 +- .../Apps/Order/AppsOrderPushV2Request.cs | 0 .../Apps/Order/AppsOrderPushV2Response.cs | 18 +- .../ShareConfig/AppsShareConfigRequest.cs | 2 +- .../ShareConfig/AppsShareConfigResponse.cs | 15 + ...ibeNotificationDeveloperNotifyV1Request.cs | 6 +- ...beNotificationDeveloperNotifyV1Response.cs | 12 + .../Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs | 16 +- .../TaskBox/AppsTaskBoxAddTaskResponse.cs | 15 +- .../AppsTaskBoxQueryAppTaskIdRequest.cs | 17 +- .../AppsTaskBoxQueryAppTaskIdResponse.cs | 18 + .../AppsTaskBoxQueryTaskVideoDataRequest.cs | 16 +- .../AppsTaskBoxQueryTaskVideoDataResponse.cs | 15 +- .../TaskBox/AppsTaskBoxUpdateStatusRequest.cs | 17 +- .../AppsTaskBoxUpdateStatusResponse.cs | 15 +- .../TaskBox/AppsTaskBoxUpdateTaskRequest.cs | 16 +- .../TaskBox/AppsTaskBoxUpdateTaskResponse.cs | 15 +- .../__Abstractions/AppsTaskBoxRequestBase.cs | 17 + .../__Abstractions/AppsTaskBoxResponseBase.cs | 22 + .../AppsECPay/Bills}/AppsBillsRequest.cs | 0 .../AppsECPay/Bills/AppsBillsResponse.cs | 15 + .../AppsECPay/Bills}/AppsFundBillsRequest.cs | 0 .../AppsECPay/Bills/AppsFundBillsResponse.cs | 15 + .../Order/AppsECPayCreateOrderV1Request.cs | 0 .../Order/AppsECPayCreateOrderV1Response.cs | 12 +- .../Order/AppsECPayCreateRefundV1Request.cs | 0 .../Order/AppsECPayCreateRefundV1Response.cs | 12 +- .../Order/AppsECPayCreateReturnV1Request.cs | 0 .../Order/AppsECPayCreateReturnV1Response.cs | 12 +- .../Order/AppsECPayQueryOrderV1Request.cs | 0 .../Order/AppsECPayQueryOrderV1Response.cs | 10 - .../AppsECPayQueryPlatformOrderV1Request.cs | 4 - .../AppsECPayQueryPlatformOrderV1Response.cs | 12 - .../Order/AppsECPayQueryRefundV1Request.cs | 0 .../Order/AppsECPayQueryRefundV1Response.cs | 12 +- .../Order/AppsECPayQueryReturnV1Request.cs | 0 .../Order/AppsECPayQueryReturnV1Response.cs | 12 +- .../Order/AppsECPayQuerySettleV1Request.cs | 0 .../Order/AppsECPayQuerySettleV1Response.cs | 12 +- .../Order/AppsECPaySettleV1Request.cs | 0 .../Order/AppsECPaySettleV1Response.cs | 12 +- .../AppsECPaySaaSCreateMerchantRequest.cs | 0 .../AppsECPaySaaSCreateMerchantResponse.cs | 12 +- .../Apply/AppsECPaySaaSImageUploadRequest.cs | 0 .../Apply/AppsECPaySaaSImageUploadResponse.cs | 12 +- ...AppsECPaySaaSQueryMerchantStatusRequest.cs | 0 ...ppsECPaySaaSQueryMerchantStatusResponse.cs | 12 +- .../AppsECPaySaaSAddMerchantRequest.cs | 0 .../AppsECPaySaaSAddMerchantResponse.cs | 12 +- .../AppsECPaySaaSAddSubMerchantRequest.cs | 0 .../AppsECPaySaaSAddSubMerchantResponse.cs | 12 +- .../AppsECPaySaaSAppAddSubMerchantRequest.cs | 0 .../AppsECPaySaaSAppAddSubMerchantResponse.cs | 12 +- .../AppsECPaySaaSGetAppMerchantRequest.cs | 0 .../AppsECPaySaaSGetAppMerchantResponse.cs | 12 +- .../AppsECPaySaaSMerchantWithdrawRequest.cs | 0 .../AppsECPaySaaSMerchantWithdrawResponse.cs | 12 +- ...ppsECPaySaaSQueryMerchantBalanceRequest.cs | 0 ...psECPaySaaSQueryMerchantBalanceResponse.cs | 12 +- .../AppsECPaySaaSQueryWithdrawOrderRequest.cs | 0 ...AppsECPaySaaSQueryWithdrawOrderResponse.cs | 12 +- .../AppsGame/AppsGameWalletAddCoinRequest.cs | 0 .../AppsGame/AppsGameWalletAddCoinResponse.cs | 4 +- .../AppsGame/AppsGameWalletGamePayRequest.cs | 0 .../AppsGame/AppsGameWalletGamePayResponse.cs | 4 +- .../AppsGameWalletGetBalanceRequest.cs | 0 .../AppsGameWalletGetBalanceResponse.cs | 4 +- .../AppsGameWalletRequestBase.cs | 0 .../AppsGameWalletResponseBase.cs | 22 + .../AppsRemoveUserStorageRequest.cs | 0 .../AppsRemoveUserStorageResponse.cs | 9 +- .../AppsStorage/AppsSetUserStorageRequest.cs | 0 .../AppsStorage/AppsSetUserStorageResponse.cs | 9 +- .../IMPORTANT_CodeAnalyzeTests.cs | 2 +- ...CapacityAddAwemeVideoKeywordV1Request.json | 0 ...acityDeleteAwemeVideoKeywordV1Request.json | 0 ...yQueryAwemeVideoKeywordListV1Response.json | 0 .../AppsCapacityAddAliasV1Request.json | 0 .../AppsCapacityDeleteAliasV1Request.json | 0 .../AppsCapacityModifyAliasV1Request.json | 0 .../AppsCapacityQueryAliasListV1Response.json | 0 ...sCapacityQuerySearchTagListV1Response.json | 0 .../AppsCapacitySetSearchTagV1Request.json | 0 ...cityCreateMicroAppSubServiceV1Request.json | 0 ...cityQueryMicroAppSubServiceV1Response.json | 10 +- ...sCategoryQueryAppCategoriesV1Response.json | 0 .../AppsCensorImageV1Request.json | 0 .../AppsCensorImageV1Response.json | 0 .../AppsItemBCGetBaseV1Response.json | 0 .../AppsItemBCGetCommentV1Response.json | 0 .../AppsItemBCGetLikeV1Response.json | 0 .../AppsItemBCGetPlayV1Response.json | 0 .../AppsItemBCGetShareV1Response.json | 0 .../AppsItemGetBaseV1Response.json | 0 .../AppsItemGetCommentV1Response.json | 0 .../AppsItemGetLikeV1Response.json | 0 .../AppsItemGetPlayV1Response.json | 0 .../AppsItemGetShareV1Response.json | 0 .../AppsItemBCListCommentReplyV1Response.json | 0 .../AppsItemBCListCommentV1Response.json | 0 .../AppsItemBCReplyCommentV1Request.json | 0 .../AppsItemBCReplyCommentV1Response.json | 0 .../AppsItemBCTopCommentV1Request.json | 0 .../AppsItemListCommentReplyV1Response.json | 0 .../AppsItemListCommentV1Response.json | 0 .../AppsItemReplyCommentV1Request.json | 0 .../AppsItemReplyCommentV1Response.json | 0 .../Comment/AppsItemTopCommentV1Request.json | 0 .../AppsQrcodeCreateV1Request.json | 0 .../AppsQrcodeCreateV1Response.json | 0 .../AppsTaskCreateLiveV2Request.json | 0 .../AppsTaskCreateLiveV2Response.json | 0 .../AppsTaskCreateVideoV2Request.json | 0 .../AppsTaskCreateVideoV2Response.json | 0 .../AppsTaskWriteoffLiveV2Request.json | 0 .../AppsTaskWriteoffVideoV2Request.json | 0 .../AppsUrlLinkGenerateV1Request.json | 0 .../AppsUrlLinkGenerateV1Response.json | 0 .../AppsUrlLinkQueryInfoV1Request.json | 0 .../AppsUrlLinkQueryInfoV1Response.json | 0 .../AppsUrlLinkQueryQuotaV1Request.json | 0 .../AppsUrlLinkQueryQuotaV1Response.json | 0 .../AppsUrlGenerateSchemaV1Request.json | 0 .../AppsUrlGenerateSchemaV1Response.json | 0 .../AppsUrlQuerySchemaQuotaV1Request.json | 0 .../AppsUrlQuerySchemaQuotaV1Response.json | 0 .../AppsUrlQuerySchemaV1Request.json | 0 .../AppsUrlQuerySchemaV1Response.json | 0 ...ConvertOpenItemIdToEncryptIdV1Request.json | 0 ...onvertOpenItemIdToEncryptIdV1Response.json | 0 ...psConvertVideoIdToOpenItemIdV1Request.json | 0 ...sConvertVideoIdToOpenItemIdV1Response.json | 0 .../AppsVideoBCQueryV1Request.json | 0 .../AppsVideoBCQueryV1Response.json | 0 .../AppsVideoQueryV1Request.json | 0 .../AppsVideoQueryV1Response.json | 0 .../AppsCapacityUploadMaterialV1Response.json | 0 ...CapacityApplyAwemePermissionV1Request.json | 0 .../AppsCapacityApplyScopeQuotaV1Request.json | 0 ...ityQueryAwemePermissionListV1Response.json | 0 ...pacityQueryScopeQuotaDetailV1Response.json | 0 .../AppsCapacityBindAwemeUserV1Request.json | 0 ...acityGetAwemeUserBindQrcodeV1Response.json | 0 ...acityQueryAwemeUserBindListV1Response.json | 0 .../AppsCapacityUnbindAwemeUserV1Request.json | 0 .../AppsCapacityApplyCapacityV1Request.json | 0 ...ppsCapacityBindSelfMountUserV1Request.json | 0 ...acityGetSelfMountBindQrcodeV1Response.json | 0 ...ppsCapacityQueryApplyStatusV1Response.json | 0 ...acityQuerySelfMountUserListV1Response.json | 0 ...sCapacityUnbindSelfMountUserV1Request.json | 0 ...AppsCapacityQueryCapcutInfoV1Response.json | 0 ...cityQueryCapcutTemplateListV1Response.json | 0 ...tyUpdateCapcutTemplateStatusV1Request.json | 0 ...sCapacityAddSimpleQrcodeBindV1Request.json | 0 ...pacityDeleteSimpleQrcodeBindV1Request.json | 0 ...tyQuerySimpleQrcodeBindListV1Response.json | 0 ...UpdateSimpleQrcodeBindStatusV1Request.json | 0 ...pacityUpdateSimpleQrcodeBindV1Request.json | 0 ...ubscribeNotificationTemplateV1Request.json | 0 ...bscribeNotificationTemplateV1Response.json | 0 ...ubscribeNotificationTemplateV1Request.json | 0 ...ubscribeNotificationTemplateV1Request.json | 0 ...ubscribeNotificationTemplateV1Request.json | 0 ...bscribeNotificationTemplateV1Response.json | 0 ...ibeNotificationTemplateListV1Response.json | 0 ...ibeNotificationTemplateListV1Response.json | 0 .../AppsCapacityAddAdPlacementV1Request.json | 0 ...apacityOpenTrafficPermissionV1Request.json | 0 .../AppsCapacityQueryAdIncomeV1Response.json | 0 ...apacityQueryAdPlacementListV1Response.json | 0 ...pacityQueryAdSettlementListV1Response.json | 0 ...ueryTrafficPermissionStatusV1Response.json | 0 ...acityUpdateAdPlacementStatusV1Request.json | 0 .../AppsCustomerServiceUrlResponse.json | 0 ...alysisQueryDealOverviewDataV1Response.json | 0 ...taAnalysisQueryLiveDealDataV1Response.json | 0 ...taAnalysisQueryLiveRoomDataV1Response.json | 0 ...psDataAnalysisQueryLiveRoomV1Response.json | 0 ...nalysisQueryProductDealDataV1Response.json | 0 ...aAnalysisQueryVideoDealDataV1Response.json | 0 ...taAnalysisQueryBehaviorDataV1Response.json | 0 ...DataAnalysisQueryClientDataV1Response.json | 0 ...psDataAnalysisQueryPageDataV1Response.json | 0 ...alysisQueryRealTimeUserDataV1Response.json | 0 ...aAnalysisQueryRetentionDataV1Response.json | 0 ...sDataAnalysisQuerySceneDataV1Response.json | 0 ...alysisQueryUserPortraitDataV1Response.json | 0 .../AppsLiveSetBlackWhiteListV1Request.json | 0 .../Message/AppsMessageCustomSendRequest.json | 0 .../Apps/Order/AppsOrderDeleteRequest.json | 0 .../Apps/Order/AppsOrderPushV2Request.json | 0 .../Apps/Order/AppsOrderPushV2Response.json | 0 .../ShareConfig/AppsShareConfigRequest.json | 0 .../ShareConfig/AppsShareConfigResponse.json | 0 ...eNotificationDeveloperNotifyV1Request.json | 0 .../TaskBox/AppsTaskBoxAddTaskRequest.json | 0 .../TaskBox/AppsTaskBoxAddTaskResponse.json | 0 .../AppsTaskBoxQueryAppTaskIdRequest.json | 0 .../AppsTaskBoxQueryAppTaskIdResponse.json | 0 .../AppsTaskBoxQueryTaskVideoDataRequest.json | 0 ...AppsTaskBoxQueryTaskVideoDataResponse.json | 0 .../AppsTaskBoxUpdateStatusRequest.json | 0 .../AppsTaskBoxUpdateStatusResponse.json | 0 .../TaskBox/AppsTaskBoxUpdateTaskRequest.json | 0 .../AppsTaskBoxUpdateTaskResponse.json | 0 .../Order/AppsECPayCreateOrderV1Request.json | 0 .../Order/AppsECPayCreateOrderV1Response.json | 0 .../Order/AppsECPayCreateRefundV1Request.json | 0 .../AppsECPayCreateRefundV1Response.json | 0 .../Order/AppsECPayCreateReturnV1Request.json | 0 .../AppsECPayCreateReturnV1Response.json | 0 .../Order/AppsECPayQueryOrderV1Request.json | 0 .../Order/AppsECPayQueryOrderV1Response.json | 0 .../Order/AppsECPayQueryRefundV1Request.json | 0 .../Order/AppsECPayQueryRefundV1Response.json | 0 .../Order/AppsECPayQueryReturnV1Request.json | 0 .../Order/AppsECPayQueryReturnV1Response.json | 0 .../Order/AppsECPayQuerySettleV1Request.json | 0 .../Order/AppsECPayQuerySettleV1Response.json | 0 .../Order/AppsECPaySettleV1Request.json | 0 .../Order/AppsECPaySettleV1Response.json | 0 .../AppsECPaySaaSCreateMerchantRequest.json | 0 .../AppsECPaySaaSCreateMerchantResponse.json | 0 ...psECPaySaaSQueryMerchantStatusRequest.json | 0 ...sECPaySaaSQueryMerchantStatusResponse.json | 0 .../AppsECPaySaaSAddMerchantRequest.json | 0 .../AppsECPaySaaSAddMerchantResponse.json | 0 .../AppsECPaySaaSAddSubMerchantRequest.json | 0 .../AppsECPaySaaSAddSubMerchantResponse.json | 0 ...AppsECPaySaaSAppAddSubMerchantRequest.json | 0 ...ppsECPaySaaSAppAddSubMerchantResponse.json | 0 .../AppsECPaySaaSGetAppMerchantRequest.json | 0 .../AppsECPaySaaSGetAppMerchantResponse.json | 0 .../AppsECPaySaaSMerchantWithdrawRequest.json | 0 ...AppsECPaySaaSMerchantWithdrawResponse.json | 0 ...sECPaySaaSQueryMerchantBalanceRequest.json | 0 ...ECPaySaaSQueryMerchantBalanceResponse.json | 0 ...ppsECPaySaaSQueryWithdrawOrderRequest.json | 0 ...psECPaySaaSQueryWithdrawOrderResponse.json | 0 .../AppsGameWalletAddCoinRequest.json | 0 .../AppsGameWalletAddCoinResponse.json | 0 .../AppsGameWalletGamePayRequest.json | 0 .../AppsGameWalletGamePayResponse.json | 0 .../AppsGameWalletGetBalanceRequest.json | 0 .../AppsGameWalletGetBalanceResponse.json | 0 .../AppsRemoveUserStorageRequest.json | 0 .../AppsSetUserStorageRequest.json | 0 497 files changed, 4085 insertions(+), 4432 deletions(-) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/{ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs => DouyinMicroAppProductApiClientExecuteProductExtensions.cs} (99%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCategoryExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCensorExtensions.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsItemExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsQrcodeExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTaskExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlLinkExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlSchemaExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsVideoExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteAppsECPayExtensions.cs => DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs} (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteAppsGameExtensions.cs => DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteAppsStorageExtensions.cs => DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs} (95%) delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityAddAliasV1Request.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityAddAliasV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityDeleteAliasV1Request.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityModifyAliasV1Request.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityQueryAliasListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityQueryAliasListV1Response.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityQuerySearchTagListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityQuerySearchTagListV1Response.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacitySetSearchTagV1Request.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Capacity => AppsCapacity}/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Category => AppsCategory}/AppsCategoryQueryAppCategoriesV1Request.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Category => AppsCategory}/AppsCategoryQueryAppCategoriesV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Censor => AppsCensor}/AppsCensorImageV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Censor => AppsCensor}/AppsCensorImageV1Response.cs (100%) delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetBaseV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetBaseV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetLikeV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetLikeV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetPlayV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetPlayV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetShareV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemBCGetShareV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetBaseV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetBaseV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetLikeV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetLikeV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetPlayV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetPlayV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetShareV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/AppsItemGetShareV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCListCommentReplyV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCListCommentReplyV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCListCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCListCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCReplyCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCReplyCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCTopCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemBCTopCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemListCommentReplyV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemListCommentReplyV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemListCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemListCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemReplyCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemReplyCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemTopCommentV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Item => AppsItem}/Comment/AppsItemTopCommentV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Qrcode => AppsQrcode}/AppsQrcodeCreateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Qrcode => AppsQrcode}/AppsQrcodeCreateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskCreateLiveV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskCreateLiveV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskCreateVideoV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskCreateVideoV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskWriteoffLiveV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskWriteoffLiveV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskWriteoffVideoV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Task => AppsTask}/AppsTaskWriteoffVideoV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkGenerateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkGenerateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryInfoV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryInfoV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryQuotaV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryQuotaV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlGenerateSchemaV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlGenerateSchemaV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaQuotaV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaQuotaV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsConvertOpenItemIdToEncryptIdV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsConvertOpenItemIdToEncryptIdV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsConvertVideoIdToOpenItemIdV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsConvertVideoIdToOpenItemIdV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsVideoBCQueryV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsVideoBCQueryV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsVideoQueryV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Apps/Video => AppsVideo}/AppsVideoQueryV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs (70%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs (96%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs (78%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs (84%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.cs (78%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Response.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs (75%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs (84%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Response.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs (95%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs (87%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs (80%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs (96%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs (71%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs (95%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs (88%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs (92%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs (96%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs (82%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs (78%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs (91%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs (69%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs (86%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs (84%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Live/AppsUploadLiveImageRequest.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Live/AppsUploadLiveImageResponse.cs (73%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Message/AppsMessageCustomSendRequest.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Message/AppsMessageCustomSendResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Order/AppsOrderDeleteRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Order/AppsOrderDeleteResponse.cs (70%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Order/AppsOrderPushV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/Order/AppsOrderPushV2Response.cs (64%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/ShareConfig/AppsShareConfigRequest.cs (86%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/ShareConfig/AppsShareConfigResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs (86%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs (67%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs (53%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs (63%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs (51%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs (56%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs (56%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxRequestBase.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxResponseBase.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{AppsECPay => _Legacy/AppsECPay/Bills}/AppsBillsRequest.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsBillsResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{AppsECPay => _Legacy/AppsECPay/Bills}/AppsFundBillsRequest.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs (51%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs (58%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs (77%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPaySettleV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/Order/AppsECPaySettleV1Response.cs (50%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs (61%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs (50%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs (61%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs (61%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs (61%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs (61%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs (51%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsGame/AppsGameWalletAddCoinRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsGame/AppsGameWalletAddCoinResponse.cs (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsGame/AppsGameWalletGamePayRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsGame/AppsGameWalletGamePayResponse.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsGame/AppsGameWalletGetBalanceRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsGame/AppsGameWalletGetBalanceResponse.cs (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{AppsGame/Abstractions => _Legacy/AppsGame/__Abstractions}/AppsGameWalletRequestBase.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletResponseBase.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsStorage/AppsRemoveUserStorageRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsStorage/AppsRemoveUserStorageResponse.cs (51%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsStorage/AppsSetUserStorageRequest.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{ => _Legacy}/AppsStorage/AppsSetUserStorageResponse.cs (51%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityAddAliasV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityDeleteAliasV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityModifyAliasV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityQueryAliasListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacityQuerySearchTagListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/Delivery/AppsCapacitySetSearchTagV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Capacity => AppsCapacity}/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json (76%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Category => AppsCategory}/AppsCategoryQueryAppCategoriesV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Censor => AppsCensor}/AppsCensorImageV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Censor => AppsCensor}/AppsCensorImageV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemBCGetBaseV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemBCGetCommentV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemBCGetLikeV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemBCGetPlayV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemBCGetShareV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemGetBaseV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemGetCommentV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemGetLikeV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemGetPlayV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/AppsItemGetShareV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemBCListCommentReplyV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemBCListCommentV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemBCReplyCommentV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemBCReplyCommentV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemBCTopCommentV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemListCommentReplyV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemListCommentV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemReplyCommentV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemReplyCommentV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Item => AppsItem}/Comment/AppsItemTopCommentV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Qrcode => AppsQrcode}/AppsQrcodeCreateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Qrcode => AppsQrcode}/AppsQrcodeCreateV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Task => AppsTask}/AppsTaskCreateLiveV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Task => AppsTask}/AppsTaskCreateLiveV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Task => AppsTask}/AppsTaskCreateVideoV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Task => AppsTask}/AppsTaskCreateVideoV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Task => AppsTask}/AppsTaskWriteoffLiveV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Task => AppsTask}/AppsTaskWriteoffVideoV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkGenerateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkGenerateV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryInfoV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryInfoV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryQuotaV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlLink => AppsUrlLink}/AppsUrlLinkQueryQuotaV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlGenerateSchemaV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlGenerateSchemaV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaQuotaV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaQuotaV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/UrlSchema => AppsUrlSchema}/AppsUrlQuerySchemaV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsConvertOpenItemIdToEncryptIdV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsConvertOpenItemIdToEncryptIdV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsConvertVideoIdToOpenItemIdV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsConvertVideoIdToOpenItemIdV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsVideoBCQueryV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsVideoBCQueryV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsVideoQueryV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Apps/Video => AppsVideo}/AppsVideoQueryV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/AppsCapacityUploadMaterialV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/CustomerService/AppsCustomerServiceUrlResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Live/AppsLiveSetBlackWhiteListV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Message/AppsMessageCustomSendRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Order/AppsOrderDeleteRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Order/AppsOrderPushV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/Order/AppsOrderPushV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/ShareConfig/AppsShareConfigRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/ShareConfig/AppsShareConfigResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxAddTaskRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxAddTaskResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateOrderV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateOrderV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateRefundV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateRefundV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateReturnV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayCreateReturnV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryOrderV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryOrderV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryRefundV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryRefundV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryReturnV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQueryReturnV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQuerySettleV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPayQuerySettleV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPaySettleV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/Order/AppsECPaySettleV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsGame/AppsGameWalletAddCoinRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsGame/AppsGameWalletAddCoinResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsGame/AppsGameWalletGamePayRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsGame/AppsGameWalletGamePayResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsGame/AppsGameWalletGetBalanceRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsGame/AppsGameWalletGetBalanceResponse.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsStorage/AppsRemoveUserStorageRequest.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{ => _Legacy}/AppsStorage/AppsSetUserStorageRequest.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs index 05eb8c9e..f7fe0b77 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp public abstract class DouyinMicroAppRequest : CommonRequestBase, ICommonRequest { /// - /// 获取或设置抖音小程序的 AccessToken。 + /// 获取或设置抖音小程序的 AccessToken/ClientToken/BusinessToken。 /// /// 注意:部分第三方平台的接口中该字段表示授权方的 AuthorizerAccessToken。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppResponse.cs index 5b637681..77e6c9ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/DouyinMicroAppResponse.cs @@ -6,17 +6,24 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp public abstract class DouyinMicroAppResponse : CommonResponseBase, ICommonResponse { /// - /// 获取抖音小程序 API 返回的详细错误号。 + /// 获取抖音小程序 API 返回的错误号。 /// - [Newtonsoft.Json.JsonProperty("errcode")] - [System.Text.Json.Serialization.JsonPropertyName("errcode")] - public virtual long ErrorCode { get; set; } + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public virtual int ErrorNumber { get; set; } + + /// + /// 获取抖音小程序 API 返回的错误信息。 + /// + [Newtonsoft.Json.JsonProperty("err_tips")] + [System.Text.Json.Serialization.JsonPropertyName("err_tips")] + public virtual string? ErrorTips { get; set; } /// /// 获取抖音小程序 API 返回的错误描述。 /// - [Newtonsoft.Json.JsonProperty("errmsg")] - [System.Text.Json.Serialization.JsonPropertyName("errmsg")] + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public virtual string? ErrorMessage { get; set; } /// @@ -30,13 +37,13 @@ public abstract class DouyinMicroAppResponse : CommonResponseBase, ICommonRespon /// /// 获取一个值,该值指示调用抖音小程序 API 是否成功。 /// - ///(即 HTTP 状态码为 200,且 值为 0) + ///(即 HTTP 状态码为 200,且 值为 0) /// /// /// public override bool IsSuccessful() { - return GetRawStatus() == 200 && ErrorCode == 0; + return GetRawStatus() == 200 && ErrorNumber == 0; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteProductExtensions.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteProductExtensions.cs index 78b0d1b5..996fcac1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/ByteDanceMicroAppProductApiClientExecuteProductExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteProductExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi { - public static class ByteDanceMicroAppProductApiClientExecuteProductExtensions + public static class DouyinMicroAppProductApiClientExecuteProductExtensions { /// /// 异步调用 [POST] /add 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs index 7d09d255..0642c88c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs @@ -185,7 +185,7 @@ public class VideoAnchorInfo } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs index b22d4947..37e5ebab 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientResponseVerificationExtensions.cs @@ -41,7 +41,7 @@ public static ErroredResult VerifyResponseSignature(this DouyinMicroA bool valid = Utilities.RSAUtility.Verify( publicKeyPem: client.Credentials.PlatformPublicKey, - messageData: new EncodedString(stringBuilder.ToString(), EncodingKinds.Literal), + messageData: stringBuilder.ToString(), encodingSignature: new EncodedString(response.ByteSignature, EncodingKinds.Base64), Utilities.RSAUtility.DIGEST_ALGORITHM_SHA256 ); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs new file mode 100644 index 00000000..7f87a4bc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs @@ -0,0 +1,276 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsCapacityExtensions + { + #region AwemeCapacity + /// + /// 异步调用 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQueryAwemeVideoKeywordListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemeVideoKeywordListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_video_keyword_list") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityAddAwemeVideoKeywordV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_aweme_video_keyword") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityDeleteAwemeVideoKeywordV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_aweme_video_keyword") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Delivery + /// + /// 异步调用 [POST] /apps/v1/capacity/add_alias 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityAddAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAliasV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_alias") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_alias_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQueryAliasListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAliasListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_alias_list") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/modify_alias 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityModifyAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityModifyAliasV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_alias") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/delete_alias 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityDeleteAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAliasV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_alias") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/set_search_tag 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacitySetSearchTagV1Async(this DouyinMicroAppClient client, Models.AppsCapacitySetSearchTagV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "set_search_tag") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_search_tag_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQuerySearchTagListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySearchTagListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_search_tag_list") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region SubService + /// + /// 异步调用 [POST] /apps/v1/capacity/create_ma_sub_service/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityCreateMicroAppSubServiceV1Async(this DouyinMicroAppClient client, Models.AppsCapacityCreateMicroAppSubServiceV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_ma_sub_service", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_ma_sub_service/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQueryMicroAppSubServiceV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryMicroAppSubServiceV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ma_sub_service", "") + .SetQueryParam("page_no", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .SetQueryParam("approval_state", request.ApprovalState) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCategoryExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCategoryExtensions.cs new file mode 100644 index 00000000..54247ac5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCategoryExtensions.cs @@ -0,0 +1,34 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsCategoryExtensions + { + /// + /// 异步调用 [GET] /apps/v1/category/query_app_categories/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCategoryQueryAppCategoriesV1Async(this DouyinMicroAppClient client, Models.AppsCategoryQueryAppCategoriesV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "category", "query_app_categories", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCensorExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCensorExtensions.cs new file mode 100644 index 00000000..97909ed9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCensorExtensions.cs @@ -0,0 +1,37 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsCensorExtensions + { + /// + /// 异步调用 [POST] /apps/v1/censor/image 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCensorImageV1Async(this DouyinMicroAppClient client, Models.AppsCensorImageV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "censor", "image") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs deleted file mode 100644 index cd7708ba..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsExtensions.cs +++ /dev/null @@ -1,2856 +0,0 @@ -using System; -using System.Net.Http; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Flurl; -using Flurl.Http; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp -{ - public static class DouyinMicroAppClientExecuteAppsExtensions - { - #region TODO: Capacity - /// - /// 异步调用 [POST] /apps/v1/capacity/upload_material 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityUploadMaterialV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUploadMaterialV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.MaterialFileName is null) - request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "upload_material"); - - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); - httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); - - return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - #region TODO: Capacity/AwemeCapacity - /// - /// 异步调用 [GET] /apps/v1/capacity/query_aweme_permission_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAwemePermissionListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemePermissionListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_permission_list") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/apply_aweme_permission 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityApplyAwemePermissionV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyAwemePermissionV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_aweme_permission") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_scope_quota_detail 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryScopeQuotaDetailV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryScopeQuotaDetailV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_scope_quota_detail") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("permission_key", request.PermissionKey); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/apply_scope_quota 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityApplyScopeQuotaV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyScopeQuotaV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_scope_quota") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAwemeVideoKeywordListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemeVideoKeywordListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_video_keyword_list") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityAddAwemeVideoKeywordV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_aweme_video_keyword") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityDeleteAwemeVideoKeywordV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAwemeVideoKeywordV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_aweme_video_keyword") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: Capacity/Delivery - /// - /// 异步调用 [POST] /apps/v1/capacity/add_alias 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityAddAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAliasV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_alias") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_alias_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAliasListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAliasListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_alias_list") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/modify_alias 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityModifyAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityModifyAliasV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_alias") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/delete_alias 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityDeleteAliasV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAliasV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_alias") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/set_search_tag 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacitySetSearchTagV1Async(this DouyinMicroAppClient client, Models.AppsCapacitySetSearchTagV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "set_search_tag") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_search_tag_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQuerySearchTagListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySearchTagListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_search_tag_list") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: Capacity/FollowAweme - /// - /// 异步调用 [POST] /apps/v1/capacity/bind_aweme_user 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityBindAwemeUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityBindAwemeUserV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_aweme_user") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/unbind_aweme_user_bind 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityUnbindAwemeUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUnbindAwemeUserV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_aweme_user_bind") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/get_aweme_user_bind_qrcode 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityGetAwemeUserBindQrcodeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetAwemeUserBindQrcodeV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_aweme_user_bind_qrcode") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("type", request.BindType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_aweme_user_bind_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAwemeUserBindListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemeUserBindListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_user_bind_list") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("type", request.BindType) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - #endregion - - #region TODO: Capacity/Mount - /// - /// 异步调用 [POST] /apps/v1/capacity/apply_capacity 接口。 - /// - /// REF:
- ///
- ///
- ///
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityApplyCapacityV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyCapacityV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_capacity") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_apply_status 接口。 - /// - /// REF:
- ///
- ///
- ///
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryApplyStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryApplyStatusV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_apply_status") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("capacity_key", request.CapacityKey); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/bind_self_mount_user 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityBindSelfMountUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityBindSelfMountUserV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_self_mount_user") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/unbind_self_mount_user 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityUnbindSelfMountUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUnbindSelfMountUserV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_self_mount_user") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/get_self_mount_bind_qrcode 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityGetSelfMountBindQrcodeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetSelfMountBindQrcodeV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_self_mount_bind_qrcode") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("capacity_key", request.CapacityKey); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_self_mount_user_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQuerySelfMountUserListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySelfMountUserListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_self_mount_user_list") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("capacity_key", request.CapacityKey) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - #region Capacity/Mount/Capcut - /// - /// 异步调用 [GET] /apps/v1/capacity/query_capcut_info 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryCapcutInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCapcutInfoV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_info") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_capcut_template_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryCapcutTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCapcutTemplateListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_template_list") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/update_capcut_template_status 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityUpdateCapcutTemplateStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateCapcutTemplateStatusV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_capcut_template_status") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - #endregion - - #region TODO: Capacity/SimpleQrcode - /// - /// 异步调用 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQuerySimpleQrcodeBindListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySimpleQrcodeBindListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_simple_qr_bind_list") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/add_simple_qr_bind 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityAddSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_simple_qr_bind") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/update_simple_qr_bind 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindStatusV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind_status") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityDeleteSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_simple_qr_bind") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: Capacity/SubscribeNotification - /// - /// 异步调用 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQuerySubscribeNotificationTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_subscribe_notification_tpl_list") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit) - .SetQueryParam("classification", request.Classification) - .SetQueryParam("template_type", request.TemplateType); - - if (request.CategoryIdList is not null) - flurlReq.SetQueryParam("category_ids", string.Join(",", request.CategoryIdList)); - - if (request.Keyword is not null) - flurlReq.SetQueryParam("keyword", request.Keyword); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_app_subscribe_notification_tpl 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_app_subscribe_notification_tpl") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit) - .SetQueryParam("classification", request.Classification); - - if (request.CategoryIdList is not null) - flurlReq.SetQueryParam("category_ids", string.Join(",", request.CategoryIdList)); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_created_subscribe_notification_tpl_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_created_subscribe_notification_tpl_list") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit); - - if (request.Status is not null) - flurlReq.SetQueryParam("status", request.Status); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/add_app_subscribe_notification_tpl 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityAddAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_app_subscribe_notification_tpl") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityModifyAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityModifyAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_app_subscribe_notification_tpl") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityDeleteAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_app_subscribe_notification_tpl") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityCreateAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityCreateAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_subscribe_notification_tpl") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region Capcity/SubService - /// - /// 异步调用 [POST] /apps/v1/capacity/create_ma_sub_service/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityCreateMicroAppSubServiceV1Async(this DouyinMicroAppClient client, Models.AppsCapacityCreateMicroAppSubServiceV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_ma_sub_service", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_ma_sub_service/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryMicroAppSubServiceV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryMicroAppSubServiceV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ma_sub_service", "") - .SetQueryParam("page_no", request.PageNumber) - .SetQueryParam("page_size", request.PageSize) - .SetQueryParam("approval_state", request.ApprovalState) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: TrafficPermission - /// - /// 异步调用 [GET] /apps/v1/capacity/query_traffic_permission_status 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryTrafficPermissionStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryTrafficPermissionStatusV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_traffic_permission_status") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/open_traffic_permission 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityOpenTrafficPermissionV1Async(this DouyinMicroAppClient client, Models.AppsCapacityOpenTrafficPermissionV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "open_traffic_permission") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_ad_placement_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAdPlacementListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdPlacementListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_placement_list") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/add_ad_placement 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityAddAdPlacementV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAdPlacementV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_ad_placement") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/capacity/update_ad_placement_status 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityUpdateAdPlacementStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateAdPlacementStatusV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_ad_placement_status") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_ad_income 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAdIncomeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdIncomeV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_income") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_date", request.StartDateString) - .SetQueryParam("end_date", request.EndDateString); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/capacity/query_ad_settlement_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCapacityQueryAdSettlementListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdSettlementListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_settlement_list") - .WithHeader("access-token", request.AccessToken); - - if (request.PeriodString is not null) - flurlReq.SetQueryParam("month", request.PeriodString); - - if (request.Status is not null) - flurlReq.SetQueryParam("status", request.Status); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - #endregion - - #region TODO: Category - /// - /// 异步调用 [GET] /apps/v1/category/query_app_categories 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCategoryQueryAppCategoriesV1Async(this DouyinMicroAppClient client, Models.AppsCategoryQueryAppCategoriesV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "category", "query_app_categories") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region Censor - /// - /// 异步调用 [POST] /apps/v1/censor/image 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCensorImageV1Async(this DouyinMicroAppClient client, Models.AppsCensorImageV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "censor", "image") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: CustomerService - /// - /// 异步调用 [GET] /apps/customer_service/url 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "customer_service", "url") - .SetQueryParam("access_token", request.AccessToken) - .SetQueryParam("appid", request.AppId) - .SetQueryParam("openid", request.OpenId) - .SetQueryParam("type", request.Type) - .SetQueryParam("scene", request.Scene); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: DataAnalysis - #region TODO: DataAnalysis/TransactionAnalysis - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryDealOverviewDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryDealOverviewDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_deal_overview_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_video_deal_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryVideoDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryVideoDealDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_video_deal_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_live_room 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryLiveRoomV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room") - .WithHeader("access-token", request.AccessToken); - - if (request.AnchorName is not null) - flurlReq.SetQueryParam("anchor_name", request.AnchorName); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_live_room_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryLiveRoomDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("live_room_id", request.LiveRoomId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_live_deal_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryLiveDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveDealDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_deal_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("live_room_id", request.LiveRoomId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_product_deal_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryProductDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryProductDealDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_product_deal_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp) - .SetQueryParam("page_num", request.Page) - .SetQueryParam("page_size", request.Limit); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: DataAnalysis/UserAnalysis - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_behavior_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryBehaviorDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryBehaviorDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_behavior_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.OS is not null) - flurlReq.SetQueryParam("os", request.OS); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_real_time_user_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryRealTimeUserDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryRealTimeUserDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_real_time_user_data") - .WithHeader("access-token", request.AccessToken); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_retention_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryRetentionDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryRetentionDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_retention_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.UserType is not null) - flurlReq.SetQueryParam("user_type", request.UserType); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.OS is not null) - flurlReq.SetQueryParam("os", request.OS); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_scene_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQuerySceneDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQuerySceneDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_scene_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_user_portrait_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryUserPortraitDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryUserPortraitDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_user_portrait_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.UserType is not null) - flurlReq.SetQueryParam("user_type", request.UserType); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_client_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryClientDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryClientDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_client_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.UserType is not null) - flurlReq.SetQueryParam("user_type", request.UserType); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/data_analysis/query_page_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsDataAnalysisQueryPageDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryPageDataV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_page_data") - .WithHeader("access-token", request.AccessToken) - .SetQueryParam("start_time", request.StartTimestamp) - .SetQueryParam("end_time", request.EndTimestamp); - - if (request.HostName is not null) - flurlReq.SetQueryParam("host_name", request.HostName); - - if (request.OS is not null) - flurlReq.SetQueryParam("os", request.OS); - - if (request.VersionType is not null) - flurlReq.SetQueryParam("version_type", request.VersionType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - #endregion - - #region Item - /// - /// 异步调用 [GET] /apps/v1/item/get_base/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemGetBaseV1Async(this DouyinMicroAppClient client, Models.AppsItemGetBaseV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_base", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item_bc/get_base/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCGetBaseV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetBaseV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_base", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item/get_like/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsItemGetLikeV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_like", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item_bc/get_like/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetLikeV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_like", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item/get_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemGetCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_comment", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item_bc/get_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_comment", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item/get_play/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemGetPlayV1Async(this DouyinMicroAppClient client, Models.AppsItemGetPlayV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_play", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item_bc/get_play/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCGetPlayV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetPlayV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_play", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item/get_share/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemGetShareV1Async(this DouyinMicroAppClient client, Models.AppsItemGetShareV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_share", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item_bc/get_share/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCGetShareV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetShareV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_share", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("date_type", request.DataType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - #region Item/Comment - /// - /// 异步调用 [POST] /apps/v1/item/top_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemTopCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemTopCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item", "top_comment", "") - .SetQueryParam("open_id", request.OpenId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/item_bc/top_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCTopCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCTopCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item_bc", "top_comment", "") - .SetQueryParam("open_id", request.OpenId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/item/reply_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemReplyCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemReplyCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item", "reply_comment", "") - .SetQueryParam("open_id", request.OpenId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/item_bc/reply_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCReplyCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCReplyCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item_bc", "reply_comment", "") - .SetQueryParam("open_id", request.OpenId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item/list_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemListCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemListCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "list_comment", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("cursor", request.PageCursor) - .SetQueryParam("count", request.PageSize) - .SetQueryParam("sort_type", request.SortType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item_bc/list_comment/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCListCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCListCommentV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "list_comment", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("cursor", request.PageCursor) - .SetQueryParam("count", request.PageSize) - .SetQueryParam("sort_type", request.SortType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item/list_comment_reply/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemListCommentReplyV1Async(this DouyinMicroAppClient client, Models.AppsItemListCommentReplyV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "list_comment_reply", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("comment_id", request.CommentId) - .SetQueryParam("cursor", request.PageCursor) - .SetQueryParam("count", request.PageSize) - .SetQueryParam("sort_type", request.SortType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /apps/v1/item_bc/list_comment_reply/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsItemBCListCommentReplyV1Async(this DouyinMicroAppClient client, Models.AppsItemBCListCommentReplyV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "list_comment_reply", "") - .SetQueryParam("open_id", request.OpenId) - .SetQueryParam("item_id", request.ItemId) - .SetQueryParam("comment_id", request.CommentId) - .SetQueryParam("cursor", request.PageCursor) - .SetQueryParam("count", request.PageSize) - .SetQueryParam("sort_type", request.SortType) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - #endregion - - #region TODO: Live - /// - /// 异步调用 [POST] /apps/upload_live_image 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsUploadLiveImageAsync(this DouyinMicroAppClient client, Models.AppsUploadLiveImageRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - if (request.ImageFileName is null) - request.ImageFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "upload_live_image"); - - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: "image/jpeg", formDataName: "image"); - httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.Title)), "title"); - httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.PagePath)), "start_page"); - if (request.RoomId is not null) - httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.RoomId.Value.ToString())), "room_id"); - - return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/live/set_black_white_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsLiveSetBlackWhiteListV1Async(this DouyinMicroAppClient client, Models.AppsLiveSetBlackWhiteListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "live", "set_black_white_list"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: Message - /// - /// 异步调用 [POST] /apps/message/custom/send 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsMessageCustomSendAsync(this DouyinMicroAppClient client, Models.AppsMessageCustomSendRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "message", "custom", "send") - .SetQueryParam("access_token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: Order - /// - /// 异步调用 [POST] /apps/order/v2/push 接口。 - /// - /// REF:
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsOrderPushV2Async(this DouyinMicroAppClient client, Models.AppsOrderPushV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "v2", "push") - .SetQueryParam("access_token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/order/delete 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsOrderDeleteAsync(this DouyinMicroAppClient client, Models.AppsOrderDeleteRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "delete") - .SetQueryParam("access_token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region Qrcode - /// - /// 异步调用 [POST] /apps/v1/qrcode/create/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsQrcodeCreateV1Async(this DouyinMicroAppClient client, Models.AppsQrcodeCreateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "qrcode", "create", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: ShareConfig - /// - /// 异步调用 [POST] /apps/share_config 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsShareConfigAsync(this DouyinMicroAppClient client, Models.AppsShareConfigRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "share_config"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: SubscribeNotification - /// - /// 异步调用 [POST] /apps/subscribe_notification/developer/v1/notify 接口。 - /// - /// REF:
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsSubscribeNotificationDeveloperNotifyV1Async(this DouyinMicroAppClient client, Models.AppsSubscribeNotificationDeveloperNotifyV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "subscribe_notification", "developer", "v1", "notify"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region Task - /// - /// 异步调用 [POST] /apps/v2/task/create_live/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskCreateLiveV2Async(this DouyinMicroAppClient client, Models.AppsTaskCreateLiveV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "create_live", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v2/task/create_video/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskCreateVideoV2Async(this DouyinMicroAppClient client, Models.AppsTaskCreateVideoV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "create_video", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v2/task/writeoff_live/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskWriteoffLiveV2Async(this DouyinMicroAppClient client, Models.AppsTaskWriteoffLiveV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "writeoff_live", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v2/task/writeoff_video/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskWriteoffVideoV2Async(this DouyinMicroAppClient client, Models.AppsTaskWriteoffVideoV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "writeoff_video", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region TODO: TaskBox - /// - /// 异步调用 [POST] /apps/taskbox/add_task 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskBoxAddTaskAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxAddTaskRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "add_task"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/taskbox/update_task 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskBoxUpdateTaskAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxUpdateTaskRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update_task"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/taskbox/update/status 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskBoxUpdateStatusAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxUpdateStatusRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update", "status"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/taskbox/query_app_task_id 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskBoxQueryAppTaskIdAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxQueryAppTaskIdRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_app_task_id"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/taskbox/query_task_video_data 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsTaskBoxQueryTaskVideoDataAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxQueryTaskVideoDataRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_task_video_data"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region UrlSchema - /// - /// 异步调用 [POST] /apps/v1/url_link/generate 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsUrlLinkGenerateV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkGenerateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "generate") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/url_link/query_info 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsUrlLinkQueryInfoV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryInfoV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "query_info") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/url_link/query_quota 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsUrlLinkQueryQuotaV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryQuotaV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "query_quota") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region UrlLink - /// - /// 异步调用 [POST] /apps/v1/url/generate_schema/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsUrlGenerateSchemaV1Async(this DouyinMicroAppClient client, Models.AppsUrlGenerateSchemaV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "generate_schema", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/url/query_schema/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsUrlQuerySchemaV1Async(this DouyinMicroAppClient client, Models.AppsUrlQuerySchemaV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/url/query_schema_quota/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsUrlQuerySchemaQuotaV1Async(this DouyinMicroAppClient client, Models.AppsUrlQuerySchemaQuotaV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema_quota", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region Video - /// - /// 异步调用 [POST] /apps/v1/video/query/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsVideoQueryV1Async(this DouyinMicroAppClient client, Models.AppsVideoQueryV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "video", "query", "") - .SetQueryParam("open_id", request.OpenId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/video_bc/query/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsVideoBCQueryV1Async(this DouyinMicroAppClient client, Models.AppsVideoBCQueryV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "video_bc", "query", "") - .SetQueryParam("open_id", request.OpenId) - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/convert_video_id/video_id_to_open_item_id/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsConvertVideoIdToOpenItemIdV1Async(this DouyinMicroAppClient client, Models.AppsConvertVideoIdToOpenItemIdV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "convert_video_id", "video_id_to_open_item_id", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /apps/v1/convert_video_id/open_item_id_to_encrypt_id/ 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAppsConvertOpenItemIdToEncryptIdV1Async(this DouyinMicroAppClient client, Models.AppsConvertOpenItemIdToEncryptIdV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "convert_video_id", "open_item_id_to_encrypt_id", "") - .WithHeader("access-token", request.AccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsItemExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsItemExtensions.cs new file mode 100644 index 00000000..d4372723 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsItemExtensions.cs @@ -0,0 +1,482 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsItemExtensions + { + /// + /// 异步调用 [GET] /apps/v1/item/get_base/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetBaseV1Async(this DouyinMicroAppClient client, Models.AppsItemGetBaseV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_base", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_base/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetBaseV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetBaseV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_base", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_like/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsItemGetLikeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_like", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_like/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetLikeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_like", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemGetCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_play/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetPlayV1Async(this DouyinMicroAppClient client, Models.AppsItemGetPlayV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_play", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_play/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetPlayV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetPlayV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_play", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/get_share/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemGetShareV1Async(this DouyinMicroAppClient client, Models.AppsItemGetShareV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "get_share", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/get_share/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCGetShareV1Async(this DouyinMicroAppClient client, Models.AppsItemBCGetShareV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "get_share", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("date_type", request.DataType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + #region Comment + /// + /// 异步调用 [POST] /apps/v1/item/top_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemTopCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemTopCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item", "top_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/item_bc/top_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCTopCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCTopCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item_bc", "top_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/item/reply_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemReplyCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemReplyCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item", "reply_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/item_bc/reply_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCReplyCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCReplyCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "item_bc", "reply_comment", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/list_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemListCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemListCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "list_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/list_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCListCommentV1Async(this DouyinMicroAppClient client, Models.AppsItemBCListCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "list_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item/list_comment_reply/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemListCommentReplyV1Async(this DouyinMicroAppClient client, Models.AppsItemListCommentReplyV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item", "list_comment_reply", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("comment_id", request.CommentId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/item_bc/list_comment_reply/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsItemBCListCommentReplyV1Async(this DouyinMicroAppClient client, Models.AppsItemBCListCommentReplyV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "item_bc", "list_comment_reply", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("item_id", request.ItemId) + .SetQueryParam("comment_id", request.CommentId) + .SetQueryParam("cursor", request.PageCursor) + .SetQueryParam("count", request.PageSize) + .SetQueryParam("sort_type", request.SortType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsQrcodeExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsQrcodeExtensions.cs new file mode 100644 index 00000000..0700ec6d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsQrcodeExtensions.cs @@ -0,0 +1,37 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsQrcodeExtensions + { + /// + /// 异步调用 [POST] /apps/v1/qrcode/create/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsQrcodeCreateV1Async(this DouyinMicroAppClient client, Models.AppsQrcodeCreateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "qrcode", "create", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTaskExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTaskExtensions.cs new file mode 100644 index 00000000..be756982 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTaskExtensions.cs @@ -0,0 +1,103 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsTaskExtensions + { + /// + /// 异步调用 [POST] /apps/v2/task/create_live/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskCreateLiveV2Async(this DouyinMicroAppClient client, Models.AppsTaskCreateLiveV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "create_live", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/task/create_video/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskCreateVideoV2Async(this DouyinMicroAppClient client, Models.AppsTaskCreateVideoV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "create_video", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/task/writeoff_live/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskWriteoffLiveV2Async(this DouyinMicroAppClient client, Models.AppsTaskWriteoffLiveV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "writeoff_live", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/task/writeoff_video/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskWriteoffVideoV2Async(this DouyinMicroAppClient client, Models.AppsTaskWriteoffVideoV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "task", "writeoff_video", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlLinkExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlLinkExtensions.cs new file mode 100644 index 00000000..8733deef --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlLinkExtensions.cs @@ -0,0 +1,89 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsUrlLinkExtensions + { + /// + /// 异步调用 [POST] /apps/v1/url/generate_schema/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlGenerateSchemaV1Async(this DouyinMicroAppClient client, Models.AppsUrlGenerateSchemaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "generate_schema", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/url/query_schema/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlQuerySchemaV1Async(this DouyinMicroAppClient client, Models.AppsUrlQuerySchemaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/url/query_schema_quota/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlQuerySchemaQuotaV1Async(this DouyinMicroAppClient client, Models.AppsUrlQuerySchemaQuotaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url", "query_schema_quota", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlSchemaExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlSchemaExtensions.cs new file mode 100644 index 00000000..78c456f2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUrlSchemaExtensions.cs @@ -0,0 +1,89 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsUrlSchemaExtensions + { + /// + /// 异步调用 [POST] /apps/v1/url_link/generate 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlLinkGenerateV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkGenerateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "generate") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/url_link/query_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlLinkQueryInfoV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "query_info") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/url_link/query_quota 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUrlLinkQueryQuotaV1Async(this DouyinMicroAppClient client, Models.AppsUrlLinkQueryQuotaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "url_link", "query_quota") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsVideoExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsVideoExtensions.cs new file mode 100644 index 00000000..e36125bd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsVideoExtensions.cs @@ -0,0 +1,106 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsVideoExtensions + { + /// + /// 异步调用 [POST] /apps/v1/video/query/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsVideoQueryV1Async(this DouyinMicroAppClient client, Models.AppsVideoQueryV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "video", "query", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/video_bc/query/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsVideoBCQueryV1Async(this DouyinMicroAppClient client, Models.AppsVideoBCQueryV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "video_bc", "query", "") + .SetQueryParam("open_id", request.OpenId) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/convert_video_id/video_id_to_open_item_id/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsConvertVideoIdToOpenItemIdV1Async(this DouyinMicroAppClient client, Models.AppsConvertVideoIdToOpenItemIdV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "convert_video_id", "video_id_to_open_item_id", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/convert_video_id/open_item_id_to_encrypt_id/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsConvertOpenItemIdToEncryptIdV1Async(this DouyinMicroAppClient client, Models.AppsConvertOpenItemIdToEncryptIdV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "convert_video_id", "open_item_id_to_encrypt_id", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsECPayExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsECPayExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs index 04b1aad8..9128083d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsECPayExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs @@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteAppsECPayExtensions + public static class DouyinMicroAppClientExecuteLegacyAppsECPayExtensions { private static string GenerateRequestSignature(DouyinMicroAppClient client, TRequest request, Dictionary? extraParams = null) where TRequest : DouyinMicroAppRequest @@ -66,284 +66,345 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl return Utilities.MD5Utility.Hash(plainText).Value!.ToLower(); } - #region SaaS - #region SaaS - Apply + #region Bills /// - /// 异步调用 [POST] /apps/ecpay/saas/create_merchant 接口。 + /// 异步调用 [GET] /apps/bills 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSCreateMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSCreateMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsBillsAsync(this DouyinMicroAppClient client, Models.AppsBillsRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "create_merchant"); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; if (request.Signature is null) - request.Signature = GenerateRequestSignature(client, request); + { + request.Signature = GenerateRequestSignature(client, request, new() + { + { "merchant_id" , request.MerchantId }, + { "bill_date" , request.DateString }, + { "bill_type" , request.BillType } + }); + } - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "bills") + .WithUrl($"{client._BASEURL_LEGACY}/apps/bills") + .SetQueryParam("app_id", request.AppId) + .SetQueryParam("merchant_id", request.MerchantId) + .SetQueryParam("bill_date", request.DateString) + .SetQueryParam("bill_type", request.BillType) + .SetQueryParam("sign", request.Signature); + + if (request.ComponentAppId is not null) + flurlReq.SetQueryParam("thirdparty_id", request.ComponentAppId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/saas/image_upload 接口。 + /// 异步调用 [GET] /apps/fund/bills 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSImageUploadAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSImageUploadRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsFundBillsAsync(this DouyinMicroAppClient client, Models.AppsFundBillsRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.Signature is null) + { + request.Signature = GenerateRequestSignature(client, request, new() + { + { "merchant_id" , request.MerchantId }, + { "bill_date" , request.DateString }, + { "account_type" , request.AccountType }, + { "payment_type" , request.PaymentType }, + { "trade_type" , request.TradeType }, + }); + } + IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "image_upload"); + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "fund", "bills") + .WithUrl($"{client._BASEURL_LEGACY}/apps/fund/bills") + .SetQueryParam("app_id", request.AppId) + .SetQueryParam("merchant_id", request.MerchantId) + .SetQueryParam("bill_date", request.DateString) + .SetQueryParam("account_type", request.AccountType) + .SetQueryParam("payment_type", request.PaymentType) + .SetQueryParam("trade_type", request.TradeType) + .SetQueryParam("sign", request.Signature); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + if (request.ComponentAppId is not null) + flurlReq.SetQueryParam("thirdparty_id", request.ComponentAppId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion + #region Order /// - /// 异步调用 [POST] /apps/ecpay/saas/query_merchant_status 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/create_order 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSQueryMerchantStatusAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryMerchantStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayCreateOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateOrderV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_status"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_order") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/create_order"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - #endregion - #region SaaS - PageLinks /// - /// 异步调用 [POST] /apps/ecpay/saas/add_merchant 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/query_order 接口。 /// /// REF:
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSAddMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAddMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryOrderV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ComponentAppId is null) - request.ComponentAppId = client.Credentials.AppId; + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.Signature is null) + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_order") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_order"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/saas/get_app_merchant 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/create_refund 接口。 /// /// REF:
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSGetAppMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSGetAppMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayCreateRefundV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateRefundV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ComponentAppId is null) - request.ComponentAppId = client.Credentials.AppId; + if (request.AppId is null) + request.AppId = client.Credentials.AppId; if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "get_app_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_refund") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/create_refund"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/saas/app_add_sub_merchant 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/query_refund 接口。 /// /// REF:
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSAppAddSubMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAppAddSubMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryRefundV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryRefundV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "app_add_sub_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_refund") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_refund"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/saas/add_sub_merchant 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/settle 接口。 /// /// REF:
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSAddSubMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAddSubMerchantRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySettleV1Async(this DouyinMicroAppClient client, Models.AppsECPaySettleV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.ComponentAppId is null) - request.ComponentAppId = client.Credentials.AppId; + if (request.AppId is null) + request.AppId = client.Credentials.AppId; if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_sub_merchant"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "settle") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/settle"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - #endregion - #region SaaS - Withdraw /// - /// 异步调用 [POST] /apps/ecpay/saas/query_merchant_balance 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/query_settle 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSQueryMerchantBalanceAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryMerchantBalanceRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQuerySettleV1Async(this DouyinMicroAppClient client, Models.AppsECPayQuerySettleV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_balance"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_settle") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_settle"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/saas/merchant_withdraw 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/create_return 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSMerchantWithdrawAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSMerchantWithdrawRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayCreateReturnV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateReturnV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "merchant_withdraw"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_return") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/create_return"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/saas/query_withdraw_order 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/query_return 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySaaSQueryWithdrawOrderAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryWithdrawOrderRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryReturnV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryReturnV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_withdraw_order"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_return") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_return"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - #endregion - #endregion - #region Order /// - /// 异步调用 [POST] /apps/ecpay/v1/create_order 接口。 + /// 异步调用 [POST] /apps/ecpay/v1/query_platform_order 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayCreateOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateOrderV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPayQueryPlatformOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryPlatformOrderV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -355,325 +416,286 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_order"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_platform_order") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_platform_order"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion + #region SaaS + #region SaaS - Apply /// - /// 异步调用 [POST] /apps/ecpay/v1/query_order 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/create_merchant 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayQueryOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryOrderV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSCreateMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSCreateMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "create_merchant") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/create_merchant"); if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_order"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/v1/create_refund 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/image_upload 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayCreateRefundV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateRefundV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSImageUploadAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSImageUploadRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - if (request.Signature is null) - request.Signature = GenerateRequestSignature(client, request); - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_refund"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "image_upload") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/image_upload"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/v1/query_refund 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/query_merchant_status 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayQueryRefundV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryRefundV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSQueryMerchantStatusAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryMerchantStatusRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_refund"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_status") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/query_merchant_status"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion + #region SaaS - PageLinks /// - /// 异步调用 [POST] /apps/ecpay/v1/settle 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/add_merchant 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPaySettleV1Async(this DouyinMicroAppClient client, Models.AppsECPaySettleV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSAddMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAddMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - if (request.Signature is null) - request.Signature = GenerateRequestSignature(client, request); + if (request.ComponentAppId is null) + request.ComponentAppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "settle"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_merchant") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/add_merchant"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/v1/query_settle 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/get_app_merchant 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayQuerySettleV1Async(this DouyinMicroAppClient client, Models.AppsECPayQuerySettleV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSGetAppMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSGetAppMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; + if (request.ComponentAppId is null) + request.ComponentAppId = client.Credentials.AppId; if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_settle"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "get_app_merchant") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/get_app_merchant"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/v1/create_return 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/app_add_sub_merchant 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayCreateReturnV1Async(this DouyinMicroAppClient client, Models.AppsECPayCreateReturnV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSAppAddSubMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAppAddSubMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_return"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "app_add_sub_merchant") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/app_add_sub_merchant"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/ecpay/v1/query_return 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/add_sub_merchant 接口。 /// /// REF:
- /// + ///
+ /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayQueryReturnV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryReturnV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSAddSubMerchantAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSAddSubMerchantRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; + if (request.ComponentAppId is null) + request.ComponentAppId = client.Credentials.AppId; if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_return"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_sub_merchant") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/add_sub_merchant"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion + #region SaaS - Withdraw /// - /// 异步调用 [POST] /apps/ecpay/v1/query_platform_order 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/query_merchant_balance 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsECPayQueryPlatformOrderV1Async(this DouyinMicroAppClient client, Models.AppsECPayQueryPlatformOrderV1Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSQueryMerchantBalanceAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryMerchantBalanceRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_platform_order"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_balance") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/query_merchant_balance"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - #endregion - /// - /// 异步调用 [GET] /apps/bills 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/merchant_withdraw 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsBillsAsync(this DouyinMicroAppClient client, Models.AppsBillsRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSMerchantWithdrawAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSMerchantWithdrawRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - if (request.Signature is null) - { - request.Signature = GenerateRequestSignature(client, request, new () - { - { "merchant_id" , request.MerchantId }, - { "bill_date" , request.DateString }, - { "bill_type" , request.BillType } - }); - } + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "bills") - .SetQueryParam("app_id", request.AppId) - .SetQueryParam("merchant_id", request.MerchantId) - .SetQueryParam("bill_date", request.DateString) - .SetQueryParam("bill_type", request.BillType) - .SetQueryParam("sign", request.Signature); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "merchant_withdraw") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/merchant_withdraw"); - if (request.ComponentAppId is not null) - flurlReq.SetQueryParam("thirdparty_id", request.ComponentAppId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [GET] /apps/fund/bills 接口。 + /// 异步调用 [POST] /apps/ecpay/saas/query_withdraw_order 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsFundBillsAsync(this DouyinMicroAppClient client, Models.AppsFundBillsRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAppsECPaySaaSQueryWithdrawOrderAsync(this DouyinMicroAppClient client, Models.AppsECPaySaaSQueryWithdrawOrderRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - if (request.Signature is null) - { - request.Signature = GenerateRequestSignature(client, request, new() - { - { "merchant_id" , request.MerchantId }, - { "bill_date" , request.DateString }, - { "account_type" , request.AccountType }, - { "payment_type" , request.PaymentType }, - { "trade_type" , request.TradeType }, - }); - } + request.Signature = GenerateRequestSignature(client, request); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "fund", "bills") - .SetQueryParam("app_id", request.AppId) - .SetQueryParam("merchant_id", request.MerchantId) - .SetQueryParam("bill_date", request.DateString) - .SetQueryParam("account_type", request.AccountType) - .SetQueryParam("payment_type", request.PaymentType) - .SetQueryParam("trade_type", request.TradeType) - .SetQueryParam("sign", request.Signature); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_withdraw_order") + .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/query_withdraw_order"); - if (request.ComponentAppId is not null) - flurlReq.SetQueryParam("thirdparty_id", request.ComponentAppId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion + #endregion } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index 552c880c..d0b49657 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -73,6 +73,139 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions } #region Capacity + /// + /// 异步调用 [POST] /apps/v1/capacity/upload_material 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityUploadMaterialV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUploadMaterialV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.MaterialFileName is null) + request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "upload_material") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/upload_material") + .WithHeader("access-token", request.AccessToken); + + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); + + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + #region Capacity/AwemeCapacity + /// + /// 异步调用 [GET] /apps/v1/capacity/query_aweme_permission_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityQueryAwemePermissionListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemePermissionListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_permission_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_aweme_permission_list") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/apply_aweme_permission 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityApplyAwemePermissionV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyAwemePermissionV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_aweme_permission") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/apply_aweme_permission") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_scope_quota_detail 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityQueryScopeQuotaDetailV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryScopeQuotaDetailV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_scope_quota_detail") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_scope_quota_detail") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("permission_key", request.PermissionKey); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/apply_scope_quota 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityApplyScopeQuotaV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyScopeQuotaV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_scope_quota") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/apply_scope_quota") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region Capacity/ClueComponent /// /// 异步调用 [POST] /apps/v1/capacity/create_clue_component_info 接口。 @@ -176,100 +309,1761 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion - #endregion - #region Censor + #region Capacity/FollowAweme /// - /// 异步调用 [POST] /apps/censor/image 接口。 + /// 异步调用 [POST] /apps/v1/capacity/bind_aweme_user 接口。 /// /// REF:
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsCensorImageAsync(this DouyinMicroAppClient client, Models.AppsCensorImageRequest request, CancellationToken cancellationToken = default) + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityBindAwemeUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityBindAwemeUserV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_aweme_user") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/bind_aweme_user") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/unbind_aweme_user_bind 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityUnbindAwemeUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUnbindAwemeUserV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "censor", "image") - .WithUrl($"{client._BASEURL_LEGACY}/apps/censor/image"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_aweme_user_bind") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/unbind_aweme_user_bind") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/get_aweme_user_bind_qrcode 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityGetAwemeUserBindQrcodeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetAwemeUserBindQrcodeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_aweme_user_bind_qrcode") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/get_aweme_user_bind_qrcode") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("type", request.BindType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_aweme_user_bind_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityQueryAwemeUserBindListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemeUserBindListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_user_bind_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_aweme_user_bind_list") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("type", request.BindType) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion - #region Chat + #region Capacity/Mount /// - /// 异步调用 [GET] /apps/chat/customer_service_url 接口。 + /// 异步调用 [POST] /apps/v1/capacity/apply_capacity 接口。 /// /// REF:
- /// + ///
+ ///
+ ///
+ ///
+ /// ///
///
/// /// /// /// - [Obsolete("相关接口或字段于 2023-08-29 下线。")] - public static async Task ExecuteAppsChatCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsChatCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityApplyCapacityV1Async(this DouyinMicroAppClient client, Models.AppsCapacityApplyCapacityV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); - if (request.AppId is null) - request.AppId = client.Credentials.AppId; + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_capacity") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/apply_capacity") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_apply_status 接口。 + /// + /// REF:
+ ///
+ ///
+ ///
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityQueryApplyStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryApplyStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "chat", "customer_service_url") - .WithUrl($"{client._BASEURL_LEGACY}/apps/chat/customer_service_url") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_apply_status") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_apply_status") .WithHeader("access-token", request.AccessToken) - .SetQueryParam("appid", request.AppId) - .SetQueryParam("openid", request.OpenId) - .SetQueryParam("type", request.Type) - .SetQueryParam("scene", request.Scene); + .SetQueryParam("capacity_key", request.CapacityKey); - if (request.OrderId is not null) - flurlReq.SetQueryParam("order_id", request.OrderId); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } - if (request.IMType is not null) - flurlReq.SetQueryParam("im_type", request.IMType); + /// + /// 异步调用 [POST] /apps/v1/capacity/bind_self_mount_user 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityBindSelfMountUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityBindSelfMountUserV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_self_mount_user") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/bind_self_mount_user") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - #endregion - #region Qrcode /// - /// 异步调用 [POST] /apps/qrcode 接口。 + /// 异步调用 [POST] /apps/v1/capacity/unbind_self_mount_user 接口。 /// /// REF:
- ///
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAppsQrcodeAsync(this DouyinMicroAppClient client, Models.AppsQrcodeRequest request, CancellationToken cancellationToken = default) + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityUnbindSelfMountUserV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUnbindSelfMountUserV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "qrcode") - .WithUrl($"{client._BASEURL_LEGACY}/apps/qrcode"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_self_mount_user") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/unbind_self_mount_user") + .WithHeader("access-token", request.AccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/get_self_mount_bind_qrcode 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityGetSelfMountBindQrcodeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetSelfMountBindQrcodeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_self_mount_bind_qrcode") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/get_self_mount_bind_qrcode") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("capacity_key", request.CapacityKey); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_self_mount_user_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityQuerySelfMountUserListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySelfMountUserListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_self_mount_user_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_self_mount_user_list") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("capacity_key", request.CapacityKey) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + #region Capacity/Mount/Capcut + /// + /// 异步调用 [GET] /apps/v1/capacity/query_capcut_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityQueryCapcutInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCapcutInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_info") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_capcut_info") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_capcut_template_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityQueryCapcutTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCapcutTemplateListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_template_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_capcut_template_list") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/update_capcut_template_status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public static async Task ExecuteAppsCapacityUpdateCapcutTemplateStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateCapcutTemplateStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_capcut_template_status") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_capcut_template_status") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #endregion + + #region Capacity/SimpleQrcode + /// + /// 异步调用 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsCapacityQuerySimpleQrcodeBindListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySimpleQrcodeBindListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_simple_qr_bind_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_simple_qr_bind_list") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/add_simple_qr_bind 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsCapacityAddSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_simple_qr_bind") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/add_simple_qr_bind") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/update_simple_qr_bind 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_simple_qr_bind") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind_status") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_simple_qr_bind_status") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsCapacityDeleteSimpleQrcodeBindV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteSimpleQrcodeBindV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_simple_qr_bind") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/delete_simple_qr_bind") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Capacity/SubscribeNotification + /// + /// 异步调用 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public static async Task ExecuteAppsCapacityQuerySubscribeNotificationTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_subscribe_notification_tpl_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_subscribe_notification_tpl_list") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .SetQueryParam("classification", request.Classification) + .SetQueryParam("template_type", request.TemplateType); + + if (request.CategoryIdList is not null) + flurlReq.SetQueryParam("category_ids", string.Join(",", request.CategoryIdList)); + + if (request.Keyword is not null) + flurlReq.SetQueryParam("keyword", request.Keyword); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_app_subscribe_notification_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public static async Task ExecuteAppsCapacityQueryAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_app_subscribe_notification_tpl") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_app_subscribe_notification_tpl") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .SetQueryParam("classification", request.Classification); + + if (request.CategoryIdList is not null) + flurlReq.SetQueryParam("category_ids", string.Join(",", request.CategoryIdList)); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_created_subscribe_notification_tpl_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public static async Task ExecuteAppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_created_subscribe_notification_tpl_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_created_subscribe_notification_tpl_list") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + if (request.Status is not null) + flurlReq.SetQueryParam("status", request.Status); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/add_app_subscribe_notification_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public static async Task ExecuteAppsCapacityAddAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_app_subscribe_notification_tpl") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/add_app_subscribe_notification_tpl") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public static async Task ExecuteAppsCapacityModifyAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityModifyAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_app_subscribe_notification_tpl") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/modify_app_subscribe_notification_tpl") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public static async Task ExecuteAppsCapacityDeleteAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_app_subscribe_notification_tpl") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/delete_app_subscribe_notification_tpl") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public static async Task ExecuteAppsCapacityCreateAppSubscribeNotificationTemplateV1Async(this DouyinMicroAppClient client, Models.AppsCapacityCreateAppSubscribeNotificationTemplateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_subscribe_notification_tpl") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/create_subscribe_notification_tpl") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region TrafficPermission + /// + /// 异步调用 [GET] /apps/v1/capacity/query_traffic_permission_status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public static async Task ExecuteAppsCapacityQueryTrafficPermissionStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryTrafficPermissionStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_traffic_permission_status") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_traffic_permission_status") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/open_traffic_permission 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public static async Task ExecuteAppsCapacityOpenTrafficPermissionV1Async(this DouyinMicroAppClient client, Models.AppsCapacityOpenTrafficPermissionV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "open_traffic_permission") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/open_traffic_permission") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_ad_placement_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public static async Task ExecuteAppsCapacityQueryAdPlacementListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdPlacementListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_placement_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_ad_placement_list") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/add_ad_placement 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public static async Task ExecuteAppsCapacityAddAdPlacementV1Async(this DouyinMicroAppClient client, Models.AppsCapacityAddAdPlacementV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_ad_placement") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/add_ad_placement") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/update_ad_placement_status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public static async Task ExecuteAppsCapacityUpdateAdPlacementStatusV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateAdPlacementStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_ad_placement_status") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_ad_placement_status") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_ad_income 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public static async Task ExecuteAppsCapacityQueryAdIncomeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdIncomeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_income") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_ad_income") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_date", request.StartDateString) + .SetQueryParam("end_date", request.EndDateString); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_ad_settlement_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public static async Task ExecuteAppsCapacityQueryAdSettlementListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdSettlementListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_settlement_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_ad_settlement_list") + .WithHeader("access-token", request.AccessToken); + + if (request.PeriodString is not null) + flurlReq.SetQueryParam("month", request.PeriodString); + + if (request.Status is not null) + flurlReq.SetQueryParam("status", request.Status); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #endregion + + #region Censor + /// + /// 异步调用 [POST] /apps/censor/image 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCensorImageAsync(this DouyinMicroAppClient client, Models.AppsCensorImageRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "censor", "image") + .WithUrl($"{client._BASEURL_LEGACY}/apps/censor/image"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region CustomerService + /// + /// 异步调用 [GET] /apps/customer_service/url 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "customer_service", "url") + .WithUrl($"{client._BASEURL_LEGACY}/apps/customer_service/url") + .SetQueryParam("access_token", request.AccessToken) + .SetQueryParam("appid", request.AppId) + .SetQueryParam("openid", request.OpenId) + .SetQueryParam("type", request.Type) + .SetQueryParam("scene", request.Scene); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Chat + /// + /// 异步调用 [GET] /apps/chat/customer_service_url 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2023-08-29 下线。")] + public static async Task ExecuteAppsChatCustomerServiceUrlAsync(this DouyinMicroAppClient client, Models.AppsChatCustomerServiceUrlRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "chat", "customer_service_url") + .WithUrl($"{client._BASEURL_LEGACY}/apps/chat/customer_service_url") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("appid", request.AppId) + .SetQueryParam("openid", request.OpenId) + .SetQueryParam("type", request.Type) + .SetQueryParam("scene", request.Scene); + + if (request.OrderId is not null) + flurlReq.SetQueryParam("order_id", request.OrderId); + + if (request.IMType is not null) + flurlReq.SetQueryParam("im_type", request.IMType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region DataAnalysis + #region DataAnalysis/TransactionAnalysis + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryDealOverviewDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryDealOverviewDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_deal_overview_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_deal_overview_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_video_deal_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryVideoDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryVideoDealDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_video_deal_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_video_deal_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_live_room 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryLiveRoomV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_live_room") + .WithHeader("access-token", request.AccessToken); + + if (request.AnchorName is not null) + flurlReq.SetQueryParam("anchor_name", request.AnchorName); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_live_room_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryLiveRoomDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveRoomDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_live_room_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("live_room_id", request.LiveRoomId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_live_deal_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryLiveDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryLiveDealDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_deal_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_live_deal_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("live_room_id", request.LiveRoomId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_product_deal_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryProductDealDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryProductDealDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_product_deal_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_product_deal_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region DataAnalysis/UserAnalysis + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_behavior_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryBehaviorDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryBehaviorDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_behavior_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_behavior_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.OS is not null) + flurlReq.SetQueryParam("os", request.OS); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_real_time_user_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryRealTimeUserDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryRealTimeUserDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_real_time_user_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_real_time_user_data") + .WithHeader("access-token", request.AccessToken); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_retention_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryRetentionDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryRetentionDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_retention_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_retention_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.UserType is not null) + flurlReq.SetQueryParam("user_type", request.UserType); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.OS is not null) + flurlReq.SetQueryParam("os", request.OS); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_scene_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQuerySceneDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQuerySceneDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_scene_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_scene_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_user_portrait_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryUserPortraitDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryUserPortraitDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_user_portrait_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_user_portrait_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.UserType is not null) + flurlReq.SetQueryParam("user_type", request.UserType); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_client_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryClientDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryClientDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_client_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_client_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.UserType is not null) + flurlReq.SetQueryParam("user_type", request.UserType); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/data_analysis/query_page_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public static async Task ExecuteAppsDataAnalysisQueryPageDataV1Async(this DouyinMicroAppClient client, Models.AppsDataAnalysisQueryPageDataV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_page_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_page_data") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + if (request.HostName is not null) + flurlReq.SetQueryParam("host_name", request.HostName); + + if (request.OS is not null) + flurlReq.SetQueryParam("os", request.OS); + + if (request.VersionType is not null) + flurlReq.SetQueryParam("version_type", request.VersionType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #endregion + + #region Live + /// + /// 异步调用 [POST] /apps/upload_live_image 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUploadLiveImageAsync(this DouyinMicroAppClient client, Models.AppsUploadLiveImageRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + if (request.ImageFileName is null) + request.ImageFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "upload_live_image") + .WithUrl($"{client._BASEURL_LEGACY}/apps/upload_live_image") + .WithHeader("access-token", request.AccessToken); + + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: "image/jpeg", formDataName: "image"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.Title)), "title"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.PagePath)), "start_page"); + if (request.RoomId is not null) + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.RoomId.Value.ToString())), "room_id"); + + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/live/set_black_white_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsLiveSetBlackWhiteListV1Async(this DouyinMicroAppClient client, Models.AppsLiveSetBlackWhiteListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "live", "set_black_white_list") + .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/live/set_black_white_list") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Message + /// + /// 异步调用 [POST] /apps/message/custom/send 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsMessageCustomSendAsync(this DouyinMicroAppClient client, Models.AppsMessageCustomSendRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "message", "custom", "send") + .WithUrl($"{client._BASEURL_LEGACY}/apps/message/custom/send") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Order + /// + /// 异步调用 [POST] /apps/order/v2/push 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsOrderPushV2Async(this DouyinMicroAppClient client, Models.AppsOrderPushV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "v2", "push") + .WithUrl($"{client._BASEURL_LEGACY}/apps/order/v2/push"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/order/delete 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsOrderDeleteAsync(this DouyinMicroAppClient client, Models.AppsOrderDeleteRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "delete") + .WithUrl($"{client._BASEURL_LEGACY}/apps/order/delete"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Qrcode + /// + /// 异步调用 [POST] /apps/qrcode 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsQrcodeAsync(this DouyinMicroAppClient client, Models.AppsQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "qrcode") + .WithUrl($"{client._BASEURL_LEGACY}/apps/qrcode"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region SubscribeNotification + /// + /// 异步调用 [POST] /apps/subscribe_notification/developer/v1/notify 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2023-12-27 下线。")] + public static async Task ExecuteAppsSubscribeNotificationDeveloperNotifyV1Async(this DouyinMicroAppClient client, Models.AppsSubscribeNotificationDeveloperNotifyV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "subscribe_notification", "developer", "v1", "notify") + .WithUrl($"{client._BASEURL_LEGACY}/apps/subscribe_notification/developer/v1/notify"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region ShareConfig + /// + /// 异步调用 [POST] /apps/share_config 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsShareConfigAsync(this DouyinMicroAppClient client, Models.AppsShareConfigRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "share_config") + .WithUrl($"{client._BASEURL_LEGACY}/apps/share_config"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region TaskBox + /// + /// 异步调用 [POST] /apps/taskbox/add_task 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public static async Task ExecuteAppsTaskBoxAddTaskAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxAddTaskRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "add_task") + .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/add_task"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/taskbox/update_task 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public static async Task ExecuteAppsTaskBoxUpdateTaskAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxUpdateTaskRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update_task") + .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/update_task"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/taskbox/update/status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public static async Task ExecuteAppsTaskBoxUpdateStatusAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxUpdateStatusRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update", "status") + .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/update/status"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/taskbox/query_app_task_id 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public static async Task ExecuteAppsTaskBoxQueryAppTaskIdAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxQueryAppTaskIdRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_app_task_id") + .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/query_app_task_id"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/taskbox/query_task_video_data 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public static async Task ExecuteAppsTaskBoxQueryTaskVideoDataAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxQueryTaskVideoDataRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_task_video_data") + .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/query_task_video_data"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsGameExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsGameExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs index f7f7722b..eecce9bf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsGameExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs @@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteAppsGameExtensions + public static class DouyinMicroAppClientExecuteLegacyAppsGameExtensions { private static string GenerateRequestSignature(DouyinMicroAppClient client, TRequest request, string httpMethod, string httpLocation) where TRequest : Models.AppsGameWalletRequestBase @@ -65,7 +65,8 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl request.Signature = GenerateRequestSignature(client, request, HttpMethod.Post.Method, "/api/apps/game/wallet/get_balance"); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "get_balance"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "get_balance") + .WithUrl($"{client._BASEURL_LEGACY}/apps/game/wallet/get_balance"); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -96,7 +97,8 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl request.Signature = GenerateRequestSignature(client, request, HttpMethod.Post.Method, "/api/apps/game/wallet/game_pay"); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "game_pay"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "game_pay") + .WithUrl($"{client._BASEURL_LEGACY}/apps/game/wallet/game_pay"); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -127,7 +129,8 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl request.Signature = GenerateRequestSignature(client, request, HttpMethod.Post.Method, "/api/apps/game/wallet/add_coin"); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "add_coin"); + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "add_coin") + .WithUrl($"{client._BASEURL_LEGACY}/apps/game/wallet/add_coin"); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsStorageExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsStorageExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs index 21cfd485..aa6b507b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsStorageExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs @@ -7,7 +7,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteAppsStorageExtensions + public static class DouyinMicroAppClientExecuteLegacyAppsStorageExtensions { private static string GenerateRequestSignature(DouyinMicroAppClient client, TRequest request, string signMethod, string sessionKey) where TRequest : DouyinMicroAppRequest @@ -55,6 +55,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "set_user_storage") + .WithUrl($"{client._BASEURL_LEGACY}/apps/set_user_storage") .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("openid", request.OpenId) .SetQueryParam("signature", request.Signature) @@ -85,6 +86,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "remove_user_storage") + .WithUrl($"{client._BASEURL_LEGACY}/apps/remove_user_storage") .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("openid", request.OpenId) .SetQueryParam("signature", request.Signature) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs deleted file mode 100644 index 5e93446e..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口的响应。 - /// - public class AppsCapacityAddAwemeVideoKeywordV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs deleted file mode 100644 index 8927a70a..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/apply_aweme_permission 接口的响应。 - /// - public class AppsCapacityApplyAwemePermissionV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs deleted file mode 100644 index 6a5f2a75..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/apply_scope_quota 接口的响应。 - /// - public class AppsCapacityApplyScopeQuotaV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs deleted file mode 100644 index d9244b9c..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口的响应。 - /// - public class AppsCapacityDeleteAwemeVideoKeywordV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs deleted file mode 100644 index c4359575..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/add_alias 接口的响应。 - /// - public class AppsCapacityAddAliasV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs deleted file mode 100644 index 858e763f..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/delete_alias 接口的响应。 - /// - public class AppsCapacityDeleteAliasV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs deleted file mode 100644 index 9ee8875f..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/modify_alias 接口的响应。 - /// - public class AppsCapacityModifyAliasV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs deleted file mode 100644 index c74f352e..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/set_search_tag 接口的响应。 - /// - public class AppsCapacitySetSearchTagV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs deleted file mode 100644 index c0bc74e5..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/bind_aweme_user 接口的响应。 - /// - public class AppsCapacityBindAwemeUserV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs deleted file mode 100644 index d18d94f9..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/apply_capacity 接口的响应。 - /// - public class AppsCapacityApplyCapacityV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs deleted file mode 100644 index 38b9846a..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/bind_self_mount_user 接口的响应。 - /// - public class AppsCapacityBindSelfMountUserV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs deleted file mode 100644 index 020a46c1..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/update_capcut_template_status 接口的响应。 - /// - public class AppsCapacityUpdateCapcutTemplateStatusV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs deleted file mode 100644 index d461e550..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/add_simple_qr_bind 接口的响应。 - /// - public class AppsCapacityAddSimpleQrcodeBindV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs deleted file mode 100644 index 4852d4ed..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口的响应。 - /// - public class AppsCapacityDeleteSimpleQrcodeBindV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs deleted file mode 100644 index 2e4479a5..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口的响应。 - /// - public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs deleted file mode 100644 index 0c40bbaa..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind 接口的响应。 - /// - public class AppsCapacityUpdateSimpleQrcodeBindV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs deleted file mode 100644 index 5c63f4bf..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口的响应。 - /// - public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs deleted file mode 100644 index 9f19e223..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口的响应。 - /// - public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs deleted file mode 100644 index 217a60c4..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口的响应。 - /// - public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs deleted file mode 100644 index 92428d23..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/add_ad_placement 接口的响应。 - /// - public class AppsCapacityAddAdPlacementV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs deleted file mode 100644 index 7749c9f4..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/open_traffic_permission 接口的响应。 - /// - public class AppsCapacityOpenTrafficPermissionV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs deleted file mode 100644 index 16dce657..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/capacity/update_ad_placement_status 接口的响应。 - /// - public class AppsCapacityUpdateAdPlacementStatusV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs deleted file mode 100644 index ad5b2ba8..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/v1/live/set_black_white_list 接口的响应。 - /// - public class AppsLiveSetBlackWhiteListV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs deleted file mode 100644 index 024b5bca..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendResponse.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/message/custom/send 接口的响应。 - /// - public class AppsMessageCustomSendResponse : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("errno")] - [System.Text.Json.Serialization.JsonPropertyName("errno")] - public override long ErrorCode { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs deleted file mode 100644 index 2d023b7f..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigResponse.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/share_config 接口的响应。 - /// - public class AppsShareConfigResponse : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - - /// - /// 获取或设置返回的数据。 - /// - [Newtonsoft.Json.JsonProperty("data")] - [System.Text.Json.Serialization.JsonPropertyName("data")] - public string? Data { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs deleted file mode 100644 index d634245e..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/subscribe_notification/developer/v1/notify 接口的响应。 - /// - public class AppsSubscribeNotificationDeveloperNotifyV1Response : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs deleted file mode 100644 index a6fccbfe..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs +++ /dev/null @@ -1,25 +0,0 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [POST] /apps/taskbox/query_app_task_id 接口的响应。 - /// - public class AppsTaskBoxQueryAppTaskIdResponse : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("error")] - [System.Text.Json.Serialization.JsonPropertyName("error")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("message")] - [System.Text.Json.Serialization.JsonPropertyName("message")] - public override string? ErrorMessage { get; set; } - - /// - /// 获取或设置任务 ID 列表。 - /// - [Newtonsoft.Json.JsonProperty("data")] - [System.Text.Json.Serialization.JsonPropertyName("data")] - public long[] TaskIdList { get; set; } = default!; - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs new file mode 100644 index 00000000..07b5a1ef --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口的响应。 + /// + public class AppsCapacityAddAwemeVideoKeywordV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs new file mode 100644 index 00000000..8a922979 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口的响应。 + /// + public class AppsCapacityDeleteAwemeVideoKeywordV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs index 71b00b08..07bdaef1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs @@ -11,7 +11,7 @@ public class AppsCapacityQueryAwemeVideoKeywordListV1Request : DouyinMicroAppReq ///
[Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -19,6 +19,6 @@ public class AppsCapacityQueryAwemeVideoKeywordListV1Request : DouyinMicroAppReq /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 10; + public int PageSize { get; set; } = 10; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs index 7893ad32..ec5813bf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs @@ -59,16 +59,6 @@ public class Keyword } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityAddAliasV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityAddAliasV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityAddAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityAddAliasV1Response.cs new file mode 100644 index 00000000..10c0da39 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityAddAliasV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/add_alias 接口的响应。 + /// + public class AppsCapacityAddAliasV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs new file mode 100644 index 00000000..71e2d42a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/delete_alias 接口的响应。 + /// + public class AppsCapacityDeleteAliasV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs new file mode 100644 index 00000000..003205cc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/modify_alias 接口的响应。 + /// + public class AppsCapacityModifyAliasV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQueryAliasListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQueryAliasListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQueryAliasListV1Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQueryAliasListV1Response.cs index 2f11598d..8660b5f3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQueryAliasListV1Response.cs @@ -73,16 +73,6 @@ public class AliasItem } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs index 9d811f99..3801475c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs @@ -59,16 +59,6 @@ public class TagItem } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs new file mode 100644 index 00000000..438a96b8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/set_search_tag 接口的响应。 + /// + public class AppsCapacitySetSearchTagV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs index 013a3d79..9fdb0e65 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.cs @@ -66,7 +66,7 @@ public class RejectReason ///
[Newtonsoft.Json.JsonProperty("search_key_word")] [System.Text.Json.Serialization.JsonPropertyName("search_key_word")] - public string SearchKeywordList { get; set; } = default!; + public string[] SearchKeywordList { get; set; } = default!; /// /// 获取或设置对应功能服务页面的路径链接。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCategory/AppsCategoryQueryAppCategoriesV1Request.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCategory/AppsCategoryQueryAppCategoriesV1Request.cs index dccd2768..f5bc54c3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCategory/AppsCategoryQueryAppCategoriesV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [GET] /apps/v1/category/query_app_categories 接口的请求。 + /// 表示 [GET] /apps/v1/category/query_app_categories/ 接口的请求。 /// public class AppsCategoryQueryAppCategoriesV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCategory/AppsCategoryQueryAppCategoriesV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCategory/AppsCategoryQueryAppCategoriesV1Response.cs index d23d4d6b..088f10a7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCategory/AppsCategoryQueryAppCategoriesV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [GET] /apps/v1/category/query_app_categories 接口的响应。 + /// 表示 [GET] /apps/v1/category/query_app_categories/ 接口的响应。 /// public class AppsCategoryQueryAppCategoriesV1Response : DouyinMicroAppResponse { @@ -117,16 +117,6 @@ public class Certificate } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCensor/AppsCensorImageV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCensor/AppsCensorImageV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCensor/AppsCensorImageV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Censor/AppsCensorImageV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCensor/AppsCensorImageV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs deleted file mode 100644 index 08fdf7d4..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsResponse.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Linq; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [GET] /apps/bills 接口的响应。 - /// - public class AppsBillsResponse : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - - public override bool IsSuccessful() - { - return base.IsSuccessful() && GetRawBytes().Any(); - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs deleted file mode 100644 index 0fe7471e..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsResponse.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Linq; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models -{ - /// - /// 表示 [GET] /apps/fund/bills 接口的响应。 - /// - public class AppsFundBillsResponse : DouyinMicroAppResponse - { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - - public override bool IsSuccessful() - { - return base.IsSuccessful() && GetRawBytes().Any(); - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetBaseV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetBaseV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetBaseV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetBaseV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetBaseV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetLikeV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetLikeV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetLikeV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetLikeV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetLikeV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetPlayV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetPlayV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetPlayV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetPlayV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetPlayV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetShareV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetShareV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetShareV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemBCGetShareV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemBCGetShareV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetBaseV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetBaseV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetBaseV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetBaseV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetBaseV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetLikeV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetLikeV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetLikeV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetLikeV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetLikeV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetPlayV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetPlayV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetPlayV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetPlayV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetPlayV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetShareV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetShareV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetShareV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/AppsItemGetShareV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/AppsItemGetShareV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentReplyV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentReplyV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentReplyV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentReplyV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCListCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCListCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCReplyCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCReplyCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCReplyCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCReplyCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCTopCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCTopCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCTopCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemBCTopCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemBCTopCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentReplyV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentReplyV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentReplyV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentReplyV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentReplyV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemListCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemListCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemReplyCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemReplyCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemReplyCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemReplyCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemReplyCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemTopCommentV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemTopCommentV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemTopCommentV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Item/Comment/AppsItemTopCommentV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsItem/Comment/AppsItemTopCommentV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsQrcode/AppsQrcodeCreateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsQrcode/AppsQrcodeCreateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsQrcode/AppsQrcodeCreateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Qrcode/AppsQrcodeCreateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsQrcode/AppsQrcodeCreateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateLiveV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateLiveV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateLiveV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateLiveV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateLiveV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateVideoV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateVideoV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateVideoV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskCreateVideoV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskCreateVideoV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffLiveV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffLiveV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffLiveV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffLiveV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffLiveV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffVideoV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffVideoV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffVideoV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Task/AppsTaskWriteoffVideoV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTask/AppsTaskWriteoffVideoV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkGenerateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkGenerateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkGenerateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkGenerateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkGenerateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryInfoV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryInfoV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryInfoV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryInfoV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryQuotaV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryQuotaV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryQuotaV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlLink/AppsUrlLinkQueryQuotaV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlGenerateSchemaV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlGenerateSchemaV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlGenerateSchemaV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlGenerateSchemaV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUrlSchema/AppsUrlQuerySchemaV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoBCQueryV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoBCQueryV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoBCQueryV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoBCQueryV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoBCQueryV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoQueryV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoQueryV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoQueryV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Video/AppsVideoQueryV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsVideo/AppsVideoQueryV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs similarity index 70% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs index 13174961..3c8ba166 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Response.cs @@ -18,16 +18,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs index 66274b8c..00d6720c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/apply_aweme_permission 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityApplyAwemePermissionV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs new file mode 100644 index 00000000..eb44ccce --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/apply_aweme_permission 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public class AppsCapacityApplyAwemePermissionV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs index a61fe89c..e65b388d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/apply_scope_quota 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityApplyScopeQuotaV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs new file mode 100644 index 00000000..eab91fc0 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/apply_scope_quota 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public class AppsCapacityApplyScopeQuotaV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs similarity index 78% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs index f0f16490..e025d4a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_aweme_permission_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryAwemePermissionListV1Request : DouyinMicroAppRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs index 98626591..67d70f6a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_aweme_permission_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryAwemePermissionListV1Response : DouyinMicroAppResponse { public static class Types @@ -108,16 +111,6 @@ public class Scope } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs index 8a1c308a..2b308a8f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_scope_quota_detail 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryScopeQuotaDetailV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs index 4a2e1ae4..8124b512 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_scope_quota_detail 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryScopeQuotaDetailV1Response : DouyinMicroAppResponse { public static class Types @@ -75,16 +78,6 @@ public class Scope } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs index 3fe6210e..f8b168a7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/bind_aweme_user 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityBindAwemeUserV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs new file mode 100644 index 00000000..635376c3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/bind_aweme_user 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public class AppsCapacityBindAwemeUserV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs index a70e1567..44c45a94 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/get_aweme_user_bind_qrcode 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityGetAwemeUserBindQrcodeV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs index a75b419e..aa485643 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/get_aweme_user_bind_qrcode 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityGetAwemeUserBindQrcodeV1Response : DouyinMicroAppResponse { public static class Types @@ -25,16 +28,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs similarity index 84% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs index 9f815afe..6934d0c3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_aweme_user_bind_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryAwemeUserBindListV1Request : DouyinMicroAppRequest { /// @@ -18,7 +21,7 @@ public class AppsCapacityQueryAwemeUserBindListV1Request : DouyinMicroAppRequest /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -26,6 +29,6 @@ public class AppsCapacityQueryAwemeUserBindListV1Request : DouyinMicroAppRequest /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 10; + public int PageSize { get; set; } = 10; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs index 437f0feb..b0d2a397 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_aweme_user_bind_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryAwemeUserBindListV1Response : DouyinMicroAppResponse { public static class Types @@ -66,16 +69,6 @@ public class User } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.cs similarity index 78% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.cs index fd446015..3dbc7026 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/unbind_aweme_user_bind 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityUnbindAwemeUserV1Request : AppsCapacityBindAwemeUserV1Request { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Response.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Response.cs index f949322f..6f964aa5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/unbind_aweme_user_bind 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityUnbindAwemeUserV1Response : AppsCapacityBindAwemeUserV1Response { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs index 9c659602..dccd77d0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/apply_capacity 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityApplyCapacityV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs new file mode 100644 index 00000000..13c96174 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/apply_capacity 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public class AppsCapacityApplyCapacityV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs index 537beb81..5560c527 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/bind_self_mount_user 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityBindSelfMountUserV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs new file mode 100644 index 00000000..4f697698 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/bind_self_mount_user 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public class AppsCapacityBindSelfMountUserV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs index da67cdc6..d790d464 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/get_self_mount_bind_qrcode 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityGetSelfMountBindQrcodeV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs index d0ab0771..58a16e50 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/get_self_mount_bind_qrcode 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityGetSelfMountBindQrcodeV1Response : DouyinMicroAppResponse { public static class Types @@ -25,16 +28,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs index 47cf147a..6892be12 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_apply_status 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryApplyStatusV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs similarity index 75% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs index 945e61c2..6b2d74ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_apply_status 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryApplyStatusV1Response : DouyinMicroAppResponse { public static class Types @@ -25,16 +28,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs similarity index 84% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs index 9824a05c..3eaae40b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_self_mount_user_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQuerySelfMountUserListV1Request : DouyinMicroAppRequest { /// @@ -18,7 +21,7 @@ public class AppsCapacityQuerySelfMountUserListV1Request : DouyinMicroAppRequest /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -26,6 +29,6 @@ public class AppsCapacityQuerySelfMountUserListV1Request : DouyinMicroAppRequest /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 10; + public int PageSize { get; set; } = 10; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs index b066a030..4da60fca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_self_mount_user_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQuerySelfMountUserListV1Response : DouyinMicroAppResponse { public static class Types @@ -66,16 +69,6 @@ public class User } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.cs index 40a9dd3a..d64d306f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/unbind_self_mount_user 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityUnbindSelfMountUserV1Request : AppsCapacityBindSelfMountUserV1Request { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Response.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Response.cs index a192b669..989077bb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/unbind_self_mount_user 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityUnbindSelfMountUserV1Response : AppsCapacityBindSelfMountUserV1Response { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs index a2b76fea..4a73cae8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_capcut_info 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryCapcutInfoV1Request : DouyinMicroAppRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs index cb9b438e..d6c6d52e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_capcut_info 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryCapcutInfoV1Response : DouyinMicroAppResponse { public static class Types @@ -32,16 +35,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs index 9d7896b5..5c9ad34f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_capcut_template_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryCapcutTemplateListV1Request : DouyinMicroAppRequest { /// @@ -11,7 +14,7 @@ public class AppsCapacityQueryCapcutTemplateListV1Request : DouyinMicroAppReques /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -19,6 +22,6 @@ public class AppsCapacityQueryCapcutTemplateListV1Request : DouyinMicroAppReques /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 10; + public int PageSize { get; set; } = 10; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs index 3a3e0e3b..6f08a9bf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_capcut_template_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityQueryCapcutTemplateListV1Response : DouyinMicroAppResponse { public static class Types @@ -107,16 +110,6 @@ public class AuditReason } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs index 18f99801..85233fb3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/update_capcut_template_status 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] public class AppsCapacityUpdateCapcutTemplateStatusV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs new file mode 100644 index 00000000..d1127321 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/update_capcut_template_status 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-01 下线。")] + public class AppsCapacityUpdateCapcutTemplateStatusV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs index 0a1ecf5a..ae9a737c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/add_simple_qr_bind 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsCapacityAddSimpleQrcodeBindV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs new file mode 100644 index 00000000..0738ce2e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/add_simple_qr_bind 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public class AppsCapacityAddSimpleQrcodeBindV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs index 2cf6c762..bf33b927 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsCapacityDeleteSimpleQrcodeBindV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs new file mode 100644 index 00000000..fc2067bc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/delete_simple_qr_bind 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public class AppsCapacityDeleteSimpleQrcodeBindV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs similarity index 80% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs index d3a3edf2..5f350458 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsCapacityQuerySimpleQrcodeBindListV1Request : DouyinMicroAppRequest { /// @@ -11,7 +14,7 @@ public class AppsCapacityQuerySimpleQrcodeBindListV1Request : DouyinMicroAppRequ /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -19,6 +22,6 @@ public class AppsCapacityQuerySimpleQrcodeBindListV1Request : DouyinMicroAppRequ /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 10; + public int PageSize { get; set; } = 10; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs index 485ed094..b7ad9da1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_simple_qr_bind_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsCapacityQuerySimpleQrcodeBindListV1Response : DouyinMicroAppResponse { public static class Types @@ -96,16 +99,6 @@ public class Qrcode } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs index c7649535..396db15d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs new file mode 100644 index 00000000..00ccea3c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind_status 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public class AppsCapacityUpdateSimpleQrcodeBindStatusV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs index 8b2d38d6..5bd1cf77 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsCapacityUpdateSimpleQrcodeBindV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs new file mode 100644 index 00000000..5f314712 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/update_simple_qr_bind 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] + public class AppsCapacityUpdateSimpleQrcodeBindV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs index 62c3247d..deadfe3e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/add_app_subscribe_notification_tpl 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityAddAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs similarity index 71% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs index 8cd427c4..2286a711 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/add_app_subscribe_notification_tpl 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityAddAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { public static class Types @@ -18,16 +21,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs index 25658836..aa1a9585 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs new file mode 100644 index 00000000..6aa9decd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/create_subscribe_notification_tpl 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public class AppsCapacityCreateAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs index cac0fc83..0b319d9f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs new file mode 100644 index 00000000..b3dbecc2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/delete_app_subscribe_notification_tpl 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public class AppsCapacityDeleteAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs index ec8abba5..c465ab52 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs new file mode 100644 index 00000000..dc644403 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/modify_app_subscribe_notification_tpl 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] + public class AppsCapacityModifyAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs index 880d1f74..16f08789 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_app_subscribe_notification_tpl 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Request : DouyinMicroAppRequest { /// @@ -27,7 +29,7 @@ public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Request : Douyin /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -35,6 +37,6 @@ public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Request : Douyin /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 50; + public int PageSize { get; set; } = 50; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs index a58ba513..dee3ce4a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_app_subscribe_notification_tpl 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityQueryAppSubscribeNotificationTemplateV1Response : DouyinMicroAppResponse { public static class Types @@ -80,16 +83,6 @@ public class Template } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs index b014aa4a..643cc89f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request.cs @@ -1,10 +1,11 @@ -using System.Collections.Generic; +using System; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_created_subscribe_notification_tpl_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request : DouyinMicroAppRequest { /// @@ -20,7 +21,7 @@ public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -28,6 +29,6 @@ public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Request /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 50; + public int PageSize { get; set; } = 50; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs index f9a2c1ed..50080b2a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_created_subscribe_notification_tpl_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response : DouyinMicroAppResponse { public static class Types @@ -80,16 +83,6 @@ public class Template } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs index e857f050..192af10a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityQuerySubscribeNotificationTemplateListV1Request : DouyinMicroAppRequest { /// @@ -41,7 +43,7 @@ public class AppsCapacityQuerySubscribeNotificationTemplateListV1Request : Douyi /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页数量。 @@ -49,6 +51,6 @@ public class AppsCapacityQuerySubscribeNotificationTemplateListV1Request : Douyi /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 50; + public int PageSize { get; set; } = 50; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs index f971b182..4f670e8f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_subscribe_notification_tpl_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-30 下线。")] public class AppsCapacityQuerySubscribeNotificationTemplateListV1Response : DouyinMicroAppResponse { public static class Types @@ -73,16 +76,6 @@ public class Template } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs index 7672a054..bb3867d5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/add_ad_placement 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityAddAdPlacementV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs new file mode 100644 index 00000000..4f8bff35 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/add_ad_placement 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public class AppsCapacityAddAdPlacementV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs index 0bde8bb8..4fd4fb27 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/open_traffic_permission 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityOpenTrafficPermissionV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs new file mode 100644 index 00000000..9e7c96ae --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/open_traffic_permission 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public class AppsCapacityOpenTrafficPermissionV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs index 71074d2f..6e96c8f7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_income 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdIncomeV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs similarity index 82% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs index 3f122903..5dbcad32 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_income 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdIncomeV1Response : DouyinMicroAppResponse { public static class Types @@ -38,16 +41,6 @@ public class IncomeData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs similarity index 78% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs index aff2531f..9d3304d1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_placement_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdPlacementListV1Request : DouyinMicroAppRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs index 383a23d7..248f758d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_placement_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdPlacementListV1Response : DouyinMicroAppResponse { public static class Types @@ -52,16 +55,6 @@ public class AdPlacement } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs index e87f5051..221fb72e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_settlement_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdSettlementListV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs index 91ec76e2..63e00245 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_settlement_list 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdSettlementListV1Response : DouyinMicroAppResponse { public static class Types @@ -66,16 +69,6 @@ public class Settlement } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs index c2ecf797..86ef712c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_traffic_permission_status 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryTrafficPermissionStatusV1Request : DouyinMicroAppRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs index 35d6cbc7..bddb08e4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_traffic_permission_status 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryTrafficPermissionStatusV1Response : DouyinMicroAppResponse { public static class Types @@ -27,16 +30,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs index bb1bfc92..6955b538 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/v1/capacity/update_ad_placement_status 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityUpdateAdPlacementStatusV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs new file mode 100644 index 00000000..63e207b1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/update_ad_placement_status 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-02-29 下线。")] + public class AppsCapacityUpdateAdPlacementStatusV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs index 12322fab..37fd3393 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsCustomerServiceUrlRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs similarity index 69% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs index 9763e922..84e19c2c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlResponse.cs @@ -18,16 +18,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs index 59ee84d5..c8f98884 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryDealOverviewDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs index 39cb0b84..99d045be 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_deal_overview_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryDealOverviewDataV1Response : DouyinMicroAppResponse { public static class Types @@ -90,16 +93,6 @@ public class DealData : DealOverviewData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs index 5c8d9817..d1f77d8b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_live_deal_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryLiveDealDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs index b83b75e9..f8e1ba21 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_live_deal_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryLiveDealDataV1Response : DouyinMicroAppResponse { public static class Types @@ -104,16 +107,6 @@ public class LiveDealData : LiveDealOverviewData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs index 05173263..a805d037 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryLiveRoomDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs index 3b71bacb..fde8b4b5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryLiveRoomDataV1Response : DouyinMicroAppResponse { public static class Types @@ -118,16 +121,6 @@ public class LiveData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs index 01bee2e3..c0d08d9a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryLiveRoomV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs index bb1a6c97..2548506a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_live_room 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryLiveRoomV1Response : DouyinMicroAppResponse { public static class Types @@ -59,16 +62,6 @@ public class LiveRoom } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs index 919a43ab..618db882 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_product_deal_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryProductDealDataV1Request : DouyinMicroAppRequest { /// @@ -32,7 +35,7 @@ public class AppsDataAnalysisQueryProductDealDataV1Request : DouyinMicroAppReque /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Page { get; set; } = 1; + public int PageNumber { get; set; } = 1; /// /// 获取或设置分页每页页数。 @@ -40,6 +43,6 @@ public class AppsDataAnalysisQueryProductDealDataV1Request : DouyinMicroAppReque /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public int Limit { get; set; } = 10; + public int PageSize { get; set; } = 10; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs index bb1f2fcb..6b19f4c3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_product_deal_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryProductDealDataV1Response : DouyinMicroAppResponse { public static class Types @@ -67,16 +70,6 @@ public class ProductDealData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs index ca5bb58d..965d0d0e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_video_deal_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryVideoDealDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs index 8c1ba165..76137766 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_video_deal_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryVideoDealDataV1Response : DouyinMicroAppResponse { public static class Types @@ -76,16 +79,6 @@ public class VideoDealData : VideoDealOverviewData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs index 4db37736..34018fa7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_behavior_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryBehaviorDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs index 65add5b9..af54c71d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_behavior_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryBehaviorDataV1Response : DouyinMicroAppResponse { public static class Types @@ -94,16 +97,6 @@ public class BehaviorData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs index 217e1b9f..f53735b8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_client_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryClientDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs index 230691f0..a4e115a6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_client_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryClientDataV1Response : DouyinMicroAppResponse { public static class Types @@ -59,16 +62,6 @@ public class ClientData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs index 6a6c3ffb..6263ba95 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_page_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryPageDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs index 2ad325d0..6590bafa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_page_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryPageDataV1Response : DouyinMicroAppResponse { public static class Types @@ -59,16 +62,6 @@ public class PageData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs index 7229bd3c..a160889a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_real_time_user_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryRealTimeUserDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs index 7fee8262..6d66a54c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_real_time_user_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryRealTimeUserDataV1Response : DouyinMicroAppResponse { public static class Types @@ -45,16 +48,6 @@ public class BehaviorData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs index 652197e8..112227f3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_retention_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryRetentionDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs index 4d365509..ad5da9b6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_retention_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryRetentionDataV1Response : DouyinMicroAppResponse { public static class Types @@ -65,16 +68,6 @@ public class RetentionRate } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs index 54759339..682c66c9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_scene_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQuerySceneDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs index cf1c52d4..1c06c18a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_scene_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQuerySceneDataV1Response : DouyinMicroAppResponse { public static class Types @@ -232,16 +235,6 @@ public class ScenePVData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs index acf5cd72..987cabf0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_user_portrait_data 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryUserPortraitDataV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs index 4f85d3be..6c454aae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/data_analysis/query_user_portrait_data 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-02 下线。")] public class AppsDataAnalysisQueryUserPortraitDataV1Response : DouyinMicroAppResponse { public static class Types @@ -66,16 +69,6 @@ public class UserPortraitData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs similarity index 84% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs index 3aa74030..816daf6e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Request.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsLiveSetBlackWhiteListV1Request : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs new file mode 100644 index 00000000..5b41f65f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/live/set_black_white_list 接口的响应。 + /// + public class AppsLiveSetBlackWhiteListV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageRequest.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageRequest.cs index f7af9ffb..30aaa263 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageRequest.cs @@ -8,7 +8,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models public class AppsUploadLiveImageRequest : DouyinMicroAppRequest { /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageResponse.cs similarity index 73% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageResponse.cs index 726329f3..d38cf4d7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Live/AppsUploadLiveImageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/upload_live_image 接口的响应。 /// public class AppsUploadLiveImageResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置会话密钥。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Message/AppsMessageCustomSendRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Message/AppsMessageCustomSendRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Message/AppsMessageCustomSendRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Message/AppsMessageCustomSendResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Message/AppsMessageCustomSendResponse.cs new file mode 100644 index 00000000..b0e985d7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Message/AppsMessageCustomSendResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/message/custom/send 接口的响应。 + /// + public class AppsMessageCustomSendResponse : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderDeleteRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderDeleteRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderDeleteResponse.cs similarity index 70% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderDeleteResponse.cs index a491a4a2..53155c42 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderDeleteResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderDeleteResponse.cs @@ -5,15 +5,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// public class AppsOrderDeleteResponse : DouyinMicroAppResponse { - /// + /// + /// 获取或设置错误码。 + /// [Newtonsoft.Json.JsonProperty("err_code")] [System.Text.Json.Serialization.JsonPropertyName("err_code")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } + public int ErrorCode { get; set; } /// /// 获取或设置 JSON 格式的生活服务关联业务推送结果与业务信息。 @@ -21,5 +18,10 @@ public class AppsOrderDeleteResponse : DouyinMicroAppResponse [Newtonsoft.Json.JsonProperty("body")] [System.Text.Json.Serialization.JsonPropertyName("body")] public string? DataJson { get; set; } + + public override bool IsSuccessful() + { + return base.IsSuccessful() && ErrorCode == 0; + } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderPushV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderPushV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderPushV2Response.cs similarity index 64% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderPushV2Response.cs index 2ffac79f..1b9c8f08 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/Order/AppsOrderPushV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Order/AppsOrderPushV2Response.cs @@ -1,19 +1,16 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/order/v2/push 接口的响应。 /// public class AppsOrderPushV2Response : DouyinMicroAppResponse { - /// + /// + /// 获取或设置错误码。 + /// [Newtonsoft.Json.JsonProperty("err_code")] [System.Text.Json.Serialization.JsonPropertyName("err_code")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } + public int ErrorCode { get; set; } /// /// 获取或设置 JSON 格式的生活服务关联业务推送结果与业务信息。 @@ -21,5 +18,10 @@ public class AppsOrderPushV2Response : DouyinMicroAppResponse [Newtonsoft.Json.JsonProperty("body")] [System.Text.Json.Serialization.JsonPropertyName("body")] public string? DataJson { get; set; } + + public override bool IsSuccessful() + { + return base.IsSuccessful() && ErrorCode == 0; + } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/ShareConfig/AppsShareConfigRequest.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/ShareConfig/AppsShareConfigRequest.cs index 9810bd5b..97fa6bc7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/ShareConfig/AppsShareConfigRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/ShareConfig/AppsShareConfigRequest.cs @@ -11,7 +11,7 @@ public class AppsShareConfigRequest : DouyinMicroAppRequest public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/ShareConfig/AppsShareConfigResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/ShareConfig/AppsShareConfigResponse.cs new file mode 100644 index 00000000..8eeebe89 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/ShareConfig/AppsShareConfigResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/share_config 接口的响应。 + /// + public class AppsShareConfigResponse : DouyinMicroAppResponse + { + /// + /// 获取或设置返回的数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public string? Data { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs similarity index 86% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs index 67902619..24c055ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.cs @@ -1,10 +1,12 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/subscribe_notification/developer/v1/notify 接口的请求。 /// + [Obsolete("相关接口或字段于 2023-12-27 下线。")] public class AppsSubscribeNotificationDeveloperNotifyV1Request : DouyinMicroAppRequest { /// @@ -13,7 +15,7 @@ public class AppsSubscribeNotificationDeveloperNotifyV1Request : DouyinMicroAppR public override string? AccessToken { get; set; } /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 /// [Newtonsoft.Json.JsonProperty("app_id")] [System.Text.Json.Serialization.JsonPropertyName("app_id")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs new file mode 100644 index 00000000..a81eeaeb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Response.cs @@ -0,0 +1,12 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/subscribe_notification/developer/v1/notify 接口的响应。 + /// + [Obsolete("相关接口或字段于 2023-12-27 下线。")] + public class AppsSubscribeNotificationDeveloperNotifyV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs index da986a8c..a51e1c3d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskRequest.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,13 +6,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/add_task 接口的请求。 /// - public class AppsTaskBoxAddTaskRequest : DouyinMicroAppRequest + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxAddTaskRequest : AppsTaskBoxRequestBase { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - /// /// 获取或设置任务名称。 /// @@ -26,13 +23,6 @@ public class AppsTaskBoxAddTaskRequest : DouyinMicroAppRequest [System.Text.Json.Serialization.JsonPropertyName("task_settle_type")] public int TaskSettleType { get; set; } - /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 - /// - [Newtonsoft.Json.JsonProperty("appid")] - [System.Text.Json.Serialization.JsonPropertyName("appid")] - public string? AppId { get; set; } - /// /// 获取或设置小程序页面地址。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs similarity index 67% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs index e1460eae..c88aac1d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskResponse.cs @@ -1,9 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/taskbox/add_task 接口的响应。 /// - public class AppsTaskBoxAddTaskResponse : DouyinMicroAppResponse + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxAddTaskResponse : AppsTaskBoxResponseBase { public static class Types { @@ -19,16 +22,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("error")] - [System.Text.Json.Serialization.JsonPropertyName("error")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("message")] - [System.Text.Json.Serialization.JsonPropertyName("message")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs similarity index 53% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs index 4cd673e8..3b49570c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.cs @@ -1,22 +1,13 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/taskbox/query_app_task_id 接口的请求。 /// - public class AppsTaskBoxQueryAppTaskIdRequest : DouyinMicroAppRequest + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxQueryAppTaskIdRequest : AppsTaskBoxRequestBase { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - - /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 - /// - [Newtonsoft.Json.JsonProperty("appid")] - [System.Text.Json.Serialization.JsonPropertyName("appid")] - public string? AppId { get; set; } - /// /// 获取或设置创建时间起始时间戳。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs new file mode 100644 index 00000000..c19a6608 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.cs @@ -0,0 +1,18 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/taskbox/query_app_task_id 接口的响应。 + /// + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxQueryAppTaskIdResponse : AppsTaskBoxResponseBase + { + /// + /// 获取或设置任务 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public long[] TaskIdList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs similarity index 63% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs index 52edfb6c..ac806e0e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,20 +6,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/query_task_video_data 接口的请求。 /// - public class AppsTaskBoxQueryTaskVideoDataRequest : DouyinMicroAppRequest + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxQueryTaskVideoDataRequest : AppsTaskBoxRequestBase { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - - /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 - /// - [Newtonsoft.Json.JsonProperty("appid")] - [System.Text.Json.Serialization.JsonPropertyName("appid")] - public string? AppId { get; set; } - /// /// 获取或设置任务 ID 列表。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs index 3449649e..4b958cc5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.cs @@ -1,9 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/taskbox/query_task_video_data 接口的响应。 /// - public class AppsTaskBoxQueryTaskVideoDataResponse : DouyinMicroAppResponse + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxQueryTaskVideoDataResponse : AppsTaskBoxResponseBase { public static class Types { @@ -118,16 +121,6 @@ public class Video } } - /// - [Newtonsoft.Json.JsonProperty("error")] - [System.Text.Json.Serialization.JsonPropertyName("error")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("message")] - [System.Text.Json.Serialization.JsonPropertyName("message")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置视频列表。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs similarity index 51% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs index 13bf6c09..0421a739 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.cs @@ -1,15 +1,13 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/taskbox/update/status 接口的请求。 /// - public class AppsTaskBoxUpdateStatusRequest : DouyinMicroAppRequest + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxUpdateStatusRequest : AppsTaskBoxRequestBase { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - /// /// 获取或设置任务 ID。 /// @@ -23,12 +21,5 @@ public class AppsTaskBoxUpdateStatusRequest : DouyinMicroAppRequest [Newtonsoft.Json.JsonProperty("task_status")] [System.Text.Json.Serialization.JsonPropertyName("task_status")] public int TaskStatus { get; set; } - - /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 - /// - [Newtonsoft.Json.JsonProperty("appid")] - [System.Text.Json.Serialization.JsonPropertyName("appid")] - public string? AppId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs similarity index 56% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs index d086c444..42dcf052 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.cs @@ -1,9 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/taskbox/update/status 接口的响应。 /// - public class AppsTaskBoxUpdateStatusResponse : DouyinMicroAppResponse + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxUpdateStatusResponse : AppsTaskBoxResponseBase { public static class Types { @@ -12,16 +15,6 @@ public class Data : AppsTaskBoxAddTaskResponse.Types.Data } } - /// - [Newtonsoft.Json.JsonProperty("error")] - [System.Text.Json.Serialization.JsonPropertyName("error")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("message")] - [System.Text.Json.Serialization.JsonPropertyName("message")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs index 74d0dde0..362373c6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models @@ -5,13 +6,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models /// /// 表示 [POST] /apps/taskbox/update_task 接口的请求。 /// - public class AppsTaskBoxUpdateTaskRequest : DouyinMicroAppRequest + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxUpdateTaskRequest : AppsTaskBoxRequestBase { - /// - [Newtonsoft.Json.JsonProperty("access_token")] - [System.Text.Json.Serialization.JsonPropertyName("access_token")] - public override string? AccessToken { get; set; } - /// /// 获取或设置任务 ID。 /// @@ -33,13 +30,6 @@ public class AppsTaskBoxUpdateTaskRequest : DouyinMicroAppRequest [System.Text.Json.Serialization.JsonPropertyName("task_settle_type")] public int TaskSettleType { get; set; } - /// - /// 获取或设置小程序的 AppId。如果不指定将使用构造 时的 参数。 - /// - [Newtonsoft.Json.JsonProperty("appid")] - [System.Text.Json.Serialization.JsonPropertyName("appid")] - public string? AppId { get; set; } - /// /// 获取或设置小程序页面地址。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs similarity index 56% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs index 18f94821..c31993e6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.cs @@ -1,9 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/taskbox/update_task 接口的响应。 /// - public class AppsTaskBoxUpdateTaskResponse : DouyinMicroAppResponse + [Obsolete("相关接口或字段于 2024-01-08 下线。")] + public class AppsTaskBoxUpdateTaskResponse : AppsTaskBoxResponseBase { public static class Types { @@ -12,16 +15,6 @@ public class Data : AppsTaskBoxAddTaskResponse.Types.Data } } - /// - [Newtonsoft.Json.JsonProperty("error")] - [System.Text.Json.Serialization.JsonPropertyName("error")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("message")] - [System.Text.Json.Serialization.JsonPropertyName("message")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxRequestBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxRequestBase.cs new file mode 100644 index 00000000..ba775994 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxRequestBase.cs @@ -0,0 +1,17 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + public abstract class AppsTaskBoxRequestBase : DouyinMicroAppRequest + { + /// + [Newtonsoft.Json.JsonProperty("access_token")] + [System.Text.Json.Serialization.JsonPropertyName("access_token")] + public override string? AccessToken { get; set; } + + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string? AppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxResponseBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxResponseBase.cs new file mode 100644 index 00000000..d0aea771 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/__Abstractions/AppsTaskBoxResponseBase.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + public abstract class AppsTaskBoxResponseBase : DouyinMicroAppResponse + { + /// + /// 获取或设置错误码。 + /// + [Newtonsoft.Json.JsonProperty("error")] + [System.Text.Json.Serialization.JsonPropertyName("error")] + public int Error { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("message")] + [System.Text.Json.Serialization.JsonPropertyName("message")] + public override string? ErrorMessage { get; set; } + + public override bool IsSuccessful() + { + return base.IsSuccessful() && Error == 0; + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsBillsRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsBillsRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsBillsRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsBillsResponse.cs new file mode 100644 index 00000000..30a06a32 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsBillsResponse.cs @@ -0,0 +1,15 @@ +using System.Linq; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/bills 接口的响应。 + /// + public class AppsBillsResponse : DouyinMicroAppResponse + { + public override bool IsSuccessful() + { + return base.IsSuccessful() && GetRawBytes().Any(); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/AppsFundBillsRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsResponse.cs new file mode 100644 index 00000000..af60dc6c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsResponse.cs @@ -0,0 +1,15 @@ +using System.Linq; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/fund/bills 接口的响应。 + /// + public class AppsFundBillsResponse : DouyinMicroAppResponse + { + public override bool IsSuccessful() + { + return base.IsSuccessful() && GetRawBytes().Any(); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs index 918aa4d8..448a786e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/create_order 接口的响应。 @@ -25,16 +25,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs similarity index 51% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs index 8b6ef95d..6bc94fc2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Response.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/create_refund 接口的响应。 /// public class AppsECPayCreateRefundV1Response : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置担保交易退款单号。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs similarity index 58% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs index ef8649e5..6efced59 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/create_return 接口的响应。 @@ -12,16 +12,6 @@ public class Return : AppsECPayQueryReturnV1Response.Types.Return } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置分账回退信息。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs index b3af75e9..062bd878 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Response.cs @@ -71,16 +71,6 @@ public class Payment } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置商户订单号。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs index 50d7c9bf..c203aaed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Request.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Text; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs index b942cc35..b5c23a60 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryPlatformOrderV1Response.cs @@ -1,5 +1,3 @@ -using System; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// @@ -130,16 +128,6 @@ public class SettleParameter } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置订单信息。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs index 7773194d..07012a32 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/query_refund 接口的响应。 @@ -32,16 +32,6 @@ public class Refund } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置退款信息。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs index 8ce8d216..7b584b3c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/query_return 接口的响应。 @@ -102,16 +102,6 @@ public class Return } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置分账回退信息。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs similarity index 77% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs index bdf0580f..4de0a553 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/query_settle 接口的响应。 @@ -32,16 +32,6 @@ public class Settlement } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置结算信息。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPaySettleV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPaySettleV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPaySettleV1Response.cs similarity index 50% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPaySettleV1Response.cs index d6ef95e0..94311c4e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/Order/AppsECPaySettleV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPaySettleV1Response.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/v1/settle 接口的响应。 /// public class AppsECPaySettleV1Response : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置担保交易分帐单号。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs similarity index 61% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs index 59a9d692..55ea90aa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/create_merchant 接口的响应。 /// public class AppsECPaySaaSCreateMerchantResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置申请单 ID。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs similarity index 50% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs index 151dc637..514f8ae2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSImageUploadResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/image_upload 接口的响应。 /// public class AppsECPaySaaSImageUploadResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置图片 ID。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs index f5eff725..8b6a4f2d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -48,16 +48,6 @@ public class MerchantStatusInfo } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置微信支付渠道进件状态。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs similarity index 61% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs index 123a046f..72fcf883 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/add_merchant 接口的响应。 /// public class AppsECPaySaaSAddMerchantResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置请求页面链接。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs similarity index 61% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs index 01ba450a..4d566553 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/add_sub_merchant 接口的响应。 /// public class AppsECPaySaaSAddSubMerchantResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置请求页面链接。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs similarity index 61% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs index 1f9bec74..be56f334 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/app_add_sub_merchant 接口的响应。 /// public class AppsECPaySaaSAppAddSubMerchantResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置请求页面链接。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs similarity index 61% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs index 166a6bb6..15e9442b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/get_app_merchant 接口的响应。 /// public class AppsECPaySaaSGetAppMerchantResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置请求页面链接。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs similarity index 51% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs index 04ac409d..deba19fd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.cs @@ -1,20 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/merchant_withdraw 接口的响应。 /// public class AppsECPaySaaSMerchantWithdrawResponse : DouyinMicroAppResponse { - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置平台提现单号。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs index cfffe5c5..b515b6b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/query_merchant_balance 接口的响应。 @@ -63,16 +63,6 @@ public class Settlement } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置余额信息。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs index 4a0cae3e..14883d91 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/ecpay/saas/query_withdraw_order 接口的响应。 @@ -63,16 +63,6 @@ public class Settlement } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override long ErrorCode { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_tips")] - [System.Text.Json.Serialization.JsonPropertyName("err_tips")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置提现状态。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletAddCoinRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletAddCoinRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletAddCoinResponse.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletAddCoinResponse.cs index 58afe271..16636b33 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletAddCoinResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletAddCoinResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/game/wallet/add_coin 接口的响应。 /// - public class AppsGameWalletAddCoinResponse : DouyinMicroAppResponse + public class AppsGameWalletAddCoinResponse : AppsGameWalletResponseBase { /// /// 获取或设置赠送游戏币的订单号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGamePayRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGamePayRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGamePayResponse.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGamePayResponse.cs index b26fb449..ca753b53 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGamePayResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGamePayResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/game/wallet/game_pay 接口的响应。 /// - public class AppsGameWalletGamePayResponse : DouyinMicroAppResponse + public class AppsGameWalletGamePayResponse : AppsGameWalletResponseBase { /// /// 获取或设置订单号。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGetBalanceRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGetBalanceRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGetBalanceResponse.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGetBalanceResponse.cs index 2fc3ced7..e52e6ed7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/AppsGameWalletGetBalanceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/AppsGameWalletGetBalanceResponse.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/game/wallet/get_balance 接口的响应。 /// - public class AppsGameWalletGetBalanceResponse : DouyinMicroAppResponse + public class AppsGameWalletGetBalanceResponse : AppsGameWalletResponseBase { /// /// 获取或设置游戏币数量。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletRequestBase.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsGame/Abstractions/AppsGameWalletRequestBase.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletRequestBase.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletResponseBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletResponseBase.cs new file mode 100644 index 00000000..0293839b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletResponseBase.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + public abstract class AppsGameWalletResponseBase : DouyinMicroAppResponse + { + /// + /// 获取或设置错误码。 + /// + [Newtonsoft.Json.JsonProperty("errcode")] + [System.Text.Json.Serialization.JsonPropertyName("errcode")] + public int ErrorCode { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("errmsg")] + [System.Text.Json.Serialization.JsonPropertyName("errmsg")] + public override string? ErrorMessage { get; set; } + + public override bool IsSuccessful() + { + return base.IsSuccessful() && ErrorCode == 0; + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsRemoveUserStorageRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsRemoveUserStorageRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsRemoveUserStorageResponse.cs similarity index 51% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsRemoveUserStorageResponse.cs index 65076536..551b1404 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsRemoveUserStorageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsRemoveUserStorageResponse.cs @@ -1,17 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/remove_user_storage 接口的响应。 /// public class AppsRemoveUserStorageResponse : DouyinMicroAppResponse { - /// - /// 获取或设置错误代号。 - /// - [Newtonsoft.Json.JsonProperty("error")] - [System.Text.Json.Serialization.JsonPropertyName("error")] - public int ErrorNumber { get; set; } - public override bool IsSuccessful() { return base.IsSuccessful() && ErrorNumber == 0; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsSetUserStorageRequest.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsSetUserStorageRequest.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsSetUserStorageResponse.cs similarity index 51% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsSetUserStorageResponse.cs index a0748e58..857ec785 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsStorage/AppsSetUserStorageResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsStorage/AppsSetUserStorageResponse.cs @@ -1,17 +1,10 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [POST] /apps/set_user_storage 接口的响应。 /// public class AppsSetUserStorageResponse : DouyinMicroAppResponse { - /// - /// 获取或设置错误代号。 - /// - [Newtonsoft.Json.JsonProperty("error")] - [System.Text.Json.Serialization.JsonPropertyName("error")] - public int ErrorNumber { get; set; } - public override bool IsSuccessful() { return base.IsSuccessful() && ErrorNumber == 0; diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs index 53c245cd..6bcba118 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs @@ -30,7 +30,7 @@ public void CodeAnalyze() SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp", SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", - IgnoreExecutingExtensionTypes = static type => type.Namespace.Contains(".ExtendedSDK."), + IgnoreExecutingExtensionTypes = static type => type.Namespace!.Contains(".ExtendedSDK."), ThrowOnNotFoundRequestModelTypes = true, ThrowOnNotFoundResponseModelTypes = true, ThrowOnNotFoundExecutingExtensionTypes = true, diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityAddAliasV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityAddAliasV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityAddAliasV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityDeleteAliasV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityModifyAliasV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityQueryAliasListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityQueryAliasListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityQueryAliasListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacityQuerySearchTagListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Delivery/AppsCapacitySetSearchTagV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SubService/AppsCapacityCreateMicroAppSubServiceV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json similarity index 76% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json index 9d4a63d6..e8533383 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SubService/AppsCapacityQueryMicroAppSubServiceV1Response.json @@ -5,10 +5,7 @@ { "micro_app_icon": "******", "micro_app_id": "******", - "search_key_word": [ - "******", - "******" - ], + "search_key_word": [ "******" ], "start_page_url": "******", "sub_service_id": "******", "sub_service_name": "******", @@ -20,10 +17,7 @@ "approval_state": 0, "micro_app_icon": "", "micro_app_id": "******", - "search_key_word": [ - "*****1", - "*****2" - ], + "search_key_word": [ "******" ], "start_page_url": "*****" } ], diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCategory/AppsCategoryQueryAppCategoriesV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Category/AppsCategoryQueryAppCategoriesV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCategory/AppsCategoryQueryAppCategoriesV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCensor/AppsCensorImageV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCensor/AppsCensorImageV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCensor/AppsCensorImageV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Censor/AppsCensorImageV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCensor/AppsCensorImageV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetBaseV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetBaseV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetBaseV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetBaseV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetCommentV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetCommentV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetCommentV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetLikeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetLikeV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetLikeV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetLikeV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetPlayV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetPlayV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetPlayV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetPlayV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetShareV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetShareV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemBCGetShareV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemBCGetShareV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetBaseV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetBaseV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetBaseV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetBaseV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetCommentV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetCommentV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetCommentV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetLikeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetLikeV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetLikeV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetLikeV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetPlayV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetPlayV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetPlayV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetPlayV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetShareV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetShareV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/AppsItemGetShareV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/AppsItemGetShareV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCListCommentReplyV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentReplyV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCListCommentReplyV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCListCommentV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCListCommentV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCListCommentV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCReplyCommentV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCReplyCommentV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCReplyCommentV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCReplyCommentV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCReplyCommentV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCTopCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCTopCommentV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemBCTopCommentV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemBCTopCommentV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentReplyV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemListCommentReplyV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentReplyV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemListCommentReplyV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemListCommentV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemListCommentV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemListCommentV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemReplyCommentV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemReplyCommentV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemReplyCommentV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemReplyCommentV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemReplyCommentV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemTopCommentV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemTopCommentV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Item/Comment/AppsItemTopCommentV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsItem/Comment/AppsItemTopCommentV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsQrcode/AppsQrcodeCreateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsQrcode/AppsQrcodeCreateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsQrcode/AppsQrcodeCreateV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Qrcode/AppsQrcodeCreateV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsQrcode/AppsQrcodeCreateV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateLiveV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateLiveV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateLiveV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateLiveV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateLiveV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateVideoV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateVideoV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateVideoV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskCreateVideoV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskCreateVideoV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffLiveV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskWriteoffLiveV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffLiveV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskWriteoffLiveV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffVideoV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskWriteoffVideoV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Task/AppsTaskWriteoffVideoV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTask/AppsTaskWriteoffVideoV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkGenerateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkGenerateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkGenerateV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkGenerateV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkGenerateV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryInfoV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryInfoV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryInfoV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryInfoV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryInfoV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryQuotaV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryQuotaV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryQuotaV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlLink/AppsUrlLinkQueryQuotaV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlLink/AppsUrlLinkQueryQuotaV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlGenerateSchemaV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlGenerateSchemaV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlGenerateSchemaV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlGenerateSchemaV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlGenerateSchemaV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaQuotaV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaQuotaV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/UrlSchema/AppsUrlQuerySchemaV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUrlSchema/AppsUrlQuerySchemaV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertOpenItemIdToEncryptIdV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertOpenItemIdToEncryptIdV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsConvertVideoIdToOpenItemIdV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsConvertVideoIdToOpenItemIdV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoBCQueryV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoBCQueryV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoBCQueryV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoBCQueryV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoBCQueryV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoQueryV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoQueryV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoQueryV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Video/AppsVideoQueryV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsVideo/AppsVideoQueryV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AppsCapacityUploadMaterialV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AppsCapacityUploadMaterialV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityBindAwemeUserV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityGetAwemeUserBindQrcodeV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityQueryAwemeUserBindListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/FollowAweme/AppsCapacityUnbindAwemeUserV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityApplyCapacityV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityBindSelfMountUserV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityGetSelfMountBindQrcodeV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityQueryApplyStatusV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityQuerySelfMountUserListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/AppsCapacityUnbindSelfMountUserV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutInfoV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityQueryCapcutTemplateListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Mount/Capcut/AppsCapacityUpdateCapcutTemplateStatusV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityAddAppSubscribeNotificationTemplateV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityCreateAppSubscribeNotificationTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityDeleteAppSubscribeNotificationTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityModifyAppSubscribeNotificationTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryAppSubscribeNotificationTemplateV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQueryCreatedSubscribeNotificationTemplateListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/SubscribeNotification/AppsCapacityQuerySubscribeNotificationTemplateListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityAddAdPlacementV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityOpenTrafficPermissionV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdPlacementListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryTrafficPermissionStatusV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityUpdateAdPlacementStatusV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/CustomerService/AppsCustomerServiceUrlResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/CustomerService/AppsCustomerServiceUrlResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/CustomerService/AppsCustomerServiceUrlResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryDealOverviewDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveDealDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryLiveRoomV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryProductDealDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/TransactionAnalysis/AppsDataAnalysisQueryVideoDealDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryBehaviorDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryClientDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryPageDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRealTimeUserDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryRetentionDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQuerySceneDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/DataAnalysis/UserAnalysis/AppsDataAnalysisQueryUserPortraitDataV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Live/AppsLiveSetBlackWhiteListV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Live/AppsLiveSetBlackWhiteListV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Live/AppsLiveSetBlackWhiteListV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Message/AppsMessageCustomSendRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Message/AppsMessageCustomSendRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Message/AppsMessageCustomSendRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Message/AppsMessageCustomSendRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Order/AppsOrderDeleteRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Order/AppsOrderDeleteRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Order/AppsOrderDeleteRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Order/AppsOrderDeleteRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Order/AppsOrderPushV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Order/AppsOrderPushV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Order/AppsOrderPushV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Order/AppsOrderPushV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Order/AppsOrderPushV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Order/AppsOrderPushV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/Order/AppsOrderPushV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Order/AppsOrderPushV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/ShareConfig/AppsShareConfigRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/ShareConfig/AppsShareConfigRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/ShareConfig/AppsShareConfigRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/ShareConfig/AppsShareConfigRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/ShareConfig/AppsShareConfigResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/ShareConfig/AppsShareConfigResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/ShareConfig/AppsShareConfigResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/ShareConfig/AppsShareConfigResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/SubscribeNotification/AppsSubscribeNotificationDeveloperNotifyV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxAddTaskRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxAddTaskRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxAddTaskResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxAddTaskResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxAddTaskResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryAppTaskIdResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxQueryTaskVideoDataResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateStatusResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateTaskResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateOrderV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateOrderV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateOrderV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateOrderV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateOrderV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateRefundV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateRefundV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateRefundV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateRefundV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateRefundV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateReturnV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateReturnV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateReturnV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayCreateReturnV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayCreateReturnV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryOrderV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryOrderV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryOrderV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryOrderV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryOrderV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryRefundV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryRefundV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryRefundV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryRefundV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryReturnV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryReturnV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryReturnV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQueryReturnV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryReturnV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQuerySettleV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQuerySettleV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQuerySettleV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPayQuerySettleV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQuerySettleV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPaySettleV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPaySettleV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPaySettleV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPaySettleV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPaySettleV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPaySettleV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/Order/AppsECPaySettleV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPaySettleV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSCreateMerchantResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Apply/AppsECPaySaaSQueryMerchantStatusResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddMerchantResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAddSubMerchantResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSAppAddSubMerchantResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/PageLinks/AppsECPaySaaSGetAppMerchantResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSMerchantWithdrawResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryMerchantBalanceResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/SaaS/Withdraw/AppsECPaySaaSQueryWithdrawOrderResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletAddCoinRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletAddCoinRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletAddCoinRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletAddCoinRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletAddCoinResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletAddCoinResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletAddCoinResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletAddCoinResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGamePayRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGamePayRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGamePayRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGamePayRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGamePayResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGamePayResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGamePayResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGamePayResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGetBalanceRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGetBalanceRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGetBalanceRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGetBalanceRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGetBalanceResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGetBalanceResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsGame/AppsGameWalletGetBalanceResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsGame/AppsGameWalletGetBalanceResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsStorage/AppsRemoveUserStorageRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsStorage/AppsRemoveUserStorageRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsStorage/AppsRemoveUserStorageRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsStorage/AppsRemoveUserStorageRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsStorage/AppsSetUserStorageRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsStorage/AppsSetUserStorageRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsStorage/AppsSetUserStorageRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsStorage/AppsSetUserStorageRequest.json From 538325c4d701bd77bfe6cf942f8f52f73ff3a833 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 15:37:41 +0800 Subject: [PATCH 24/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=8A=96=E9=9F=B3=E4=B8=BB=E9=A1=B5=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...MicroAppClientExecuteAppsUserExtensions.cs | 312 ++++++++++++++++++ .../AppsUser/AppsUserBCGetCommentV1Request.cs | 9 + .../AppsUserBCGetCommentV1Response.cs | 35 ++ .../AppsUser/AppsUserBCGetFansV1Request.cs | 9 + .../AppsUser/AppsUserBCGetFansV1Response.cs | 35 ++ .../AppsUser/AppsUserBCGetItemV1Request.cs | 9 + .../AppsUser/AppsUserBCGetItemV1Response.cs | 35 ++ .../AppsUser/AppsUserBCGetLikeV1Request.cs | 9 + .../AppsUser/AppsUserBCGetLikeV1Response.cs | 35 ++ .../AppsUser/AppsUserBCGetProfileV1Request.cs | 9 + .../AppsUserBCGetProfileV1Response.cs | 35 ++ .../AppsUser/AppsUserBCGetShareV1Request.cs | 9 + .../AppsUser/AppsUserBCGetShareV1Response.cs | 35 ++ .../AppsUser/AppsUserGetCommentV1Request.cs | 22 ++ .../AppsUser/AppsUserGetCommentV1Response.cs | 48 +++ .../AppsUser/AppsUserGetFansV1Request.cs | 22 ++ .../AppsUser/AppsUserGetFansV1Response.cs | 55 +++ .../AppsUser/AppsUserGetItemV1Request.cs | 22 ++ .../AppsUser/AppsUserGetItemV1Response.cs | 62 ++++ .../AppsUser/AppsUserGetLikeV1Request.cs | 22 ++ .../AppsUser/AppsUserGetLikeV1Response.cs | 48 +++ .../AppsUser/AppsUserGetProfileV1Request.cs | 22 ++ .../AppsUser/AppsUserGetProfileV1Response.cs | 48 +++ .../AppsUser/AppsUserGetShareV1Request.cs | 22 ++ .../AppsUser/AppsUserGetShareV1Response.cs | 48 +++ .../AppsUserBCGetCommentV1Response.json | 10 + .../AppsUser/AppsUserBCGetFansV1Response.json | 11 + .../AppsUser/AppsUserBCGetItemV1Response.json | 12 + .../AppsUser/AppsUserBCGetLikeV1Response.json | 10 + .../AppsUserBCGetProfileV1Response.json | 10 + .../AppsUserBCGetShareV1Response.json | 10 + .../AppsUserGetCommentV1Response.json | 10 + .../_/AppsUser/AppsUserGetFansV1Response.json | 11 + .../_/AppsUser/AppsUserGetItemV1Response.json | 12 + .../_/AppsUser/AppsUserGetLikeV1Response.json | 10 + .../AppsUserGetProfileV1Response.json | 10 + .../AppsUser/AppsUserGetShareV1Response.json | 10 + 37 files changed, 1143 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUserExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetFansV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetItemV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetLikeV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetProfileV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetShareV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetCommentV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetFansV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetItemV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetLikeV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetProfileV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetShareV1Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUserExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUserExtensions.cs new file mode 100644 index 00000000..ac9c5430 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsUserExtensions.cs @@ -0,0 +1,312 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsUserExtensions + { + /// + /// 异步调用 [GET] /apps/v1/user/get_item/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserGetItemV1Async(this DouyinMicroAppClient client, Models.AppsUserGetItemV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user", "get_item", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user_bc/get_item/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserBCGetItemV1Async(this DouyinMicroAppClient client, Models.AppsUserBCGetItemV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user_bc", "get_item", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user/get_fans/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserGetFansV1Async(this DouyinMicroAppClient client, Models.AppsUserGetFansV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user", "get_fans", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user_bc/get_fans/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserBCGetFansV1Async(this DouyinMicroAppClient client, Models.AppsUserBCGetFansV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user_bc", "get_fans", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user/get_like/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsUserGetLikeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user", "get_like", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user_bc/get_like/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserBCGetLikeV1Async(this DouyinMicroAppClient client, Models.AppsUserBCGetLikeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user_bc", "get_like", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user/get_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsUserGetCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user", "get_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user_bc/get_comment/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserBCGetCommentV1Async(this DouyinMicroAppClient client, Models.AppsUserBCGetCommentV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user_bc", "get_comment", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user/get_share/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserGetShareV1Async(this DouyinMicroAppClient client, Models.AppsUserGetShareV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user", "get_share", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user_bc/get_share/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserBCGetShareV1Async(this DouyinMicroAppClient client, Models.AppsUserBCGetShareV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user_bc", "get_share", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user/get_profile/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserGetProfileV1Async(this DouyinMicroAppClient client, Models.AppsUserGetProfileV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user", "get_profile", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/user_bc/get_profile/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsUserBCGetProfileV1Async(this DouyinMicroAppClient client, Models.AppsUserBCGetProfileV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "user_bc", "get_profile", "") + .SetQueryParam("open_id", request.OpenId) + .SetQueryParam("date_type", request.DateType) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Request.cs new file mode 100644 index 00000000..b224a94b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_comment/ 接口的请求。 + /// + public class AppsUserBCGetCommentV1Request : AppsUserGetCommentV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Response.cs new file mode 100644 index 00000000..c1a24d5a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetCommentV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_comment/ 接口的响应。 + /// + public class AppsUserBCGetCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsUserGetCommentV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Request.cs new file mode 100644 index 00000000..97cc4bee --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_fans/ 接口的请求。 + /// + public class AppsUserBCGetFansV1Request : AppsUserGetFansV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Response.cs new file mode 100644 index 00000000..54322ed7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetFansV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_fans/ 接口的响应。 + /// + public class AppsUserBCGetFansV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsUserGetFansV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Request.cs new file mode 100644 index 00000000..218f2582 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_item/ 接口的请求。 + /// + public class AppsUserBCGetItemV1Request : AppsUserGetItemV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Response.cs new file mode 100644 index 00000000..1c09ec52 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetItemV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_item/ 接口的响应。 + /// + public class AppsUserBCGetItemV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsUserGetItemV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Request.cs new file mode 100644 index 00000000..1eb5f26c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_like/ 接口的请求。 + /// + public class AppsUserBCGetLikeV1Request : AppsUserGetLikeV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Response.cs new file mode 100644 index 00000000..dd015d03 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetLikeV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_like/ 接口的响应。 + /// + public class AppsUserBCGetLikeV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsUserGetLikeV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Request.cs new file mode 100644 index 00000000..0803d5d4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_profile/ 接口的请求。 + /// + public class AppsUserBCGetProfileV1Request : AppsUserGetProfileV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Response.cs new file mode 100644 index 00000000..c8269d6e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetProfileV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_profile/ 接口的响应。 + /// + public class AppsUserBCGetProfileV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsUserGetProfileV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Request.cs new file mode 100644 index 00000000..4a48723a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_share/ 接口的请求。 + /// + public class AppsUserBCGetShareV1Request : AppsUserGetShareV1Request + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Response.cs new file mode 100644 index 00000000..dd9876d2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserBCGetShareV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user_bc/get_share/ 接口的响应。 + /// + public class AppsUserBCGetShareV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result : AppsUserGetShareV1Response.Types.Data.Types.Result + { + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Request.cs new file mode 100644 index 00000000..217a462c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_comment/ 接口的请求。 + /// + public class AppsUserGetCommentV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DateType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Response.cs new file mode 100644 index 00000000..a9bcc88a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetCommentV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_comment/ 接口的响应。 + /// + public class AppsUserGetCommentV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置新增评论数。 + /// + [Newtonsoft.Json.JsonProperty("new_comment")] + [System.Text.Json.Serialization.JsonPropertyName("new_comment")] + public long NewCommentCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Request.cs new file mode 100644 index 00000000..03b1a4e4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_fans/ 接口的请求。 + /// + public class AppsUserGetFansV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DateType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Response.cs new file mode 100644 index 00000000..925851f9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetFansV1Response.cs @@ -0,0 +1,55 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_fans/ 接口的响应。 + /// + public class AppsUserGetFansV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置新增粉丝数。 + /// + [Newtonsoft.Json.JsonProperty("new_fans")] + [System.Text.Json.Serialization.JsonPropertyName("new_fans")] + public long NewFansCount { get; set; } + + /// + /// 获取或设置总粉丝数。 + /// + [Newtonsoft.Json.JsonProperty("total_fans")] + [System.Text.Json.Serialization.JsonPropertyName("total_fans")] + public long TotalFansCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Request.cs new file mode 100644 index 00000000..c3c78995 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_item/ 接口的请求。 + /// + public class AppsUserGetItemV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DateType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Response.cs new file mode 100644 index 00000000..632222d8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetItemV1Response.cs @@ -0,0 +1,62 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_item/ 接口的响应。 + /// + public class AppsUserGetItemV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置新增播放数。 + /// + [Newtonsoft.Json.JsonProperty("new_play")] + [System.Text.Json.Serialization.JsonPropertyName("new_play")] + public long NewPlayCount { get; set; } + + /// + /// 获取或设置发布内容数。 + /// + [Newtonsoft.Json.JsonProperty("new_issue")] + [System.Text.Json.Serialization.JsonPropertyName("new_issue")] + public long NewIssueCount { get; set; } + + /// + /// 获取或设置内容总数。 + /// + [Newtonsoft.Json.JsonProperty("total_issue")] + [System.Text.Json.Serialization.JsonPropertyName("total_issue")] + public long TotalIssueCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Request.cs new file mode 100644 index 00000000..6de9c622 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_like/ 接口的请求。 + /// + public class AppsUserGetLikeV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DateType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Response.cs new file mode 100644 index 00000000..0fba324e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetLikeV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_like/ 接口的响应。 + /// + public class AppsUserGetLikeV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置新增点赞数。 + /// + [Newtonsoft.Json.JsonProperty("new_like")] + [System.Text.Json.Serialization.JsonPropertyName("new_like")] + public long NewLikeCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Request.cs new file mode 100644 index 00000000..60f35b25 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_profile/ 接口的请求。 + /// + public class AppsUserGetProfileV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DateType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Response.cs new file mode 100644 index 00000000..c665a201 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetProfileV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_profile/ 接口的响应。 + /// + public class AppsUserGetProfileV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置个人主页访问人数。 + /// + [Newtonsoft.Json.JsonProperty("profile_uv")] + [System.Text.Json.Serialization.JsonPropertyName("profile_uv")] + public long ProfileUV { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Request.cs new file mode 100644 index 00000000..d2239416 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_share/ 接口的请求。 + /// + public class AppsUserGetShareV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置数据范围类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int DateType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Response.cs new file mode 100644 index 00000000..ffb57111 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsUser/AppsUserGetShareV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/user/get_share/ 接口的响应。 + /// + public class AppsUserGetShareV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("date")] + [System.Text.Json.Serialization.JsonPropertyName("date")] + public string DateString { get; set; } = default!; + + /// + /// 获取或设置新增分享数。 + /// + [Newtonsoft.Json.JsonProperty("new_share")] + [System.Text.Json.Serialization.JsonPropertyName("new_share")] + public long NewShareCount { get; set; } + } + } + + /// + /// 获取或设置返回结果。 + /// + [Newtonsoft.Json.JsonProperty("result_list")] + [System.Text.Json.Serialization.JsonPropertyName("result_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetCommentV1Response.json new file mode 100644 index 00000000..193d083e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetCommentV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_comment": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetFansV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetFansV1Response.json new file mode 100644 index 00000000..5f43e551 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetFansV1Response.json @@ -0,0 +1,11 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_fans": "200", + "total_fans": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetItemV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetItemV1Response.json new file mode 100644 index 00000000..f63ddfa6 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetItemV1Response.json @@ -0,0 +1,12 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_issue": "200", + "new_play": "200", + "total_issue": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetLikeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetLikeV1Response.json new file mode 100644 index 00000000..a7934feb --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetLikeV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_like": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetProfileV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetProfileV1Response.json new file mode 100644 index 00000000..a3472111 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetProfileV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "profile_uv": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetShareV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetShareV1Response.json new file mode 100644 index 00000000..359b4895 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserBCGetShareV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_share": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetCommentV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetCommentV1Response.json new file mode 100644 index 00000000..193d083e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetCommentV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_comment": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetFansV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetFansV1Response.json new file mode 100644 index 00000000..5f43e551 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetFansV1Response.json @@ -0,0 +1,11 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_fans": "200", + "total_fans": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetItemV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetItemV1Response.json new file mode 100644 index 00000000..f63ddfa6 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetItemV1Response.json @@ -0,0 +1,12 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_issue": "200", + "new_play": "200", + "total_issue": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetLikeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetLikeV1Response.json new file mode 100644 index 00000000..a7934feb --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetLikeV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_like": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetProfileV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetProfileV1Response.json new file mode 100644 index 00000000..a3472111 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetProfileV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "profile_uv": "200" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetShareV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetShareV1Response.json new file mode 100644 index 00000000..359b4895 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsUser/AppsUserGetShareV1Response.json @@ -0,0 +1,10 @@ +{ + "data": { + "result_list": [ + { + "date": "yyyy-MM-dd", + "new_share": "200" + } + ] + } +} From 502fbed3a92253f93cc871707bfbe88a15fd6394 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 16:36:17 +0800 Subject: [PATCH 25/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E4=BB=BB=E5=8A=A1=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...croAppClientExecuteAppsDouyinExtensions.cs | 119 +++++++++++++++ ...icroAppClientExecuteAppsShareExtensions.cs | 65 ++++++++ .../AppsDouyinCreateInteractTaskV1Request.cs | 94 ++++++++++++ .../AppsDouyinCreateInteractTaskV1Response.cs | 28 ++++ ...ppsDouyinQueryUserInteractTaskV1Request.cs | 31 ++++ ...psDouyinQueryUserInteractTaskV1Response.cs | 139 ++++++++++++++++++ .../Task/AppsDouyinCreateTaskV1Request.cs | 74 ++++++++++ .../Task/AppsDouyinCreateTaskV1Response.cs | 28 ++++ .../Task/AppsDouyinQueryUserTaskV1Request.cs | 31 ++++ .../Task/AppsDouyinQueryUserTaskV1Response.cs | 112 ++++++++++++++ .../Task/AppsShareCreateTaskV1Request.cs | 44 ++++++ .../Task/AppsShareCreateTaskV1Response.cs | 28 ++++ .../Task/AppsShareQueryUserTaskV1Request.cs | 29 ++++ .../Task/AppsShareQueryUserTaskV1Response.cs | 56 +++++++ ...AppsDouyinCreateInteractTaskV1Request.json | 14 ++ ...ppsDouyinCreateInteractTaskV1Response.json | 8 + ...sDouyinQueryUserInteractTaskV1Request.json | 5 + ...DouyinQueryUserInteractTaskV1Response.json | 47 ++++++ .../Task/AppsDouyinCreateTaskV1Request.json | 15 ++ .../Task/AppsDouyinCreateTaskV1Response.json | 8 + .../AppsDouyinQueryUserTaskV1Request.json | 5 + .../AppsDouyinQueryUserTaskV1Response.json | 38 +++++ .../Task/AppsShareCreateTaskV1Request.json | 6 + .../Task/AppsShareCreateTaskV1Response.json | 8 + .../Task/AppsShareQueryUserTaskV1Request.json | 4 + .../AppsShareQueryUserTaskV1Response.json | 12 ++ 26 files changed, 1048 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsDouyinExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsShareExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsDouyinExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsDouyinExtensions.cs new file mode 100644 index 00000000..0ae4d267 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsDouyinExtensions.cs @@ -0,0 +1,119 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsDouyinExtensions + { + #region InteractTask + /// + /// 异步调用 [POST] /apps/v1/douyin/create_interact_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsDouyinCreateInteractTaskV1Async(this DouyinMicroAppClient client, Models.AppsDouyinCreateInteractTaskV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "douyin", "create_interact_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/douyin/query_user_interact_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsDouyinQueryUserInteractTaskV1Async(this DouyinMicroAppClient client, Models.AppsDouyinQueryUserInteractTaskV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "douyin", "query_user_interact_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Task + /// + /// 异步调用 [POST] /apps/v1/douyin/create_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsDouyinCreateTaskV1Async(this DouyinMicroAppClient client, Models.AppsDouyinCreateTaskV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "douyin", "create_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/douyin/query_user_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsDouyinQueryUserTaskV1Async(this DouyinMicroAppClient client, Models.AppsDouyinQueryUserTaskV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "douyin", "query_user_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsShareExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsShareExtensions.cs new file mode 100644 index 00000000..96bbe98a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsShareExtensions.cs @@ -0,0 +1,65 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsShareExtensions + { + #region Task + /// + /// 异步调用 [POST] /apps/v1/share/create_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsShareCreateTaskV1Async(this DouyinMicroAppClient client, Models.AppsShareCreateTaskV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "share", "create_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/share/query_user_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsShareQueryUserTaskV1Async(this DouyinMicroAppClient client, Models.AppsShareQueryUserTaskV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "share", "query_user_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.cs new file mode 100644 index 00000000..860fb931 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.cs @@ -0,0 +1,94 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/create_interact_task/ 接口的请求。 + /// + public class AppsDouyinCreateInteractTaskV1Request : DouyinMicroAppRequest + { + public static class Types + { + public class InteractRule + { + /// + /// 获取或设置目标值。 + /// + [Newtonsoft.Json.JsonProperty("target_count")] + [System.Text.Json.Serialization.JsonPropertyName("target_count")] + public int TargetCount { get; set; } + + /// + /// 获取或设置阶段值。 + /// + [Newtonsoft.Json.JsonProperty("stage_count")] + [System.Text.Json.Serialization.JsonPropertyName("stage_count")] + public int? StageCount { get; set; } + } + } + + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置任务类型。 + /// 默认值:3 + /// + [Newtonsoft.Json.JsonProperty("task_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_type")] + public int TaskType { get; set; } = 3; + + /// + /// 获取或设置可重复参加次数。 + /// + [Newtonsoft.Json.JsonProperty("max_count")] + [System.Text.Json.Serialization.JsonPropertyName("max_count")] + public int MaxCount { get; set; } + + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置挂载链接。 + /// + [Newtonsoft.Json.JsonProperty("mount_link")] + [System.Text.Json.Serialization.JsonPropertyName("mount_link")] + public string? MountLink { get; set; } + + /// + /// 获取或设置发布类型列表。 + /// + [Newtonsoft.Json.JsonProperty("publish_type")] + [System.Text.Json.Serialization.JsonPropertyName("publish_type")] + public IList? PublishTypeList { get; set; } + + /// + /// 获取或设置话题标签列表。 + /// + [Newtonsoft.Json.JsonProperty("tags")] + [System.Text.Json.Serialization.JsonPropertyName("tags")] + public IList? TagList { get; set; } + + /// + /// 获取或设置互动任务目标配置字典。 + /// + [Newtonsoft.Json.JsonProperty("interact_rules")] + [System.Text.Json.Serialization.JsonPropertyName("interact_rules")] + public IDictionary? InteractRuleMap { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.cs new file mode 100644 index 00000000..08e7838d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/create_interact_task/ 接口的响应。 + /// + public class AppsDouyinCreateInteractTaskV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.cs new file mode 100644 index 00000000..accccb6b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/query_user_interact_task/ 接口的请求。 + /// + public class AppsDouyinQueryUserInteractTaskV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置开启任务的用户 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置任务 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public IList TaskIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.cs new file mode 100644 index 00000000..de8c8a4c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.cs @@ -0,0 +1,139 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/query_user_interact_task/ 接口的响应。 + /// + public class AppsDouyinQueryUserInteractTaskV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class TaskInfo + { + public static class Types + { + public class Video + { + public static class Types + { + public class InteractInfo + { + /// + /// 获取或设置是否已完成。 + /// + [Newtonsoft.Json.JsonProperty("completed")] + [System.Text.Json.Serialization.JsonPropertyName("completed")] + public bool IsCompleted { get; set; } + + /// + /// 获取或设置阶段值。 + /// + [Newtonsoft.Json.JsonProperty("stage")] + [System.Text.Json.Serialization.JsonPropertyName("stage")] + public int? Stage { get; set; } + } + } + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("video_id")] + [System.Text.Json.Serialization.JsonPropertyName("video_id")] + public string VideoId { get; set; } = default!; + + /// + /// 获取或设置视频状态。 + /// + [Newtonsoft.Json.JsonProperty("video_status")] + [System.Text.Json.Serialization.JsonPropertyName("video_status")] + public int VideoStatus { get; set; } + + /// + /// 获取或设置是否已完成。 + /// + [Newtonsoft.Json.JsonProperty("completed")] + [System.Text.Json.Serialization.JsonPropertyName("completed")] + public bool IsCompleted { get; set; } + + /// + /// 获取或设置互动数据字典。 + /// + [Newtonsoft.Json.JsonProperty("interact_info")] + [System.Text.Json.Serialization.JsonPropertyName("interact_info")] + public IDictionary InteractInfoMap { get; set; } = default!; + } + } + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + + /// + /// 获取或设置是否有效。 + /// + [Newtonsoft.Json.JsonProperty("is_valid")] + [System.Text.Json.Serialization.JsonPropertyName("is_valid")] + public bool IsValid { get; set; } + + /// + /// 获取或设置最多参与次数。 + /// + [Newtonsoft.Json.JsonProperty("max_count")] + [System.Text.Json.Serialization.JsonPropertyName("max_count")] + public int MaxCount { get; set; } + + /// + /// 获取或设置成功次数。 + /// + [Newtonsoft.Json.JsonProperty("success_count")] + [System.Text.Json.Serialization.JsonPropertyName("success_count")] + public int SuccessCount { get; set; } + + /// + /// 获取或设置视频列表。 + /// + [Newtonsoft.Json.JsonProperty("video_info")] + [System.Text.Json.Serialization.JsonPropertyName("video_info")] + public Types.Video[] VideoList { get; set; } = default!; + + /// + /// 获取或设置错误码。 + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public int ErrorNumber { get; set; } + + /// + /// 获取或设置错误信息。 + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public string? ErrorMessage { get; set; } + } + } + + /// + /// 获取或设置任务信息字典。 + /// + [Newtonsoft.Json.JsonProperty("task_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("task_info_list")] + public IDictionary TaskInfoMap { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.cs new file mode 100644 index 00000000..d324f265 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.cs @@ -0,0 +1,74 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/create_task/ 接口的请求。 + /// + public class AppsDouyinCreateTaskV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置任务类型。 + /// 默认值:2 + /// + [Newtonsoft.Json.JsonProperty("task_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_type")] + public int TaskType { get; set; } = 2; + + /// + /// 获取或设置规则类型。 + /// + [Newtonsoft.Json.JsonProperty("rule_type")] + [System.Text.Json.Serialization.JsonPropertyName("rule_type")] + public int RuleType { get; set; } + + /// + /// 获取或设置目标次数。 + /// + [Newtonsoft.Json.JsonProperty("target_count")] + [System.Text.Json.Serialization.JsonPropertyName("target_count")] + public int TargetCount { get; set; } + + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置挂载链接。 + /// + [Newtonsoft.Json.JsonProperty("mount_link")] + [System.Text.Json.Serialization.JsonPropertyName("mount_link")] + public string? MountLink { get; set; } + + /// + /// 获取或设置发布类型列表。 + /// + [Newtonsoft.Json.JsonProperty("publish_type")] + [System.Text.Json.Serialization.JsonPropertyName("publish_type")] + public IList? PublishTypeList { get; set; } + + /// + /// 获取或设置话题标签列表。 + /// + [Newtonsoft.Json.JsonProperty("tags")] + [System.Text.Json.Serialization.JsonPropertyName("tags")] + public IList? TagList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.cs new file mode 100644 index 00000000..53f722c9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/create_task/ 接口的响应。 + /// + public class AppsDouyinCreateTaskV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.cs new file mode 100644 index 00000000..d4f551f9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/query_user_task/ 接口的请求。 + /// + public class AppsDouyinQueryUserTaskV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置开启任务的用户 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置任务 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public IList TaskIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.cs new file mode 100644 index 00000000..02c609d5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.cs @@ -0,0 +1,112 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/douyin/query_user_task/ 接口的响应。 + /// + public class AppsDouyinQueryUserTaskV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class TaskInfo + { + public static class Types + { + public class Video + { + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("video_id")] + [System.Text.Json.Serialization.JsonPropertyName("video_id")] + public string VideoId { get; set; } = default!; + + /// + /// 获取或设置视频状态。 + /// + [Newtonsoft.Json.JsonProperty("video_status")] + [System.Text.Json.Serialization.JsonPropertyName("video_status")] + public int VideoStatus { get; set; } + } + } + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + + /// + /// 获取或设置是否有效。 + /// + [Newtonsoft.Json.JsonProperty("is_valid")] + [System.Text.Json.Serialization.JsonPropertyName("is_valid")] + public bool IsValid { get; set; } + + /// + /// 获取或设置目标次数。 + /// + [Newtonsoft.Json.JsonProperty("target_count")] + [System.Text.Json.Serialization.JsonPropertyName("target_count")] + public int TargetCount { get; set; } + + /// + /// 获取或设置成功次数。 + /// + [Newtonsoft.Json.JsonProperty("success_count")] + [System.Text.Json.Serialization.JsonPropertyName("success_count")] + public int SuccessCount { get; set; } + + /// + /// 获取或设置是否已完成。 + /// + [Newtonsoft.Json.JsonProperty("completed")] + [System.Text.Json.Serialization.JsonPropertyName("completed")] + public bool IsCompleted { get; set; } + + /// + /// 获取或设置视频列表。 + /// + [Newtonsoft.Json.JsonProperty("video_info")] + [System.Text.Json.Serialization.JsonPropertyName("video_info")] + public Types.Video[] VideoList { get; set; } = default!; + + /// + /// 获取或设置错误码。 + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public int ErrorNumber { get; set; } + + /// + /// 获取或设置错误信息。 + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public string? ErrorMessage { get; set; } + } + } + + /// + /// 获取或设置任务信息字典。 + /// + [Newtonsoft.Json.JsonProperty("task_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("task_info_list")] + public IDictionary TaskInfoMap { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Request.cs new file mode 100644 index 00000000..0bdf6f72 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Request.cs @@ -0,0 +1,44 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/share/create_task/ 接口的请求。 + /// + public class AppsShareCreateTaskV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置任务类型。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("task_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_type")] + public int TaskType { get; set; } = 1; + + /// + /// 获取或设置目标次数。 + /// + [Newtonsoft.Json.JsonProperty("target_count")] + [System.Text.Json.Serialization.JsonPropertyName("target_count")] + public int TargetCount { get; set; } + + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Response.cs new file mode 100644 index 00000000..57193462 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareCreateTaskV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/share/create_task/ 接口的响应。 + /// + public class AppsShareCreateTaskV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Request.cs new file mode 100644 index 00000000..119a18a0 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Request.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/share/query_user_task/ 接口的请求。 + /// + public class AppsShareQueryUserTaskV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string? AppId { get; set; } + + /// + /// 获取或设置开启任务的用户 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Response.cs new file mode 100644 index 00000000..578f06a3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsShare/Task/AppsShareQueryUserTaskV1Response.cs @@ -0,0 +1,56 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/share/query_user_task/ 接口的响应。 + /// + public class AppsShareQueryUserTaskV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public string TaskId { get; set; } = default!; + + /// + /// 获取或设置是否有效。 + /// + [Newtonsoft.Json.JsonProperty("is_valid")] + [System.Text.Json.Serialization.JsonPropertyName("is_valid")] + public bool IsValid { get; set; } + + /// + /// 获取或设置目标次数。 + /// + [Newtonsoft.Json.JsonProperty("target_count")] + [System.Text.Json.Serialization.JsonPropertyName("target_count")] + public int TargetCount { get; set; } + + /// + /// 获取或设置成功次数。 + /// + [Newtonsoft.Json.JsonProperty("success_count")] + [System.Text.Json.Serialization.JsonPropertyName("success_count")] + public int SuccessCount { get; set; } + + /// + /// 获取或设置是否已完成。 + /// + [Newtonsoft.Json.JsonProperty("completed")] + [System.Text.Json.Serialization.JsonPropertyName("completed")] + public bool IsCompleted { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.json new file mode 100644 index 00000000..994e26c4 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Request.json @@ -0,0 +1,14 @@ +{ + "task_type": 3, + "app_id": "ttabc*******", + "start_time": 1690938443, + "end_time": 1702365299, + "max_count": 10, + "mount_link": "path", + "interact_rules": { + "like": { + "stage_count": 6, + "target_count": 1 + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.json new file mode 100644 index 00000000..e3c7b15b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinCreateInteractTaskV1Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "task_id": "task_7263******7724" + }, + "err_no": 0, + "err_msg": "", + "log_id": "2023080317282901022512708409145B" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.json new file mode 100644 index 00000000..2fda4ae7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Request.json @@ -0,0 +1,5 @@ +{ + "task_id": [ "task_7302***07" ], + "open_id": "yH******7w", + "app_id": "ttabc*****" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.json new file mode 100644 index 00000000..f571238f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/InteractTask/AppsDouyinQueryUserInteractTaskV1Response.json @@ -0,0 +1,47 @@ +{ + "err_no": 0, + "err_msg": "", + "log_id": "20231116111433010225127084047533", + "data": { + "task_info_list": { + "task_7301597285245279020": { + "task_id": "task_7301597285245279020", + "video_info": [ + { + "video_status": 3, + "completed": false, + "video_id": "131****087e", + "interact_info": { + "like": { + "completed": false + }, + "play": { + "stage": 0, + "completed": false + } + } + }, + { + "interact_info": { + "like": { + "completed": false + }, + "play": { + "stage": 0, + "completed": false + } + }, + "video_status": 1, + "completed": false, + "video_id": "1310******20e79" + } + ], + "is_valid": true, + "success_count": 0, + "max_count": 10, + "err_msg": "", + "err_no": 0 + } + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.json new file mode 100644 index 00000000..426b1a48 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Request.json @@ -0,0 +1,15 @@ +{ + "app_id": "tt**********", + "task_type": 2, + "rule_type": 1, + "target_count": 1, + "start_time": 1694423074, + "end_time": 1694623074, + "mount_link": "/pages/index", + "publish_type": [ + 1 + ], + "tags": [ + "**" + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.json new file mode 100644 index 00000000..e3c7b15b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinCreateTaskV1Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "task_id": "task_7263******7724" + }, + "err_no": 0, + "err_msg": "", + "log_id": "2023080317282901022512708409145B" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.json new file mode 100644 index 00000000..a1b2970b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Request.json @@ -0,0 +1,5 @@ +{ + "open_id": "tV2v******", + "app_id": "tt*******", + "task_id": [ "task_*****", "task_******" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.json new file mode 100644 index 00000000..dee4eb5c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsDouyin/Task/AppsDouyinQueryUserTaskV1Response.json @@ -0,0 +1,38 @@ +{ + "err_no": 0, + "log_id": "202309********************", + "data": { + "task_info_list": { + "task_***********": { + "target_count": 0, + "task_id": "", + "video_info": [], + "completed": false, + "err_msg": "任务id无效", + "err_no": 28005074, + "is_valid": false, + "success_count": 0 + }, + "task_******************": { + "is_valid": true, + "success_count": 1, + "target_count": 2, + "task_id": "task_******************", + "video_info": [ + { + "video_id": "131041************", + "video_status": 1 + }, + { + "video_id": "131041**************", + "video_status": 2 + } + ], + "completed": false, + "err_msg": "", + "err_no": 0 + } + } + }, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Request.json new file mode 100644 index 00000000..fff0107c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Request.json @@ -0,0 +1,6 @@ +{ + "task_type": 1, + "target_count": 10, + "start_time": 1691377225, + "end_time": 1693357643 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Response.json new file mode 100644 index 00000000..e3c7b15b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareCreateTaskV1Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "task_id": "task_7263******7724" + }, + "err_no": 0, + "err_msg": "", + "log_id": "2023080317282901022512708409145B" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Request.json new file mode 100644 index 00000000..f34cff84 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Request.json @@ -0,0 +1,4 @@ +{ + "task_id": "task_*****", + "open_id": "ERl******R" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Response.json new file mode 100644 index 00000000..a5f1c078 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsShare/Task/AppsShareQueryUserTaskV1Response.json @@ -0,0 +1,12 @@ +{ + "log_id": "20230807171057010225127083950712", + "data": { + "success_count": 0, + "target_count": 0, + "task_id": "task_7263****2700", + "completed": false, + "is_valid": true + }, + "err_no": 0, + "err_msg": "" +} From bec3ef4bd804e5fbdf84a20bc0ea5f2a149c1c1e Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 17:10:37 +0800 Subject: [PATCH 26/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=B3=9B=E7=9F=A5=E8=AF=86=E8=A7=92=E8=89=B2=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=8A=96=E9=9F=B3=E5=8F=B7=E7=BB=91=E5=AE=9A=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RoleApi/DouyinMicroAppRoleApiEndpoints.cs | 2 +- ...roAppRoleApiClientExecuteRoleExtensions.cs | 233 ++++++++++++------ .../Bind/AuthEntityEnableMountScopeRequest.cs | 86 +++++++ .../AuthEntityEnableMountScopeResponse.cs | 0 .../Bind/AuthEntityQueryBindToCListRequest.cs | 29 +++ .../AuthEntityQueryBindToCListResponse.cs | 15 ++ .../Bind/AuthEntityQueryMountScopeRequest.cs | 50 ++++ .../Bind/AuthEntityQueryMountScopeResponse.cs | 22 ++ .../AuthEntityUnbindAccountRequest.cs} | 26 +- .../Bind/AuthEntityUnbindAccountResponse.cs | 9 + .../AuthEntityEnableMountScopeRequest.json | 0 .../AuthEntityQueryBindToCListRequest.json | 7 + .../AuthEntityQueryBindToCListResponse.json | 10 + .../AuthEntityQueryMountScopeRequest.json | 8 + .../AuthEntityQueryMountScopeResponse.json | 11 + .../Bind/AuthEntityUnbindAccountRequest.json | 12 + 16 files changed, 427 insertions(+), 93 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityEnableMountScopeRequest.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/{ => Bind}/AuthEntityEnableMountScopeResponse.cs (100%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeResponse.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/{AuthEntityEnableMountScopeRequest.cs => Bind/AuthEntityUnbindAccountRequest.cs} (76%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityUnbindAccountResponse.cs rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/{ => Bind}/AuthEntityEnableMountScopeRequest.json (100%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityUnbindAccountRequest.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiEndpoints.cs index 8409ecaf..c502f478 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiEndpoints.cs @@ -13,6 +13,6 @@ public class DouyinMicroAppRoleApiEndpoints /// /// 沙盒域名。 /// - public const string SANDBOX = "https://open-sandbox.douyin.com/auth/entity/"; + public const string SANDBOX = "https://open-sandbox.douyin.com/auth/entity"; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs index bec44aa3..9aa1a782 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs @@ -68,31 +68,6 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - /// - /// 异步调用 [POST] /enable_mountscope 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteAuthEntityEnableMountScopeAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityEnableMountScopeRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.AppId is null) - request.AppId = client.Credentials.AppId; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "enable_mountscope"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #region Auth /// /// 异步调用 [POST] /bypartner 接口。 @@ -296,19 +271,19 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions } #endregion - #region Role + #region Bind /// - /// 异步调用 [POST] /add_role 接口。 + /// 异步调用 [POST] /query_mountscope 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityAddRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityAddRoleRequest request,CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityQueryMountScopeAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityQueryMountScopeRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -317,23 +292,23 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "add_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_mountscope"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /bind_role 接口。 + /// 异步调用 [POST] /enable_mountscope 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityBindRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityBindRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityEnableMountScopeAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityEnableMountScopeRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -342,23 +317,23 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "bind_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "enable_mountscope"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /unbind_role 接口。 + /// 异步调用 [POST] /unbind_account 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityUnbindRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUnbindRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUnbindAccountAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUnbindAccountRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -367,23 +342,23 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "unbind_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "unbind_account"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /get_bind_list 接口。 + /// 异步调用 [POST] /query_bind_toc_list 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityGetBindListAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetBindListRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityQueryBindToCListAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityQueryBindToCListRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -392,23 +367,25 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "get_bind_list"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_bind_toc_list"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion + #region MerchantCode /// - /// 异步调用 [POST] /auth_role 接口。 + /// 异步调用 [POST] /activate_merchantcode 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityAuthRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityAuthRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityActivateMerchantCodeAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityActivateMerchantCodeRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -417,23 +394,23 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "auth_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "activate_merchantcode"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /un_auth_role 接口。 + /// 异步调用 [POST] /query_merchantcode_status 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityUnauthRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUnauthRoleRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityQueryMerchantCodeStatusAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityQueryMerchantCodeStatusRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -442,23 +419,25 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "un_auth_role"); + .CreateFlurlRequest(request, HttpMethod.Post, "query_merchantcode_status"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion + #region Role /// - /// 异步调用 [POST] /update_authletter 接口。 + /// 异步调用 [POST] /add_role 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityUpdateAuthLetterAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUpdateAuthLetterRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityAddRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityAddRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -467,23 +446,23 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "update_authletter"); + .CreateFlurlRequest(request, HttpMethod.Post, "add_role"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /get_appid_auth 接口。 + /// 异步调用 [POST] /bind_role 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityGetAppIdAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetAppIdAuthRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityBindRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityBindRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -492,25 +471,23 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "get_appid_auth"); + .CreateFlurlRequest(request, HttpMethod.Post, "bind_role"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - #endregion - #region MerchantCode /// - /// 异步调用 [POST] /activate_merchantcode 接口。 + /// 异步调用 [POST] /unbind_role 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityActivateMerchantCodeAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityActivateMerchantCodeRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityUnbindRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUnbindRoleRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -519,23 +496,23 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "activate_merchantcode"); + .CreateFlurlRequest(request, HttpMethod.Post, "unbind_role"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /query_merchantcode_status 接口。 + /// 异步调用 [POST] /get_bind_list 接口。 /// /// REF:
- /// + /// ///
///
/// /// /// /// - public static async Task ExecuteAuthEntityQueryMerchantCodeStatusAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityQueryMerchantCodeStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteAuthEntityGetBindListAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetBindListRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -544,9 +521,109 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.AppId = client.Credentials.AppId; IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "query_merchantcode_status"); + .CreateFlurlRequest(request, HttpMethod.Post, "get_bind_list"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /auth_role 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAuthEntityAuthRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityAuthRoleRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "auth_role"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /un_auth_role 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAuthEntityUnauthRoleAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUnauthRoleRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "un_auth_role"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /update_authletter 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAuthEntityUpdateAuthLetterAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityUpdateAuthLetterRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "update_authletter"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /get_appid_auth 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAuthEntityGetAppIdAuthAsync(this DouyinMicroAppRoleApiClient client, Models.AuthEntityGetAppIdAuthRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "get_appid_auth"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityEnableMountScopeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityEnableMountScopeRequest.cs new file mode 100644 index 00000000..3d4e7848 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityEnableMountScopeRequest.cs @@ -0,0 +1,86 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models +{ + /// + /// 表示 [POST] /enable_mountscope 接口的请求。 + /// + public class AuthEntityEnableMountScopeRequest : DouyinMicroAppRoleApiRequest + { + public static class Types + { + public class User + { + /// + /// 获取或设置应用的 ClientKey。 + /// + [Newtonsoft.Json.JsonProperty("client_key")] + [System.Text.Json.Serialization.JsonPropertyName("client_key")] + public string ClientKey { get; set; } = string.Empty; + + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("openid")] + [System.Text.Json.Serialization.JsonPropertyName("openid")] + public string OpenId { get; set; } = string.Empty; + } + } + + /// + /// 获取或设置服务商实体 ID。 + /// + [Newtonsoft.Json.JsonProperty("partner_entity_id")] + [System.Text.Json.Serialization.JsonPropertyName("partner_entity_id")] + public string? PartnerEntityId { get; set; } + + /// + /// 获取或设置商户实体 ID。 + /// + [Newtonsoft.Json.JsonProperty("merchant_entity_id")] + [System.Text.Json.Serialization.JsonPropertyName("merchant_entity_id")] + public string? MerchantEntityId { get; set; } + + /// + /// 获取或设置用户信息。 + /// + [Newtonsoft.Json.JsonProperty("c_user")] + [System.Text.Json.Serialization.JsonPropertyName("c_user")] + public Types.User? User { get; set; } + + /// + /// 获取或设置用户的抖音号。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string? AwemeId { get; set; } + + /// + /// 获取或设置授权能力。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("mount_scope")] + [System.Text.Json.Serialization.JsonPropertyName("mount_scope")] + public int? MountScope { get; set; } + + /// + /// 获取或设置授权能力列表。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("mount_scope_list")] + [System.Text.Json.Serialization.JsonPropertyName("mount_scope_list")] + public IList? MountScopeList { get; set; } + + /// + /// 获取或设置行业编码。 + /// + [Newtonsoft.Json.JsonProperty("industry_code")] + [System.Text.Json.Serialization.JsonPropertyName("industry_code")] + public int IndustryCode { get; set; } + + /// + /// 获取或设置行业角色。 + /// + [Newtonsoft.Json.JsonProperty("industry_role")] + [System.Text.Json.Serialization.JsonPropertyName("industry_role")] + public int IndustryRole { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityEnableMountScopeResponse.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityEnableMountScopeResponse.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListRequest.cs new file mode 100644 index 00000000..dfaacec4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models +{ + /// + /// 表示 [POST] /query_bind_toc_list 接口的请求。 + /// + public class AuthEntityQueryBindToCListRequest : DouyinMicroAppRoleApiRequest + { + /// + /// 获取或设置商户实体 ID。 + /// + [Newtonsoft.Json.JsonProperty("merchant_entity_id")] + [System.Text.Json.Serialization.JsonPropertyName("merchant_entity_id")] + public string? MerchantEntityId { get; set; } + + /// + /// 获取或设置行业编码。 + /// + [Newtonsoft.Json.JsonProperty("industry_code")] + [System.Text.Json.Serialization.JsonPropertyName("industry_code")] + public int IndustryCode { get; set; } + + /// + /// 获取或设置行业角色。 + /// + [Newtonsoft.Json.JsonProperty("industry_role")] + [System.Text.Json.Serialization.JsonPropertyName("industry_role")] + public int IndustryRole { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListResponse.cs new file mode 100644 index 00000000..cbbbfcff --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryBindToCListResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models +{ + /// + /// 表示 [POST] /query_bind_toc_list 接口的响应。 + /// + public class AuthEntityQueryBindToCListResponse : DouyinMicroAppRoleApiResponse + { + /// + /// 获取或设置抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id_list")] + public string[] AwemeIdList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeRequest.cs new file mode 100644 index 00000000..ab827fed --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeRequest.cs @@ -0,0 +1,50 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models +{ + /// + /// 表示 [POST] /query_mountscope 接口的请求。 + /// + public class AuthEntityQueryMountScopeRequest : DouyinMicroAppRoleApiRequest + { + /// + /// 获取或设置服务商实体 ID。 + /// + [Newtonsoft.Json.JsonProperty("partner_entity_id")] + [System.Text.Json.Serialization.JsonPropertyName("partner_entity_id")] + public string? PartnerEntityId { get; set; } + + /// + /// 获取或设置商户实体 ID。 + /// + [Newtonsoft.Json.JsonProperty("merchant_entity_id")] + [System.Text.Json.Serialization.JsonPropertyName("merchant_entity_id")] + public string? MerchantEntityId { get; set; } + + /// + /// 获取或设置用户的 OpenId。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("openid")] + [System.Text.Json.Serialization.JsonPropertyName("openid")] + public string? OpenId { get; set; } + + /// + /// 获取或设置用户的抖音号。与字段 二选一。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string? AwemeId { get; set; } + + /// + /// 获取或设置行业编码。 + /// + [Newtonsoft.Json.JsonProperty("industry_code")] + [System.Text.Json.Serialization.JsonPropertyName("industry_code")] + public int IndustryCode { get; set; } + + /// + /// 获取或设置行业角色。 + /// + [Newtonsoft.Json.JsonProperty("industry_role")] + [System.Text.Json.Serialization.JsonPropertyName("industry_role")] + public int IndustryRole { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeResponse.cs new file mode 100644 index 00000000..498e48f1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityQueryMountScopeResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models +{ + /// + /// 表示 [POST] /query_mountscope 接口的响应。 + /// + public class AuthEntityQueryMountScopeResponse : DouyinMicroAppRoleApiResponse + { + /// + /// 获取或设置已授权能力列表。 + /// + [Newtonsoft.Json.JsonProperty("scope_list")] + [System.Text.Json.Serialization.JsonPropertyName("scope_list")] + public int[] MountScopeList { get; set; } = default!; + + /// + /// 获取或设置绑定状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityUnbindAccountRequest.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityUnbindAccountRequest.cs index d5c73d32..a812bcac 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/AuthEntityEnableMountScopeRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityUnbindAccountRequest.cs @@ -1,25 +1,23 @@ -using System.Collections.Generic; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models { /// - /// 表示 [POST] /enable_mountscope 接口的请求。 + /// 表示 [POST] /unbind_account 接口的请求。 /// - public class AuthEntityEnableMountScopeRequest : DouyinMicroAppRoleApiRequest + public class AuthEntityUnbindAccountRequest : DouyinMicroAppRoleApiRequest { public static class Types { public class User { /// - /// 获取或设置开放平台 ClientKey。 + /// 获取或设置应用的 ClientKey。 /// [Newtonsoft.Json.JsonProperty("client_key")] [System.Text.Json.Serialization.JsonPropertyName("client_key")] public string ClientKey { get; set; } = string.Empty; /// - /// 获取或设置用户 OpenId。 + /// 获取或设置用户的 OpenId。 /// [Newtonsoft.Json.JsonProperty("openid")] [System.Text.Json.Serialization.JsonPropertyName("openid")] @@ -42,18 +40,18 @@ public class User public string? MerchantEntityId { get; set; } /// - /// 获取或设置挂载能力。 + /// 获取或设置用户信息。 /// - [Newtonsoft.Json.JsonProperty("mount_scope")] - [System.Text.Json.Serialization.JsonPropertyName("mount_scope")] - public int MountScope { get; set; } + [Newtonsoft.Json.JsonProperty("c_user")] + [System.Text.Json.Serialization.JsonPropertyName("c_user")] + public Types.User? User { get; set; } /// - /// 获取或设置抖音用户信息。 + /// 获取或设置用户的抖音号。与字段 二选一。 /// - [Newtonsoft.Json.JsonProperty("c_user")] - [System.Text.Json.Serialization.JsonPropertyName("c_user")] - public Types.User User { get; set; } = new Types.User(); + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string? AwemeId { get; set; } /// /// 获取或设置行业编码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityUnbindAccountResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityUnbindAccountResponse.cs new file mode 100644 index 00000000..0ac9536d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Models/Bind/AuthEntityUnbindAccountResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models +{ + /// + /// 表示 [POST] /unbind_account 接口的响应。 + /// + public class AuthEntityUnbindAccountResponse : DouyinMicroAppRoleApiResponse + { + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/AuthEntityEnableMountScopeRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityEnableMountScopeRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/AuthEntityEnableMountScopeRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityEnableMountScopeRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListRequest.json new file mode 100644 index 00000000..b9a52084 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListRequest.json @@ -0,0 +1,7 @@ +{ + "appid": "tta12xxxxxcbe01", + "access_token": "080yyyyyyy35494e6241xxxx", + "merchant_entity_id": "E_717870xxxxxxxxxxxxx", + "industry_code": 10000, + "industry_role": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListResponse.json new file mode 100644 index 00000000..a7620530 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryBindToCListResponse.json @@ -0,0 +1,10 @@ +{ + "err": { + "err_code": 0, + "err_msg": "" + }, + "aweme_id_list": [ + "xxxxxxxx", + "xxxxxxxx" + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeRequest.json new file mode 100644 index 00000000..24c6a1b0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeRequest.json @@ -0,0 +1,8 @@ +{ + "appid": "tta12xxxxxcbe01", + "access_token": "080yyyyyyy35494e62413d3d", + "openid": "xxxxxx", + "merchant_entity_id": "E_7178703725698269228", + "industry_code": 10000, + "industry_role": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeResponse.json new file mode 100644 index 00000000..76937a98 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityQueryMountScopeResponse.json @@ -0,0 +1,11 @@ +{ + "err": { + "err_code": 0, + "err_msg": "" + }, + "scope_list": [ + 1, + 2 + ], + "status": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityUnbindAccountRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityUnbindAccountRequest.json new file mode 100644 index 00000000..e0cbbbe8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/RoleApi/Bind/AuthEntityUnbindAccountRequest.json @@ -0,0 +1,12 @@ +{ + "appid": "tta12xxxxxcbe01", + "access_token": "080yyyyyyy35494e62413d3d", + "c_user": { + "openid": "xxxxxx", + "client_key": "ttxxxx" + }, + "merchant_entity_id": "E_7178703725698269228", + "partner_entity_id": "", + "industry_code": 10000, + "industry_role": 1 +} From 747f596826afdb286b6ee44ef11ec7ddca944800 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 17:16:39 +0800 Subject: [PATCH 27/42] =?UTF-8?q?fix(microapp):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B3=9B=E7=9F=A5=E8=AF=86=E8=AF=BE=E7=A8=8B=E5=BA=93=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AF=BE=E7=A8=8B=E6=8E=A5=E5=8F=A3=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProductApi/Models/ProductApiAddRequest.cs | 4 +-- ...oAppClientExecuteAppsCapacityExtensions.cs | 14 ++++----- ...croAppClientExecuteLegacyAppsExtensions.cs | 2 +- ...psCapacityAddAwemeVideoKeywordV1Request.cs | 2 +- ...sCapacityAddAwemeVideoKeywordV1Response.cs | 2 +- ...apacityDeleteAwemeVideoKeywordV1Request.cs | 2 +- ...pacityDeleteAwemeVideoKeywordV1Response.cs | 2 +- ...cityQueryAwemeVideoKeywordListV1Request.cs | 2 +- ...ityQueryAwemeVideoKeywordListV1Response.cs | 2 +- ...psCapacityApplyAwemePermissionV1Request.cs | 0 ...sCapacityApplyAwemePermissionV1Response.cs | 0 .../AppsCapacityApplyScopeQuotaV1Request.cs | 0 .../AppsCapacityApplyScopeQuotaV1Response.cs | 0 ...pacityQueryAwemePermissionListV1Request.cs | 0 ...acityQueryAwemePermissionListV1Response.cs | 0 ...sCapacityQueryScopeQuotaDetailV1Request.cs | 0 ...CapacityQueryScopeQuotaDetailV1Response.cs | 0 .../ProductApi/ProductApiAddRequest.json | 27 ++++++++-------- .../ProductApi/ProductApiModifyRequest.json | 31 +++++++++---------- ...CapacityAddAwemeVideoKeywordV1Request.json | 0 ...acityDeleteAwemeVideoKeywordV1Request.json | 0 ...yQueryAwemeVideoKeywordListV1Response.json | 0 ...CapacityApplyAwemePermissionV1Request.json | 0 .../AppsCapacityApplyScopeQuotaV1Request.json | 0 ...ityQueryAwemePermissionListV1Response.json | 0 ...pacityQueryScopeQuotaDetailV1Response.json | 0 26 files changed, 44 insertions(+), 46 deletions(-) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityAddAwemeVideoKeywordV1Request.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityAddAwemeVideoKeywordV1Response.cs (88%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityApplyAwemePermissionV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityApplyAwemePermissionV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityApplyScopeQuotaV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityApplyScopeQuotaV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityQueryAwemePermissionListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityQueryAwemePermissionListV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityQueryScopeQuotaDetailV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityQueryScopeQuotaDetailV1Response.cs (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityAddAwemeVideoKeywordV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityDeleteAwemeVideoKeywordV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/{AwemeCapacity => Aweme}/AppsCapacityQueryAwemeVideoKeywordListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityApplyAwemePermissionV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityApplyScopeQuotaV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityQueryAwemePermissionListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/{AwemeCapacity => Aweme}/AppsCapacityQueryScopeQuotaDetailV1Response.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs index 0642c88c..afa6480f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs @@ -153,11 +153,11 @@ public class RichText public string? ImagePath { get; set; } /// - /// 获取或设置富文本内容列表。 + /// 获取或设置富文本内容。 /// [Newtonsoft.Json.JsonProperty("rich_text")] [System.Text.Json.Serialization.JsonPropertyName("rich_text")] - public IList? RichTextList { get; set; } + public Types.RichText? RichText { get; set; } } public class AnchorInfo diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs index 7f87a4bc..08c6496c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs @@ -9,9 +9,9 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { public static class DouyinMicroAppClientExecuteAppsCapacityExtensions { - #region AwemeCapacity + #region Aweme /// - /// 异步调用 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口。 + /// 异步调用 [GET] /apps/v1/capacity/query_aweme_video_keyword_list/ 接口。 /// /// REF:
/// @@ -27,7 +27,7 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_video_keyword_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_video_keyword_list", "") .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.PageNumber) .SetQueryParam("page_size", request.PageSize); @@ -36,7 +36,7 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions } /// - /// 异步调用 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口。 + /// 异步调用 [POST] /apps/v1/capacity/add_aweme_video_keyword/ 接口。 /// /// REF:
/// @@ -52,14 +52,14 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_aweme_video_keyword") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_aweme_video_keyword", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口。 + /// 异步调用 [POST] /apps/v1/capacity/delete_aweme_video_keyword/ 接口。 /// /// REF:
/// @@ -75,7 +75,7 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_aweme_video_keyword") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_aweme_video_keyword", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index d0b49657..9c52c9fc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -103,7 +103,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } - #region Capacity/AwemeCapacity + #region Capacity/Aweme /// /// 异步调用 [GET] /apps/v1/capacity/query_aweme_permission_list 接口。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.cs index 3f839bc3..4d4489b3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口的请求。 + /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword/ 接口的请求。 /// public class AppsCapacityAddAwemeVideoKeywordV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Response.cs similarity index 88% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Response.cs index 07b5a1ef..e6e9e27f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword 接口的响应。 + /// 表示 [POST] /apps/v1/capacity/add_aweme_video_keyword/ 接口的响应。 /// public class AppsCapacityAddAwemeVideoKeywordV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs index 898a760e..7217b063 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口的请求。 + /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword/ 接口的请求。 /// public class AppsCapacityDeleteAwemeVideoKeywordV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs index 8a922979..cdf45097 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword 接口的响应。 + /// 表示 [POST] /apps/v1/capacity/delete_aweme_video_keyword/ 接口的响应。 /// public class AppsCapacityDeleteAwemeVideoKeywordV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs index 07bdaef1..d1f36903 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口的请求。 + /// 表示 [GET] /apps/v1/capacity/query_aweme_video_keyword_list/ 接口的请求。 /// public class AppsCapacityQueryAwemeVideoKeywordListV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs index ec5813bf..91b22d7f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [GET] /apps/v1/capacity/query_aweme_video_keyword_list 接口的响应。 + /// 表示 [GET] /apps/v1/capacity/query_aweme_video_keyword_list/ 接口的响应。 /// public class AppsCapacityQueryAwemeVideoKeywordListV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyAwemePermissionV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyAwemePermissionV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyAwemePermissionV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyAwemePermissionV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyScopeQuotaV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyScopeQuotaV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyScopeQuotaV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyScopeQuotaV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryAwemePermissionListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryAwemePermissionListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryAwemePermissionListV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryAwemePermissionListV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryScopeQuotaDetailV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryScopeQuotaDetailV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryScopeQuotaDetailV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryScopeQuotaDetailV1Response.cs diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddRequest.json index 58cfe17a..1d5a0de7 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddRequest.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddRequest.json @@ -1,5 +1,5 @@ -{ - "access_token": "123456184673546750597970442b6b73674775447154502f69413d3d", +{ + "access_token": "0801121846756b44471029384758795958537a647053646f773d3d", "product_type": 1, "product": { "common_product_params": { @@ -7,21 +7,19 @@ "first_class": 10000, "second_class": 10100, "title": "python入门教程", - "qualification_uris": ["product/resource/abc.png"], - "purchase_precaution": "购课成功后如何...", + "purchase_precaution": "小程序内购买课程为课程兑换权益,购买成功后将自动兑换到您的账户内,可在****中重复学习观看", "product_fulfillment_lst": [ { "fulfillment_content": { - "fulfillment_uri": "product/resource/abc.png", - "text": "", - "name": "课程1" + "fulfillment_uri": "product/resource/1001d044d41140d53ce9e57d793a4321", + "name": "第一节: python介绍" }, "fulfillment_type": 3 } ], "industry_type": 1, "price_info": { - "unit": "天", + "unit": "节", "price": 5000, "real_price": 4900 }, @@ -29,22 +27,23 @@ { "path": "page/index/index", "query": { - "a": "1", - "b": "2" + "course_id": "29384759" } } ], "product_detail_lst": [ { - "text": "该节课程主要...", - "img_uri": "product/resource/abc.png" + "rich_text": { + "text": "1. python安装步骤" + } } ], "anchor_info": { "video_anchor_info": { - "anchor_title": "视频锚点标题" + "anchor_title": "python入门教程" } - } + }, + "product_img_uri": "tos-cn-i-b2i6zad4el/b0e72a2e9c5ee919c65a9b0276315cf9" }, "course_params": { "teacher_id": "T7283947392973", diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyRequest.json index 122c98bc..c2f2ec08 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyRequest.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyRequest.json @@ -1,28 +1,26 @@ -{ - "access_token": "123456184673546a33314e764a6c3844557a432b6c2b4d6a6e543210", +{ + "access_token": "0801121846756b44471029384758795958537a647053646f773d3d", "product_type": 1, - "product_id": 7654321888019123456, + "product_id": 6543216888019123456, "product": { "common_product_params": { - "appid": "tt77fd0140e89bba1234", + "appid": "tt11fd1220e13bba1234", "first_class": 10000, "second_class": 10100, "title": "python入门教程", - "qualification_uris": ["product/resource/abc.png"], - "purchase_precaution": "购课成功后如何...", + "purchase_precaution": "小程序内购买课程为课程兑换权益,购买成功后将自动兑换到您的账户内,可在****中重复学习观看", "product_fulfillment_lst": [ { "fulfillment_content": { - "fulfillment_uri": "product/resource/abc.png", - "text": "", - "name": "课程1" + "fulfillment_uri": "product/resource/1001d044d41140d53ce9e57d793a4321", + "name": "第一节: python介绍" }, "fulfillment_type": 3 } ], "industry_type": 1, "price_info": { - "unit": "天", + "unit": "节", "price": 5000, "real_price": 4900 }, @@ -30,22 +28,23 @@ { "path": "page/index/index", "query": { - "a": "1", - "b": "2" + "course_id": "29384759" } } ], "product_detail_lst": [ { - "text": "该节课程主要...", - "img_uri": "product/resource/abc.png" + "rich_text": { + "text": "1. python安装步骤" + } } ], "anchor_info": { "video_anchor_info": { - "anchor_title": "视频锚点标题" + "anchor_title": "python入门教程" } - } + }, + "product_img_uri": "tos-cn-i-b2i6zad4el/b0e72a2e9c5ee919c65a9b0276315cf9" }, "course_params": { "teacher_id": "T7283947392973", diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityAddAwemeVideoKeywordV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityDeleteAwemeVideoKeywordV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeCapacity/AppsCapacityQueryAwemeVideoKeywordListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyAwemePermissionV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyAwemePermissionV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyAwemePermissionV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyScopeQuotaV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityApplyScopeQuotaV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityApplyScopeQuotaV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryAwemePermissionListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryAwemePermissionListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryAwemePermissionListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryScopeQuotaDetailV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/AwemeCapacity/AppsCapacityQueryScopeQuotaDetailV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/Capacity/Aweme/AppsCapacityQueryScopeQuotaDetailV1Response.json From cf329bfcabb43f54929f20a924a56d9955d5e115 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 17:57:52 +0800 Subject: [PATCH 28/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=99=AE=E9=80=9A=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=20v3=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...oAppClientExecuteAppsCapacityExtensions.cs | 119 ++++++++++++++++++ ...croAppClientExecuteLegacyAppsExtensions.cs | 2 +- ...ppsCapacityAddSimpleQrcodeBindV2Request.cs | 38 ++++++ ...psCapacityAddSimpleQrcodeBindV2Response.cs | 9 ++ ...CapacityDeleteSimpleQrcodeBindV2Request.cs | 15 +++ ...apacityDeleteSimpleQrcodeBindV2Response.cs | 9 ++ ...acityQuerySimpleQrcodeBindListV2Request.cs | 24 ++++ ...cityQuerySimpleQrcodeBindListV2Response.cs | 106 ++++++++++++++++ ...tyUpdateSimpleQrcodeBindStatusV2Request.cs | 22 ++++ ...yUpdateSimpleQrcodeBindStatusV2Response.cs | 9 ++ ...CapacityUpdateSimpleQrcodeBindV2Request.cs | 45 +++++++ ...apacityUpdateSimpleQrcodeBindV2Response.cs | 9 ++ ...cityQuerySimpleQrcodeBindListV1Response.cs | 4 +- ...sCapacityAddSimpleQrcodeBindV2Request.json | 6 + ...pacityDeleteSimpleQrcodeBindV1Request.json | 3 + ...tyQuerySimpleQrcodeBindListV2Response.json | 21 ++++ ...UpdateSimpleQrcodeBindStatusV2Request.json | 4 + ...pacityUpdateSimpleQrcodeBindV2Request.json | 7 ++ 18 files changed, 449 insertions(+), 3 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs index 08c6496c..38815a72 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs @@ -222,6 +222,125 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions } #endregion + #region SimpleQrcode + /// + /// 异步调用 [GET] /apps/v2/capacity/query_simple_qr_bind_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQuerySimpleQrcodeBindListV2Async(this DouyinMicroAppClient client, Models.AppsCapacityQuerySimpleQrcodeBindListV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v2", "capacity", "query_simple_qr_bind_list", "") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/capacity/add_simple_qr_bind/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityAddSimpleQrcodeBindV2Async(this DouyinMicroAppClient client, Models.AppsCapacityAddSimpleQrcodeBindV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "capacity", "add_simple_qr_bind", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/capacity/update_simple_qr_bind/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindV2Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "capacity", "update_simple_qr_bind", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/capacity/update_simple_qr_bind_status/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityUpdateSimpleQrcodeBindStatusV2Async(this DouyinMicroAppClient client, Models.AppsCapacityUpdateSimpleQrcodeBindStatusV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "capacity", "update_simple_qr_bind_status", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/capacity/delete_simple_qr_bind/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityDeleteSimpleQrcodeBindV2Async(this DouyinMicroAppClient client, Models.AppsCapacityDeleteSimpleQrcodeBindV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "capacity", "delete_simple_qr_bind", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region SubService /// /// 异步调用 [POST] /apps/v1/capacity/create_ma_sub_service/ 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index 9c52c9fc..b094ce25 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -987,7 +987,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions } #endregion - #region TrafficPermission + #region Capacity/TrafficPermission /// /// 异步调用 [GET] /apps/v1/capacity/query_traffic_permission_status 接口。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.cs new file mode 100644 index 00000000..e01d1482 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.cs @@ -0,0 +1,38 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/add_simple_qr_bind/ 接口的请求。 + /// + public class AppsCapacityAddSimpleQrcodeBindV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置链接地址。 + /// + [Newtonsoft.Json.JsonProperty("qr_url")] + [System.Text.Json.Serialization.JsonPropertyName("qr_url")] + public string Url { get; set; } = string.Empty; + + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("load_path")] + [System.Text.Json.Serialization.JsonPropertyName("load_path")] + public string PagePath { get; set; } = string.Empty; + + /// + /// 获取或设置测试范围。 + /// + [Newtonsoft.Json.JsonProperty("stage")] + [System.Text.Json.Serialization.JsonPropertyName("stage")] + public string Stage { get; set; } = string.Empty; + + /// + /// 获取或设置是否独占该链接作为前缀。 + /// + [Newtonsoft.Json.JsonProperty("exclusive_qr_url_prefix")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("exclusive_qr_url_prefix")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool IsPrefixExclusive { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Response.cs new file mode 100644 index 00000000..05cf067d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/add_simple_qr_bind/ 接口的响应。 + /// + public class AppsCapacityAddSimpleQrcodeBindV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Request.cs new file mode 100644 index 00000000..0cb00297 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/delete_simple_qr_bind/ 接口的请求。 + /// + public class AppsCapacityDeleteSimpleQrcodeBindV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置链接地址。 + /// + [Newtonsoft.Json.JsonProperty("qr_url")] + [System.Text.Json.Serialization.JsonPropertyName("qr_url")] + public string Url { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Response.cs new file mode 100644 index 00000000..87355ea3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/delete_simple_qr_bind/ 接口的响应。 + /// + public class AppsCapacityDeleteSimpleQrcodeBindV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Request.cs new file mode 100644 index 00000000..cf774e8f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Request.cs @@ -0,0 +1,24 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v2/capacity/query_simple_qr_bind_list/ 接口的请求。 + /// + public class AppsCapacityQuerySimpleQrcodeBindListV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.cs new file mode 100644 index 00000000..6d3395fe --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.cs @@ -0,0 +1,106 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v2/capacity/query_simple_qr_bind_list/ 接口的响应。 + /// + public class AppsCapacityQuerySimpleQrcodeBindListV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Qrcode + { + /// + /// 获取或设置绑定的链接地址。 + /// + [Newtonsoft.Json.JsonProperty("qr_url")] + [System.Text.Json.Serialization.JsonPropertyName("qr_url")] + public string Url { get; set; } = default!; + + /// + /// 获取或设置绑定的小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("load_path")] + [System.Text.Json.Serialization.JsonPropertyName("load_path")] + public string PagePath { get; set; } = default!; + + /// + /// 获取或设置测试范围。 + /// + [Newtonsoft.Json.JsonProperty("stage")] + [System.Text.Json.Serialization.JsonPropertyName("stage")] + public string Stage { get; set; } = default!; + + /// + /// 获取或设置状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置是否独占该链接作为前缀。 + /// + [Newtonsoft.Json.JsonProperty("exclusive_qr_url_prefix")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("exclusive_qr_url_prefix")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool IsPrefixExclusive { get; set; } + } + } + + /// + /// 获取或设置绑定的二维码列表。 + /// + [Newtonsoft.Json.JsonProperty("qr_list")] + [System.Text.Json.Serialization.JsonPropertyName("qr_list")] + public Types.Qrcode[] QrcodeList { get; set; } = default!; + + /// + /// 获取或设置目前绑定的链接数量。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } = default!; + + /// + /// 获取或设置总共可以绑定的链接数量。 + /// + [Newtonsoft.Json.JsonProperty("bind_upper_limit")] + [System.Text.Json.Serialization.JsonPropertyName("bind_upper_limit")] + public int BindLimit { get; set; } + + /// + /// 获取或设置剩余可以绑定的链接数量。 + /// + [Newtonsoft.Json.JsonProperty("bind_rest_count")] + [System.Text.Json.Serialization.JsonPropertyName("bind_rest_count")] + public int BindRestCount { get; set; } + + /// + /// 获取或设置当月总共可以发布的次数。 + /// + [Newtonsoft.Json.JsonProperty("release_upper_limit")] + [System.Text.Json.Serialization.JsonPropertyName("release_upper_limit")] + public int ReleaseLimit { get; set; } + + /// + /// 获取或设置当月剩余可以的发布次数。 + /// + [Newtonsoft.Json.JsonProperty("release_rest_count")] + [System.Text.Json.Serialization.JsonPropertyName("release_rest_count")] + public int ReleaseRestCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.cs new file mode 100644 index 00000000..6e50999f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/update_simple_qr_bind_status/ 接口的请求。 + /// + public class AppsCapacityUpdateSimpleQrcodeBindStatusV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置链接地址。 + /// + [Newtonsoft.Json.JsonProperty("qr_url")] + [System.Text.Json.Serialization.JsonPropertyName("qr_url")] + public string Url { get; set; } = string.Empty; + + /// + /// 获取或设置状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Response.cs new file mode 100644 index 00000000..155baa3c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/update_simple_qr_bind_status/ 接口的响应。 + /// + public class AppsCapacityUpdateSimpleQrcodeBindStatusV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.cs new file mode 100644 index 00000000..c7f9a29d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.cs @@ -0,0 +1,45 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/update_simple_qr_bind/ 接口的请求。 + /// + public class AppsCapacityUpdateSimpleQrcodeBindV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置更新前的链接地址。 + /// + [Newtonsoft.Json.JsonProperty("before_qr_url")] + [System.Text.Json.Serialization.JsonPropertyName("before_qr_url")] + public string OldUrl { get; set; } = string.Empty; + + /// + /// 获取或设置链接地址。 + /// + [Newtonsoft.Json.JsonProperty("qr_url")] + [System.Text.Json.Serialization.JsonPropertyName("qr_url")] + public string NewUrl { get; set; } = string.Empty; + + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("load_path")] + [System.Text.Json.Serialization.JsonPropertyName("load_path")] + public string PagePath { get; set; } = string.Empty; + + /// + /// 获取或设置测试范围。 + /// + [Newtonsoft.Json.JsonProperty("stage")] + [System.Text.Json.Serialization.JsonPropertyName("stage")] + public string Stage { get; set; } = string.Empty; + + /// + /// 获取或设置是否独占该链接作为前缀。 + /// + [Newtonsoft.Json.JsonProperty("exclusive_qr_url_prefix")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("exclusive_qr_url_prefix")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool IsPrefixExclusive { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Response.cs new file mode 100644 index 00000000..69a95786 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v2/capacity/update_simple_qr_bind/ 接口的响应。 + /// + public class AppsCapacityUpdateSimpleQrcodeBindV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs index b7ad9da1..c0de4e93 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV1Response.cs @@ -81,7 +81,7 @@ public class Qrcode /// [Newtonsoft.Json.JsonProperty("bind_rest_count")] [System.Text.Json.Serialization.JsonPropertyName("bind_rest_count")] - public int BindRemainingCount { get; set; } + public int BindRestCount { get; set; } /// /// 获取或设置当月总共可以发布的次数。 @@ -95,7 +95,7 @@ public class Qrcode /// [Newtonsoft.Json.JsonProperty("release_rest_count")] [System.Text.Json.Serialization.JsonPropertyName("release_rest_count")] - public int ReleaseRemainingCount { get; set; } + public int ReleaseRestCount { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.json new file mode 100644 index 00000000..3fe816fa --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityAddSimpleQrcodeBindV2Request.json @@ -0,0 +1,6 @@ +{ + "qr_url": "https://xxx", + "load_path": "xxx", + "stage": "online", + "exclusive_qr_url_prefix": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json new file mode 100644 index 00000000..6cc51dc3 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityDeleteSimpleQrcodeBindV1Request.json @@ -0,0 +1,3 @@ +{ + "qr_url": "https://xxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.json new file mode 100644 index 00000000..31401fdd --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityQuerySimpleQrcodeBindListV2Response.json @@ -0,0 +1,21 @@ +{ + "err_msg": "", + "log_id": "6HhwWpLQiY", + "data": { + "qr_list": [ + { + "qr_url": "pD3W471lb7", + "load_path": "nSyCaf9Fmy", + "stage": "GYZbBfqR5V", + "status": 1, + "exclusive_qr_url_prefix": 1 + } + ], + "total_count": 1, + "bind_upper_limit": 1, + "bind_rest_count": 1, + "release_upper_limit": 1, + "release_rest_count": 1 + }, + "err_no": 0 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.json new file mode 100644 index 00000000..a1fdbe02 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindStatusV2Request.json @@ -0,0 +1,4 @@ +{ + "qr_url": "https://xxx", + "status": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.json new file mode 100644 index 00000000..55892476 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/SimpleQrcode/AppsCapacityUpdateSimpleQrcodeBindV2Request.json @@ -0,0 +1,7 @@ +{ + "load_path": "xxx", + "stage": "online", + "exclusive_qr_url_prefix": 1, + "before_qr_url": "https://xxx", + "qr_url": "https://xxx" +} From 8065434feeb5b224ef955c19332bb04870f44d96 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 20:53:47 +0800 Subject: [PATCH 29/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8A=96=E9=9F=B3=E5=8F=B7=E7=BB=91=E5=AE=9A=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...oAppClientExecuteAppsCapacityExtensions.cs | 150 ++++++++++- .../AppsCapacityBindAwemeRelationV1Request.cs | 239 ++++++++++++++++++ ...AppsCapacityBindAwemeRelationV1Response.cs | 9 + ...pacityGetAwemeBindTemplateInfoV1Request.cs | 31 +++ ...acityGetAwemeBindTemplateInfoV1Response.cs | 127 ++++++++++ ...pacityGetAwemeBindTemplateListV1Request.cs | 31 +++ ...acityGetAwemeBindTemplateListV1Response.cs | 79 ++++++ ...cityGetAwemeRelationBindQrcodeV1Request.cs | 31 +++ ...ityGetAwemeRelationBindQrcodeV1Response.cs | 35 +++ ...CapacityQueryAwemeRelationListV1Request.cs | 31 +++ ...apacityQueryAwemeRelationListV1Response.cs | 111 ++++++++ ...ppsCapacityUnbindAwemeRelationV1Request.cs | 22 ++ ...psCapacityUnbindAwemeRelationV1Response.cs | 9 + ...psCapacityAddAwemeVideoKeywordV1Request.cs | 0 ...sCapacityAddAwemeVideoKeywordV1Response.cs | 0 ...apacityDeleteAwemeVideoKeywordV1Request.cs | 0 ...pacityDeleteAwemeVideoKeywordV1Response.cs | 0 ...cityQueryAwemeVideoKeywordListV1Request.cs | 0 ...ityQueryAwemeVideoKeywordListV1Response.cs | 0 ...ppsCapacityBindAwemeRelationV1Request.json | 38 +++ ...cityGetAwemeBindTemplateInfoV1Request.json | 5 + ...ityGetAwemeBindTemplateInfoV1Response.json | 29 +++ ...cityGetAwemeBindTemplateListV1Request.json | 5 + ...ityGetAwemeBindTemplateListV1Response.json | 19 ++ ...yGetAwemeRelationBindQrcodeV1Response.json | 9 + ...acityQueryAwemeRelationListV1Response.json | 24 ++ ...sCapacityUnbindAwemeRelationV1Request.json | 4 + ...CapacityAddAwemeVideoKeywordV1Request.json | 0 ...acityDeleteAwemeVideoKeywordV1Request.json | 0 ...yQueryAwemeVideoKeywordListV1Response.json | 0 30 files changed, 1037 insertions(+), 1 deletion(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityAddAwemeVideoKeywordV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityAddAwemeVideoKeywordV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs (100%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityAddAwemeVideoKeywordV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityDeleteAwemeVideoKeywordV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/{Aweme => AwemeKeyword}/AppsCapacityQueryAwemeVideoKeywordListV1Response.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs index 38815a72..92e434a6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs @@ -9,7 +9,155 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { public static class DouyinMicroAppClientExecuteAppsCapacityExtensions { - #region Aweme + #region AwemeBind + /// + /// 异步调用 [POST] /apps/v1/capacity/get_aweme_bind_template_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityGetAwemeBindTemplateListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetAwemeBindTemplateListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "get_aweme_bind_template_list", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/get_aweme_bind_template_info/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityGetAwemeBindTemplateInfoV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetAwemeBindTemplateInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "get_aweme_bind_template_info", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/bind_aweme_relation/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityBindAwemeRelationV1Async(this DouyinMicroAppClient client, Models.AppsCapacityBindAwemeRelationV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_aweme_relation", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/capacity/unbind_aweme_relation/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityUnbindAwemeRelationV1Async(this DouyinMicroAppClient client, Models.AppsCapacityUnbindAwemeRelationV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_aweme_relation", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/get_aweme_relation_bind_qrcode/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityGetAwemeRelationBindQrcodeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityGetAwemeRelationBindQrcodeV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_aweme_relation_bind_qrcode", "") + .SetQueryParam("type", request.Type) + .SetQueryParam("capacity_list", string.Join(",", request.CapacityKeyList)) + .WithHeader("access-token", request.AccessToken); + + if (request.IsCoSubject is not null) + flurlReq.SetQueryParam("is_co_subject", request.IsCoSubject.Value ? "true" : "false"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/capacity/query_aweme_relation_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsCapacityQueryAwemeRelationListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAwemeRelationListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_relation_list", "") + .SetQueryParam("type", request.Type) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region AwemeKeyword /// /// 异步调用 [GET] /apps/v1/capacity/query_aweme_video_keyword_list/ 接口。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.cs new file mode 100644 index 00000000..41be4639 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.cs @@ -0,0 +1,239 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/bind_aweme_relation/ 接口的请求。 + /// + public class AppsCapacityBindAwemeRelationV1Request : DouyinMicroAppRequest + { + public static class Types + { + public class TemplateInfo + { + public static class Types + { + public class TemplateContent + { + /// + /// 获取或设置资质名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 获取或设置上传材料 MaterielId。 + /// + [Newtonsoft.Json.JsonProperty("materiel_id")] + [System.Text.Json.Serialization.JsonPropertyName("materiel_id")] + public string? MaterielId { get; set; } + + /// + /// 获取或设置类型。 + /// + [Newtonsoft.Json.JsonProperty("val_type")] + [System.Text.Json.Serialization.JsonPropertyName("val_type")] + public int? ValueType { get; set; } + + /// + /// 获取或设置内容列表。 + /// + [Newtonsoft.Json.JsonProperty("val_list")] + [System.Text.Json.Serialization.JsonPropertyName("val_list")] + public IList? ValueList { get; set; } + + /// + /// 获取或设置拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reject_reason")] + [System.Text.Json.Serialization.JsonPropertyName("reject_reason")] + public string? RejectReason { get; set; } + } + } + + /// + /// 获取或设置模版 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long TemplateId { get; set; } + + /// + /// 获取或设置模版标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + + /// + /// 获取或设置内容列表。 + /// + [Newtonsoft.Json.JsonProperty("template_content")] + [System.Text.Json.Serialization.JsonPropertyName("template_content")] + public IList TemplateContentList { get; set; } = new List(); + } + + public class CooperationInfo + { + /// + /// 获取或设置合作类型。 + /// + [Newtonsoft.Json.JsonProperty("cooperation_type")] + [System.Text.Json.Serialization.JsonPropertyName("cooperation_type")] + public string CooperationType { get; set; } = string.Empty; + + /// + /// 获取或设置关系过期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("relation_expire_date")] + [System.Text.Json.Serialization.JsonPropertyName("relation_expire_date")] + public long RelationExpireTimestamp { get; set; } + + /// + /// 获取或设置公司名称。 + /// + [Newtonsoft.Json.JsonProperty("company_name")] + [System.Text.Json.Serialization.JsonPropertyName("company_name")] + public string? CompanyName { get; set; } + + /// + /// 获取或设置营业执照编号。 + /// + [Newtonsoft.Json.JsonProperty("business_license_code")] + [System.Text.Json.Serialization.JsonPropertyName("business_license_code")] + public string? BusinessLicenseNumber { get; set; } + + /// + /// 获取或设置真实姓名。 + /// + [Newtonsoft.Json.JsonProperty("real_name")] + [System.Text.Json.Serialization.JsonPropertyName("real_name")] + public string? RealName { get; set; } + + /// + /// 获取或设置身份证号。 + /// + [Newtonsoft.Json.JsonProperty("identity_number")] + [System.Text.Json.Serialization.JsonPropertyName("identity_number")] + public string? IdCardNumber { get; set; } + + /// + /// 获取或设置合作合同照片 MaterielId。 + /// + [Newtonsoft.Json.JsonProperty("contract_image")] + [System.Text.Json.Serialization.JsonPropertyName("contract_image")] + public string? ContractImageMaterielId { get; set; } + + /// + /// 获取或设置合作合同照片 MaterielId 列表。 + /// + [Newtonsoft.Json.JsonProperty("contract_image_list")] + [System.Text.Json.Serialization.JsonPropertyName("contract_image_list")] + public IList? ContractImageMaterielIdList { get; set; } + } + + public class EmployeeInfo + { + /// + /// 获取或设置关系过期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("relation_expire_date")] + [System.Text.Json.Serialization.JsonPropertyName("relation_expire_date")] + public long RelationExpireTimestamp { get; set; } + + /// + /// 获取或设置真实姓名。 + /// + [Newtonsoft.Json.JsonProperty("real_name")] + [System.Text.Json.Serialization.JsonPropertyName("real_name")] + public string RealName { get; set; } = string.Empty; + + /// + /// 获取或设置身份证号。 + /// + [Newtonsoft.Json.JsonProperty("identity_number")] + [System.Text.Json.Serialization.JsonPropertyName("identity_number")] + public string IdCardNumber { get; set; } = string.Empty; + + /// + /// 获取或设置劳动合同照片 MaterielId。 + /// + [Newtonsoft.Json.JsonProperty("contract_image")] + [System.Text.Json.Serialization.JsonPropertyName("contract_image")] + public string? ContractImageMaterielId { get; set; } + + /// + /// 获取或设置劳动合同照片 MaterielId 列表。 + /// + [Newtonsoft.Json.JsonProperty("contract_image_list")] + [System.Text.Json.Serialization.JsonPropertyName("contract_image_list")] + public IList? ContractImageMaterielIdList { get; set; } + + /// + /// 获取或设置资质类型。 + /// + [Newtonsoft.Json.JsonProperty("qualification_type")] + [System.Text.Json.Serialization.JsonPropertyName("qualification_type")] + public string? QualificationType { get; set; } + + /// + /// 获取或设置资质材料 MaterielId 列表。 + /// + [Newtonsoft.Json.JsonProperty("qualification_image_list")] + [System.Text.Json.Serialization.JsonPropertyName("qualification_image_list")] + public IList? QualificationImageMaterielIdList { get; set; } + } + } + + /// + /// 获取或设置抖音号。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string AwemeId { get; set; } = string.Empty; + + /// + /// 获取或设置绑定类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = string.Empty; + + /// + /// 获取或设置绑定能力标识列表。 + /// + [Newtonsoft.Json.JsonProperty("capacity_list")] + [System.Text.Json.Serialization.JsonPropertyName("capacity_list")] + public IList CapacityKeyList { get; set; } = new List(); + + /// + /// 获取或设置是否相同主体。 + /// + [Newtonsoft.Json.JsonProperty("co_subject")] + [System.Text.Json.Serialization.JsonPropertyName("co_subject")] + public bool? IsCoSubject { get; set; } + + /// + /// 获取或设置是否相同主体。 + /// + [Newtonsoft.Json.JsonProperty("audit_template_info")] + [System.Text.Json.Serialization.JsonPropertyName("audit_template_info")] + public IDictionary AuditTemplateInfoMap { get; set; } = new Dictionary(); + + /// + /// 获取或设置合作号信息。 + /// + [Newtonsoft.Json.JsonProperty("cooperation_info")] + [System.Text.Json.Serialization.JsonPropertyName("cooperation_info")] + public Types.CooperationInfo? CooperationInfo { get; set; } + + /// + /// 获取或设置员工号信息。 + /// + [Newtonsoft.Json.JsonProperty("employee_info")] + [System.Text.Json.Serialization.JsonPropertyName("employee_info")] + public Types.EmployeeInfo? EmployeeInfo { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Response.cs new file mode 100644 index 00000000..ebe6805e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/bind_aweme_relation/ 接口的响应。 + /// + public class AppsCapacityBindAwemeRelationV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.cs new file mode 100644 index 00000000..896e2ca6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/get_aweme_bind_template_info/ 接口的请求。 + /// + public class AppsCapacityGetAwemeBindTemplateInfoV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置抖音号。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string AwemeId { get; set; } = string.Empty; + + /// + /// 获取或设置绑定类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = string.Empty; + + /// + /// 获取或设置资质模版 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("template_id")] + [System.Text.Json.Serialization.JsonPropertyName("template_id")] + public IList TemplateIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.cs new file mode 100644 index 00000000..2da30f94 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.cs @@ -0,0 +1,127 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/get_aweme_bind_template_info/ 接口的响应。 + /// + public class AppsCapacityGetAwemeBindTemplateInfoV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class TemplateInfo + { + public static class Types + { + public class TemplateContent + { + /// + /// 获取或设置资质名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置资质描述。 + /// + [Newtonsoft.Json.JsonProperty("desc")] + [System.Text.Json.Serialization.JsonPropertyName("desc")] + public string Description { get; set; } = default!; + + /// + /// 获取或设置加粗标题。 + /// + [Newtonsoft.Json.JsonProperty("mainTitle")] + [System.Text.Json.Serialization.JsonPropertyName("mainTitle")] + public string? MainTitle { get; set; } + + /// + /// 获取或设置上传材料 MaterielId。 + /// + [Newtonsoft.Json.JsonProperty("materiel_id")] + [System.Text.Json.Serialization.JsonPropertyName("materiel_id")] + public string? MaterielId { get; set; } + + /// + /// 获取或设置类型。 + /// + [Newtonsoft.Json.JsonProperty("val_type")] + [System.Text.Json.Serialization.JsonPropertyName("val_type")] + public int? ValueType { get; set; } + + /// + /// 获取或设置内容列表。 + /// + [Newtonsoft.Json.JsonProperty("val_list")] + [System.Text.Json.Serialization.JsonPropertyName("val_list")] + public string[]? ValueList { get; set; } + + /// + /// 获取或设置选择项列表。 + /// + [Newtonsoft.Json.JsonProperty("val_example")] + [System.Text.Json.Serialization.JsonPropertyName("val_example")] + public string[]? ValueExampleList { get; set; } + + /// + /// 获取或设置拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reject_reason")] + [System.Text.Json.Serialization.JsonPropertyName("reject_reason")] + public string? RejectReason { get; set; } + } + } + + /// + /// 获取或设置模版 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long TemplateId { get; set; } + + /// + /// 获取或设置模版标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置模版描述。 + /// + [Newtonsoft.Json.JsonProperty("desc")] + [System.Text.Json.Serialization.JsonPropertyName("desc")] + public string Description { get; set; } = default!; + + /// + /// 获取或设置内容列表。 + /// + [Newtonsoft.Json.JsonProperty("template_content")] + [System.Text.Json.Serialization.JsonPropertyName("template_content")] + public Types.TemplateContent[] TemplateContentList { get; set; } = default!; + } + } + + /// + /// 获取或设置资质模版字典。 + /// + [Newtonsoft.Json.JsonProperty("template_info")] + [System.Text.Json.Serialization.JsonPropertyName("template_info")] + public IDictionary TemplateInfoMap { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.cs new file mode 100644 index 00000000..e2000705 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/get_aweme_bind_template_list/ 接口的请求。 + /// + public class AppsCapacityGetAwemeBindTemplateListV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置抖音号。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string AwemeId { get; set; } = string.Empty; + + /// + /// 获取或设置绑定类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = string.Empty; + + /// + /// 获取或设置绑定能力标识列表。 + /// + [Newtonsoft.Json.JsonProperty("capacity_list")] + [System.Text.Json.Serialization.JsonPropertyName("capacity_list")] + public IList CapacityKeyList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.cs new file mode 100644 index 00000000..9f0a66e1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.cs @@ -0,0 +1,79 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/get_aweme_bind_template_list/ 接口的响应。 + /// + public class AppsCapacityGetAwemeBindTemplateListV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class TemplateInfo + { + /// + /// 获取或设置模版 ID。 + /// + [Newtonsoft.Json.JsonProperty("template_id")] + [System.Text.Json.Serialization.JsonPropertyName("template_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long TemplateId { get; set; } + + /// + /// 获取或设置模版标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置所属的类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("category_id")] + [System.Text.Json.Serialization.JsonPropertyName("category_id")] + public string CategoryId { get; set; } = default!; + + /// + /// 获取或设置所属的类目名称。 + /// + [Newtonsoft.Json.JsonProperty("category_name")] + [System.Text.Json.Serialization.JsonPropertyName("category_name")] + public string CategoryName { get; set; } = default!; + + /// + /// 获取或设置是否可以使用。 + /// + [Newtonsoft.Json.JsonProperty("can_apply")] + [System.Text.Json.Serialization.JsonPropertyName("can_apply")] + public bool CanApply { get; set; } + + /// + /// 获取或设置不可使用的原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? Reason { get; set; } + } + } + + /// + /// 获取或设置资质模版字典。 + /// + [Newtonsoft.Json.JsonProperty("template_map")] + [System.Text.Json.Serialization.JsonPropertyName("template_map")] + public IDictionary TemplateInfoMap { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Request.cs new file mode 100644 index 00000000..01af1244 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/get_aweme_relation_bind_qrcode/ 接口的请求。 + /// + public class AppsCapacityGetAwemeRelationBindQrcodeV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置绑定类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string Type { get; set; } = string.Empty; + + /// + /// 获取或设置绑定能力标识列表。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public IList CapacityKeyList { get; set; } = new List(); + + /// + /// 获取或设置是否相同主体。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public bool? IsCoSubject { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.cs new file mode 100644 index 00000000..e9d6c849 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/get_aweme_relation_bind_qrcode/ 接口的响应。 + /// + public class AppsCapacityGetAwemeRelationBindQrcodeV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置二维码图片 URL。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_url")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_url")] + public string QrcodeUrl { get; set; } = default!; + + /// + /// 获取或设置二维码数据。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_parse_content")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_parse_content")] + public string QrcodeData { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Request.cs new file mode 100644 index 00000000..d41b0a23 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Request.cs @@ -0,0 +1,31 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/query_aweme_relation_list/ 接口的请求。 + /// + public class AppsCapacityQueryAwemeRelationListV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置绑定类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string Type { get; set; } = string.Empty; + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.cs new file mode 100644 index 00000000..980f7c91 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.cs @@ -0,0 +1,111 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/capacity/query_aweme_relation_list/ 接口的响应。 + /// + public class AppsCapacityQueryAwemeRelationListV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class AwemeRelation + { + public static class Types + { + public class Capacity + { + /// + /// 获取或设置能力标识。 + /// + [Newtonsoft.Json.JsonProperty("capacity_key")] + [System.Text.Json.Serialization.JsonPropertyName("capacity_key")] + public string CapacityKey { get; set; } = default!; + + /// + /// 获取或设置绑定状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置绑定失败原因。 + /// + [Newtonsoft.Json.JsonProperty("fail_reason")] + [System.Text.Json.Serialization.JsonPropertyName("fail_reason")] + public string? FailReason { get; set; } + } + } + + /// + /// 获取或设置抖音号。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] + public string AwemeId { get; set; } = default!; + + /// + /// 获取或设置昵称。 + /// + [Newtonsoft.Json.JsonProperty("user_name")] + [System.Text.Json.Serialization.JsonPropertyName("user_name")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置账号类型。 + /// + [Newtonsoft.Json.JsonProperty("account_type")] + [System.Text.Json.Serialization.JsonPropertyName("account_type")] + public int AccountType { get; set; } + + /// + /// 获取或设置绑定能力列表。 + /// + [Newtonsoft.Json.JsonProperty("capacity_list")] + [System.Text.Json.Serialization.JsonPropertyName("capacity_list")] + public Types.Capacity[] CapacityList { get; set; } = default!; + + /// + /// 获取或设置绑定状态。 + /// + [Newtonsoft.Json.JsonProperty("bind_status")] + [System.Text.Json.Serialization.JsonPropertyName("bind_status")] + public int BindStatus { get; set; } + + /// + /// 获取或设置绑定失败原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? FailReason { get; set; } + } + } + + /// + /// 获取或设置绑定抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.AwemeRelation[] AwemeRelationList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.cs new file mode 100644 index 00000000..45b4a9e6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/unbind_aweme_relation/ 接口的请求。 + /// + public class AppsCapacityUnbindAwemeRelationV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置抖音号。 + /// + [Newtonsoft.Json.JsonProperty("aweme_id")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_id")] + public string AwemeId { get; set; } = string.Empty; + + /// + /// 获取或设置绑定类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public string Type { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Response.cs new file mode 100644 index 00000000..8aba32cc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/capacity/unbind_aweme_relation/ 接口的响应。 + /// + public class AppsCapacityUnbindAwemeRelationV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityAddAwemeVideoKeywordV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityAddAwemeVideoKeywordV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityAddAwemeVideoKeywordV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityAddAwemeVideoKeywordV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityDeleteAwemeVideoKeywordV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityDeleteAwemeVideoKeywordV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityQueryAwemeVideoKeywordListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/AwemeKeyword/AppsCapacityQueryAwemeVideoKeywordListV1Response.cs diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.json new file mode 100644 index 00000000..232b4621 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityBindAwemeRelationV1Request.json @@ -0,0 +1,38 @@ +{ + "employee_info": { + "relation_expire_date": 6182115480795152177, + "qualification_type": "person", + "qualification_image_list": [ "dpNbt49OYK" ], + "real_name": "小平", + "identity_number": "L0UIPirJC6", + "contract_image": "5JnTdW3CbR" + }, + "audit_template_info": { + "QL7rwwSNXh": { + "id": 1039495565162895323, + "title": "kgPbI4sbLW", + "template_content": [ + { + "name": "tuTda7yMta", + "val_type": 1, + "val_list": [ "jgrKT12ETJ" ], + "materiel_id": "1bybqEM0z8" + } + ] + } + }, + "type": "brand", + "aweme_id": "6ZycG4oL6Y", + "capacity_list": [ "video_self_mount" ], + "co_subject": false, + "cooperation_info": { + "company_name": "XX", + "business_license_code": "123456789", + "real_name": "小平公司", + "identity_number": "olDBxsnBCj", + "contract_image": "NdZ7QFpcxH", + "contract_image_list": [ "5xSm9WVDVK" ], + "relation_expire_date": 4404854813175490268, + "cooperation_type": "enterprise" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.json new file mode 100644 index 00000000..f6604ffb --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Request.json @@ -0,0 +1,5 @@ +{ + "template_id": [ 5667519697104896555 ], + "aweme_id": "JgrAdx3Cyz", + "type": "brand" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.json new file mode 100644 index 00000000..1b02c056 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateInfoV1Response.json @@ -0,0 +1,29 @@ +{ + "data": { + "template_info": { + "6041162202928716253": { + "desc": "DIDqJjFvGx", + "template_content": [ + { + "val_type": 1, + "val_example": [ + "RaTwasYa1b" + ], + "val_list": [ + "uT4WWuuaFd" + ], + "reject_reason": "izsMDIOhX3", + "materiel_id": "Q7e3SCjtI9", + "name": "LYkZEA04ky", + "desc": "yquRd56nKk" + } + ], + "id": 6766976192048133000, + "title": "OW5u7J20Xi" + } + } + }, + "err_no": 1245, + "err_msg": "k8Pnho1YrC", + "log_id": "y6ibtRcRzi" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.json new file mode 100644 index 00000000..3112f826 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Request.json @@ -0,0 +1,5 @@ +{ + "type": "brand", + "capacity_list": [ "video_self_mount" ], + "aweme_id": "4TOiSvx89p" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.json new file mode 100644 index 00000000..f4e60a09 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeBindTemplateListV1Response.json @@ -0,0 +1,19 @@ +{ + "err_no": 1245, + "err_msg": "pkWDkzNGHb", + "log_id": "cezjxtoPu0", + "data": { + "template_map": { + "xXfB8KA6J4": [ + { + "title": "GcvrIuXWI9", + "reason": "9jI13sSvkZ", + "category_name": "sksNoxU9To", + "category_id": "qNJc1eLCEW", + "can_apply": false, + "template_id": 4837835435925716000 + } + ] + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.json new file mode 100644 index 00000000..7181c57f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityGetAwemeRelationBindQrcodeV1Response.json @@ -0,0 +1,9 @@ +{ + "err_no": 12345, + "err_msg": "dYhGdwI02D", + "log_id": "Bxkki1U8qz", + "data": { + "qrcode_url": "MHmxvlFl0N", + "qrcode_parse_content": "qrP0b4C6uX" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.json new file mode 100644 index 00000000..0059f2b6 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityQueryAwemeRelationListV1Response.json @@ -0,0 +1,24 @@ +{ + "data": { + "total_count": 12123, + "list": [ + { + "bind_status": 1, + "reason": "XX", + "account_type": 1, + "aweme_id": 5791922398551857000, + "capacity_list": [ + { + "status": 1, + "fail_reason": "2eYo4eva9Q", + "capacity_key": "2xaMvjuA6E" + } + ], + "user_name": "XX" + } + ] + }, + "err_no": 12345, + "err_msg": "28qeUcfsgo", + "log_id": "dI5gONG4WU" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.json new file mode 100644 index 00000000..3765f25a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeBind/AppsCapacityUnbindAwemeRelationV1Request.json @@ -0,0 +1,4 @@ +{ + "type": "brand", + "aweme_id": "1467922731088997102" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeKeyword/AppsCapacityAddAwemeVideoKeywordV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityAddAwemeVideoKeywordV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeKeyword/AppsCapacityAddAwemeVideoKeywordV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeKeyword/AppsCapacityDeleteAwemeVideoKeywordV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityDeleteAwemeVideoKeywordV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeKeyword/AppsCapacityDeleteAwemeVideoKeywordV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeKeyword/AppsCapacityQueryAwemeVideoKeywordListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/Aweme/AppsCapacityQueryAwemeVideoKeywordListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsCapacity/AwemeKeyword/AppsCapacityQueryAwemeVideoKeywordListV1Response.json From 6e0a8ee824c50b9daf0cd2c2ff37895f224fe744 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 21:45:20 +0800 Subject: [PATCH 30/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E6=B6=88=E6=81=AF=20v2=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...oAppClientExecuteAppsCapacityExtensions.cs | 16 +- ...ClientExecuteAppsNotificationExtensions.cs | 195 ++++++++++++++++++ .../AppsCapacityDeleteAliasV1Request.cs | 2 +- .../AppsCapacityDeleteAliasV1Response.cs | 2 +- .../AppsCapacityModifyAliasV1Request.cs | 2 +- .../AppsCapacityModifyAliasV1Response.cs | 2 +- ...AppsCapacityQuerySearchTagListV1Request.cs | 2 +- ...ppsCapacityQuerySearchTagListV1Response.cs | 2 +- .../AppsCapacitySetSearchTagV1Request.cs | 2 +- .../AppsCapacitySetSearchTagV1Response.cs | 2 +- ...tionSubscriptionAddAppTemplateV2Request.cs | 24 +++ ...ionSubscriptionAddAppTemplateV2Response.cs | 28 +++ ...tionSubscriptionCreateTemplateV2Request.cs | 45 ++++ ...ionSubscriptionCreateTemplateV2Response.cs | 9 + ...nSubscriptionDeleteAppTemplateV2Request.cs | 15 ++ ...SubscriptionDeleteAppTemplateV2Response.cs | 9 + ...ficationSubscriptionNotifyUserV2Request.cs | 38 ++++ ...icationSubscriptionNotifyUserV2Response.cs | 9 + ...onSubscriptionQueryAppTemplateV2Request.cs | 38 ++++ ...nSubscriptionQueryAppTemplateV2Response.cs | 48 +++++ ...iptionQueryCreatedTemplateListV2Request.cs | 31 +++ ...ptionQueryCreatedTemplateListV2Response.cs | 90 ++++++++ ...nSubscriptionQueryTemplateListV2Request.cs | 52 +++++ ...SubscriptionQueryTemplateListV2Response.cs | 83 ++++++++ ...onSubscriptionAddAppTemplateV2Request.json | 4 + ...nSubscriptionAddAppTemplateV2Response.json | 8 + ...onSubscriptionCreateTemplateV2Request.json | 7 + ...cationSubscriptionNotifyUserV2Request.json | 9 + ...ubscriptionQueryAppTemplateV2Response.json | 24 +++ ...ionQueryCreatedTemplateListV2Response.json | 25 +++ ...bscriptionQueryTemplateListV2Response.json | 23 +++ 31 files changed, 830 insertions(+), 16 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsNotificationExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionCreateTemplateV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionNotifyUserV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryAppTemplateV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryTemplateListV2Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs index 92e434a6..88e3b6e4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsCapacityExtensions.cs @@ -278,7 +278,7 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions } /// - /// 异步调用 [POST] /apps/v1/capacity/modify_alias 接口。 + /// 异步调用 [POST] /apps/v1/capacity/modify_alias/ 接口。 /// /// REF:
/// @@ -294,14 +294,14 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_alias") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_alias", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/v1/capacity/delete_alias 接口。 + /// 异步调用 [POST] /apps/v1/capacity/delete_alias/ 接口。 /// /// REF:
/// @@ -317,14 +317,14 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_alias") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_alias", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [POST] /apps/v1/capacity/set_search_tag 接口。 + /// 异步调用 [POST] /apps/v1/capacity/set_search_tag/ 接口。 /// /// REF:
/// @@ -340,14 +340,14 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "set_search_tag") + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "set_search_tag", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// - /// 异步调用 [GET] /apps/v1/capacity/query_search_tag_list 接口。 + /// 异步调用 [GET] /apps/v1/capacity/query_search_tag_list/ 接口。 /// /// REF:
/// @@ -363,7 +363,7 @@ public static class DouyinMicroAppClientExecuteAppsCapacityExtensions if (request is null) throw new ArgumentNullException(nameof(request)); IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_search_tag_list") + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_search_tag_list", "") .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsNotificationExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsNotificationExtensions.cs new file mode 100644 index 00000000..0706e732 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsNotificationExtensions.cs @@ -0,0 +1,195 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsNotificationExtensions + { + /// + /// 异步调用 [GET] /notification/v2/subscription/query_tpl_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteNotificationSubscriptionQueryTemplateListV2Async(this DouyinMicroAppClient client, Models.NotificationSubscriptionQueryTemplateListV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "notification", "v2", "subscription", "query_tpl_list", "") + .SetQueryParam("classification", request.Classification) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .WithHeader("access-token", request.AccessToken); + + if (request.TemplateType is not null) + flurlReq.SetQueryParam("template_type", request.TemplateType); + + if (request.CategoryIdString is not null) + flurlReq.SetQueryParam("category_ids", request.CategoryIdString); + + if (request.Keyword is not null) + flurlReq.SetQueryParam("keyword", request.Keyword); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /notification/v2/subscription/create_tpl/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteNotificationSubscriptionCreateTemplateV2Async(this DouyinMicroAppClient client, Models.NotificationSubscriptionCreateTemplateV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "notification", "v2", "subscription", "create_tpl", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /notification/v2/subscription/query_created_tpl_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteNotificationSubscriptionQueryCreatedTemplateListV2Async(this DouyinMicroAppClient client, Models.NotificationSubscriptionQueryCreatedTemplateListV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "notification", "v2", "subscription", "query_created_tpl_list", "") + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .WithHeader("access-token", request.AccessToken); + + if (request.Status is not null) + flurlReq.SetQueryParam("status", request.Status.Value); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /notification/v2/subscription/add_app_tpl/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteNotificationSubscriptionAddAppTemplateV2Async(this DouyinMicroAppClient client, Models.NotificationSubscriptionAddAppTemplateV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "notification", "v2", "subscription", "add_app_tpl", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /notification/v2/subscription/query_app_tpl/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteNotificationSubscriptionQueryAppTemplateV2Async(this DouyinMicroAppClient client, Models.NotificationSubscriptionQueryAppTemplateV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "notification", "v2", "subscription", "query_app_tpl", "") + .SetQueryParam("classification", request.Classification) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize) + .WithHeader("access-token", request.AccessToken); + + if (request.CategoryIdString is not null) + flurlReq.SetQueryParam("category_ids", request.CategoryIdString); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /notification/v2/subscription/delete_app_tpl/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteNotificationSubscriptionDeleteAppTemplateV2Async(this DouyinMicroAppClient client, Models.NotificationSubscriptionDeleteAppTemplateV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "notification", "v2", "subscription", "delete_app_tpl", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /notification/v2/subscription/notify_user/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteNotificationSubscriptionNotifyUserV2Async(this DouyinMicroAppClient client, Models.NotificationSubscriptionNotifyUserV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "notification", "v2", "subscription", "notify_user", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.cs index 7010def6..570ebc01 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/delete_alias 接口的请求。 + /// 表示 [POST] /apps/v1/capacity/delete_alias/ 接口的请求。 /// public class AppsCapacityDeleteAliasV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs index 71e2d42a..8f1b2f10 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityDeleteAliasV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/delete_alias 接口的响应。 + /// 表示 [POST] /apps/v1/capacity/delete_alias/ 接口的响应。 /// public class AppsCapacityDeleteAliasV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.cs index 3d12c916..72d96257 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/modify_alias 接口的请求。 + /// 表示 [POST] /apps/v1/capacity/modify_alias/ 接口的请求。 /// public class AppsCapacityModifyAliasV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs index 003205cc..81d3aedc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityModifyAliasV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/modify_alias 接口的响应。 + /// 表示 [POST] /apps/v1/capacity/modify_alias/ 接口的响应。 /// public class AppsCapacityModifyAliasV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs index 79512188..b38f680b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Request.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [GET] /apps/v1/capacity/query_search_tag_list 接口的请求。 + /// 表示 [GET] /apps/v1/capacity/query_search_tag_list/ 接口的请求。 /// public class AppsCapacityQuerySearchTagListV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs index 3801475c..910b84d0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacityQuerySearchTagListV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [GET] /apps/v1/capacity/query_search_tag_list 接口的响应。 + /// 表示 [GET] /apps/v1/capacity/query_search_tag_list/ 接口的响应。 /// public class AppsCapacityQuerySearchTagListV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.cs index 245e719c..f1c20a39 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/set_search_tag 接口的请求。 + /// 表示 [POST] /apps/v1/capacity/set_search_tag/ 接口的请求。 /// public class AppsCapacitySetSearchTagV1Request : DouyinMicroAppRequest { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs index 438a96b8..8cd2f5ee 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsCapacity/Delivery/AppsCapacitySetSearchTagV1Response.cs @@ -1,7 +1,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// - /// 表示 [POST] /apps/v1/capacity/set_search_tag 接口的响应。 + /// 表示 [POST] /apps/v1/capacity/set_search_tag/ 接口的响应。 /// public class AppsCapacitySetSearchTagV1Response : DouyinMicroAppResponse { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Request.cs new file mode 100644 index 00000000..0d0a13ca --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Request.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/add_app_tpl/ 接口的请求。 + /// + public class NotificationSubscriptionAddAppTemplateV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("template_id")] + [System.Text.Json.Serialization.JsonPropertyName("template_id")] + public long TemplateId { get; set; } + + /// + /// 获取或设置关键词列表。 + /// + [Newtonsoft.Json.JsonProperty("keyword_list")] + [System.Text.Json.Serialization.JsonPropertyName("keyword_list")] + public IList KeywordList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Response.cs new file mode 100644 index 00000000..5de2a33d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/add_app_tpl/ 接口的响应。 + /// + public class NotificationSubscriptionAddAppTemplateV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置消息模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("msg_id")] + [System.Text.Json.Serialization.JsonPropertyName("msg_id")] + public string MessageId { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Request.cs new file mode 100644 index 00000000..6e17e883 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Request.cs @@ -0,0 +1,45 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/create_tpl/ 接口的请求。 + /// + public class NotificationSubscriptionCreateTemplateV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category_ids")] + [System.Text.Json.Serialization.JsonPropertyName("category_ids")] + public string CategoryIdString { get; set; } = string.Empty; + + /// + /// 获取或设置订阅消息类型。 + /// + [Newtonsoft.Json.JsonProperty("classification")] + [System.Text.Json.Serialization.JsonPropertyName("classification")] + public int Classification { get; set; } + + /// + /// 获取或设置模板标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = string.Empty; + + /// + /// 获取或设置宿主 App 列表。 + /// + [Newtonsoft.Json.JsonProperty("host_list")] + [System.Text.Json.Serialization.JsonPropertyName("host_list")] + public IList HostNameList { get; set; } = new List(); + + /// + /// 获取或设置关键词列表。 + /// + [Newtonsoft.Json.JsonProperty("keyword_list")] + [System.Text.Json.Serialization.JsonPropertyName("keyword_list")] + public IList KeywordList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Response.cs new file mode 100644 index 00000000..561c4465 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/create_tpl/ 接口的响应。 + /// + public class NotificationSubscriptionCreateTemplateV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Request.cs new file mode 100644 index 00000000..018c8646 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/delete_app_tpl/ 接口的请求。 + /// + public class NotificationSubscriptionDeleteAppTemplateV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置消息模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("msg_id")] + [System.Text.Json.Serialization.JsonPropertyName("msg_id")] + public string MessageId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Response.cs new file mode 100644 index 00000000..cfb32c56 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/delete_app_tpl/ 接口的响应。 + /// + public class NotificationSubscriptionDeleteAppTemplateV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Request.cs new file mode 100644 index 00000000..07b8986a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Request.cs @@ -0,0 +1,38 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/notify_user/ 接口的请求。 + /// + public class NotificationSubscriptionNotifyUserV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置消息模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("msg_id")] + [System.Text.Json.Serialization.JsonPropertyName("msg_id")] + public string MessageId { get; set; } = string.Empty; + + /// + /// 获取或设置用户的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = string.Empty; + + /// + /// 获取或设置模板内容信息。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public IDictionary Data { get; set; } = new Dictionary(); + + /// + /// 获取或设置跳转的页面。 + /// + [Newtonsoft.Json.JsonProperty("page")] + [System.Text.Json.Serialization.JsonPropertyName("page")] + public string? PagePath { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Response.cs new file mode 100644 index 00000000..676ca30b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /notification/v2/subscription/notify_user/ 接口的响应。 + /// + public class NotificationSubscriptionNotifyUserV2Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Request.cs new file mode 100644 index 00000000..e5d2c524 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Request.cs @@ -0,0 +1,38 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /notification/v2/subscription/query_app_tpl/ 接口的请求。 + /// + public class NotificationSubscriptionQueryAppTemplateV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置订阅消息类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int Classification { get; set; } + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? CategoryIdString { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Response.cs new file mode 100644 index 00000000..95ed8472 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /notification/v2/subscription/query_app_tpl/ 接口的响应。 + /// + public class NotificationSubscriptionQueryAppTemplateV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Template : NotificationSubscriptionQueryTemplateListV2Response.Types.Data.Types.Template + { + /// + /// 获取或设置消息模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("msg_id")] + [System.Text.Json.Serialization.JsonPropertyName("msg_id")] + public string MessageId { get; set; } = default!; + } + } + + /// + /// 获取或设置消息模板列表。 + /// + [Newtonsoft.Json.JsonProperty("template_list")] + [System.Text.Json.Serialization.JsonPropertyName("template_list")] + public Types.Template[] TemplateList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs new file mode 100644 index 00000000..42f777eb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs @@ -0,0 +1,31 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /notification/v2/subscription/query_created_tpl_list/ 接口的请求。 + /// + public class NotificationSubscriptionQueryCreatedTemplateListV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? Status { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs new file mode 100644 index 00000000..313c57a5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs @@ -0,0 +1,90 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /notification/v2/subscription/query_created_tpl_list/ 接口的响应。 + /// + public class NotificationSubscriptionQueryCreatedTemplateListV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Template + { + /// + /// 获取或设置订阅消息类型。 + /// + [Newtonsoft.Json.JsonProperty("classification")] + [System.Text.Json.Serialization.JsonPropertyName("classification")] + public int Classification { get; set; } + + /// + /// 获取或设置模板标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置宿主 App 列表。 + /// + [Newtonsoft.Json.JsonProperty("host_list")] + [System.Text.Json.Serialization.JsonPropertyName("host_list")] + public string[] HostNameList { get; set; } = default!; + + /// + /// 获取或设置关键词列表。 + /// + [Newtonsoft.Json.JsonProperty("keyword_list")] + [System.Text.Json.Serialization.JsonPropertyName("keyword_list")] + public string[] KeywordList { get; set; } = default!; + + /// + /// 获取或设置操作时间戳。 + /// + [Newtonsoft.Json.JsonProperty("operating_time")] + [System.Text.Json.Serialization.JsonPropertyName("operating_time")] + public long OperatingTimestamp { get; set; } + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置审核拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("fail_reason")] + [System.Text.Json.Serialization.JsonPropertyName("fail_reason")] + public string? FailReason { get; set; } + } + } + + /// + /// 获取或设置模板列表。 + /// + [Newtonsoft.Json.JsonProperty("template_list")] + [System.Text.Json.Serialization.JsonPropertyName("template_list")] + public Types.Template[] TemplateList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Request.cs new file mode 100644 index 00000000..8d288b7d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Request.cs @@ -0,0 +1,52 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /notification/v2/subscription/query_tpl_list/ 接口的请求。 + /// + public class NotificationSubscriptionQueryTemplateListV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置订阅消息类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int Classification { get; set; } + + /// + /// 获取或设置模板类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int? TemplateType { get; set; } + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? CategoryIdString { get; set; } + + /// + /// 获取或设置关键词。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? Keyword { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Response.cs new file mode 100644 index 00000000..8d39ade4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Response.cs @@ -0,0 +1,83 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /notification/v2/subscription/query_tpl_list/ 接口的响应。 + /// + public class NotificationSubscriptionQueryTemplateListV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Template + { + /// + /// 获取或设置模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("template_id")] + [System.Text.Json.Serialization.JsonPropertyName("template_id")] + public long TemplateId { get; set; } + + /// + /// 获取或设置订阅消息类型。 + /// + [Newtonsoft.Json.JsonProperty("classification")] + [System.Text.Json.Serialization.JsonPropertyName("classification")] + public int Classification { get; set; } + + /// + /// 获取或设置服务类目名称。 + /// + [Newtonsoft.Json.JsonProperty("category_name")] + [System.Text.Json.Serialization.JsonPropertyName("category_name")] + public string CategoryName { get; set; } = default!; + + /// + /// 获取或设置模板标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置宿主 App 列表。 + /// + [Newtonsoft.Json.JsonProperty("host_list")] + [System.Text.Json.Serialization.JsonPropertyName("host_list")] + public string[] HostNameList { get; set; } = default!; + + /// + /// 获取或设置关键词列表。 + /// + [Newtonsoft.Json.JsonProperty("keyword_list")] + [System.Text.Json.Serialization.JsonPropertyName("keyword_list")] + public string[] KeywordList { get; set; } = default!; + } + } + + /// + /// 获取或设置消息模板列表。 + /// + [Newtonsoft.Json.JsonProperty("template_list")] + [System.Text.Json.Serialization.JsonPropertyName("template_list")] + public Types.Template[] TemplateList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_count")] + [System.Text.Json.Serialization.JsonPropertyName("total_count")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Request.json new file mode 100644 index 00000000..a89194a8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Request.json @@ -0,0 +1,4 @@ +{ + "template_id": 12259, + "keyword_list": [ "时间", "风格" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Response.json new file mode 100644 index 00000000..e173e1c6 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Response.json @@ -0,0 +1,8 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "202008121419360101980821035705926A", + "data": { + "msg_id": "MSG123456" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionCreateTemplateV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionCreateTemplateV2Request.json new file mode 100644 index 00000000..25e1b3ff --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionCreateTemplateV2Request.json @@ -0,0 +1,7 @@ +{ + "title": "xxx", + "keyword_list": [ "xxx", "xx" ], + "category_ids": "8,9,16", + "classification": 1, + "host_list": [ "douyin", "toutiao" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionNotifyUserV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionNotifyUserV2Request.json new file mode 100644 index 00000000..a7cf00b8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionNotifyUserV2Request.json @@ -0,0 +1,9 @@ +{ + "msg_id": "MSG38489d04608c5f0fdeb565fc5114afff6410*******", + "open_id": "36d4bd3c8****", + "data": { + "物品名称": "测试值0", + "购买金额": "测试值1" + }, + "page": "pages/index?a=b" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryAppTemplateV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryAppTemplateV2Response.json new file mode 100644 index 00000000..60609958 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryAppTemplateV2Response.json @@ -0,0 +1,24 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "202008121419360101980821035705926A", + "data": { + "total_count": 1, + "template_list": [ + { + "msg_id": "MSG122591232", + "template_id": 12259, + "classification": 1, + "title": "拍摄通知", + "keyword_list": [ + "时间", + "地点" + ], + "category_name": "摄影/扩印", + "host_list": [ + "toutiao" + ] + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.json new file mode 100644 index 00000000..8595a574 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.json @@ -0,0 +1,25 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "202008121419360101980821035705926A", + "data": { + "total_count": 1, + "template_list": [ + { + "title": "xxxx", + "keyword_list": [ + "xx", + "xxx" + ], + "classification": 1, + "host_list": [ + "toutiao", + "douyin" + ], + "operating_time": 1672835937, + "status": 1, + "fail_reason": "" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryTemplateListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryTemplateListV2Response.json new file mode 100644 index 00000000..cfdfc1e7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryTemplateListV2Response.json @@ -0,0 +1,23 @@ +{ + "err_msg": "success", + "err_no": 0, + "log_id": "202008121419360101980821035705926A", + "data": { + "total_count": 1, + "template_list": [ + { + "template_id": 12259, + "classification": 1, + "title": "拍摄通知", + "keyword_list": [ + "时间", + "地点" + ], + "category_name": "摄影/扩印", + "host_list": [ + "toutiao" + ] + } + ] + } +} From dca8d9e8ab03f8e2db0db54dc1c86f711d5fd268 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Mar 2024 23:20:45 +0800 Subject: [PATCH 31/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E8=AE=A1=E5=88=92=20v2=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 24 ++ .../Models/ProductApiModifyNoAuditRequest.cs | 4 +- ...croAppClientExecuteLegacyAppsExtensions.cs | 26 ++ ...yinMicroAppClientExecuteMatchExtensions.cs | 201 +++++++++++++ ...AppClientExecuteNotificationExtensions.cs} | 2 +- .../Match/MatchTaskBoxAddRoomTaskV2Request.cs | 94 ++++++ .../MatchTaskBoxAddRoomTaskV2Response.cs | 36 +++ .../Match/MatchTaskBoxAddTaskV2Request.cs | 155 ++++++++++ .../Match/MatchTaskBoxAddTaskV2Response.cs | 29 ++ .../MatchTaskBoxQueryAppTaskIdV2Request.cs | 22 ++ .../MatchTaskBoxQueryAppTaskIdV2Response.cs | 28 ++ .../MatchTaskBoxQueryBillLinkV2Request.cs | 15 + .../MatchTaskBoxQueryBillLinkV2Response.cs | 28 ++ .../MatchTaskBoxQueryTaskInfoV2Request.cs | 38 +++ .../MatchTaskBoxQueryTaskInfoV2Response.cs | 274 ++++++++++++++++++ ...chTaskBoxQueryVideoSummaryDataV2Request.cs | 17 ++ ...hTaskBoxQueryVideoSummaryDataV2Response.cs | 65 +++++ .../MatchTaskBoxUpdateStatusV2Request.cs | 24 ++ .../MatchTaskBoxUpdateStatusV2Response.cs | 22 ++ .../Match/MatchTaskBoxUpdateTaskV2Request.cs | 120 ++++++++ .../Match/MatchTaskBoxUpdateTaskV2Response.cs | 22 ++ ...CapacityQueryClueComponentInfoV1Request.cs | 2 +- .../AppsTaskBoxUpdateOrientTalentsRequest.cs | 38 +++ .../AppsTaskBoxUpdateOrientTalentsResponse.cs | 48 +++ .../MatchTaskBoxAddRoomTaskV2Request.json | 19 ++ .../MatchTaskBoxAddRoomTaskV2Response.json | 9 + .../_/Match/MatchTaskBoxAddTaskV2Request.json | 16 + .../Match/MatchTaskBoxAddTaskV2Response.json | 8 + .../MatchTaskBoxQueryAppTaskIdV2Request.json | 4 + .../MatchTaskBoxQueryAppTaskIdV2Response.json | 12 + .../MatchTaskBoxQueryBillLinkV2Request.json | 3 + .../MatchTaskBoxQueryBillLinkV2Response.json | 8 + .../MatchTaskBoxQueryTaskInfoV2Request.json | 6 + .../MatchTaskBoxQueryTaskInfoV2Response.json | 53 ++++ ...TaskBoxQueryVideoSummaryDataV2Request.json | 3 + ...askBoxQueryVideoSummaryDataV2Response.json | 12 + .../MatchTaskBoxUpdateStatusV2Request.json | 4 + .../MatchTaskBoxUpdateStatusV2Response.json | 8 + .../MatchTaskBoxUpdateTaskV2Request.json | 21 ++ .../MatchTaskBoxUpdateTaskV2Response.json | 8 + ...AppsTaskBoxUpdateOrientTalentsRequest.json | 10 + ...ppsTaskBoxUpdateOrientTalentsResponse.json | 12 + 42 files changed, 1546 insertions(+), 4 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteAppsNotificationExtensions.cs => DouyinMicroAppClientExecuteNotificationExtensions.cs} (99%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 5981545f..1bf81342 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,30 @@ [展开查看] +- Release 3.0.0 (2024-xx-xx) + + - **新增**:新增 URL Link v2、URL Schema v2、二维码 v2、订阅消息 v2、推广计划 v2、流量主 v2 等相关接口。 + + - **新增**:新增内容安全图片检测 v3、普通二维码绑定 v3 等相关接口。 + + - **新增**:新增线索组件、视频能力、搜索能力、任务能力、用户信息、分享等相关接口。 + + - **新增**:新增小程序能力申请、抖音号绑定等相关接口。 + + - **新增**:新增泛知识角色系统抖音号绑定相关接口。 + + - **新增**:独立化直播小玩法 API 客户端,支持自动生成请求签名。 + + - **变更**:升级公共组件至 v3.0.0。完整变更说明请参阅迁移指南。 + + - **变更**:重命名客户端 `ByteDanceMicroAppClient` 为 `DouyinMicroAppClient`。 + + - **变更**:移除部分已废弃接口。 + + - **修复**:修复泛知识课程库添加课程接口模型定义错误。 + + - **修复**:修复担保支付相关接口 GET 请求签名错误。(_via_ [GitHub #20](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance/pull/20)) + - Release 2.5.0 (2023-07-17) - **新增**:新增担保支付自动结算结果查询接口。(_via_ [GitHub #12](https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance/pull/12)) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs index da7fbe6a..5428ab47 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs @@ -13,7 +13,7 @@ public class ProductInfo { public static class Types { - public class MiniAppPageInfo + public class PageInfo { /// /// 获取或设置小程序页面路径。 @@ -43,7 +43,7 @@ public class MiniAppPageInfo /// [Newtonsoft.Json.JsonProperty("path_info_lst")] [System.Text.Json.Serialization.JsonPropertyName("path_info_lst")] - public IList MiniAppPageList { get; set; } = new List(); + public IList PageList { get; set; } = new List(); } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index b094ce25..f4819fd6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -2065,6 +2065,32 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + + /// + /// 异步调用 [POST] /apps/taskbox/update_orient_talents/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTaskBoxUpdateOrientTalentsAsync(this DouyinMicroAppClient client, Models.AppsTaskBoxUpdateOrientTalentsRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update_orient_talents", "") + .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/update_orient_talents"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } #endregion #region Video diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchExtensions.cs new file mode 100644 index 00000000..96c91181 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchExtensions.cs @@ -0,0 +1,201 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteMatchExtensions + { + /// + /// 异步调用 [POST] /match/v2/taskbox/add_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxAddTaskV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxAddTaskV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "add_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /match/v2/taskbox/add_room_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxAddRoomTaskV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxAddRoomTaskV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "add_room_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /match/v2/taskbox/update_task/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxUpdateTaskV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxUpdateTaskV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.AppId is null) + request.AppId = client.Credentials.AppId; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "update_task", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /match/v2/taskbox/update_status/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxUpdateStatusV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxUpdateStatusV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "update_status", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /match/v2/taskbox/query_app_task_id/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxQueryAppTaskIdV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxQueryAppTaskIdV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "query_app_task_id", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /match/v2/taskbox/query_task_info/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxQueryTaskInfoV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxQueryTaskInfoV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "query_task_info", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /match/v2/taskbox/query_bill_link/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxQueryBillLinkV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxQueryBillLinkV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "query_bill_link", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /match/v2/taskbox/query_video_sum_data/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteMatchTaskBoxQueryVideoSummaryDataV2Async(this DouyinMicroAppClient client, Models.MatchTaskBoxQueryVideoSummaryDataV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "match", "v2", "taskbox", "query_video_sum_data", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsNotificationExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationExtensions.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsNotificationExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationExtensions.cs index 0706e732..6196e7b1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsNotificationExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteAppsNotificationExtensions + public static class DouyinMicroAppClientExecuteNotificationExtensions { /// /// 异步调用 [GET] /notification/v2/subscription/query_tpl_list/ 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Request.cs new file mode 100644 index 00000000..337b801b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Request.cs @@ -0,0 +1,94 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/add_room_task/ 接口的请求。 + /// + public class MatchTaskBoxAddRoomTaskV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置任务名称。 + /// + [Newtonsoft.Json.JsonProperty("task_name")] + [System.Text.Json.Serialization.JsonPropertyName("task_name")] + public string TaskName { get; set; } = string.Empty; + + /// + /// 获取或设置结算方式。 + /// + [Newtonsoft.Json.JsonProperty("task_settle_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_settle_type")] + public int TaskSettleType { get; set; } + + /// + /// 获取或设置小程序页面地址。 + /// + [Newtonsoft.Json.JsonProperty("start_page")] + [System.Text.Json.Serialization.JsonPropertyName("start_page")] + public string? PagePath { get; set; } + + /// + /// 获取或设置直播间页面标题。 + /// + [Newtonsoft.Json.JsonProperty("room_title")] + [System.Text.Json.Serialization.JsonPropertyName("room_title")] + public string? RoomTitle { get; set; } + + /// + /// 获取或设置内容标签。 + /// + [Newtonsoft.Json.JsonProperty("content_tag")] + [System.Text.Json.Serialization.JsonPropertyName("content_tag")] + public string? ContentTag { get; set; } + + /// + /// 获取或设置形态标签。 + /// + [Newtonsoft.Json.JsonProperty("form_tag")] + [System.Text.Json.Serialization.JsonPropertyName("form_tag")] + public string? FormTag { get; set; } + + /// + /// 获取或设置任务图标 URL。 + /// + [Newtonsoft.Json.JsonProperty("task_icon")] + [System.Text.Json.Serialization.JsonPropertyName("task_icon")] + public string TaskIconUrl { get; set; } = string.Empty; + + /// + /// 获取或设置任务开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_start_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_start_time")] + public long TaskStartTimestamp { get; set; } + + /// + /// 获取或设置任务结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_end_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_end_time")] + public long TaskEndTimestamp { get; set; } + + /// + /// 获取或设置任务简介。 + /// + [Newtonsoft.Json.JsonProperty("task_desc")] + [System.Text.Json.Serialization.JsonPropertyName("task_desc")] + public string TaskDescription { get; set; } = string.Empty; + + /// + /// 获取或设置示例视频 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_videos")] + [System.Text.Json.Serialization.JsonPropertyName("refer_videos")] + public IList? ReferVideoUrlList { get; set; } + + /// + /// 获取或设置小程序截图 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_ma_captures")] + [System.Text.Json.Serialization.JsonPropertyName("refer_ma_captures")] + public IList? ReferMicroAppCaptureUrlList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Response.cs new file mode 100644 index 00000000..db0550fc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Response.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/add_room_task/ 接口的响应。 + /// + public class MatchTaskBoxAddRoomTaskV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long TaskId { get; set; } + + /// + /// 获取或设置任务链接。 + /// + [Newtonsoft.Json.JsonProperty("task_url")] + [System.Text.Json.Serialization.JsonPropertyName("task_url")] + public string TaskUrl { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Request.cs new file mode 100644 index 00000000..9e647850 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Request.cs @@ -0,0 +1,155 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/add_task/ 接口的请求。 + /// + public class MatchTaskBoxAddTaskV2Request : DouyinMicroAppRequest + { + /// + [Newtonsoft.Json.JsonProperty("access_token")] + [System.Text.Json.Serialization.JsonPropertyName("access_token")] + public override string? AccessToken { get; set; } + + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string? AppId { get; set; } + + /// + /// 获取或设置任务名称。 + /// + [Newtonsoft.Json.JsonProperty("task_name")] + [System.Text.Json.Serialization.JsonPropertyName("task_name")] + public string TaskName { get; set; } = string.Empty; + + /// + /// 获取或设置结算方式。 + /// + [Newtonsoft.Json.JsonProperty("task_settle_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_settle_type")] + public int TaskSettleType { get; set; } + + /// + /// 获取或设置页面类型。 + /// + [Newtonsoft.Json.JsonProperty("page_type")] + [System.Text.Json.Serialization.JsonPropertyName("page_type")] + public int? PageType { get; set; } + + /// + /// 获取或设置小程序页面地址。 + /// + [Newtonsoft.Json.JsonProperty("start_page")] + [System.Text.Json.Serialization.JsonPropertyName("start_page")] + public string? PagePath { get; set; } + + /// + /// 获取或设置锚点标题。 + /// + [Newtonsoft.Json.JsonProperty("anchor_title")] + [System.Text.Json.Serialization.JsonPropertyName("anchor_title")] + public string? AnchorTitle { get; set; } + + /// + /// 获取或设置任务图标 URL。 + /// + [Newtonsoft.Json.JsonProperty("task_icon")] + [System.Text.Json.Serialization.JsonPropertyName("task_icon")] + public string TaskIconUrl { get; set; } = string.Empty; + + /// + /// 获取或设置任务开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_start_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_start_time")] + public long TaskStartTimestamp { get; set; } + + /// + /// 获取或设置任务结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_end_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_end_time")] + public long TaskEndTimestamp { get; set; } + + /// + /// 获取或设置任务简介。 + /// + [Newtonsoft.Json.JsonProperty("task_desc")] + [System.Text.Json.Serialization.JsonPropertyName("task_desc")] + public string TaskDescription { get; set; } = string.Empty; + + /// + /// 获取或设置示例视频 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_videos")] + [System.Text.Json.Serialization.JsonPropertyName("refer_videos")] + public IList? ReferVideoUrlList { get; set; } + + /// + /// 获取或设置任务标签列表。 + /// + [Newtonsoft.Json.JsonProperty("task_tags")] + [System.Text.Json.Serialization.JsonPropertyName("task_tags")] + public IList TaskTagList { get; set; } = new List(); + + /// + /// 获取或设置小程序截图 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_ma_captures")] + [System.Text.Json.Serialization.JsonPropertyName("refer_ma_captures")] + public IList? ReferMicroAppCaptureUrlList { get; set; } + + /// + /// 获取或设置视频的 GID 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_gids")] + [System.Text.Json.Serialization.JsonPropertyName("refer_gids")] + public IList? ReferGIdList { get; set; } + + /// + /// 获取或设置任务最大退款周期(单位:天)。 + /// + [Newtonsoft.Json.JsonProperty("task_refund_period")] + [System.Text.Json.Serialization.JsonPropertyName("task_refund_period")] + public int? TaskRefundPeriod { get; set; } + + /// + /// 获取或设置指定推广达人列表。 + /// + [Newtonsoft.Json.JsonProperty("douyin_ids")] + [System.Text.Json.Serialization.JsonPropertyName("douyin_ids")] + public IList? DouyinIdList { get; set; } + + /// + /// 获取或设置混合分成比例字典(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("mix_payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("mix_payment_allocate_ratio")] + public IDictionary? MixPaymentAllocateRatioMap { get; set; } + + /// + /// 获取或设置分成比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("payment_allocate_ratio")] + public int? PaymentAllocateRatio { get; set; } + + /// + /// 获取或设置达人混合分成比例字典(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("talent_mix_payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("talent_mix_payment_allocate_ratio")] + public IDictionary? TalentMixPaymentAllocateRatioMap { get; set; } + + /// + /// 获取或设置达人分成比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("talent_payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("talent_payment_allocate_ratio")] + public int? TalentPaymentAllocateRatio { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Response.cs new file mode 100644 index 00000000..c85dd97c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Response.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/add_task/ 接口的响应。 + /// + public class MatchTaskBoxAddTaskV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long TaskId { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Request.cs new file mode 100644 index 00000000..21d91b7b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_app_task_id/ 接口的请求。 + /// + public class MatchTaskBoxQueryAppTaskIdV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置创建时间起始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_start_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_start_time")] + public long StartCreateTimestamp { get; set; } + + /// + /// 获取或设置创建时间终止时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_end_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_end_time")] + public long EndCreateTimestamp { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Response.cs new file mode 100644 index 00000000..b672ab4c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_app_task_id/ 接口的响应。 + /// + public class MatchTaskBoxQueryAppTaskIdV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("task_ids")] + [System.Text.Json.Serialization.JsonPropertyName("task_ids")] + public long[] TaskIdList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Request.cs new file mode 100644 index 00000000..a46f4a5c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_bill_link/ 接口的请求。 + /// + public class MatchTaskBoxQueryBillLinkV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置计费日期字符串(格式:yyyy-MM-dd)。 + /// + [Newtonsoft.Json.JsonProperty("bill_date")] + [System.Text.Json.Serialization.JsonPropertyName("bill_date")] + public string BillDateString { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Response.cs new file mode 100644 index 00000000..fa5eead8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_bill_link/ 接口的响应。 + /// + public class MatchTaskBoxQueryBillLinkV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置账单文件下载链接。 + /// + [Newtonsoft.Json.JsonProperty("bill_link")] + [System.Text.Json.Serialization.JsonPropertyName("bill_link")] + public string BillLink { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Request.cs new file mode 100644 index 00000000..bd51dbbf --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Request.cs @@ -0,0 +1,38 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_task_info/ 接口的请求。 + /// + public class MatchTaskBoxQueryTaskInfoV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("page_num")] + [System.Text.Json.Serialization.JsonPropertyName("page_num")] + public int PageNumber { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } = 10; + + /// + /// 获取或设置查询参数类型。 + /// + [Newtonsoft.Json.JsonProperty("query_params_type")] + [System.Text.Json.Serialization.JsonPropertyName("query_params_type")] + public int QueryParameterType { get; set; } + + /// + /// 获取或设置查询参数内容。 + /// + [Newtonsoft.Json.JsonProperty("query_params_content")] + [System.Text.Json.Serialization.JsonPropertyName("query_params_content")] + public string QueryParameterContent { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Response.cs new file mode 100644 index 00000000..48192b5b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Response.cs @@ -0,0 +1,274 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_task_info/ 接口的响应。 + /// + public class MatchTaskBoxQueryTaskInfoV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Task + { + public static class Types + { + public class OrientedTalent + { + /// + /// 获取或设置达人抖音号。 + /// + [Newtonsoft.Json.JsonProperty("douyin_id")] + [System.Text.Json.Serialization.JsonPropertyName("douyin_id")] + public string DouyinId { get; set; } = default!; + + /// + /// 获取或设置合作状态。 + /// + [Newtonsoft.Json.JsonProperty("cooperation_state")] + [System.Text.Json.Serialization.JsonPropertyName("cooperation_state")] + public int CooperationState { get; set; } + + /// + /// 获取或设置取消方类型。 + /// + [Newtonsoft.Json.JsonProperty("cancel_operator")] + [System.Text.Json.Serialization.JsonPropertyName("cancel_operator")] + public int? CancelOperatorType { get; set; } + } + } + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long TaskId { get; set; } + + /// + /// 获取或设置任务所属小程序。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置任务名称。 + /// + [Newtonsoft.Json.JsonProperty("task_name")] + [System.Text.Json.Serialization.JsonPropertyName("task_name")] + public string TaskName { get; set; } = default!; + + /// + /// 获取或设置结算方式。 + /// + [Newtonsoft.Json.JsonProperty("task_settle_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_settle_type")] + public int TaskSettleType { get; set; } + + /// + /// 获取或设置页面类型。 + /// + [Newtonsoft.Json.JsonProperty("page_type")] + [System.Text.Json.Serialization.JsonPropertyName("page_type")] + public int? PageType { get; set; } + + /// + /// 获取或设置小程序页面地址。 + /// + [Newtonsoft.Json.JsonProperty("start_page")] + [System.Text.Json.Serialization.JsonPropertyName("start_page")] + public string? PagePath { get; set; } + + /// + /// 获取或设置锚点标题。 + /// + [Newtonsoft.Json.JsonProperty("anchor_title")] + [System.Text.Json.Serialization.JsonPropertyName("anchor_title")] + public string? AnchorTitle { get; set; } + + /// + /// 获取或设置任务图标 URL。 + /// + [Newtonsoft.Json.JsonProperty("task_icon")] + [System.Text.Json.Serialization.JsonPropertyName("task_icon")] + public string TaskIconUrl { get; set; } = default!; + + /// + /// 获取或设置任务开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_start_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_start_time")] + public long TaskStartTimestamp { get; set; } + + /// + /// 获取或设置任务结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_end_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_end_time")] + public long TaskEndTimestamp { get; set; } + + /// + /// 获取或设置任务简介。 + /// + [Newtonsoft.Json.JsonProperty("task_desc")] + [System.Text.Json.Serialization.JsonPropertyName("task_desc")] + public string TaskDescription { get; set; } = default!; + + /// + /// 获取或设置任务类型。 + /// + [Newtonsoft.Json.JsonProperty("task_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_type")] + public int TaskType { get; set; } + + /// + /// 获取或设置任务状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int TaskStatus { get; set; } + + /// + /// 获取或设置驳回原因。 + /// + [Newtonsoft.Json.JsonProperty("reject_reason")] + [System.Text.Json.Serialization.JsonPropertyName("reject_reason")] + public string? RejectReason { get; set; } + + /// + /// 获取或设置示例视频 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_videos")] + [System.Text.Json.Serialization.JsonPropertyName("refer_videos")] + public string[]? ReferVideoUrlList { get; set; } + + /// + /// 获取或设置任务标签列表。 + /// + [Newtonsoft.Json.JsonProperty("task_tags")] + [System.Text.Json.Serialization.JsonPropertyName("task_tags")] + public string[] TaskTagList { get; set; } = default!; + + /// + /// 获取或设置小程序截图 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_ma_captures")] + [System.Text.Json.Serialization.JsonPropertyName("refer_ma_captures")] + public string[]? ReferMicroAppCaptureUrlList { get; set; } + + /// + /// 获取或设置示例视频截图 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_video_captures")] + [System.Text.Json.Serialization.JsonPropertyName("refer_video_captures")] + public string[]? ReferVideoCaptureUrlList { get; set; } + + /// + /// 获取或设置视频的 GID 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_gids")] + [System.Text.Json.Serialization.JsonPropertyName("refer_gids")] + public long[]? ReferGIdList { get; set; } + + /// + /// 获取或设置专属达人列表。 + /// + [Newtonsoft.Json.JsonProperty("oriented_talent_rel_list")] + [System.Text.Json.Serialization.JsonPropertyName("oriented_talent_rel_list")] + public Types.OrientedTalent[]? OrientedTalentList { get; set; } + + /// + /// 获取或设置任务最大退款周期(单位:天)。 + /// + [Newtonsoft.Json.JsonProperty("task_refund_period")] + [System.Text.Json.Serialization.JsonPropertyName("task_refund_period")] + public int? TaskRefundPeriod { get; set; } + + /// + /// 获取或设置混合分成比例字典(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("mix_payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("mix_payment_allocate_ratio")] + public IDictionary? MixPaymentAllocateRatioMap { get; set; } + + /// + /// 获取或设置分成比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("payment_allocate_ratio")] + public int? PaymentAllocateRatio { get; set; } + + /// + /// 获取或设置达人混合分成比例字典(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("talent_mix_payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("talent_mix_payment_allocate_ratio")] + public IDictionary? TalentMixPaymentAllocateRatioMap { get; set; } + + /// + /// 获取或设置达人分成比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("talent_payment_allocate_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("talent_payment_allocate_ratio")] + public int? TalentPaymentAllocateRatio { get; set; } + + /// + /// 获取或设置平台小程序版地址。 + /// + [Newtonsoft.Json.JsonProperty("platform_address_app")] + [System.Text.Json.Serialization.JsonPropertyName("platform_address_app")] + public string? PlatformMicroAppPagePath { get; set; } + + /// + /// 获取或设置平台 Web 版地址。 + /// + [Newtonsoft.Json.JsonProperty("platform_address_web")] + [System.Text.Json.Serialization.JsonPropertyName("platform_address_web")] + public string? PlatformWebUrl { get; set; } + } + } + + /// + /// 获取或设置任务列表。 + /// + [Newtonsoft.Json.JsonProperty("tasks")] + [System.Text.Json.Serialization.JsonPropertyName("tasks")] + public Types.Task[] TaskList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total")] + [System.Text.Json.Serialization.JsonPropertyName("total")] + public int TotalCount { get; set; } + + /// + /// 获取或设置总页数。 + /// + [Newtonsoft.Json.JsonProperty("page_count")] + [System.Text.Json.Serialization.JsonPropertyName("page_count")] + public int PageCount { get; set; } + + /// + /// 获取或设置推广计划小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.cs new file mode 100644 index 00000000..2588162b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_video_sum_data/ 接口的请求。 + /// + public class MatchTaskBoxQueryVideoSummaryDataV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置视频 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("video_ids")] + [System.Text.Json.Serialization.JsonPropertyName("video_ids")] + public IList VideoIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.cs new file mode 100644 index 00000000..948daa9e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.cs @@ -0,0 +1,65 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/query_video_sum_data/ 接口的响应。 + /// + public class MatchTaskBoxQueryVideoSummaryDataV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long TaskId { get; set; } + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("video_id")] + [System.Text.Json.Serialization.JsonPropertyName("video_id")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] + public string VideoId { get; set; } = default!; + + /// + /// 获取或设置团长 ID。 + /// + [Newtonsoft.Json.JsonProperty("agent_id")] + [System.Text.Json.Serialization.JsonPropertyName("agent_id")] + public string? AgentId { get; set; } + + /// + /// 获取或设置发布时间戳。 + /// + [Newtonsoft.Json.JsonProperty("publish_time")] + [System.Text.Json.Serialization.JsonPropertyName("publish_time")] + public long PublishTimestamp { get; set; } + + /// + /// 获取或设置任务关联的交易金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("billing_gmv_td")] + [System.Text.Json.Serialization.JsonPropertyName("billing_gmv_td")] + public long BillingGMV { get; set; } + + /// + /// 获取或设置任务关联的交易金额累计退款金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("biling_refund_gmv_td")] + [System.Text.Json.Serialization.JsonPropertyName("biling_refund_gmv_td")] + public long BillingRefundGMV { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data[] Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Request.cs new file mode 100644 index 00000000..b2cf996b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Request.cs @@ -0,0 +1,24 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/update_status/ 接口的请求。 + /// + public class MatchTaskBoxUpdateStatusV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public long TaskId { get; set; } + + /// + /// 获取或设置任务状态。 + /// + [Newtonsoft.Json.JsonProperty("task_status")] + [System.Text.Json.Serialization.JsonPropertyName("task_status")] + public int TaskStatus { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Response.cs new file mode 100644 index 00000000..8fbab614 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Response.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/update_status/ 接口的响应。 + /// + public class MatchTaskBoxUpdateStatusV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data : MatchTaskBoxAddTaskV2Response.Types.Data + { + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Request.cs new file mode 100644 index 00000000..f2efb83c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Request.cs @@ -0,0 +1,120 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/update_task/ 接口的请求。 + /// + public class MatchTaskBoxUpdateTaskV2Request : DouyinMicroAppRequest + { + /// + [Newtonsoft.Json.JsonProperty("access_token")] + [System.Text.Json.Serialization.JsonPropertyName("access_token")] + public override string? AccessToken { get; set; } + + /// + /// 获取或设置小程序 AppId。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string? AppId { get; set; } + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public long TaskId { get; set; } + + /// + /// 获取或设置任务名称。 + /// + [Newtonsoft.Json.JsonProperty("task_name")] + [System.Text.Json.Serialization.JsonPropertyName("task_name")] + public string TaskName { get; set; } = string.Empty; + + /// + /// 获取或设置结算方式。 + /// + [Newtonsoft.Json.JsonProperty("task_settle_type")] + [System.Text.Json.Serialization.JsonPropertyName("task_settle_type")] + public int TaskSettleType { get; set; } + + /// + /// 获取或设置页面类型。 + /// + [Newtonsoft.Json.JsonProperty("page_type")] + [System.Text.Json.Serialization.JsonPropertyName("page_type")] + public int? PageType { get; set; } + + /// + /// 获取或设置小程序页面地址。 + /// + [Newtonsoft.Json.JsonProperty("start_page")] + [System.Text.Json.Serialization.JsonPropertyName("start_page")] + public string? PagePath { get; set; } + + /// + /// 获取或设置锚点标题。 + /// + [Newtonsoft.Json.JsonProperty("anchor_title")] + [System.Text.Json.Serialization.JsonPropertyName("anchor_title")] + public string? AnchorTitle { get; set; } + + /// + /// 获取或设置任务图标 URL。 + /// + [Newtonsoft.Json.JsonProperty("task_icon")] + [System.Text.Json.Serialization.JsonPropertyName("task_icon")] + public string TaskIconUrl { get; set; } = string.Empty; + + /// + /// 获取或设置任务开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_start_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_start_time")] + public long TaskStartTimestamp { get; set; } + + /// + /// 获取或设置任务结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("task_end_time")] + [System.Text.Json.Serialization.JsonPropertyName("task_end_time")] + public long TaskEndTimestamp { get; set; } + + /// + /// 获取或设置任务简介。 + /// + [Newtonsoft.Json.JsonProperty("task_desc")] + [System.Text.Json.Serialization.JsonPropertyName("task_desc")] + public string TaskDescription { get; set; } = string.Empty; + + /// + /// 获取或设置示例视频 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_videos")] + [System.Text.Json.Serialization.JsonPropertyName("refer_videos")] + public IList? ReferVideoUrlList { get; set; } + + /// + /// 获取或设置任务标签列表。 + /// + [Newtonsoft.Json.JsonProperty("task_tags")] + [System.Text.Json.Serialization.JsonPropertyName("task_tags")] + public IList TaskTagList { get; set; } = new List(); + + /// + /// 获取或设置小程序截图 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_ma_captures")] + [System.Text.Json.Serialization.JsonPropertyName("refer_ma_captures")] + public IList? ReferMicroAppCaptureUrlList { get; set; } + + /// + /// 获取或设置视频的 GID 列表。 + /// + [Newtonsoft.Json.JsonProperty("refer_gids")] + [System.Text.Json.Serialization.JsonPropertyName("refer_gids")] + public IList? ReferGIdList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Response.cs new file mode 100644 index 00000000..a39dc791 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Response.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /match/v2/taskbox/update_task/ 接口的响应。 + /// + public class MatchTaskBoxUpdateTaskV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data : MatchTaskBoxAddTaskV2Response.Types.Data + { + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs index 60f9a982..581e4a93 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/ClueComponent/AppsCapacityQueryClueComponentInfoV1Request.cs @@ -13,7 +13,7 @@ public class AppsCapacityQueryClueComponentInfoV1Request : DouyinMicroAppRequest public int? PageNumber { get; set; } /// - /// 获取或设置分页每页页数。 + /// 获取或设置分页每页数量。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.cs new file mode 100644 index 00000000..f7cfeaea --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.cs @@ -0,0 +1,38 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/taskbox/update_orient_talents/ 接口的请求。 + /// + public class AppsTaskBoxUpdateOrientTalentsRequest : AppsTaskBoxRequestBase + { + /// + /// 获取或设置小程序第三方平台应用 ID。 + /// + [Newtonsoft.Json.JsonProperty("third_appid")] + [System.Text.Json.Serialization.JsonPropertyName("third_appid")] + public string? ComponentAppId { get; set; } + + /// + /// 获取或设置任务 ID。 + /// + [Newtonsoft.Json.JsonProperty("task_id")] + [System.Text.Json.Serialization.JsonPropertyName("task_id")] + public long TaskId { get; set; } + + /// + /// 获取或设置达人抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("douyin_ids")] + [System.Text.Json.Serialization.JsonPropertyName("douyin_ids")] + public IList DouyinIdList { get; set; } = new List(); + + /// + /// 获取或设置操作类型。 + /// + [Newtonsoft.Json.JsonProperty("op_type")] + [System.Text.Json.Serialization.JsonPropertyName("op_type")] + public int OperateType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.cs new file mode 100644 index 00000000..750f3dff --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/taskbox/update_orient_talents/ 接口的响应。 + /// + public class AppsTaskBoxUpdateOrientTalentsResponse : AppsTaskBoxResponseBase + { + public static class Types + { + public class Data + { + public static class Types + { + public class Result + { + /// + /// 获取或设置达人抖音号。 + /// + [Newtonsoft.Json.JsonProperty("douyin_id")] + [System.Text.Json.Serialization.JsonPropertyName("douyin_id")] + public string DouyinId { get; set; } = default!; + + /// + /// 获取或设置更新结果。 + /// + [Newtonsoft.Json.JsonProperty("update_result")] + [System.Text.Json.Serialization.JsonPropertyName("update_result")] + public string UpdateResult { get; set; } = default!; + } + } + + /// + /// 获取或设置更新结果列表。 + /// + [Newtonsoft.Json.JsonProperty("update_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("update_info_list")] + public Types.Result[] ResultList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Request.json new file mode 100644 index 00000000..a738ae14 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Request.json @@ -0,0 +1,19 @@ +{ + "task_name": "测试的任务名称", + "task_settle_type": 9, + "start_page": "page/detail/detail?id=123", + "task_icon": "https://p3-developer-sign.bytemaimg.com/tos-cn-i-ke512zj2cu/01cefe0ce3c3479d845dcb861ca018b1~tplv-ke512zj2cu-jpg.jpeg?x-expires=1718424829&x-signature=7vw6D8rEUIDZXHAd4veMedSjlLo%3D", + "room_title": "测试的直播间标题", + "task_end_time": 1709782399, + "task_desc": "任务描述: 東門之池,可以漚麻。彼美淑姬,可與晤歌。東門之池,可以漚紵。彼美淑姬,可與晤語。", + "form_tag": "娱乐测试", + "content_tag": "漫画", + "refer_videos": [ + "https://v.douyin.com/SHAfHPu/", + "https://v.douyin.com/SHASjbd/" + ], + "refer_ma_captures": [ + "https://p3-developer-sign.bytemaimg.com/tos-cn-i-ke512zj2cu/1bcfc89de30f4b0fb2000d69f6d36d08~tplv-ke512zj2cu-jpg.jpeg?x-expires=1718424958&x-signature=KA4V5kcK%2FnLtjz5HtfhNz06uce4%3D", + "https://p6-developer-sign.bytemaimg.com/tos-cn-i-ke512zj2cu/e840d9158f784733a9f0f27bd60ad433~tplv-ke512zj2cu-jpg.jpeg?x-expires=1718425011&x-signature=zltShSxIkbLay7dlA1oR4KwoyPM%3D" + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Response.json new file mode 100644 index 00000000..980d63a7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Response.json @@ -0,0 +1,9 @@ +{ + "err_no": 0, + "err_msg": "SUCCESS", + "log_id": "202008121419360101980821035705926A", + "data": { + "task_id": 720992698146361, + "task_url": "https://m.zjbyte.net/share/douyin/?token=e32199427d4ebe5b*****3b9a86784ab&share_channel=scan" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Request.json new file mode 100644 index 00000000..008739fe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Request.json @@ -0,0 +1,16 @@ +{ + "task_name": "测试12333", + "access_token": "xxxx", + "task_settle_type": 1, + "appid": "tt933ee5830c062fa6", + "start_page": "page/index=1", + "anchor_title": "测试锚点标题", + "task_icon": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.soutu123.cn%2Felement_origin_min_pic%2F01%2F35%2F26%2F55573bdad4cb2f4.jpg%21%2Ffw%2F700%2Fquality%2F90%2Funsharp%2Ftrue%2Fcompress%2Ftrue&refer=http%3A%2F%2Fpic.soutu123.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1621156196&t=848be9cae3f5bfb86a12d5021cbf9c1f", + "task_start_time": 1618285226, + "task_end_time": 1620963626, + "task_desc": "1. sss
2.sss2", + "refer_videos": [ "http://douyin.com/Z0JRdbe/", "http://douyin.com/beeagag/" ], + "task_tags": [ "测试类", "心理" ], + "refer_ma_captures": [ "https://static.runoob.com/images/demo/demo1.jpg", "https://static.runoob.com/images/demo/demo2.jpg" ], + "douyin_ids": [ "lw123456", "lv789" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Response.json new file mode 100644 index 00000000..e4cf4265 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Response.json @@ -0,0 +1,8 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "202008121419360101980821035705926A", + "data": { + "task_id": 720992698146361 + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Request.json new file mode 100644 index 00000000..fa1c10e7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Request.json @@ -0,0 +1,4 @@ +{ + "create_start_time": 1657728000, + "create_end_time": 1658073600 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Response.json new file mode 100644 index 00000000..86540e26 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Response.json @@ -0,0 +1,12 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "202008121419360101980821035705926A", + "data": { + "task_ids": [ + 1130941336206704600, + 1130954062622638100, + 1130965975075143700 + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Request.json new file mode 100644 index 00000000..d06e7de4 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Request.json @@ -0,0 +1,3 @@ +{ + "bill_date": "2023-11-11" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Response.json new file mode 100644 index 00000000..bed3705a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "bill_link": "https://p9-taskbox-sign.byteimg.com/tos-cn-i-ma097vhtnq/fd3fdb160c7a4593a4aee47267c78.csv?x-expires=1701064092&x-signature=c1BKmfVnvByJFTHGqWGWPXz00XE%3D" + }, + "err_no": 12345, + "err_msg": "aZv2LzZdM8", + "log_id": "yZj5AgQF2E" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Request.json new file mode 100644 index 00000000..f526f082 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Request.json @@ -0,0 +1,6 @@ +{ + "query_params_type": 1, + "query_params_content": "3421314523543241", + "page_num": 1, + "page_size": 10 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Response.json new file mode 100644 index 00000000..053e273e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Response.json @@ -0,0 +1,53 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "202008121419360101980821035705926A", + "data": { + "page_count": 1, + "total": 1, + "app_id": "ttf31985a46c214faf", + "tasks": [ + { + "anchor_title": "一个测试任务", + "appid": "ttcfdbb96650e33350", + "payment_allocate_ratio": 7000, + "platform_address_app": "subPackage/pages/taskDetail/index?taskId=7159000769277214764&enter_from=7", + "platform_address_web": "http://boe.m.zjbyte.net/share/douyin/?token=bd9ce2083d6aed332dcd9f9721b91ec4&share_channel=scan", + "refer_ma_captures": [ + "http://p-boe-sign.bytedance.net/tos-boe-i-giyy2m8f28/368d6285a0514fd3a230c2bd0873f2d3~tplv-giyy2m8f28-jpg.image?x-orig-authkey=boeorigin&x-orig-expires=1763898974&x-orig-sign=F8XZRENkmZOanX5JZt9LoiaQiws%3D", + "http://p-boe-sign.bytedance.net/tos-boe-i-giyy2m8f28/f83566dd4b924791bd0364af588cad76~tplv-giyy2m8f28-jpg.image?x-orig-authkey=boeorigin&x-orig-expires=1763898974&x-orig-sign=2NBX9lYCvAyq681nR%2FGUlZudvZU%3D" + ], + "refer_video_captures": [ + "" + ], + "reject_reason": "落地页发生变更", + "start_page": "page/detail/detail?id=1", + "status": 5, + "task_desc": "一个测试任务aaa一个测试任务aaa一个测试任务aaa一个测试任务aaa一个测试任务aaa", + "task_end_time": 1669695653, + "task_icon": "http://p-boe-sign.bytedance.net/tos-boe-i-giyy2m8f28/93e9ed06180c4c15b397e81653b20313~tplv-giyy2m8f28-144x144.image?x-orig-authkey=boeorigin&x-orig-expires=1763898974&x-orig-sign=BydBniNTuG%2FoYlVhHNVIRdZNcaU%3D", + "task_id": 7159000769277214764, + "task_name": "一个测试任务aaa", + "task_refund_period": 0, + "task_settle_type": 1, + "task_start_time": 1666846303, + "task_tags": [ + "娱乐测试", + "小说" + ], + "task_type": 1, + "oriented_talent_rel_list": [ + { + "cooperation_state": 2, + "douyin_id": "lw123456" + }, + { + "cancel_operator": 1, + "cooperation_state": 3, + "douyin_id": "lv789" + } + ] + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.json new file mode 100644 index 00000000..6217d066 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.json @@ -0,0 +1,3 @@ +{ + "video_ids": [ "939316235146214973" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.json new file mode 100644 index 00000000..44ac4e9a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.json @@ -0,0 +1,12 @@ +{ + "data": [ + { + "billing_gmv_td": 42131038, + "biling_refund_gmv_td": 657030, + "video_id": 7918906790713390000, + "task_id": 3058041294486364000, + "agent_id": "a2GotnoTIz", + "publish_time": 1685664000 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Request.json new file mode 100644 index 00000000..2d5080e3 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Request.json @@ -0,0 +1,4 @@ +{ + "task_id": 12333, + "task_status": 2 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Response.json new file mode 100644 index 00000000..e4cf4265 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Response.json @@ -0,0 +1,8 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "202008121419360101980821035705926A", + "data": { + "task_id": 720992698146361 + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Request.json new file mode 100644 index 00000000..b39b5c81 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Request.json @@ -0,0 +1,21 @@ +{ + "task_id": 12333, + "task_name": "测试12333", + "task_settle_type": 1, + "appid": "tt933ee5830c062fa6", + "start_page": "xxx", + "anchor_title": "测试锚点标", + "task_icon": "xxx", + "task_start_time": 1618285226, + "task_end_time": 1620963626, + "task_desc": "1. sss
2.sss2", + "refer_videos": [ + "http://boe.v.douyin.com/Z0JRdbe/", + "http://boe.v.douyin.com/Z0JFXvp/" + ], + "task_tags": [ "测试类", "心理" ], + "refer_ma_captures": [ + "https://static.runoob.com/images/demo/demo1.jpg", + "https://static.runoob.com/images/demo/demo2.jpg" + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Response.json new file mode 100644 index 00000000..e4cf4265 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Response.json @@ -0,0 +1,8 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "202008121419360101980821035705926A", + "data": { + "task_id": 720992698146361 + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.json new file mode 100644 index 00000000..e62a4e33 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsRequest.json @@ -0,0 +1,10 @@ +{ + "access_token": "0801121846315443627a326645433874682b7347326", + "appid": "ttf31985a46c214faf", + "douyin_ids": [ + "lw1352552", + "9423515316" + ], + "op_type": 1, + "task_id": 7218760632718443557 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.json new file mode 100644 index 00000000..a0d4bf2e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/Apps/TaskBox/AppsTaskBoxUpdateOrientTalentsResponse.json @@ -0,0 +1,12 @@ +{ + "data": { + "update_info_list": [ + { + "douyin_id": "lw1352552", + "update_result": "请求成功,已添加" + } + ] + }, + "message": "success", + "error": 0 +} From d2535b26592457a2fd3b71b5c726736090928f61 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 8 Mar 2024 10:26:12 +0800 Subject: [PATCH 32/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=B5=81=E9=87=8F=E4=B8=BB=20v2=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pClientExecuteAppsAdPlacementExtensions.cs | 80 +++++++++++++++++++ ...tExecuteAppsTrafficPermissionExtensions.cs | 57 +++++++++++++ ...croAppClientExecuteLegacyAppsExtensions.cs | 2 - ...AppClientExecuteMatchTaskBoxExtensions.cs} | 2 +- ...cuteNotificationSubscriptionExtensions.cs} | 2 +- .../AppsAdPlacementAddV1Request.cs | 22 +++++ .../AppsAdPlacementAddV1Response.cs | 9 +++ .../AppsAdPlacementQueryV1Request.cs | 9 +++ .../AppsAdPlacementQueryV1Response.cs | 62 ++++++++++++++ .../AppsAdPlacementUpdateV1Request.cs | 22 +++++ .../AppsAdPlacementUpdateV1Response.cs | 9 +++ .../AppsTrafficPermissionOpenV1Request.cs | 57 +++++++++++++ .../AppsTrafficPermissionOpenV1Response.cs | 9 +++ .../AppsTrafficPermissionQueryV1Request.cs | 9 +++ .../AppsTrafficPermissionQueryV1Response.cs | 37 +++++++++ .../MatchTaskBoxAddRoomTaskV2Request.cs | 0 .../MatchTaskBoxAddRoomTaskV2Response.cs | 0 .../MatchTaskBoxAddTaskV2Request.cs | 0 .../MatchTaskBoxAddTaskV2Response.cs | 0 .../MatchTaskBoxQueryAppTaskIdV2Request.cs | 0 .../MatchTaskBoxQueryAppTaskIdV2Response.cs | 0 .../MatchTaskBoxQueryBillLinkV2Request.cs | 0 .../MatchTaskBoxQueryBillLinkV2Response.cs | 0 .../MatchTaskBoxQueryTaskInfoV2Request.cs | 0 .../MatchTaskBoxQueryTaskInfoV2Response.cs | 0 ...chTaskBoxQueryVideoSummaryDataV2Request.cs | 0 ...hTaskBoxQueryVideoSummaryDataV2Response.cs | 0 .../MatchTaskBoxUpdateStatusV2Request.cs | 0 .../MatchTaskBoxUpdateStatusV2Response.cs | 0 .../MatchTaskBoxUpdateTaskV2Request.cs | 0 .../MatchTaskBoxUpdateTaskV2Response.cs | 0 ...tionSubscriptionAddAppTemplateV2Request.cs | 0 ...ionSubscriptionAddAppTemplateV2Response.cs | 0 ...tionSubscriptionCreateTemplateV2Request.cs | 0 ...ionSubscriptionCreateTemplateV2Response.cs | 0 ...nSubscriptionDeleteAppTemplateV2Request.cs | 0 ...SubscriptionDeleteAppTemplateV2Response.cs | 0 ...ficationSubscriptionNotifyUserV2Request.cs | 0 ...icationSubscriptionNotifyUserV2Response.cs | 0 ...onSubscriptionQueryAppTemplateV2Request.cs | 0 ...nSubscriptionQueryAppTemplateV2Response.cs | 0 ...iptionQueryCreatedTemplateListV2Request.cs | 0 ...ptionQueryCreatedTemplateListV2Response.cs | 0 ...nSubscriptionQueryTemplateListV2Request.cs | 0 ...SubscriptionQueryTemplateListV2Response.cs | 0 .../AppsCapacityQueryAdIncomeV1Request.cs | 3 - .../AppsCapacityQueryAdIncomeV1Response.cs | 3 - ...sCapacityQueryAdSettlementListV1Request.cs | 3 - ...CapacityQueryAdSettlementListV1Response.cs | 3 - .../AppsAdPlacementAddV1Request.json | 4 + .../AppsAdPlacementQueryV1Response.json | 15 ++++ .../AppsAdPlacementUpdateV1Request.json | 4 + .../AppsTrafficPermissionOpenV1Request.json | 9 +++ .../AppsTrafficPermissionQueryV1Response.json | 9 +++ .../MatchTaskBoxAddRoomTaskV2Request.json | 0 .../MatchTaskBoxAddRoomTaskV2Response.json | 0 .../MatchTaskBoxAddTaskV2Request.json | 0 .../MatchTaskBoxAddTaskV2Response.json | 0 .../MatchTaskBoxQueryAppTaskIdV2Request.json | 0 .../MatchTaskBoxQueryAppTaskIdV2Response.json | 0 .../MatchTaskBoxQueryBillLinkV2Request.json | 0 .../MatchTaskBoxQueryBillLinkV2Response.json | 0 .../MatchTaskBoxQueryTaskInfoV2Request.json | 0 .../MatchTaskBoxQueryTaskInfoV2Response.json | 0 ...TaskBoxQueryVideoSummaryDataV2Request.json | 0 ...askBoxQueryVideoSummaryDataV2Response.json | 0 .../MatchTaskBoxUpdateStatusV2Request.json | 0 .../MatchTaskBoxUpdateStatusV2Response.json | 0 .../MatchTaskBoxUpdateTaskV2Request.json | 0 .../MatchTaskBoxUpdateTaskV2Response.json | 0 ...onSubscriptionAddAppTemplateV2Request.json | 0 ...nSubscriptionAddAppTemplateV2Response.json | 0 ...onSubscriptionCreateTemplateV2Request.json | 0 ...cationSubscriptionNotifyUserV2Request.json | 0 ...ubscriptionQueryAppTemplateV2Response.json | 0 ...ionQueryCreatedTemplateListV2Response.json | 0 ...bscriptionQueryTemplateListV2Response.json | 0 77 files changed, 425 insertions(+), 16 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsAdPlacementExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTrafficPermissionExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteMatchExtensions.cs => DouyinMicroAppClientExecuteMatchTaskBoxExtensions.cs} (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/{DouyinMicroAppClientExecuteNotificationExtensions.cs => DouyinMicroAppClientExecuteNotificationSubscriptionExtensions.cs} (99%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxAddRoomTaskV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxAddRoomTaskV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxAddTaskV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxAddTaskV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryAppTaskIdV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryAppTaskIdV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryBillLinkV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryBillLinkV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryTaskInfoV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryTaskInfoV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryVideoSummaryDataV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxQueryVideoSummaryDataV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxUpdateStatusV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxUpdateStatusV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxUpdateTaskV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Match => MatchTaskBox}/MatchTaskBoxUpdateTaskV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionAddAppTemplateV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionAddAppTemplateV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionCreateTemplateV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionCreateTemplateV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionDeleteAppTemplateV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionDeleteAppTemplateV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionNotifyUserV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionNotifyUserV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionQueryAppTemplateV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionQueryAppTemplateV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionQueryTemplateListV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/{Notification => NotificationSubscription}/NotificationSubscriptionQueryTemplateListV2Response.cs (100%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementAddV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementQueryV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementUpdateV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxAddRoomTaskV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxAddRoomTaskV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxAddTaskV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxAddTaskV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryAppTaskIdV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryAppTaskIdV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryBillLinkV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryBillLinkV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryTaskInfoV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryTaskInfoV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryVideoSummaryDataV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxQueryVideoSummaryDataV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxUpdateStatusV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxUpdateStatusV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxUpdateTaskV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Match => MatchTaskBox}/MatchTaskBoxUpdateTaskV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Notification => NotificationSubscription}/NotificationSubscriptionAddAppTemplateV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Notification => NotificationSubscription}/NotificationSubscriptionAddAppTemplateV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Notification => NotificationSubscription}/NotificationSubscriptionCreateTemplateV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Notification => NotificationSubscription}/NotificationSubscriptionNotifyUserV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Notification => NotificationSubscription}/NotificationSubscriptionQueryAppTemplateV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Notification => NotificationSubscription}/NotificationSubscriptionQueryCreatedTemplateListV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/{Notification => NotificationSubscription}/NotificationSubscriptionQueryTemplateListV2Response.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsAdPlacementExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsAdPlacementExtensions.cs new file mode 100644 index 00000000..539d56bb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsAdPlacementExtensions.cs @@ -0,0 +1,80 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsAdPlacementExtensions + { + /// + /// 异步调用 [GET] /apps/v1/ad_placement/query/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsAdPlacementQueryV1Async(this DouyinMicroAppClient client, Models.AppsAdPlacementQueryV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "ad_placement", "query", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/ad_placement/add/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsAdPlacementAddV1Async(this DouyinMicroAppClient client, Models.AppsAdPlacementAddV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "ad_placement", "add", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/ad_placement/update/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsAdPlacementUpdateV1Async(this DouyinMicroAppClient client, Models.AppsAdPlacementUpdateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "ad_placement", "update", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTrafficPermissionExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTrafficPermissionExtensions.cs new file mode 100644 index 00000000..d1a27e22 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteAppsTrafficPermissionExtensions.cs @@ -0,0 +1,57 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp +{ + public static class DouyinMicroAppClientExecuteAppsTrafficPermissionExtensions + { + /// + /// 异步调用 [GET] /apps/v1/traffic_permission/query/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTrafficPermissionQueryV1Async(this DouyinMicroAppClient client, Models.AppsTrafficPermissionQueryV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "traffic_permission", "query", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/traffic_permission/open/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteAppsTrafficPermissionOpenV1Async(this DouyinMicroAppClient client, Models.AppsTrafficPermissionOpenV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "traffic_permission", "open", "") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index f4819fd6..f2859ac1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -1124,7 +1124,6 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions /// /// /// - [Obsolete("相关接口或字段于 2024-02-29 下线。")] public static async Task ExecuteAppsCapacityQueryAdIncomeV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdIncomeV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -1154,7 +1153,6 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions /// /// /// - [Obsolete("相关接口或字段于 2024-02-29 下线。")] public static async Task ExecuteAppsCapacityQueryAdSettlementListV1Async(this DouyinMicroAppClient client, Models.AppsCapacityQueryAdSettlementListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchTaskBoxExtensions.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchTaskBoxExtensions.cs index 96c91181..a4b52fe5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteMatchTaskBoxExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteMatchExtensions + public static class DouyinMicroAppClientExecuteMatchTaskBoxExtensions { /// /// 异步调用 [POST] /match/v2/taskbox/add_task/ 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationSubscriptionExtensions.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationSubscriptionExtensions.cs index 6196e7b1..b82191a8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteNotificationSubscriptionExtensions.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { - public static class DouyinMicroAppClientExecuteNotificationExtensions + public static class DouyinMicroAppClientExecuteNotificationSubscriptionExtensions { /// /// 异步调用 [GET] /notification/v2/subscription/query_tpl_list/ 接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Request.cs new file mode 100644 index 00000000..05dcce33 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/ad_placement/add/ 接口的请求。 + /// + public class AppsAdPlacementAddV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置广告位名称。 + /// + [Newtonsoft.Json.JsonProperty("ad_placement_name")] + [System.Text.Json.Serialization.JsonPropertyName("ad_placement_name")] + public string AdPlacementName { get; set; } = string.Empty; + + /// + /// 获取或设置广告位类型。 + /// + [Newtonsoft.Json.JsonProperty("ad_placement_type")] + [System.Text.Json.Serialization.JsonPropertyName("ad_placement_type")] + public int AdPlacementType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Response.cs new file mode 100644 index 00000000..71f53e53 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementAddV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/ad_placement/add/ 接口的响应。 + /// + public class AppsAdPlacementAddV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Request.cs new file mode 100644 index 00000000..d0f0eefb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/ad_placement/query/ 接口的请求。 + /// + public class AppsAdPlacementQueryV1Request : DouyinMicroAppRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Response.cs new file mode 100644 index 00000000..0c0b5262 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementQueryV1Response.cs @@ -0,0 +1,62 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/ad_placement/query/ 接口的响应。 + /// + public class AppsAdPlacementQueryV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class AdPlacement + { + /// + /// 获取或设置广告位 ID。 + /// + [Newtonsoft.Json.JsonProperty("ad_placement_id")] + [System.Text.Json.Serialization.JsonPropertyName("ad_placement_id")] + public string AdPlacementId { get; set; } = default!; + + /// + /// 获取或设置广告位名称。 + /// + [Newtonsoft.Json.JsonProperty("ad_placement_name")] + [System.Text.Json.Serialization.JsonPropertyName("ad_placement_name")] + public string AdPlacementName { get; set; } = default!; + + /// + /// 获取或设置广告位类型。 + /// + [Newtonsoft.Json.JsonProperty("ad_placement_type")] + [System.Text.Json.Serialization.JsonPropertyName("ad_placement_type")] + public int AdPlacementType { get; set; } + + /// + /// 获取或设置状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } + } + + /// + /// 获取或设置广告位列表。 + /// + [Newtonsoft.Json.JsonProperty("ad_placement_list")] + [System.Text.Json.Serialization.JsonPropertyName("ad_placement_list")] + public Types.AdPlacement[] AdPlacementList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Request.cs new file mode 100644 index 00000000..313c8fa4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/ad_placement/update/ 接口的请求。 + /// + public class AppsAdPlacementUpdateV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置广告位 ID。 + /// + [Newtonsoft.Json.JsonProperty("ad_placement_id")] + [System.Text.Json.Serialization.JsonPropertyName("ad_placement_id")] + public string AdPlacementId { get; set; } = string.Empty; + + /// + /// 获取或设置状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Response.cs new file mode 100644 index 00000000..9ca7ea3e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsAdPlacement/AppsAdPlacementUpdateV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/ad_placement/update/ 接口的响应。 + /// + public class AppsAdPlacementUpdateV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.cs new file mode 100644 index 00000000..4f062832 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.cs @@ -0,0 +1,57 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/traffic_permission/open/ 接口的请求。 + /// + public class AppsTrafficPermissionOpenV1Request : DouyinMicroAppRequest + { + /// + /// 获取或设置省份。 + /// + [Newtonsoft.Json.JsonProperty("province")] + [System.Text.Json.Serialization.JsonPropertyName("province")] + public string Province { get; set; } = string.Empty; + + /// + /// 获取或设置城市。 + /// + [Newtonsoft.Json.JsonProperty("city")] + [System.Text.Json.Serialization.JsonPropertyName("city")] + public string City { get; set; } = string.Empty; + + /// + /// 获取或设置手机号码。 + /// + [Newtonsoft.Json.JsonProperty("phone_number")] + [System.Text.Json.Serialization.JsonPropertyName("phone_number")] + public string PhoneNumber { get; set; } = string.Empty; + + /// + /// 获取或设置纳税人性质。 + /// + [Newtonsoft.Json.JsonProperty("tax_nature")] + [System.Text.Json.Serialization.JsonPropertyName("tax_nature")] + public int TaxNatureType { get; set; } + + /// + /// 获取或设置银行账号。 + /// + [Newtonsoft.Json.JsonProperty("bank_account_number")] + [System.Text.Json.Serialization.JsonPropertyName("bank_account_number")] + public string BankAccountNumber { get; set; } = string.Empty; + + /// + /// 获取或设置开户银行名称。 + /// + [Newtonsoft.Json.JsonProperty("bank_name")] + [System.Text.Json.Serialization.JsonPropertyName("bank_name")] + public string BankName { get; set; } = string.Empty; + + /// + /// 获取或设置开户支行名称。 + /// + [Newtonsoft.Json.JsonProperty("bank_branch")] + [System.Text.Json.Serialization.JsonPropertyName("bank_branch")] + public string BankBranch { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Response.cs new file mode 100644 index 00000000..a2a06ef6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionOpenV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /apps/v1/traffic_permission/open/ 接口的响应。 + /// + public class AppsTrafficPermissionOpenV1Response : DouyinMicroAppResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Request.cs new file mode 100644 index 00000000..08cf5ee4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/traffic_permission/query/ 接口的请求。 + /// + public class AppsTrafficPermissionQueryV1Request : DouyinMicroAppRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.cs new file mode 100644 index 00000000..7c968784 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.cs @@ -0,0 +1,37 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /apps/v1/traffic_permission/query/ 接口的响应。 + /// + public class AppsTrafficPermissionQueryV1Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置是否可开通。 + /// + [Newtonsoft.Json.JsonProperty("can_open")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("can_open")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool CanOpen { get; set; } + + /// + /// 获取或设置开通状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddRoomTaskV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddTaskV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddTaskV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddTaskV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxAddTaskV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxAddTaskV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryAppTaskIdV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryBillLinkV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryTaskInfoV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateStatusV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateStatusV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateStatusV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateStatusV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateStatusV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateTaskV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateTaskV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateTaskV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Match/MatchTaskBoxUpdateTaskV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/MatchTaskBox/MatchTaskBoxUpdateTaskV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionAddAppTemplateV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionCreateTemplateV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionCreateTemplateV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionCreateTemplateV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionCreateTemplateV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionCreateTemplateV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionDeleteAppTemplateV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionDeleteAppTemplateV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionDeleteAppTemplateV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionDeleteAppTemplateV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionDeleteAppTemplateV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionNotifyUserV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionNotifyUserV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionNotifyUserV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionNotifyUserV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionNotifyUserV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryAppTemplateV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryAppTemplateV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryAppTemplateV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryAppTemplateV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryAppTemplateV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryCreatedTemplateListV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryCreatedTemplateListV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryTemplateListV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryTemplateListV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryTemplateListV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/Notification/NotificationSubscriptionQueryTemplateListV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/NotificationSubscription/NotificationSubscriptionQueryTemplateListV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs index 6e96c8f7..71074d2f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Request.cs @@ -1,11 +1,8 @@ -using System; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_income 接口的请求。 /// - [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdIncomeV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs index 5dbcad32..2870ea20 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdIncomeV1Response.cs @@ -1,11 +1,8 @@ -using System; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_income 接口的响应。 /// - [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdIncomeV1Response : DouyinMicroAppResponse { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs index 221fb72e..e87f5051 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Request.cs @@ -1,11 +1,8 @@ -using System; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_settlement_list 接口的请求。 /// - [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdSettlementListV1Request : DouyinMicroAppRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs index 63e00245..3353a171 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/TrafficPermission/AppsCapacityQueryAdSettlementListV1Response.cs @@ -1,11 +1,8 @@ -using System; - namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { /// /// 表示 [GET] /apps/v1/capacity/query_ad_settlement_list 接口的响应。 /// - [Obsolete("相关接口或字段于 2024-02-29 下线。")] public class AppsCapacityQueryAdSettlementListV1Response : DouyinMicroAppResponse { public static class Types diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementAddV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementAddV1Request.json new file mode 100644 index 00000000..4129553e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementAddV1Request.json @@ -0,0 +1,4 @@ +{ + "ad_placement_name": "1231111", + "ad_placement_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementQueryV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementQueryV1Response.json new file mode 100644 index 00000000..b1d368f5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementQueryV1Response.json @@ -0,0 +1,15 @@ +{ + "data": { + "ad_placement_list": [ + { + "ad_placement_name": "测试广告位", + "ad_placement_type": 1, + "status": 1, + "ad_placement_id": "bqsc0s8pdcnsru9n6x" + } + ] + }, + "err_msg": "", + "err_no": 0, + "log_id": "202402291430081C2C03B70D11918211B2" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementUpdateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementUpdateV1Request.json new file mode 100644 index 00000000..573ed81d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsAdPlacement/AppsAdPlacementUpdateV1Request.json @@ -0,0 +1,4 @@ +{ + "ad_placement_id": "19da35eg77hf14fk53", + "status": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.json new file mode 100644 index 00000000..e5d81dd0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionOpenV1Request.json @@ -0,0 +1,9 @@ +{ + "tax_nature": 1, + "bank_account_number": "xxxxxxxxx", + "bank_name": "xxx", + "bank_branch": "xxx", + "phone_number": "xxx", + "province": "广东", + "city": "深圳" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.json new file mode 100644 index 00000000..b1f3a004 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/AppsTrafficPermission/AppsTrafficPermissionQueryV1Response.json @@ -0,0 +1,9 @@ +{ + "err_no": 0, + "log_id": "20240229143002DCA7B2D1C6853E7ADD1A", + "data": { + "can_open": 1, + "status": 1 + }, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddRoomTaskV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddRoomTaskV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddTaskV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddTaskV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddTaskV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxAddTaskV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxAddTaskV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryAppTaskIdV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryAppTaskIdV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryBillLinkV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryBillLinkV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryTaskInfoV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryTaskInfoV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxQueryVideoSummaryDataV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxQueryVideoSummaryDataV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateStatusV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateStatusV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateStatusV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateStatusV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateStatusV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateTaskV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateTaskV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateTaskV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Match/MatchTaskBoxUpdateTaskV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/MatchTaskBox/MatchTaskBoxUpdateTaskV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionAddAppTemplateV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionAddAppTemplateV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionCreateTemplateV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionCreateTemplateV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionCreateTemplateV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionCreateTemplateV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionNotifyUserV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionNotifyUserV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionNotifyUserV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionNotifyUserV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryAppTemplateV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionQueryAppTemplateV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryAppTemplateV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionQueryAppTemplateV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionQueryCreatedTemplateListV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryCreatedTemplateListV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionQueryCreatedTemplateListV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryTemplateListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionQueryTemplateListV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/Notification/NotificationSubscriptionQueryTemplateListV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/NotificationSubscription/NotificationSubscriptionQueryTemplateListV2Response.json From f0517fc5739106cbf07f73808799b16aa345280f Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 8 Mar 2024 12:57:01 +0800 Subject: [PATCH 33/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=AE=B2=E8=A7=A3=E5=8D=A1=E6=8C=82=E8=BD=BD=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...roAppWebcastClientExecuteCardExtensions.cs | 172 ++++++++++++++++++ ...roAppWebcastClientExecuteFileExtensions.cs | 90 +++++++++ ...roAppWebcastClientExecuteGiftExtensions.cs | 2 +- ...ppWebcastClientExecuteLinkMicExtensions.cs | 2 +- ...roAppWebcastClientExecuteQuizExtensions.cs | 2 +- ...icroAppWebcastRequestSigningInterceptor.cs | 6 +- .../Card/WebcastCardDefaultGetRequest.cs | 9 + .../Card/WebcastCardDefaultGetResponse.cs | 162 +++++++++++++++++ .../Card/WebcastCardDefaultSetRequest.cs | 151 +++++++++++++++ .../Card/WebcastCardDefaultSetResponse.cs | 22 +++ .../Models/Card/WebcastCardDeleteRequest.cs | 15 ++ .../Models/Card/WebcastCardDeleteResponse.cs | 15 ++ .../WebcastCardGetAllCardsForUserRequest.cs | 9 + .../WebcastCardGetAllCardsForUserResponse.cs | 76 ++++++++ .../Models/Card/WebcastCardGetRequest.cs | 15 ++ .../Models/Card/WebcastCardGetResponse.cs | 43 +++++ .../Models/Card/WebcastCardSetRequest.cs | 92 ++++++++++ .../Models/Card/WebcastCardSetResponse.cs | 9 + .../Models/Card/WebcastCardUpdateRequest.cs | 92 ++++++++++ .../Models/Card/WebcastCardUpdateResponse.cs | 9 + .../File/WebcastFileCardImageDeleteRequest.cs | 19 ++ .../WebcastFileCardImageDeleteResponse.cs | 9 + .../File/WebcastFileCardImageGetRequest.cs | 19 ++ .../File/WebcastFileCardImageGetResponse.cs | 42 +++++ .../File/WebcastFileCardImageUploadRequest.cs | 38 ++++ .../WebcastFileCardImageUploadResponse.cs | 15 ++ .../Card/WebcastCardDefaultGetResponse.json | 14 ++ .../Card/WebcastCardDefaultSetRequest.json | 4 + .../Card/WebcastCardDefaultSetResponse.json | 4 + .../Card/WebcastCardDeleteRequest.json | 3 + .../Card/WebcastCardDeleteResponse.json | 3 + ...WebcastCardGetAllCardsForUserResponse.json | 34 ++++ .../Webcast/Card/WebcastCardGetRequest.json | 3 + .../Webcast/Card/WebcastCardGetResponse.json | 14 ++ .../Webcast/Card/WebcastCardSetRequest.json | 5 + .../Webcast/Card/WebcastCardSetResponse.json | 6 + .../Card/WebcastCardUpdateRequest.json | 5 + .../Card/WebcastCardUpdateResponse.json | 4 + .../File/WebcastFileCardImageGetRequest.json | 3 + .../File/WebcastFileCardImageGetResponse.json | 14 ++ .../WebcastFileCardImageUploadResponse.json | 5 + 41 files changed, 1252 insertions(+), 4 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteCardExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteFileExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultGetResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetAllCardsForUserResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetRequest.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetResponse.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageUploadResponse.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteCardExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteCardExtensions.cs new file mode 100644 index 00000000..28522456 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteCardExtensions.cs @@ -0,0 +1,172 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + public static class DouyinMicroAppWebcastClientExecuteCardExtensions + { + /// + /// 异步调用 [POST] /card/default/set 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastCardDefaultSetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastCardDefaultSetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "card", "default", "set") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /card/default/get 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastCardDefaultGetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastCardDefaultGetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "card", "default", "get") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /card/set 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastCardSetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastCardSetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "card", "set") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /card/get 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastCardGetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastCardGetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "card", "get") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /card/delete 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastCardDeleteAsync(this DouyinMicroAppWebcastClient client, Models.WebcastCardDeleteRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "card", "delete") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /card/update 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastCardUpdateAsync(this DouyinMicroAppWebcastClient client, Models.WebcastCardUpdateRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "card", "update") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /card/get_all_cards_for_user 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastCardGetAllCardsForUserAsync(this DouyinMicroAppWebcastClient client, Models.WebcastCardGetAllCardsForUserRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "card", "get_all_cards_for_user") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteFileExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteFileExtensions.cs new file mode 100644 index 00000000..3adc29cc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteFileExtensions.cs @@ -0,0 +1,90 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast +{ + public static class DouyinMicroAppWebcastClientExecuteFileExtensions + { + /// + /// 异步调用 [POST] /file/card_image/upload 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastFileCardImageUploadAsync(this DouyinMicroAppWebcastClient client, Models.WebcastFileCardImageUploadRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.ImageFileName is null) + request.ImageFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + + if (request.ImageFileContentType is null) + request.ImageFileContentType = "image/jpeg"; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "file", "card_image", "upload") + .WithHeader("X-Token", request.AccessToken); + + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: request.ImageFileContentType, formDataName: "image_file"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.ImageId)), "image_id"); + + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /file/card_image/get 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastFileCardImageGetAsync(this DouyinMicroAppWebcastClient client, Models.WebcastFileCardImageGetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "file", "card_image", "get") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /file/card_image/delete 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteWebcastFileCardImageDeleteAsync(this DouyinMicroAppWebcastClient client, Models.WebcastFileCardImageDeleteRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "file", "card_image", "delete") + .WithHeader("X-Token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs index 278225ef..51308df9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteGiftExtensions.cs @@ -29,7 +29,7 @@ public static class DouyinMicroAppWebcastClientExecuteGiftExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "gift", "top_gift") - .WithHeader("x-token", request.AccessToken); + .WithHeader("X-Token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs index 736d8b22..47bdecf8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteLinkMicExtensions.cs @@ -29,7 +29,7 @@ public static class DouyinMicroAppWebcastClientExecuteLinkMicExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "linkmic", "query") - .WithHeader("x-token", request.AccessToken); + .WithHeader("X-Token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs index d28609fc..60f3ba0f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Extensions/DouyinMicroAppWebcastClientExecuteQuizExtensions.cs @@ -26,7 +26,7 @@ public static class DouyinMicroAppWebcastClientExecuteQuizExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "quiz", "get") - .WithHeader("x-token", request.AccessToken); + .WithHeader("X-Token", request.AccessToken); if (request.Level is not null) flurlReq.SetQueryParam("level", request.Level.Value); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs index c7b84f9c..1408329c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Interceptors/DouyinMicroAppWebcastRequestSigningInterceptor.cs @@ -35,7 +35,11 @@ public override async Task BeforeCallAsync(HttpInterceptorContext context, Cance if (context.FlurlCall.HttpRequestMessage?.Content is not null) { - if (method != "GET") + if (context.FlurlCall.HttpRequestMessage.Content is MultipartFormDataContent) + { + // noop! + } + else if (method != "GET") { HttpContent httpContent = context.FlurlCall.HttpRequestMessage.Content; body = await _AsyncEx.RunTaskWithCancellationTokenAsync(httpContent.ReadAsStringAsync(), cancellationToken).ConfigureAwait(false); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetRequest.cs new file mode 100644 index 00000000..fb590acc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetRequest.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/default/get 接口的请求。 + /// + public class WebcastCardDefaultGetRequest : DouyinMicroAppWebcastRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetResponse.cs new file mode 100644 index 00000000..6c3689c4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultGetResponse.cs @@ -0,0 +1,162 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/default/get 接口的响应。 + /// + public class WebcastCardDefaultGetResponse : DouyinMicroAppWebcastResponse + { + public static class Types + { + public class CardValue + { + public static class Types + { + public class TitleInfo + { + /// + /// 获取或设置主标题。 + /// + [Newtonsoft.Json.JsonProperty("main_title")] + [System.Text.Json.Serialization.JsonPropertyName("main_title")] + public string MainTitle { get; set; } = default!; + + /// + /// 获取或设置副标题。 + /// + [Newtonsoft.Json.JsonProperty("sub_title")] + [System.Text.Json.Serialization.JsonPropertyName("sub_title")] + public string? SubTitle { get; set; } + } + + public class StatusTagInfo + { + /// + /// 获取或设置标签类型。 + /// + [Newtonsoft.Json.JsonProperty("tag_type")] + [System.Text.Json.Serialization.JsonPropertyName("tag_type")] + public int? TagType { get; set; } + + /// + /// 获取或设置活动开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_timestamp")] + [System.Text.Json.Serialization.JsonPropertyName("start_timestamp")] + public long? StartTimestamp { get; set; } + + /// + /// 获取或设置活动结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("stop_timestamp")] + [System.Text.Json.Serialization.JsonPropertyName("stop_timestamp")] + public long? StopTimestamp { get; set; } + } + + public class PropertyTagInfo + { + /// + /// 获取或设置店铺 Logo 图片 ID。 + /// + [Newtonsoft.Json.JsonProperty("store_logo_id")] + [System.Text.Json.Serialization.JsonPropertyName("store_logo_id")] + public string? StoreLogoImageId { get; set; } + + /// + /// 获取或设置店铺名称。 + /// + [Newtonsoft.Json.JsonProperty("store_name")] + [System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + } + + public class ButtonInfo + { + /// + /// 获取或设置按钮类型。 + /// + [Newtonsoft.Json.JsonProperty("btn_type")] + [System.Text.Json.Serialization.JsonPropertyName("btn_type")] + public int? ButtonType { get; set; } + + /// + /// 获取或设置价格字符串。 + /// + [Newtonsoft.Json.JsonProperty("price")] + [System.Text.Json.Serialization.JsonPropertyName("price")] + public string? PriceString { get; set; } + + /// + /// 获取或设置颜色十六进制值。 + /// + [Newtonsoft.Json.JsonProperty("color")] + [System.Text.Json.Serialization.JsonPropertyName("color")] + public string? Color { get; set; } + } + } + + /// + /// 获取或设置图片 ID。 + /// + [Newtonsoft.Json.JsonProperty("image_id")] + [System.Text.Json.Serialization.JsonPropertyName("image_id")] + public string ImageId { get; set; } = default!; + + /// + /// 获取或设置状态标签信息。 + /// + [Newtonsoft.Json.JsonProperty("status_tag")] + [System.Text.Json.Serialization.JsonPropertyName("status_tag")] + public Types.StatusTagInfo? StatusTagInfo { get; set; } + + /// + /// 获取或设置属性标签信息。 + /// + [Newtonsoft.Json.JsonProperty("property_tag")] + [System.Text.Json.Serialization.JsonPropertyName("property_tag")] + public Types.PropertyTagInfo? PropertyTagInfo { get; set; } + + /// + /// 获取或设置标题信息。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public Types.TitleInfo? TitleInfo { get; set; } + + /// + /// 获取或设置按钮信息。 + /// + [Newtonsoft.Json.JsonProperty("btn")] + [System.Text.Json.Serialization.JsonPropertyName("btn")] + public Types.ButtonInfo? ButtonInfo { get; set; } + } + } + + /// + /// 获取或设置讲解卡类型。 + /// + [Newtonsoft.Json.JsonProperty("card_type")] + [System.Text.Json.Serialization.JsonPropertyName("card_type")] + public int CardType { get; set; } + + /// + /// 获取或设置讲解卡内容。 + /// + [Newtonsoft.Json.JsonProperty("value")] + [System.Text.Json.Serialization.JsonPropertyName("value")] + public Types.CardValue CardValue { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置审核意见。 + /// + [Newtonsoft.Json.JsonProperty("audit_opinion")] + [System.Text.Json.Serialization.JsonPropertyName("audit_opinion")] + public string? AuditOpinion { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetRequest.cs new file mode 100644 index 00000000..0cfe354f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetRequest.cs @@ -0,0 +1,151 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/default/set 接口的请求。 + /// + public class WebcastCardDefaultSetRequest : DouyinMicroAppWebcastRequest + { + public static class Types + { + public class CardValue + { + public static class Types + { + public class TitleInfo + { + /// + /// 获取或设置主标题。 + /// + [Newtonsoft.Json.JsonProperty("main_title")] + [System.Text.Json.Serialization.JsonPropertyName("main_title")] + public string MainTitle { get; set; } = string.Empty; + + /// + /// 获取或设置副标题。 + /// + [Newtonsoft.Json.JsonProperty("sub_title")] + [System.Text.Json.Serialization.JsonPropertyName("sub_title")] + public string? SubTitle { get; set; } + } + + public class StatusTagInfo + { + /// + /// 获取或设置标签类型。 + /// + [Newtonsoft.Json.JsonProperty("tag_type")] + [System.Text.Json.Serialization.JsonPropertyName("tag_type")] + public int? TagType { get; set; } + + /// + /// 获取或设置活动开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_timestamp")] + [System.Text.Json.Serialization.JsonPropertyName("start_timestamp")] + public long? StartTimestamp { get; set; } + + /// + /// 获取或设置活动结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("stop_timestamp")] + [System.Text.Json.Serialization.JsonPropertyName("stop_timestamp")] + public long? StopTimestamp { get; set; } + } + + public class PropertyTagInfo + { + /// + /// 获取或设置店铺 Logo 图片 ID。 + /// + [Newtonsoft.Json.JsonProperty("store_logo_id")] + [System.Text.Json.Serialization.JsonPropertyName("store_logo_id")] + public string? StoreLogoImageId { get; set; } + + /// + /// 获取或设置店铺名称。 + /// + [Newtonsoft.Json.JsonProperty("store_name")] + [System.Text.Json.Serialization.JsonPropertyName("store_name")] + public string? StoreName { get; set; } + } + + public class ButtonInfo + { + /// + /// 获取或设置按钮类型。 + /// + [Newtonsoft.Json.JsonProperty("btn_type")] + [System.Text.Json.Serialization.JsonPropertyName("btn_type")] + public int? ButtonType { get; set; } + + /// + /// 获取或设置价格字符串。 + /// + [Newtonsoft.Json.JsonProperty("price")] + [System.Text.Json.Serialization.JsonPropertyName("price")] + public string? PriceString { get; set; } + + /// + /// 获取或设置颜色十六进制值。 + /// + [Newtonsoft.Json.JsonProperty("color")] + [System.Text.Json.Serialization.JsonPropertyName("color")] + public string? Color { get; set; } + } + } + + /// + /// 获取或设置图片 ID。 + /// + [Newtonsoft.Json.JsonProperty("image_id")] + [System.Text.Json.Serialization.JsonPropertyName("image_id")] + public string ImageId { get; set; } = string.Empty; + + /// + /// 获取或设置状态标签信息。 + /// + [Newtonsoft.Json.JsonProperty("status_tag")] + [System.Text.Json.Serialization.JsonPropertyName("status_tag")] + public Types.StatusTagInfo? StatusTagInfo { get; set; } + + /// + /// 获取或设置属性标签信息。 + /// + [Newtonsoft.Json.JsonProperty("property_tag")] + [System.Text.Json.Serialization.JsonPropertyName("property_tag")] + public Types.PropertyTagInfo? PropertyTagInfo { get; set; } + + /// + /// 获取或设置标题信息。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public Types.TitleInfo? TitleInfo { get; set; } + + /// + /// 获取或设置按钮信息。 + /// + [Newtonsoft.Json.JsonProperty("btn")] + [System.Text.Json.Serialization.JsonPropertyName("btn")] + public Types.ButtonInfo? ButtonInfo { get; set; } + } + } + + /// + /// 获取或设置讲解卡类型。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("card_type")] + [System.Text.Json.Serialization.JsonPropertyName("card_type")] + public int CardType { get; set; } = 1; + + /// + /// 获取或设置讲解卡内容。 + /// + [Newtonsoft.Json.JsonProperty("value")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedObjectInJsonFormatConverter))] + [System.Text.Json.Serialization.JsonPropertyName("value")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedObjectInJsonFormatConverter))] + public Types.CardValue CardValue { get; set; } = new Types.CardValue(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetResponse.cs new file mode 100644 index 00000000..3b1baee9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDefaultSetResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/default/set 接口的响应。 + /// + public class WebcastCardDefaultSetResponse : DouyinMicroAppWebcastResponse + { + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置审核反馈。 + /// + [Newtonsoft.Json.JsonProperty("feedback")] + [System.Text.Json.Serialization.JsonPropertyName("feedback")] + public string? Feedback { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteRequest.cs new file mode 100644 index 00000000..886d1e43 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteRequest.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/delete 接口的请求。 + /// + public class WebcastCardDeleteRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("url")] + [System.Text.Json.Serialization.JsonPropertyName("url")] + public string PagePath { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteResponse.cs new file mode 100644 index 00000000..9d6fe3d9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardDeleteResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/delete 接口的响应。 + /// + public class WebcastCardDeleteResponse : DouyinMicroAppWebcastResponse + { + /// + /// 获取或设置删除状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserRequest.cs new file mode 100644 index 00000000..233c8b5d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserRequest.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/get_all_cards_for_user 接口的请求。 + /// + public class WebcastCardGetAllCardsForUserRequest : DouyinMicroAppWebcastRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserResponse.cs new file mode 100644 index 00000000..5d9fc7cf --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetAllCardsForUserResponse.cs @@ -0,0 +1,76 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/get_all_cards_for_user 接口的响应。 + /// + public class WebcastCardGetAllCardsForUserResponse : DouyinMicroAppWebcastResponse + { + public static class Types + { + public class Card + { + public static class Types + { + public class CardValue : WebcastCardDefaultGetResponse.Types.CardValue + { + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("url")] + [System.Text.Json.Serialization.JsonPropertyName("url")] + public string PagePath { get; set; } = default!; + } + } + + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("url")] + [System.Text.Json.Serialization.JsonPropertyName("url")] + public string PagePath { get; set; } = default!; + + /// + /// 获取或设置讲解卡类型。 + /// + [Newtonsoft.Json.JsonProperty("card_type")] + [System.Text.Json.Serialization.JsonPropertyName("card_type")] + public int CardType { get; set; } + + /// + /// 获取或设置讲解卡内容。 + /// + [Newtonsoft.Json.JsonProperty("value")] + [System.Text.Json.Serialization.JsonPropertyName("value")] + public Types.CardValue CardValue { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置审核意见。 + /// + [Newtonsoft.Json.JsonProperty("audit_opinion")] + [System.Text.Json.Serialization.JsonPropertyName("audit_opinion")] + public string? AuditOpinion { get; set; } + + /// + /// 获取或设置达人 UID。 + /// + [Newtonsoft.Json.JsonProperty("user_id")] + [System.Text.Json.Serialization.JsonPropertyName("user_id")] + public long? UserUID { get; set; } + } + } + + /// + /// 获取或设置讲解卡列表。 + /// + [Newtonsoft.Json.JsonProperty("card_list")] + [System.Text.Json.Serialization.JsonPropertyName("card_list")] + public Types.Card[] CardList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetRequest.cs new file mode 100644 index 00000000..41366143 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetRequest.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/get 接口的请求。 + /// + public class WebcastCardGetRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("url")] + [System.Text.Json.Serialization.JsonPropertyName("url")] + public string PagePath { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetResponse.cs new file mode 100644 index 00000000..f63230cd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardGetResponse.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/get 接口的响应。 + /// + public class WebcastCardGetResponse : DouyinMicroAppWebcastResponse + { + public static class Types + { + public class CardValue : WebcastCardDefaultGetResponse.Types.CardValue + { + } + } + + /// + /// 获取或设置讲解卡类型。 + /// + [Newtonsoft.Json.JsonProperty("card_type")] + [System.Text.Json.Serialization.JsonPropertyName("card_type")] + public int CardType { get; set; } + + /// + /// 获取或设置讲解卡内容。 + /// + [Newtonsoft.Json.JsonProperty("value")] + [System.Text.Json.Serialization.JsonPropertyName("value")] + public Types.CardValue CardValue { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置审核意见。 + /// + [Newtonsoft.Json.JsonProperty("audit_opinion")] + [System.Text.Json.Serialization.JsonPropertyName("audit_opinion")] + public string? AuditOpinion { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetRequest.cs new file mode 100644 index 00000000..c86634ff --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetRequest.cs @@ -0,0 +1,92 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/set 接口的请求。 + /// + public class WebcastCardSetRequest : DouyinMicroAppWebcastRequest + { + public static class Types + { + public class CardValue + { + public static class Types + { + public class TitleInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.TitleInfo + { + } + + public class StatusTagInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.StatusTagInfo + { + } + + public class PropertyTagInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.PropertyTagInfo + { + } + + public class ButtonInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.ButtonInfo + { + } + } + + /// + /// 获取或设置图片 ID。 + /// + [Newtonsoft.Json.JsonProperty("image_id")] + [System.Text.Json.Serialization.JsonPropertyName("image_id")] + public string ImageId { get; set; } = string.Empty; + + /// + /// 获取或设置状态标签信息。 + /// + [Newtonsoft.Json.JsonProperty("status_tag")] + [System.Text.Json.Serialization.JsonPropertyName("status_tag")] + public Types.StatusTagInfo? StatusTagInfo { get; set; } + + /// + /// 获取或设置属性标签信息。 + /// + [Newtonsoft.Json.JsonProperty("property_tag")] + [System.Text.Json.Serialization.JsonPropertyName("property_tag")] + public Types.PropertyTagInfo? PropertyTagInfo { get; set; } + + /// + /// 获取或设置标题信息。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public Types.TitleInfo? TitleInfo { get; set; } + + /// + /// 获取或设置按钮信息。 + /// + [Newtonsoft.Json.JsonProperty("btn")] + [System.Text.Json.Serialization.JsonPropertyName("btn")] + public Types.ButtonInfo? ButtonInfo { get; set; } + } + } + + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("url")] + [System.Text.Json.Serialization.JsonPropertyName("url")] + public string PagePath { get; set; } = string.Empty; + + /// + /// 获取或设置讲解卡类型。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("card_type")] + [System.Text.Json.Serialization.JsonPropertyName("card_type")] + public int CardType { get; set; } = 1; + + /// + /// 获取或设置讲解卡内容。 + /// + [Newtonsoft.Json.JsonProperty("value")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedObjectInJsonFormatConverter))] + [System.Text.Json.Serialization.JsonPropertyName("value")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedObjectInJsonFormatConverter))] + public Types.CardValue CardValue { get; set; } = new Types.CardValue(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetResponse.cs new file mode 100644 index 00000000..e74174e3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardSetResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/set 接口的响应。 + /// + public class WebcastCardSetResponse : WebcastCardDefaultSetResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateRequest.cs new file mode 100644 index 00000000..41c11954 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateRequest.cs @@ -0,0 +1,92 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/update 接口的请求。 + /// + public class WebcastCardUpdateRequest : DouyinMicroAppWebcastRequest + { + public static class Types + { + public class CardValue + { + public static class Types + { + public class TitleInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.TitleInfo + { + } + + public class StatusTagInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.StatusTagInfo + { + } + + public class PropertyTagInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.PropertyTagInfo + { + } + + public class ButtonInfo : WebcastCardDefaultSetRequest.Types.CardValue.Types.ButtonInfo + { + } + } + + /// + /// 获取或设置图片 ID。 + /// + [Newtonsoft.Json.JsonProperty("image_id")] + [System.Text.Json.Serialization.JsonPropertyName("image_id")] + public string ImageId { get; set; } = string.Empty; + + /// + /// 获取或设置状态标签信息。 + /// + [Newtonsoft.Json.JsonProperty("status_tag")] + [System.Text.Json.Serialization.JsonPropertyName("status_tag")] + public Types.StatusTagInfo? StatusTagInfo { get; set; } + + /// + /// 获取或设置属性标签信息。 + /// + [Newtonsoft.Json.JsonProperty("property_tag")] + [System.Text.Json.Serialization.JsonPropertyName("property_tag")] + public Types.PropertyTagInfo? PropertyTagInfo { get; set; } + + /// + /// 获取或设置标题信息。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public Types.TitleInfo? TitleInfo { get; set; } + + /// + /// 获取或设置按钮信息。 + /// + [Newtonsoft.Json.JsonProperty("btn")] + [System.Text.Json.Serialization.JsonPropertyName("btn")] + public Types.ButtonInfo? ButtonInfo { get; set; } + } + } + + /// + /// 获取或设置直播间 ID。 + /// + [Newtonsoft.Json.JsonProperty("room_id")] + [System.Text.Json.Serialization.JsonPropertyName("room_id")] + public string RoomId { get; set; } = string.Empty; + + /// + /// 获取或设置讲解卡类型。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("card_type")] + [System.Text.Json.Serialization.JsonPropertyName("card_type")] + public int CardType { get; set; } = 1; + + /// + /// 获取或设置讲解卡内容。 + /// + [Newtonsoft.Json.JsonProperty("value")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedObjectInJsonFormatConverter))] + [System.Text.Json.Serialization.JsonPropertyName("value")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedObjectInJsonFormatConverter))] + public Types.CardValue CardValue { get; set; } = new Types.CardValue(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateResponse.cs new file mode 100644 index 00000000..cd3a2436 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/Card/WebcastCardUpdateResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /card/update 接口的响应。 + /// + public class WebcastCardUpdateResponse : WebcastCardDefaultSetResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteRequest.cs new file mode 100644 index 00000000..57215fa8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteRequest.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /file/card_image/delete 接口的请求。 + /// + public class WebcastFileCardImageDeleteRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置图片 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("image_ids")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedObjectInJsonFormatConverter))] + [System.Text.Json.Serialization.JsonPropertyName("image_ids")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedObjectInJsonFormatConverter))] + public IList ImageIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteResponse.cs new file mode 100644 index 00000000..8f190d11 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageDeleteResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /file/card_image/delete 接口的响应。 + /// + public class WebcastFileCardImageDeleteResponse : DouyinMicroAppWebcastResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetRequest.cs new file mode 100644 index 00000000..cc6ec531 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetRequest.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /file/card_image/get 接口的请求。 + /// + public class WebcastFileCardImageGetRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置图片 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("image_ids")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedObjectInJsonFormatConverter))] + [System.Text.Json.Serialization.JsonPropertyName("image_ids")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedObjectInJsonFormatConverter))] + public IList ImageIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetResponse.cs new file mode 100644 index 00000000..79b8a8f5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageGetResponse.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /file/card_image/get 接口的响应。 + /// + public class WebcastFileCardImageGetResponse : DouyinMicroAppWebcastResponse + { + public static class Types + { + public class Result + { + /// + /// 获取或设置图片 ID。 + /// + [Newtonsoft.Json.JsonProperty("image_id")] + [System.Text.Json.Serialization.JsonPropertyName("image_id")] + public string ImageId { get; set; } = default!; + + /// + /// 获取或设置图片状态。 + /// + [Newtonsoft.Json.JsonProperty("image_status")] + [System.Text.Json.Serialization.JsonPropertyName("image_status")] + public int Status { get; set; } + + /// + /// 获取或设置审核意见。 + /// + [Newtonsoft.Json.JsonProperty("audit_opinion")] + [System.Text.Json.Serialization.JsonPropertyName("audit_opinion")] + public string? AuditOpinion { get; set; } + } + } + + /// + /// 获取或设置结果列表。 + /// + [Newtonsoft.Json.JsonProperty("images_status")] + [System.Text.Json.Serialization.JsonPropertyName("images_status")] + public Types.Result[] ResultList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadRequest.cs new file mode 100644 index 00000000..d08c05cd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadRequest.cs @@ -0,0 +1,38 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /file/card_image/upload 接口的请求。 + /// + public class WebcastFileCardImageUploadRequest : DouyinMicroAppWebcastRequest + { + /// + /// 获取或设置图片 ID。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ImageId { get; set; } = string.Empty; + + /// + /// 获取或设置图片文件字节数组。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public byte[] ImageFileBytes { get; set; } = Array.Empty(); + + /// + /// 获取或设置图片文件名。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? ImageFileName { get; set; } + + /// + /// 获取或设置图片文件 MIME 类型。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? ImageFileContentType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadResponse.cs new file mode 100644 index 00000000..f11ac04e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/Webcast/Models/File/WebcastFileCardImageUploadResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models +{ + /// + /// 表示 [POST] /file/card_image/upload 接口的响应。 + /// + public class WebcastFileCardImageUploadResponse : DouyinMicroAppWebcastResponse + { + /// + /// 获取或设置图片状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultGetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultGetResponse.json new file mode 100644 index 00000000..d273f96e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultGetResponse.json @@ -0,0 +1,14 @@ +{ + "audit_opinion": "", + "card_type": 1, + "status": 2, + "value": { + "btn": { + "btn_type": 100 + }, + "image_id": "123456", + "title": { + "main_title": "商品A" + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetRequest.json new file mode 100644 index 00000000..16487306 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetRequest.json @@ -0,0 +1,4 @@ +{ + "card_type": 1, + "value": "{\"image_id\":\"123456\",\"title\":{\"main_title\":\"商品A\"}}" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetResponse.json new file mode 100644 index 00000000..4cd44471 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDefaultSetResponse.json @@ -0,0 +1,4 @@ +{ + "status": 2, + "feedback": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteRequest.json new file mode 100644 index 00000000..fddb7fd9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteRequest.json @@ -0,0 +1,3 @@ +{ + "url": "pages/good/detail?good_id=aaabbb" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteResponse.json new file mode 100644 index 00000000..0160870d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardDeleteResponse.json @@ -0,0 +1,3 @@ +{ + "status": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetAllCardsForUserResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetAllCardsForUserResponse.json new file mode 100644 index 00000000..81e9094a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetAllCardsForUserResponse.json @@ -0,0 +1,34 @@ +{ + "card_list": [ + { + "card_type": 1, + "status": 2, + "value": { + "btn": { + "btn_type": 100 + }, + "image_id": "123456", + "title": { + "main_title": "商品A" + } + }, + "user_id": 1234567890, + "url": "page/index/index" + }, + { + "card_type": 1, + "status": 2, + "value": { + "btn": { + "btn_type": 100 + }, + "image_id": "123456", + "title": { + "main_title": "商品A" + } + }, + "user_id": 1234567890, + "url": "page/index/index" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetRequest.json new file mode 100644 index 00000000..fddb7fd9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetRequest.json @@ -0,0 +1,3 @@ +{ + "url": "pages/good/detail?good_id=aaabbb" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetResponse.json new file mode 100644 index 00000000..d273f96e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardGetResponse.json @@ -0,0 +1,14 @@ +{ + "audit_opinion": "", + "card_type": 1, + "status": 2, + "value": { + "btn": { + "btn_type": 100 + }, + "image_id": "123456", + "title": { + "main_title": "商品A" + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetRequest.json new file mode 100644 index 00000000..e35fd42d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetRequest.json @@ -0,0 +1,5 @@ +{ + "url": "pages/good/detail?good_id=aaabbb", + "card_type": 1, + "value": "{\"image_id\":\"123456\",\"title\":{\"main_title\":\"商品A\"}}" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetResponse.json new file mode 100644 index 00000000..84a5f65d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardSetResponse.json @@ -0,0 +1,6 @@ +{ + "errcode": -1, + "errmsg": "system error", + "status": 2, + "feedback": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateRequest.json new file mode 100644 index 00000000..495270a4 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateRequest.json @@ -0,0 +1,5 @@ +{ + "room_id": "123321", + "card_type": 1, + "value": "{\"btn\":{\"price\":\"100\"}}" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateResponse.json new file mode 100644 index 00000000..b26ec85f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/Card/WebcastCardUpdateResponse.json @@ -0,0 +1,4 @@ +{ + "status": 1, + "feedback": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetRequest.json new file mode 100644 index 00000000..ff5d5611 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetRequest.json @@ -0,0 +1,3 @@ +{ + "image_ids": "[\"123456\",\"654321\"]" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetResponse.json new file mode 100644 index 00000000..2c6c63cb --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageGetResponse.json @@ -0,0 +1,14 @@ +{ + "images_status": [ + { + "image_id": "123456", + "image_status": 3, + "audit_opinion": "" + }, + { + "image_id": "654321", + "image_status": 4, + "audit_opinion": "fail: high risk social event." + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageUploadResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageUploadResponse.json new file mode 100644 index 00000000..04fbcb53 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/Webcast/File/WebcastFileCardImageUploadResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": -1, + "errmsg": "system error", + "status": 1 +} From 995d4a440f719dbdd51f27457204bd964479b127 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 8 Mar 2024 15:42:10 +0800 Subject: [PATCH 34/42] =?UTF-8?q?feat(microapp):=20=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=95=86=E5=B9=B3=E5=8F=B0=E6=96=B0=E6=97=A7?= =?UTF-8?q?=E7=89=88=E6=8E=A5=E5=8F=A3=E5=85=A5=E5=8F=A3=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OpenApi/DouyinMicroAppOpenApiClient.cs | 4 + .../DouyinMicroAppOpenApiClientOptions.cs | 8 +- .../OpenApi/DouyinMicroAppOpenApiEndpoints.cs | 9 +- ...penApiClientExecuteLegacyAuthExtensions.cs | 117 ++++ ...iClientExecuteLegacyMicroAppExtensions.cs} | 617 ++---------------- ...enApiClientExecuteLegacyOAuthExtensions.cs | 41 ++ ...nApiClientExecuteLegacySettleExtensions.cs | 88 +++ ...ClientExecuteLegacyThirdPartyExtensions.cs | 382 +++++++++++ ...icroAppOpenApiClientParameterExtensions.cs | 4 +- .../Auth/OpenApiAuthGenerateLinkV2Request.cs | 0 .../Auth/OpenApiAuthGenerateLinkV2Response.cs | 0 .../Auth/OpenApiAuthPreAuthCodeV2Request.cs | 0 .../Auth/OpenApiAuthPreAuthCodeV2Response.cs | 0 .../Auth/OpenApiAuthRetrieveV1Request.cs | 0 .../Auth/OpenApiAuthRetrieveV1Response.cs | 0 .../OpenApiAuthThirdPartyTokenV1Request.cs | 0 .../OpenApiAuthThirdPartyTokenV1Response.cs | 0 ...penApiMicroAppAppAddCategoriesV1Request.cs | 0 ...enApiMicroAppAppAddCategoriesV1Response.cs | 0 ...penApiMicroAppAppAllCategoriesV1Request.cs | 0 ...enApiMicroAppAppAllCategoriesV1Response.cs | 0 .../OpenApiMicroAppAppCategoriesV1Request.cs | 0 .../OpenApiMicroAppAppCategoriesV1Response.cs | 0 ...ApiMicroAppAppDeleteCategoriesV1Request.cs | 0 ...piMicroAppAppDeleteCategoriesV1Response.cs | 0 ...ApiMicroAppAppSupplyCategoriesV1Request.cs | 0 ...piMicroAppAppSupplyCategoriesV1Response.cs | 0 ...OpenApiMicroAppAppCheckAppNameV1Request.cs | 0 ...penApiMicroAppAppCheckAppNameV1Response.cs | 0 .../OpenApiMicroAppAppCreditScoreV1Request.cs | 0 ...OpenApiMicroAppAppCreditScoreV1Response.cs | 0 .../App/OpenApiMicroAppAppInfoV1Request.cs | 0 .../App/OpenApiMicroAppAppInfoV1Response.cs | 0 ...penApiMicroAppAppModifyAppIconV1Request.cs | 0 ...enApiMicroAppAppModifyAppIconV1Response.cs | 0 ...croAppAppModifyAppIntroductionV1Request.cs | 0 ...roAppAppModifyAppIntroductionV1Response.cs | 0 ...penApiMicroAppAppModifyAppNameV1Request.cs | 0 ...enApiMicroAppAppModifyAppNameV1Response.cs | 0 ...iMicroAppAppModifyServerDomainV1Request.cs | 0 ...MicroAppAppModifyServerDomainV1Response.cs | 0 ...MicroAppAppModifyWebviewDomainV1Request.cs | 0 ...icroAppAppModifyWebviewDomainV1Response.cs | 0 .../App/OpenApiMicroAppAppQrcodeV1Request.cs | 0 .../App/OpenApiMicroAppAppQrcodeV1Response.cs | 0 ...penApiMicroAppAppQualityRatingV1Request.cs | 0 ...enApiMicroAppAppQualityRatingV1Response.cs | 0 .../OpenApiMicroAppCode2SessionV1Request.cs | 0 .../OpenApiMicroAppCode2SessionV1Response.cs | 0 .../OpenApiMicroAppUploadMaterialV1Request.cs | 0 ...OpenApiMicroAppUploadMaterialV1Response.cs | 0 ...OperationLiveApplicationStatusV1Request.cs | 0 ...perationLiveApplicationStatusV1Response.cs | 0 ...croAppOperationLiveApplicationV1Request.cs | 0 ...roAppOperationLiveApplicationV1Response.cs | 0 ...onPhoneNumberApplicationStatusV1Request.cs | 0 ...nPhoneNumberApplicationStatusV1Response.cs | 0 ...perationPhoneNumberApplicationV1Request.cs | 0 ...erationPhoneNumberApplicationV1Response.cs | 0 ...perationVideoApplicationStatusV1Request.cs | 0 ...erationVideoApplicationStatusV1Response.cs | 0 ...roAppOperationVideoApplicationV1Request.cs | 0 ...oAppOperationVideoApplicationV1Response.cs | 0 ...roAppOperationAddShareTemplateV1Request.cs | 0 ...oAppOperationAddShareTemplateV1Response.cs | 0 ...ppOperationDeleteShareTemplateV1Request.cs | 0 ...pOperationDeleteShareTemplateV1Response.cs | 0 ...ppOperationModifyShareTemplateV1Request.cs | 0 ...pOperationModifyShareTemplateV1Response.cs | 0 ...erationSetDefaultShareTemplateV1Request.cs | 0 ...rationSetDefaultShareTemplateV1Response.cs | 0 ...oAppOperationShareTemplateListV1Request.cs | 0 ...AppOperationShareTemplateListV1Response.cs | 0 ...croAppOperationAddShopMaterialV1Request.cs | 0 ...roAppOperationAddShopMaterialV1Response.cs | 0 ...oAppOperationQueryShopMaterialV1Request.cs | 0 ...AppOperationQueryShopMaterialV1Response.cs | 0 ...enApiMicroAppPackageAuditHostsV1Request.cs | 0 ...nApiMicroAppPackageAuditHostsV1Response.cs | 0 .../OpenApiMicroAppPackageAuditV2Request.cs | 0 .../OpenApiMicroAppPackageAuditV2Response.cs | 0 .../OpenApiMicroAppPackageReleaseV1Request.cs | 0 ...OpenApiMicroAppPackageReleaseV1Response.cs | 0 ...nApiMicroAppPackageRevokeAuditV1Request.cs | 0 ...ApiMicroAppPackageRevokeAuditV1Response.cs | 0 ...OpenApiMicroAppPackageRollbackV1Request.cs | 0 ...penApiMicroAppPackageRollbackV1Response.cs | 0 .../OpenApiMicroAppPackageUploadV1Request.cs | 0 .../OpenApiMicroAppPackageUploadV1Response.cs | 0 ...OpenApiMicroAppPackageVersionsV1Request.cs | 0 ...penApiMicroAppPackageVersionsV1Response.cs | 0 .../OAuth/OpenApiOAuthTokenV1Request.cs | 0 .../OAuth/OpenApiOAuthTokenV1Response.cs | 0 .../Settle/OpenApiSettleApplyV1Request.cs | 0 .../Settle/OpenApiSettleApplyV1Response.cs | 0 .../OpenApiSettleGetApplyStatusV1Request.cs | 0 .../OpenApiSettleGetApplyStatusV1Response.cs | 0 .../Settle/OpenApiSettlePreCheckV1Request.cs | 0 .../Settle/OpenApiSettlePreCheckV1Response.cs | 0 ...iThirdPartyDownloadWebviewFileV1Request.cs | 0 ...ThirdPartyDownloadWebviewFileV1Response.cs | 0 .../OpenApiThirdPartyAuthAppListV1Request.cs | 0 .../OpenApiThirdPartyAuthAppListV1Response.cs | 0 ...hirdPartyUploadPictureMaterialV1Request.cs | 0 ...irdPartyUploadPictureMaterialV1Response.cs | 0 ...nApiThirdPartyPOIBaseQueryAMapV1Request.cs | 0 ...ApiThirdPartyPOIBaseQueryAMapV1Response.cs | 0 ...nApiThirdPartyPOISupplierMatchV1Request.cs | 0 ...ApiThirdPartyPOISupplierMatchV1Response.cs | 0 ...PartyPOISupplierQueryMatchTaskV1Request.cs | 0 ...artyPOISupplierQueryMatchTaskV1Response.cs | 0 ...hirdPartyPOISupplierQueryMatchV1Request.cs | 0 ...irdPartyPOISupplierQueryMatchV1Response.cs | 0 ...nApiThirdPartyPOISupplierQueryV1Request.cs | 0 ...ApiThirdPartyPOISupplierQueryV1Response.cs | 0 ...enApiThirdPartyPOISupplierSyncV1Request.cs | 0 ...nApiThirdPartyPOISupplierSyncV1Response.cs | 0 ...iThirdPartyTemplateAddTemplateV1Request.cs | 0 ...ThirdPartyTemplateAddTemplateV1Response.cs | 0 ...irdPartyTemplateDeleteTemplateV1Request.cs | 0 ...rdPartyTemplateDeleteTemplateV1Response.cs | 0 ...ThirdPartyTemplateGetDraftListV1Request.cs | 0 ...hirdPartyTemplateGetDraftListV1Response.cs | 0 ...artyTemplateGetTemplateAppListV1Request.cs | 0 ...rtyTemplateGetTemplateAppListV1Response.cs | 0 ...rdPartyTemplateGetTemplateListV1Request.cs | 0 ...dPartyTemplateGetTemplateListV1Response.cs | 0 .../DouyinMicroAppProductApiClientOptions.cs | 2 +- .../DouyinMicroAppRoleApiClientOptions.cs | 2 +- ...pClientExecuteLegacyAppsECPayExtensions.cs | 42 +- ...croAppClientExecuteLegacyAppsExtensions.cs | 150 ++--- ...ppClientExecuteLegacyAppsGameExtensions.cs | 7 +- ...lientExecuteLegacyAppsStorageExtensions.cs | 4 +- ...AppClientExecuteLegacyCommentExtensions.cs | 3 +- ...croAppClientExecuteLegacyTagsExtensions.cs | 5 +- .../IMPORTANT_CodeAnalyzeTests.cs | 609 +++++++++++------ .../OpenApiAuthGenerateLinkV2Response.json | 0 .../Auth/OpenApiAuthPreAuthCodeV2Request.json | 0 .../OpenApiAuthPreAuthCodeV2Response.json | 0 .../Auth/OpenApiAuthRetrieveV1Response.json | 0 .../OpenApiAuthThirdPartyTokenV1Response.json | 0 ...nApiMicroAppAppAddCategoriesV1Request.json | 0 ...ApiMicroAppAppAllCategoriesV1Response.json | 0 ...penApiMicroAppAppCategoriesV1Response.json | 0 ...iMicroAppAppDeleteCategoriesV1Request.json | 0 ...iMicroAppAppSupplyCategoriesV1Request.json | 0 ...enApiMicroAppAppCreditScoreV1Response.json | 0 .../App/OpenApiMicroAppAppInfoV1Response.json | 0 ...nApiMicroAppAppModifyAppIconV1Request.json | 0 ...oAppAppModifyAppIntroductionV1Request.json | 0 ...nApiMicroAppAppModifyAppNameV1Request.json | 0 ...icroAppAppModifyServerDomainV1Request.json | 0 ...croAppAppModifyServerDomainV1Response.json | 0 ...croAppAppModifyWebviewDomainV1Request.json | 0 ...roAppAppModifyWebviewDomainV1Response.json | 0 .../OpenApiMicroAppAppQrcodeV1Request.json | 0 ...ApiMicroAppAppQualityRatingV1Response.json | 0 ...OpenApiMicroAppCode2SessionV1Response.json | 0 ...enApiMicroAppUploadMaterialV1Response.json | 0 ...rationLiveApplicationStatusV1Response.json | 0 ...oAppOperationLiveApplicationV1Request.json | 0 ...honeNumberApplicationStatusV1Response.json | 0 ...rationPhoneNumberApplicationV1Request.json | 0 ...ationVideoApplicationStatusV1Response.json | 0 ...AppOperationVideoApplicationV1Request.json | 0 ...AppOperationAddShareTemplateV1Request.json | 0 ...OperationDeleteShareTemplateV1Request.json | 0 ...OperationModifyShareTemplateV1Request.json | 0 ...ationSetDefaultShareTemplateV1Request.json | 0 ...pOperationShareTemplateListV1Response.json | 0 ...oAppOperationAddShopMaterialV1Request.json | 0 ...pOperationQueryShopMaterialV1Response.json | 0 ...piMicroAppPackageAuditHostsV1Response.json | 0 .../OpenApiMicroAppPackageAuditV2Request.json | 0 ...OpenApiMicroAppPackageUploadV1Request.json | 0 ...nApiMicroAppPackageVersionsV1Response.json | 0 .../OAuth/OpenApiOAuthTokenV1Response.json | 0 .../Settle/OpenApiSettleApplyV1Request.json | 0 .../Settle/OpenApiSettleApplyV1Response.json | 0 ...OpenApiSettleGetApplyStatusV1Response.json | 0 .../OpenApiSettlePreCheckV1Request.json | 0 ...penApiThirdPartyAuthAppListV1Response.json | 0 ...dPartyUploadPictureMaterialV1Response.json | 0 ...iThirdPartyPOIBaseQueryAMapV1Response.json | 0 ...piThirdPartyPOISupplierMatchV1Request.json | 0 ...iThirdPartyPOISupplierMatchV1Response.json | 0 ...tyPOISupplierQueryMatchTaskV1Response.json | 0 ...dPartyPOISupplierQueryMatchV1Response.json | 0 ...iThirdPartyPOISupplierQueryV1Response.json | 0 ...ApiThirdPartyPOISupplierSyncV1Request.json | 0 ...hirdPartyTemplateAddTemplateV1Request.json | 0 ...dPartyTemplateDeleteTemplateV1Request.json | 0 ...rdPartyTemplateGetDraftListV1Response.json | 0 ...yTemplateGetTemplateAppListV1Response.json | 0 ...artyTemplateGetTemplateListV1Response.json | 0 195 files changed, 1195 insertions(+), 899 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/{DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs => DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs} (62%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacySettleExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthGenerateLinkV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthGenerateLinkV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthPreAuthCodeV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthPreAuthCodeV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthRetrieveV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthRetrieveV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthThirdPartyTokenV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Auth/OpenApiAuthThirdPartyTokenV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/OAuth/OpenApiOAuthTokenV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/OAuth/OpenApiOAuthTokenV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Settle/OpenApiSettleApplyV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Settle/OpenApiSettleApplyV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Settle/OpenApiSettleGetApplyStatusV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Settle/OpenApiSettleGetApplyStatusV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Settle/OpenApiSettlePreCheckV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/Settle/OpenApiSettlePreCheckV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs (100%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Auth/OpenApiAuthGenerateLinkV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Auth/OpenApiAuthPreAuthCodeV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Auth/OpenApiAuthPreAuthCodeV2Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Auth/OpenApiAuthRetrieveV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Auth/OpenApiAuthThirdPartyTokenV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppInfoV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/OpenApiMicroAppCode2SessionV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/OpenApiMicroAppUploadMaterialV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/OAuth/OpenApiOAuthTokenV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Settle/OpenApiSettleApplyV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Settle/OpenApiSettleApplyV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Settle/OpenApiSettleGetApplyStatusV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/Settle/OpenApiSettlePreCheckV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.json (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ => _Legacy}/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClient.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClient.cs index bd5faf8a..8db0f802 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClient.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClient.cs @@ -11,6 +11,8 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi ///
public class DouyinMicroAppOpenApiClient : CommonClientBase, ICommonClient { + public readonly string _BASEURL_LEGACY; + /// /// 获取当前客户端使用的抖音小程序凭证。 /// @@ -40,6 +42,8 @@ internal protected DouyinMicroAppOpenApiClient(DouyinMicroAppOpenApiClientOption FlurlClient.BaseUrl = options.Endpoints ?? DouyinMicroAppOpenApiEndpoints.DEFAULT; FlurlClient.WithTimeout(options.Timeout <= 0 ? Timeout.InfiniteTimeSpan : TimeSpan.FromMilliseconds(options.Timeout)); + + _BASEURL_LEGACY = options.EndpointForLegacy ?? DouyinMicroAppEndpoints.LEGACY_DEFAULT; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientOptions.cs index 72beaddb..264d36a4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiClientOptions.cs @@ -12,11 +12,17 @@ public class DouyinMicroAppOpenApiClientOptions public int Timeout { get; set; } = 30 * 1000; /// - /// 获取或设置抖音小程序服务商平台 API 域名。 + /// 获取或设置抖音小程序服务商平台 API 入口点。 /// 默认值: /// public string Endpoints { get; set; } = DouyinMicroAppOpenApiEndpoints.DEFAULT; + /// + /// 获取或设置抖音小程序服务商平台旧版 API 入口点。 + /// 默认值: + /// + public string EndpointForLegacy { get; set; } = DouyinMicroAppOpenApiEndpoints.LEGACY_DEFAULT; + /// /// 获取或设置抖音小程序服务商 AppId。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEndpoints.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEndpoints.cs index c48febee..19f53ccf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEndpoints.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiEndpoints.cs @@ -6,8 +6,13 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi public static class DouyinMicroAppOpenApiEndpoints { /// - /// 服务商平台接口域名(默认)。 + /// 默认域名。 /// - public const string DEFAULT = "https://open.microapp.bytedance.com/openapi"; + public const string DEFAULT = "https://open.douyin.com/api"; + + /// + /// 旧版接口服务商平台接口域名。 + /// + public const string LEGACY_DEFAULT = "https://open.microapp.bytedance.com/openapi"; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs new file mode 100644 index 00000000..34388ead --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs @@ -0,0 +1,117 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions + { + /// + /// 异步调用 [GET] /v1/auth/tp/token 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiAuthThirdPartyTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthThirdPartyTokenV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.ComponentAppSecret is null) + request.ComponentAppSecret = client.Credentials.ComponentAppSecret; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "auth", "tp", "token") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "auth", "tp", "token")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_appsecret", request.ComponentAppSecret) + .SetQueryParam("component_ticket", request.ComponentTicket); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v2/auth/pre_auth_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiAuthPreAuthCodeV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthPreAuthCodeV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v2", "auth", "pre_auth_code") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v2", "auth", "pre_auth_code")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v2/auth/gen_link 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiAuthGenerateLinkV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthGenerateLinkV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v2", "auth", "gen_link") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v2", "auth", "gen_link")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v1/auth/retrieve 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiAuthRetrieveV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthRetrieveV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "auth", "retrieve") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "auth", "retrieve")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("authorization_appid", request.AuthorizerAppId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs similarity index 62% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs index ae66f751..73fd9024 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteOpenApiExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs @@ -3,507 +3,13 @@ using System.Text; using System.Threading; using System.Threading.Tasks; +using Flurl; using Flurl.Http; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { - public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions + public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions { - #region Auth - /// - /// 异步调用 [GET] /v1/auth/tp/token 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiAuthThirdPartyTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthThirdPartyTokenV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.ComponentAppSecret is null) - request.ComponentAppSecret = client.Credentials.ComponentAppSecret; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "auth", "tp", "token") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_appsecret", request.ComponentAppSecret) - .SetQueryParam("component_ticket", request.ComponentTicket); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v2/auth/pre_auth_code 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiAuthPreAuthCodeV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthPreAuthCodeV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v2", "auth", "pre_auth_code") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v2/auth/gen_link 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiAuthGenerateLinkV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthGenerateLinkV2Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v2", "auth", "gen_link") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v1/auth/retrieve 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiAuthRetrieveV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthRetrieveV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "auth", "retrieve") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("authorization_appid", request.AuthorizerAppId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region OAuth - /// - /// 异步调用 [GET] /v1/oauth/token 接口。 - /// - /// REF:
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiOAuthTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiOAuthTokenV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "oauth", "token") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("grant_type", request.GrantType); - - if (request.AuthCode is not null) - flurlReq.SetQueryParam("authorization_code", request.AuthCode); - - if (request.AuthorizerRefreshToken is not null) - flurlReq.SetQueryParam("authorizer_refresh_token", request.AuthorizerRefreshToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region ThirdParty - /// - /// 异步调用 [GET] /v1/tp/auth_app_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyAuthAppListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyAuthAppListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "auth_app_list") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("page", request.PageNumber) - .SetQueryParam("size", request.PageSize); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v1/tp/upload_pic_material 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyUploadPictureMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyUploadPictureMaterialV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - if (request.MaterialFileName is null) - request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "upload_pic_material") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); - httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); - - return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - #region ThirdParty/Domain - /// - /// 异步调用 [GET] /v1/tp/download/webview_file 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyDownloadWebviewFileV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyDownloadWebviewFileV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "download", "webview_file") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region ThirdParty/POI - /// - /// 异步调用 [POST] /v1/tp/poi/supplier/match 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierMatchV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierMatchV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "match") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /v1/tp/poi/supplier/query/match_task 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchTaskV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match_task") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("task_ids", string.Join(",", request.TaskIdList)); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /v1/tp/poi/supplier/query/match 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("supplier_ext_ids", string.Join(",", request.SupplierExternalIds)); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v1/tp/poi/supplier/sync 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierSyncV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierSyncV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "sync") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /v1/tp/poi/supplier/query 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("supplier_ext_id", request.SupplierExternalId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /v1/tp/poi/base/query/amap 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyPOIBaseQueryAMapV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOIBaseQueryAMapV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "base", "query", "amap") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("amap_id", request.AMapId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region ThirdParty/Template - /// - /// 异步调用 [GET] /v1/tp/template/get_tpl_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_list") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /v1/tp/template/get_draft_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - [Obsolete("相关接口或字段于 2022-12-28 下线。")] - public static async Task ExecuteOpenApiThirdPartyTemplateGetDraftListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetDraftListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_draft_list") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /v1/tp/template/get_tpl_app_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateAppListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateAppListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_app_list") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v1/tp/template/add_tpl 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyTemplateAddTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateAddTemplateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "template", "add_tpl") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v1/tp/template/del_tpl 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiThirdPartyTemplateDeleteTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateDeleteTemplateV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "template", "del_tpl") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - #endregion - - #region MicroApp /// /// 异步调用 [GET] /v1/microapp/code2session 接口。 /// @@ -522,6 +28,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "code2session") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "code2session")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("code", request.Code) @@ -554,6 +61,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "upload_material") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "upload_material")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -563,7 +71,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } - #region MicroApp/App + #region App /// /// 异步调用 [GET] /v1/microapp/app/info 接口。 /// @@ -582,6 +90,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "info") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "info")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -606,6 +115,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "qrcode") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "qrcode")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -630,6 +140,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "check_app_name") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "check_app_name")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("app_name", request.AppName); @@ -655,6 +166,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_name") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "modify_app_name")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -679,6 +191,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_intro") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "modify_app_intro")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -703,6 +216,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_app_icon") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "modify_app_icon")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -727,6 +241,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "all_categories") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "all_categories")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -751,6 +266,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "categories") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "categories")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -775,6 +291,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "add_categories") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "add_categories")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -799,6 +316,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "del_categories") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "del_categories")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -823,6 +341,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "supply_categories") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "supply_categories")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -847,6 +366,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_server_domain") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "modify_server_domain")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -871,6 +391,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "app", "modify_webview_domain") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "modify_webview_domain")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -895,6 +416,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "quality_rating") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "quality_rating")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -919,6 +441,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "app", "credit_score") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "app", "credit_score")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -926,7 +449,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions } #endregion - #region MicroApp/Operation + #region Operation /// /// 异步调用 [GET] /v1/microapp/operation/video_application_status 接口。 /// @@ -945,6 +468,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "video_application_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "video_application_status")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -969,6 +493,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "video_application") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "video_application")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -993,6 +518,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "live_application_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "live_application_status")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1017,6 +543,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "live_application") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "live_application")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1041,6 +568,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "phone_number_application_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "phone_number_application_status")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1065,6 +593,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "phone_number_application") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "phone_number_application")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1089,6 +618,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "share_tpl_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "share_tpl_list")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("page", request.PageNumber) @@ -1115,6 +645,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "add_share_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "add_share_tpl")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1139,6 +670,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "modify_share_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "modify_share_tpl")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1163,6 +695,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "del_share_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "del_share_tpl")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1187,6 +720,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "set_default_share_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "set_default_share_tpl")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1211,6 +745,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "operation", "add_shop_material") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "add_shop_material")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1235,6 +770,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "operation", "query_shop_material") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "operation", "query_shop_material")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken) .SetQueryParam("supplier_ext_id", request.SupplierExternalId); @@ -1243,7 +779,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions } #endregion - #region MicroApp/Package + #region Package /// /// 异步调用 [POST] /v1/microapp/package/upload 接口。 /// @@ -1262,6 +798,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "upload") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "package", "upload")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1286,6 +823,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "package", "audit_hosts") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "package", "audit_hosts")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1310,6 +848,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v2", "microapp", "package", "audit") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v2", "microapp", "package", "audit")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1334,6 +873,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "revoke_audit") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "package", "revoke_audit")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1358,6 +898,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "release") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "package", "release")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1382,6 +923,7 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "package", "rollback") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "package", "rollback")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); @@ -1406,87 +948,12 @@ public static class DouyinMicroAppOpenApiClientExecuteOpenApiExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "v1", "microapp", "package", "versions") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "microapp", "package", "versions")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion - #endregion - - #region Settle - /// - /// 异步调用 [POST] /v1/settle/pre_check 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiSettlePreCheckV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettlePreCheckV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "settle", "pre_check") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /v1/settle/apply 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiSettleApplyV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettleApplyV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "v1", "settle", "apply") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [GET] /v1/settle/get_apply_status 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiSettleGetApplyStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettleGetApplyStatusV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "settle", "get_apply_status") - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("apply_id", request.ApplyId); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs new file mode 100644 index 00000000..d5ce9cd5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs @@ -0,0 +1,41 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions + { + /// + /// 异步调用 [GET] /v1/oauth/token 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiOAuthTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiOAuthTokenV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "oauth", "token") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "oauth", "token")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("grant_type", request.GrantType) + .SetQueryParam("authorization_code", request.AuthCode) + .SetQueryParam("authorizer_refresh_token", request.AuthorizerRefreshToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacySettleExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacySettleExtensions.cs new file mode 100644 index 00000000..24bbd334 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacySettleExtensions.cs @@ -0,0 +1,88 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteLegacySettleExtensions + { + /// + /// 异步调用 [POST] /v1/settle/pre_check 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiSettlePreCheckV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettlePreCheckV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "settle", "pre_check") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "settle", "pre_check")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v1/settle/apply 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiSettleApplyV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettleApplyV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "settle", "apply") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "settle", "apply")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /v1/settle/get_apply_status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiSettleGetApplyStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiSettleGetApplyStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "settle", "get_apply_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "settle", "get_apply_status")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("apply_id", request.ApplyId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs new file mode 100644 index 00000000..5db946ca --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs @@ -0,0 +1,382 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions + { + /// + /// 异步调用 [GET] /v1/tp/auth_app_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyAuthAppListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyAuthAppListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "auth_app_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "auth_app_list")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("page", request.PageNumber) + .SetQueryParam("size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v1/tp/upload_pic_material 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyUploadPictureMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyUploadPictureMaterialV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.MaterialFileName is null) + request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "upload_pic_material") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "upload_pic_material")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); + + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + #region Domain + /// + /// 异步调用 [GET] /v1/tp/download/webview_file 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyDownloadWebviewFileV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyDownloadWebviewFileV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "download", "webview_file") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "download", "webview_file")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region POI + /// + /// 异步调用 [POST] /v1/tp/poi/supplier/match 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyPOISupplierMatchV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierMatchV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "match") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "poi", "supplier", "match")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /v1/tp/poi/supplier/query/match_task 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchTaskV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match_task") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "poi", "supplier", "query", "match_task")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("task_ids", string.Join(",", request.TaskIdList)); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /v1/tp/poi/supplier/query/match 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryMatchV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryMatchV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query", "match") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "poi", "supplier", "query", "match")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("supplier_ext_ids", string.Join(",", request.SupplierExternalIds)); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v1/tp/poi/supplier/sync 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyPOISupplierSyncV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierSyncV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "poi", "supplier", "sync") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "poi", "supplier", "sync")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /v1/tp/poi/supplier/query 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyPOISupplierQueryV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOISupplierQueryV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "supplier", "query") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "poi", "supplier", "query")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("supplier_ext_id", request.SupplierExternalId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /v1/tp/poi/base/query/amap 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyPOIBaseQueryAMapV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyPOIBaseQueryAMapV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "poi", "base", "query", "amap") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "poi", "base", "query", "amap")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("amap_id", request.AMapId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Template + /// + /// 异步调用 [GET] /v1/tp/template/get_tpl_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "template", "get_tpl_list")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /v1/tp/template/get_draft_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + [Obsolete("相关接口或字段于 2022-12-28 下线。")] + public static async Task ExecuteOpenApiThirdPartyTemplateGetDraftListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetDraftListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_draft_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "template", "get_draft_list")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /v1/tp/template/get_tpl_app_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateAppListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateAppListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_tpl_app_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "template", "get_tpl_app_list")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v1/tp/template/add_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyTemplateAddTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateAddTemplateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "template", "add_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "template", "add_tpl")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /v1/tp/template/del_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyTemplateDeleteTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateDeleteTemplateV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "template", "del_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "template", "del_tpl")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs index e0e6ce14..1cd53b89 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs @@ -4,6 +4,8 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { public static class DouyinMicroAppOpenApiClientParameterExtensions { + private const string BASE_URL = "https://open.microapp.bytedance.com/openapi"; + /// /// 生成第三方应用服务商授权 URL。 /// @@ -17,7 +19,7 @@ public static class DouyinMicroAppOpenApiClientParameterExtensions /// public static string GenerateParameterizedUrlForOpenComponentThirdPartyAuthorization(this DouyinMicroAppOpenApiClient client, string preAuthCode, string redirectUrl) { - return new Url(DouyinMicroAppOpenApiEndpoints.DEFAULT) + return new Url(BASE_URL) .AppendPathSegments("mappconsole", "tp", "authorization") .SetQueryParam("component_appid", client.Credentials.ComponentAppId) .SetQueryParam("pre_auth_code", preAuthCode) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthGenerateLinkV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthPreAuthCodeV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthRetrieveV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Auth/OpenApiAuthThirdPartyTokenV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/OAuth/OpenApiOAuthTokenV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleApplyV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettleGetApplyStatusV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Settle/OpenApiSettlePreCheckV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs similarity index 100% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientOptions.cs index 00c89687..d898f8ef 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/DouyinMicroAppProductApiClientOptions.cs @@ -12,7 +12,7 @@ public class DouyinMicroAppProductApiClientOptions public int Timeout { get; set; } = 30 * 1000; /// - /// 获取或设置抖音小程序泛知识课程库 API 域名。 + /// 获取或设置抖音小程序泛知识课程库 API 入口点。 /// 默认值: /// public string Endpoints { get; set; } = DouyinMicroAppProductApiEndpoints.DEFAULT; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientOptions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientOptions.cs index ed36ff13..1260d0ae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/DouyinMicroAppRoleApiClientOptions.cs @@ -12,7 +12,7 @@ public class DouyinMicroAppRoleApiClientOptions public int Timeout { get; set; } = 30 * 1000; /// - /// 获取或设置抖音小程序泛知识角色系统 API 域名。 + /// 获取或设置抖音小程序泛知识角色系统 API 入口点。 /// 默认值: /// public string Endpoints { get; set; } = DouyinMicroAppRoleApiEndpoints.DEFAULT; diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs index 9128083d..1be12990 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsECPayExtensions.cs @@ -98,7 +98,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "bills") - .WithUrl($"{client._BASEURL_LEGACY}/apps/bills") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "bills")) .SetQueryParam("app_id", request.AppId) .SetQueryParam("merchant_id", request.MerchantId) .SetQueryParam("bill_date", request.DateString) @@ -144,7 +144,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "fund", "bills") - .WithUrl($"{client._BASEURL_LEGACY}/apps/fund/bills") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "fund", "bills")) .SetQueryParam("app_id", request.AppId) .SetQueryParam("merchant_id", request.MerchantId) .SetQueryParam("bill_date", request.DateString) @@ -185,7 +185,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_order") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/create_order"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "create_order")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -214,7 +214,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_order") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_order"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "query_order")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -243,7 +243,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_refund") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/create_refund"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "create_refund")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -272,7 +272,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_refund") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_refund"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "query_refund")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -301,7 +301,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "settle") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/settle"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "settle")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -330,7 +330,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_settle") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_settle"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "query_settle")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -359,7 +359,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "create_return") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/create_return"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "create_return")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -388,7 +388,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_return") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_return"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "query_return")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -417,7 +417,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "v1", "query_platform_order") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/v1/query_platform_order"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "v1", "query_platform_order")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -443,7 +443,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "create_merchant") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/create_merchant"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "create_merchant")); if (request.Signature is null) request.Signature = GenerateRequestSignature(client, request); @@ -469,7 +469,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "image_upload") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/image_upload"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "image_upload")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -495,7 +495,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_status") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/query_merchant_status"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "query_merchant_status")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -524,7 +524,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_merchant") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/add_merchant"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "add_merchant")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -554,7 +554,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "get_app_merchant") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/get_app_merchant"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "get_app_merchant")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -581,7 +581,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "app_add_sub_merchant") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/app_add_sub_merchant"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "app_add_sub_merchant")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -611,7 +611,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "add_sub_merchant") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/add_sub_merchant"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "add_sub_merchant")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -639,7 +639,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_merchant_balance") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/query_merchant_balance"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "query_merchant_balance")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -665,7 +665,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "merchant_withdraw") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/merchant_withdraw"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "merchant_withdraw")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -691,7 +691,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "ecpay", "saas", "query_withdraw_order") - .WithUrl($"{client._BASEURL_LEGACY}/apps/ecpay/saas/query_withdraw_order"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "ecpay", "saas", "query_withdraw_order")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index f2859ac1..bda7652d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -36,7 +36,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "token") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v2/token"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v2", "token")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -67,7 +67,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "jscode2session") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v2/jscode2session"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v2", "jscode2session")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -94,7 +94,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "upload_material") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/upload_material") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "upload_material")) .WithHeader("access-token", request.AccessToken); using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); @@ -123,7 +123,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_permission_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_aweme_permission_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_aweme_permission_list")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -148,7 +148,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_aweme_permission") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/apply_aweme_permission") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "apply_aweme_permission")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -173,7 +173,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_scope_quota_detail") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_scope_quota_detail") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_scope_quota_detail")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("permission_key", request.PermissionKey); @@ -199,7 +199,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_scope_quota") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/apply_scope_quota") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "apply_scope_quota")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -225,7 +225,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_clue_component_info") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/create_clue_component_info") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "create_clue_component_info")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -249,7 +249,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_clue_component_info") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_clue_component_info") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_clue_component_info")) .WithHeader("access-token", request.AccessToken); if (request.PageNumber is not null) @@ -279,7 +279,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_clue_component_info") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_clue_component_info") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "update_clue_component_info")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -303,7 +303,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Delete, "apps", "v1", "capacity", "delete_clue_component_info") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/delete_clue_component_info") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "delete_clue_component_info")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -330,7 +330,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_aweme_user") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/bind_aweme_user") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "bind_aweme_user")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -355,7 +355,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_aweme_user_bind") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/unbind_aweme_user_bind") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "unbind_aweme_user_bind")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -380,7 +380,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_aweme_user_bind_qrcode") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/get_aweme_user_bind_qrcode") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "get_aweme_user_bind_qrcode")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("type", request.BindType); @@ -406,7 +406,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_aweme_user_bind_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_aweme_user_bind_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_aweme_user_bind_list")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("type", request.BindType) .SetQueryParam("page_num", request.PageNumber) @@ -440,7 +440,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "apply_capacity") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/apply_capacity") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "apply_capacity")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -469,7 +469,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_apply_status") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_apply_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_apply_status")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("capacity_key", request.CapacityKey); @@ -495,7 +495,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "bind_self_mount_user") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/bind_self_mount_user") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "bind_self_mount_user")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -520,7 +520,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "unbind_self_mount_user") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/unbind_self_mount_user") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "unbind_self_mount_user")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -545,7 +545,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "get_self_mount_bind_qrcode") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/get_self_mount_bind_qrcode") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "get_self_mount_bind_qrcode")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("capacity_key", request.CapacityKey); @@ -571,7 +571,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_self_mount_user_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_self_mount_user_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_self_mount_user_list")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("capacity_key", request.CapacityKey) .SetQueryParam("page_num", request.PageNumber) @@ -600,7 +600,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_info") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_capcut_info") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_capcut_info")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -625,7 +625,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_capcut_template_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_capcut_template_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_capcut_template_list")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.PageNumber) .SetQueryParam("page_size", request.PageSize); @@ -652,7 +652,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_capcut_template_status") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_capcut_template_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "update_capcut_template_status")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -680,7 +680,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_simple_qr_bind_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_simple_qr_bind_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_simple_qr_bind_list")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.PageNumber) .SetQueryParam("page_size", request.PageSize); @@ -707,7 +707,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_simple_qr_bind") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/add_simple_qr_bind") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "add_simple_qr_bind")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -732,7 +732,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_simple_qr_bind") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "update_simple_qr_bind")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -757,7 +757,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_simple_qr_bind_status") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_simple_qr_bind_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "update_simple_qr_bind_status")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -782,7 +782,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_simple_qr_bind") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/delete_simple_qr_bind") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "delete_simple_qr_bind")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -809,7 +809,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_subscribe_notification_tpl_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_subscribe_notification_tpl_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_subscribe_notification_tpl_list")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.PageNumber) .SetQueryParam("page_size", request.PageSize) @@ -844,7 +844,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_app_subscribe_notification_tpl") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_app_subscribe_notification_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_app_subscribe_notification_tpl")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.PageNumber) .SetQueryParam("page_size", request.PageSize) @@ -875,7 +875,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_created_subscribe_notification_tpl_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_created_subscribe_notification_tpl_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_created_subscribe_notification_tpl_list")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("page_num", request.PageNumber) .SetQueryParam("page_size", request.PageSize); @@ -905,7 +905,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_app_subscribe_notification_tpl") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/add_app_subscribe_notification_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "add_app_subscribe_notification_tpl")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -930,7 +930,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "modify_app_subscribe_notification_tpl") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/modify_app_subscribe_notification_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "modify_app_subscribe_notification_tpl")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -955,7 +955,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "delete_app_subscribe_notification_tpl") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/delete_app_subscribe_notification_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "delete_app_subscribe_notification_tpl")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -980,7 +980,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "create_subscribe_notification_tpl") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/create_subscribe_notification_tpl") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "create_subscribe_notification_tpl")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1007,7 +1007,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_traffic_permission_status") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_traffic_permission_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_traffic_permission_status")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1032,7 +1032,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "open_traffic_permission") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/open_traffic_permission") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "open_traffic_permission")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1057,7 +1057,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_placement_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_ad_placement_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_ad_placement_list")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1082,7 +1082,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "add_ad_placement") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/add_ad_placement") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "add_ad_placement")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1107,7 +1107,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "update_ad_placement_status") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/update_ad_placement_status") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "update_ad_placement_status")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1131,7 +1131,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_income") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_ad_income") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_ad_income")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_date", request.StartDateString) .SetQueryParam("end_date", request.EndDateString); @@ -1160,7 +1160,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "capacity", "query_ad_settlement_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/capacity/query_ad_settlement_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "query_ad_settlement_list")) .WithHeader("access-token", request.AccessToken); if (request.PeriodString is not null) @@ -1197,7 +1197,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "censor", "image") - .WithUrl($"{client._BASEURL_LEGACY}/apps/censor/image"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "censor", "image")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -1225,7 +1225,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "customer_service", "url") - .WithUrl($"{client._BASEURL_LEGACY}/apps/customer_service/url") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "customer_service", "url")) .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("appid", request.AppId) .SetQueryParam("openid", request.OpenId) @@ -1259,7 +1259,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "chat", "customer_service_url") - .WithUrl($"{client._BASEURL_LEGACY}/apps/chat/customer_service_url") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "chat", "customer_service_url")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("appid", request.AppId) .SetQueryParam("openid", request.OpenId) @@ -1297,7 +1297,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_deal_overview_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_deal_overview_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_deal_overview_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1330,7 +1330,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_video_deal_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_video_deal_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_video_deal_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1360,7 +1360,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_live_room") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_live_room")) .WithHeader("access-token", request.AccessToken); if (request.AnchorName is not null) @@ -1388,7 +1388,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_room_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_live_room_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_live_room_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("live_room_id", request.LiveRoomId); @@ -1414,7 +1414,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_live_deal_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_live_deal_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_live_deal_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("live_room_id", request.LiveRoomId); @@ -1440,7 +1440,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_product_deal_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_product_deal_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_product_deal_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp) @@ -1474,7 +1474,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_behavior_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_behavior_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_behavior_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1510,7 +1510,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_real_time_user_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_real_time_user_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_real_time_user_data")) .WithHeader("access-token", request.AccessToken); if (request.HostName is not null) @@ -1541,7 +1541,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_retention_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_retention_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_retention_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1580,7 +1580,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_scene_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_scene_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_scene_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1613,7 +1613,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_user_portrait_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_user_portrait_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_user_portrait_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1649,7 +1649,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_client_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_client_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_client_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1685,7 +1685,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "data_analysis", "query_page_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/data_analysis/query_page_data") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "data_analysis", "query_page_data")) .WithHeader("access-token", request.AccessToken) .SetQueryParam("start_time", request.StartTimestamp) .SetQueryParam("end_time", request.EndTimestamp); @@ -1729,7 +1729,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "upload_live_image") - .WithUrl($"{client._BASEURL_LEGACY}/apps/upload_live_image") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "upload_live_image")) .WithHeader("access-token", request.AccessToken); using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: "image/jpeg", formDataName: "image"); @@ -1762,7 +1762,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "live", "set_black_white_list") - .WithUrl($"{client._BASEURL_LEGACY}/apps/v1/live/set_black_white_list") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "live", "set_black_white_list")) .WithHeader("access-token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1788,7 +1788,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "message", "custom", "send") - .WithUrl($"{client._BASEURL_LEGACY}/apps/message/custom/send") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "message", "custom", "send")) .SetQueryParam("access_token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1815,7 +1815,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "v2", "push") - .WithUrl($"{client._BASEURL_LEGACY}/apps/order/v2/push"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "order", "v2", "push")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -1838,7 +1838,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "order", "delete") - .WithUrl($"{client._BASEURL_LEGACY}/apps/order/delete"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "order", "delete")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -1864,7 +1864,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "qrcode") - .WithUrl($"{client._BASEURL_LEGACY}/apps/qrcode"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "qrcode")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -1894,7 +1894,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "subscribe_notification", "developer", "v1", "notify") - .WithUrl($"{client._BASEURL_LEGACY}/apps/subscribe_notification/developer/v1/notify"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "subscribe_notification", "developer", "v1", "notify")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -1922,7 +1922,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "share_config") - .WithUrl($"{client._BASEURL_LEGACY}/apps/share_config"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "share_config")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -1951,7 +1951,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "add_task") - .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/add_task"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "taskbox", "add_task")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -1978,7 +1978,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update_task") - .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/update_task"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "taskbox", "update_task")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -2005,7 +2005,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update", "status") - .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/update/status"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "taskbox", "update", "status")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -2032,7 +2032,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_app_task_id") - .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/query_app_task_id"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "taskbox", "query_app_task_id")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -2059,7 +2059,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "query_task_video_data") - .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/query_task_video_data"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "taskbox", "query_task_video_data")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -2085,7 +2085,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "taskbox", "update_orient_talents", "") - .WithUrl($"{client._BASEURL_LEGACY}/apps/taskbox/update_orient_talents"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "taskbox", "update_orient_talents", "")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -2116,7 +2116,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "video_id_to_open_item_id") - .WithUrl($"{client._BASEURL_LEGACY}/apps/convert_video_id/video_id_to_open_item_id"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "convert_video_id", "video_id_to_open_item_id")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -2142,7 +2142,7 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "convert_video_id", "open_item_id_to_encrypt_id") - .WithUrl($"{client._BASEURL_LEGACY}/apps/convert_video_id/open_item_id_to_encrypt_id"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "convert_video_id", "open_item_id_to_encrypt_id")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs index eecce9bf..ae69a911 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsGameExtensions.cs @@ -5,6 +5,7 @@ using System.Threading; using System.Threading.Tasks; using System.Web; +using Flurl; using Flurl.Http; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp @@ -66,7 +67,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "get_balance") - .WithUrl($"{client._BASEURL_LEGACY}/apps/game/wallet/get_balance"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "game", "wallet", "get_balance")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -98,7 +99,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "game_pay") - .WithUrl($"{client._BASEURL_LEGACY}/apps/game/wallet/game_pay"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "game", "wallet", "game_pay")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } @@ -130,7 +131,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "game", "wallet", "add_coin") - .WithUrl($"{client._BASEURL_LEGACY}/apps/game/wallet/add_coin"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "game", "wallet", "add_coin")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs index aa6b507b..df9f6319 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsStorageExtensions.cs @@ -55,7 +55,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "set_user_storage") - .WithUrl($"{client._BASEURL_LEGACY}/apps/set_user_storage") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "set_user_storage")) .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("openid", request.OpenId) .SetQueryParam("signature", request.Signature) @@ -86,7 +86,7 @@ private static string GenerateRequestSignature(DouyinMicroAppClient cl IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "remove_user_storage") - .WithUrl($"{client._BASEURL_LEGACY}/apps/remove_user_storage") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "remove_user_storage")) .SetQueryParam("access_token", request.AccessToken) .SetQueryParam("openid", request.OpenId) .SetQueryParam("signature", request.Signature) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyCommentExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyCommentExtensions.cs index 3da786bd..7fa0aa56 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyCommentExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyCommentExtensions.cs @@ -2,6 +2,7 @@ using System.Net.Http; using System.Threading; using System.Threading.Tasks; +using Flurl; using Flurl.Http; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp @@ -29,7 +30,7 @@ public static class DouyinMicroAppClientExecuteLegacyCommentExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "comment", "open", "get") - .WithUrl($"{client._BASEURL_LEGACY}/comment/open/get"); + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("comment", "open", "get")); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyTagsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyTagsExtensions.cs index 8c0c04a2..add9c7b6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyTagsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyTagsExtensions.cs @@ -2,6 +2,7 @@ using System.Net.Http; using System.Threading; using System.Threading.Tasks; +using Flurl; using Flurl.Http; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp @@ -27,7 +28,7 @@ public static class DouyinMicroAppClientExecuteLegacyTagsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v2", "tags", "text", "antidirt") - .WithUrl($"{client._BASEURL_LEGACY}/v2/tags/text/antidirt") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v2", "tags", "text", "antidirt")) .WithHeader("X-Token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -51,7 +52,7 @@ public static class DouyinMicroAppClientExecuteLegacyTagsExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v2", "tags", "image") - .WithUrl($"{client._BASEURL_LEGACY}/v2/tags/image") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v2", "tags", "image")) .WithHeader("X-Token", request.AccessToken); return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs index 6bcba118..91fb0888 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/IMPORTANT_CodeAnalyzeTests.cs @@ -1,6 +1,11 @@ using System; using System.IO; +using System.Linq; +using System.Net.Http; using System.Reflection; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.CSharp.Syntax; using SKIT.FlurlHttpClient.Tools.CodeAnalyzer; using Xunit; @@ -21,241 +26,417 @@ public class CodeAnalyzeTests public void CodeAnalyze() { Assert.Multiple( - () => Assert.Null(Record.Exception(() => - { - var options = new TypeDeclarationAnalyzerOptions() - { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", - SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp", - SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", - IgnoreExecutingExtensionTypes = static type => type.Namespace!.Contains(".ExtendedSDK."), - ThrowOnNotFoundRequestModelTypes = true, - ThrowOnNotFoundResponseModelTypes = true, - ThrowOnNotFoundExecutingExtensionTypes = true, - ThrowOnNotFoundWebhookEventTypes = true - }; - new TypeDeclarationAnalyzer(options).AssertNoIssues(); - })), - - () => Assert.Null(Record.Exception(() => + CodeAnalyze_BaseSDK, + CodeAnalyze_ExtendedSDK_OpenApi, + CodeAnalyze_ExtendedSDK_ProductApi, + CodeAnalyze_ExtendedSDK_RoleApi, + CodeAnalyze_ExtendedSDK_Webcast + ); + } + + private void CodeAnalyze_BaseSDK() + { + Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() { - string workdir = Environment.CurrentDirectory; - string projdir = Path.Combine(workdir, "../../../../../"); + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", + IgnoreExecutingExtensionTypes = static type => type.Namespace!.Contains(".ExtendedSDK."), + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true, + ThrowOnNotFoundWebhookEventTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })); - var options = new SourceFileAnalyzerOptions() - { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", - SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", - ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), - ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), - ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/_/", - ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/_/", - ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/_/", - ThrowOnNotFoundRequestModelClassCodeFiles = true, - ThrowOnNotFoundResponseModelClassCodeFiles = true, - ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, - ThrowOnNotFoundWebhookEventClassCodeFiles = true, - ThrowOnNotFoundRequestModelSerializationSampleFiles = true, - ThrowOnNotFoundResponseModelSerializationSampleFiles = true, - ThrowOnNotFoundWebhookEventSerializationSampleFiles = true - }; - new SourceFileAnalyzer(options).AssertNoIssues(); - })) - ); + Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); - Assert.Multiple( - () => Assert.Null(Record.Exception(() => + var options = new SourceFileAnalyzerOptions() { - var options = new TypeDeclarationAnalyzerOptions() + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Models", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.Events", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/_/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/_/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/_/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundWebhookEventClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true, + ThrowOnNotFoundWebhookEventSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options) + .AddRule((_, _, cur) => { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", - SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi", - SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events", - ThrowOnNotFoundRequestModelTypes = true, - ThrowOnNotFoundResponseModelTypes = true, - ThrowOnNotFoundExecutingExtensionTypes = true, - ThrowOnNotFoundWebhookEventTypes = true - }; - new TypeDeclarationAnalyzer(options).AssertNoIssues(); - })), - - () => Assert.Null(Record.Exception(() => + if (cur.ContentKind != SourceFileContentKinds.ExecutingExtensionClassCode || + cur.FileKind != SourceFileKinds.CSharp) + return; + + using FileStream stream = cur.FileInfo.Open(FileMode.Open, FileAccess.Read); + using TextReader streamReader = new StreamReader(stream); + SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(streamReader.ReadToEnd()).WithFilePath(cur.FileInfo.FullName); + CompilationUnitSyntax syntaxRootNode = syntaxTree.GetCompilationUnitRoot(); + MethodDeclarationSyntax[] syntaxMethodDeclarationNodes = syntaxRootNode.Members + .Where(s => SourceFileCodeSyntaxKinds.BaseNamespaceDeclaration.Contains(s.Kind())) + .OfType() + .SelectMany(s => s.Members + .Where(s => s.IsKind(SyntaxKind.ClassDeclaration)) + .OfType() + .Where(s => s.Identifier.ToFullString().Contains("ExecuteLegacy")) // 仅扫描旧版 API + ) + .SelectMany(s => s.Members + .Where(s => s.IsKind(SyntaxKind.MethodDeclaration)) + .OfType() + ) + .Where(s => + { + string methodName = s.Identifier.ToFullString().Trim(); + return methodName.StartsWith("Execute") && + methodName.EndsWith("Async"); + }) + .ToArray(); + foreach (MethodDeclarationSyntax syntaxMethodDeclarationNode in syntaxMethodDeclarationNodes) + { + string methodName = syntaxMethodDeclarationNode.Identifier.ToFullString().Trim(); + + ExecutingMethodUrlPathSegmentsSyntaxWalker syntaxWalker = new ExecutingMethodUrlPathSegmentsSyntaxWalker(); + syntaxWalker.Reset().Visit(syntaxMethodDeclarationNode); + + string[] urlPathSegments1 = syntaxWalker.Result1 ?? Array.Empty(); + string[] urlPathSegments2 = syntaxWalker.Result2 ?? Array.Empty(); + for (int i = 0, len = Math.Max(urlPathSegments1.Length, urlPathSegments1.Length); i < len; i++) + { + string? s1 = urlPathSegments1.Length > i ? urlPathSegments1[i] : null; + string? s2 = urlPathSegments2.Length > i ? urlPathSegments2[i] : null; + if (!string.Equals(s1, s2)) + throw new AnalysisException($"文件 \"{cur.FileInfo.FullName}\"下的函数 \"{methodName}\" 应是一个 API 接口方法、且适配旧版入口点,但其 URL 路径的代码实现存在冲突。(Expected: \"{"/" + string.Join("/", urlPathSegments1)}\", Actual: \"{"/" + string.Join("/", urlPathSegments2)}\")"); + } + } + }) + .AssertNoIssues(); + })); + } + + private void CodeAnalyze_ExtendedSDK_OpenApi() + { + Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() { - string workdir = Environment.CurrentDirectory; - string projdir = Path.Combine(workdir, "../../../../../"); + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true, + ThrowOnNotFoundWebhookEventTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })); - var options = new SourceFileAnalyzerOptions() - { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppOpenApiClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", - SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events", - ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), - ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/OpenApi/Models/", - ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/OpenApi/Models/", - ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/OpenApi/Extensions/", - ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/OpenApi/Events/", - ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), - ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/OpenApi/", - ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/OpenApi/", - ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/OpenApi/", - ThrowOnNotFoundRequestModelClassCodeFiles = true, - ThrowOnNotFoundResponseModelClassCodeFiles = true, - ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, - ThrowOnNotFoundWebhookEventClassCodeFiles = true, - ThrowOnNotFoundRequestModelSerializationSampleFiles = true, - ThrowOnNotFoundResponseModelSerializationSampleFiles = true, - ThrowOnNotFoundWebhookEventSerializationSampleFiles = true - }; - new SourceFileAnalyzer(options).AssertNoIssues(); - })) - ); + Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); - Assert.Multiple( - () => Assert.Null(Record.Exception(() => + var options = new SourceFileAnalyzerOptions() { - var options = new TypeDeclarationAnalyzerOptions() + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppOpenApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Events", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/OpenApi/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/OpenApi/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/OpenApi/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/OpenApi/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/OpenApi/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/OpenApi/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/OpenApi/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundWebhookEventClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true, + ThrowOnNotFoundWebhookEventSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options) + .AddRule((_, _, cur) => { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppProductApiClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", - SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi", - SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events", - ThrowOnNotFoundRequestModelTypes = true, - ThrowOnNotFoundResponseModelTypes = true, - ThrowOnNotFoundExecutingExtensionTypes = true, - ThrowOnNotFoundWebhookEventTypes = true - }; - new TypeDeclarationAnalyzer(options).AssertNoIssues(); - })), - - () => Assert.Null(Record.Exception(() => + if (cur.ContentKind != SourceFileContentKinds.ExecutingExtensionClassCode || + cur.FileKind != SourceFileKinds.CSharp) + return; + + using FileStream stream = cur.FileInfo.Open(FileMode.Open, FileAccess.Read); + using TextReader streamReader = new StreamReader(stream); + SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(streamReader.ReadToEnd()).WithFilePath(cur.FileInfo.FullName); + CompilationUnitSyntax syntaxRootNode = syntaxTree.GetCompilationUnitRoot(); + MethodDeclarationSyntax[] syntaxMethodDeclarationNodes = syntaxRootNode.Members + .Where(s => SourceFileCodeSyntaxKinds.BaseNamespaceDeclaration.Contains(s.Kind())) + .OfType() + .SelectMany(s => s.Members + .Where(s => s.IsKind(SyntaxKind.ClassDeclaration)) + .OfType() + .Where(s => s.Identifier.ToFullString().Contains("ExecuteLegacy")) // 仅扫描旧版 API + ) + .SelectMany(s => s.Members + .Where(s => s.IsKind(SyntaxKind.MethodDeclaration)) + .OfType() + ) + .Where(s => + { + string methodName = s.Identifier.ToFullString().Trim(); + return methodName.StartsWith("Execute") && + methodName.EndsWith("Async"); + }) + .ToArray(); + foreach (MethodDeclarationSyntax syntaxMethodDeclarationNode in syntaxMethodDeclarationNodes) + { + string methodName = syntaxMethodDeclarationNode.Identifier.ToFullString().Trim(); + + ExecutingMethodUrlPathSegmentsSyntaxWalker syntaxWalker = new ExecutingMethodUrlPathSegmentsSyntaxWalker(); + syntaxWalker.Reset().Visit(syntaxMethodDeclarationNode); + + string[] urlPathSegments1 = syntaxWalker.Result1 ?? Array.Empty(); + string[] urlPathSegments2 = syntaxWalker.Result2 ?? Array.Empty(); + for (int i = 0, len = Math.Max(urlPathSegments1.Length, urlPathSegments1.Length); i < len; i++) + { + string? s1 = urlPathSegments1.Length > i ? urlPathSegments1[i] : null; + string? s2 = urlPathSegments2.Length > i ? urlPathSegments2[i] : null; + if (!string.Equals(s1, s2)) + throw new AnalysisException($"文件 \"{cur.FileInfo.FullName}\"下的函数 \"{methodName}\" 应是一个 API 接口方法、且适配旧版入口点,但其 URL 路径的代码实现存在冲突。(Expected: \"{"/" + string.Join("/", urlPathSegments1)}\", Actual: \"{"/" + string.Join("/", urlPathSegments2)}\")"); + } + } + }) + .AssertNoIssues(); + })); + } + + private void CodeAnalyze_ExtendedSDK_ProductApi() + { + Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() { - string workdir = Environment.CurrentDirectory; - string projdir = Path.Combine(workdir, "../../../../../"); + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppProductApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true, + ThrowOnNotFoundWebhookEventTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })); - var options = new SourceFileAnalyzerOptions() - { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppProductApiClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", - SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events", - ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), - ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/ProductApi/Models/", - ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/ProductApi/Models/", - ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/ProductApi/Extensions/", - ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/ProductApi/Events/", - ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), - ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/ProductApi/", - ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/ProductApi/", - ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/ProductApi/", - ThrowOnNotFoundRequestModelClassCodeFiles = true, - ThrowOnNotFoundResponseModelClassCodeFiles = true, - ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, - ThrowOnNotFoundWebhookEventClassCodeFiles = true, - ThrowOnNotFoundRequestModelSerializationSampleFiles = true, - ThrowOnNotFoundResponseModelSerializationSampleFiles = true, - ThrowOnNotFoundWebhookEventSerializationSampleFiles = true - }; - new SourceFileAnalyzer(options).AssertNoIssues(); - })) - ); + Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); - Assert.Multiple( - () => Assert.Null(Record.Exception(() => + var options = new SourceFileAnalyzerOptions() { - var options = new TypeDeclarationAnalyzerOptions() - { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppRoleApiClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", - SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi", - ThrowOnNotFoundRequestModelTypes = true, - ThrowOnNotFoundResponseModelTypes = true, - ThrowOnNotFoundExecutingExtensionTypes = true - }; - new TypeDeclarationAnalyzer(options).AssertNoIssues(); - })), - - () => Assert.Null(Record.Exception(() => + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppProductApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models", + SdkWebhookEventDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Events", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/ProductApi/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/ProductApi/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/ProductApi/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/ProductApi/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/ProductApi/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/ProductApi/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/ProductApi/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundWebhookEventClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true, + ThrowOnNotFoundWebhookEventSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })); + } + + private void CodeAnalyze_ExtendedSDK_RoleApi() + { + Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() { - string workdir = Environment.CurrentDirectory; - string projdir = Path.Combine(workdir, "../../../../../"); + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppRoleApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })); - var options = new SourceFileAnalyzerOptions() - { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppRoleApiClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", - ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), - ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/RoleApi/Models/", - ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/RoleApi/Models/", - ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/RoleApi/Extensions/", - ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/RoleApi/Events/", - ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), - ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/RoleApi/", - ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/RoleApi/", - ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/RoleApi/", - ThrowOnNotFoundRequestModelClassCodeFiles = true, - ThrowOnNotFoundResponseModelClassCodeFiles = true, - ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, - ThrowOnNotFoundRequestModelSerializationSampleFiles = true, - ThrowOnNotFoundResponseModelSerializationSampleFiles = true - }; - new SourceFileAnalyzer(options).AssertNoIssues(); - })) - ); + Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); - Assert.Multiple( - () => Assert.Null(Record.Exception(() => + var options = new SourceFileAnalyzerOptions() { - var options = new TypeDeclarationAnalyzerOptions() - { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppWebcastClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", - SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast", - ThrowOnNotFoundRequestModelTypes = true, - ThrowOnNotFoundResponseModelTypes = true, - ThrowOnNotFoundExecutingExtensionTypes = true - }; - new TypeDeclarationAnalyzer(options).AssertNoIssues(); - })), - - () => Assert.Null(Record.Exception(() => + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppRoleApiClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi.Models", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/RoleApi/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/RoleApi/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/RoleApi/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/RoleApi/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/RoleApi/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/RoleApi/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/RoleApi/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })); + } + + private void CodeAnalyze_ExtendedSDK_Webcast() + { + Assert.Null(Record.Exception(() => + { + var options = new TypeDeclarationAnalyzerOptions() + { + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppWebcastClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + SdkExecutingExtensionDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast", + ThrowOnNotFoundRequestModelTypes = true, + ThrowOnNotFoundResponseModelTypes = true, + ThrowOnNotFoundExecutingExtensionTypes = true + }; + new TypeDeclarationAnalyzer(options).AssertNoIssues(); + })); + + Assert.Null(Record.Exception(() => + { + string workdir = Environment.CurrentDirectory; + string projdir = Path.Combine(workdir, "../../../../../"); + + var options = new SourceFileAnalyzerOptions() { - string workdir = Environment.CurrentDirectory; - string projdir = Path.Combine(workdir, "../../../../../"); + SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppWebcastClient))!, + SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", + ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), + ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/Webcast/Models/", + ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/Webcast/Models/", + ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/Webcast/Extensions/", + ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/Webcast/Events/", + ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), + ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/Webcast/", + ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/Webcast/", + ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/Webcast/", + ThrowOnNotFoundRequestModelClassCodeFiles = true, + ThrowOnNotFoundResponseModelClassCodeFiles = true, + ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, + ThrowOnNotFoundRequestModelSerializationSampleFiles = true, + ThrowOnNotFoundResponseModelSerializationSampleFiles = true + }; + new SourceFileAnalyzer(options).AssertNoIssues(); + })); + } + + private class ExecutingMethodUrlPathSegmentsSyntaxWalker : CSharpSyntaxWalker + { + public string[]? Result1 { get; private set; } - var options = new SourceFileAnalyzerOptions() + public string[]? Result2 { get; private set; } + + public ExecutingMethodUrlPathSegmentsSyntaxWalker Reset() + { + Result1 = null; + Result2 = null; + return this; + } + + public override void VisitInvocationExpression(InvocationExpressionSyntax node) + { + if (node.Expression is MemberAccessExpressionSyntax memberAccessExpressionSyntaxNode) + { + if (node.ToFullString().Contains("CreateFlurlRequest") && node.ArgumentList?.Arguments.Count >= 3) { - SdkAssembly = Assembly.GetAssembly(typeof(DouyinMicroAppWebcastClient))!, - SdkRequestModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", - SdkResponseModelDeclarationNamespace = "SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast.Models", - ProjectSourceRootDirectory = Path.Combine(projdir, "./src/SKIT.FlurlHttpClient.ByteDance.MicroApp/"), - ProjectSourceRequestModelClassCodeSubDirectory = "ExtendedSDK/Webcast/Models/", - ProjectSourceResponseModelClassCodeSubDirectory = "ExtendedSDK/Webcast/Models/", - ProjectSourceExecutingExtensionClassCodeSubDirectory = "ExtendedSDK/Webcast/Extensions/", - ProjectSourceWebhookEventClassCodeSubDirectory = "ExtendedSDK/Webcast/Events/", - ProjectTestRootDirectory = Path.Combine(projdir, "./test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/"), - ProjectTestRequestModelSerializationSampleSubDirectory = "ModelSamples/Webcast/", - ProjectTestResponseModelSerializationSampleSubDirectory = "ModelSamples/Webcast/", - ProjectTestWebhookEventSerializationSampleSubDirectory = "EventSamples/Webcast/", - ThrowOnNotFoundRequestModelClassCodeFiles = true, - ThrowOnNotFoundResponseModelClassCodeFiles = true, - ThrowOnNotFoundExecutingExtensionClassCodeFiles = true, - ThrowOnNotFoundRequestModelSerializationSampleFiles = true, - ThrowOnNotFoundResponseModelSerializationSampleFiles = true - }; - new SourceFileAnalyzer(options).AssertNoIssues(); - })) - ); + string arg1 = node.ArgumentList.Arguments[0].ToFullString(); + string arg2 = node.ArgumentList.Arguments[1].ToFullString(); + if (arg1 is not null && arg2.Contains(nameof(HttpMethod))) + { + Result1 ??= node.ArgumentList.Arguments + .Skip(2) + .Select(s => FormatArgument(s.ToFullString())) + .ToArray(); + } + } + else if (node.ToFullString().Contains("WithUrl") && node.ArgumentList?.Arguments.Count >= 1) + { + string arg1 = node.ArgumentList.Arguments[0].ToFullString(); + if (arg1 is not null && arg1.Contains("AppendPathSegments")) + { + Result2 ??= node.ArgumentList.Arguments[0].Expression + .ChildNodes() + .Where(s => s.IsKind(SyntaxKind.InvocationExpression)) + .OfType() + .SelectMany(s => s.ChildNodes() + .Where(s => s.IsKind(SyntaxKind.ArgumentList)) + .OfType() + ) + .SelectMany(s => s.ChildNodes() + .Where(s => s.IsKind(SyntaxKind.Argument)) + .OfType() + ) + .Select(s => FormatArgument(s.ToFullString())) + .ToArray(); + } + } + } + + base.VisitInvocationExpression(node); + } + + private string FormatArgument(string arg) + { + if (arg.StartsWith("\"") && arg.EndsWith("\"")) + return arg.Trim('\"'); + + if (arg == "string.Empty") + return string.Empty; + + return "{" + arg + "}"; + } } } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthGenerateLinkV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthGenerateLinkV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthPreAuthCodeV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthPreAuthCodeV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthPreAuthCodeV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthPreAuthCodeV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthRetrieveV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthRetrieveV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthRetrieveV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthRetrieveV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthThirdPartyTokenV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Auth/OpenApiAuthThirdPartyTokenV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppInfoV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppInfoV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/OpenApiMicroAppCode2SessionV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/OpenApiMicroAppCode2SessionV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/OpenApiMicroAppUploadMaterialV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/OpenApiMicroAppUploadMaterialV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/OAuth/OpenApiOAuthTokenV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/OAuth/OpenApiOAuthTokenV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/OAuth/OpenApiOAuthTokenV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/OAuth/OpenApiOAuthTokenV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettleApplyV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettleApplyV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettleApplyV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettleApplyV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettleApplyV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettleApplyV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettleApplyV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettleApplyV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettleGetApplyStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettleGetApplyStatusV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettlePreCheckV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettlePreCheckV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Settle/OpenApiSettlePreCheckV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Settle/OpenApiSettlePreCheckV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.json From 0fbdf73f6580a3268633def79f0925b1932a0320 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 8 Mar 2024 15:55:57 +0800 Subject: [PATCH 35/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=95=86=E5=B9=B3=E5=8F=B0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E8=B5=84=E6=BA=90=20v2=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ClientExecuteLegacyThirdPartyExtensions.cs | 1 + ...piClientExecuteThirdPartyFileExtensions.cs | 43 +++++++++++++++++++ ...piThirdPartyFileUploadMaterialV2Request.cs | 31 +++++++++++++ ...iThirdPartyFileUploadMaterialV2Response.cs | 38 ++++++++++++++++ ...hirdPartyUploadPictureMaterialV1Request.cs | 1 + ...irdPartyUploadPictureMaterialV1Response.cs | 3 ++ .../README.md | 3 +- ...hirdPartyFileUploadMaterialV2Response.json | 8 ++++ 8 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs index 5db946ca..61c426b8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs @@ -48,6 +48,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiThirdPartyUploadPictureMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyUploadPictureMaterialV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs new file mode 100644 index 00000000..070d8d6d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs @@ -0,0 +1,43 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions + { + /// + /// 异步调用 [POST] /tpapp/v2/file/upload_material 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiThirdPartyFileUploadMaterialV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyFileUploadMaterialV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.MaterialFileName is null) + request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "file", "upload_material") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("tpapp", "v2", "file", "upload_material")) + .WithHeader("access-token", request.ComponentAccessToken); + + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); + + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs new file mode 100644 index 00000000..b7f3b8b5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs @@ -0,0 +1,31 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/file/upload_material 接口的请求。 + /// + public class OpenApiThirdPartyFileUploadMaterialV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置上传的文件类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int MaterialType { get; set; } + + /// + /// 获取或设置资源文件字节数组。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public byte[] MaterialFileBytes { get; set; } = Array.Empty(); + + /// + /// 获取或设置资源文件文件名。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? MaterialFileName { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs new file mode 100644 index 00000000..2fad3145 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs @@ -0,0 +1,38 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/file/upload_material 接口的响应。 + /// + public class OpenApiThirdPartyFileUploadMaterialV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置文件路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string FilePath { get; set; } = default!; + } + } + + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public override int ErrorNumber { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public override string? ErrorMessage { get; set; } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs index 2995b13d..b72ffddd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs @@ -5,6 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/tp/upload_pic_material 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiThirdPartyUploadPictureMaterialV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs index cefe83d8..f1d8cc01 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/upload_pic_material 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiThirdPartyUploadPictureMaterialV1Response : DouyinMicroAppOpenApiResponse { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md index 28ac2495..39f4f660 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/README.md @@ -9,8 +9,9 @@ ### 【功能特性】 - 基于抖音小程序开放平台 API 封装。 -- 提供了抖音小程序所需的 AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 +- 提供了抖音小程序所需的 RSA、AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 - 提供了解析回调通知事件等扩展方法。 +- 配合 [SKIT.FlurlHttpClient.ByteDance.DouyinOpen](https://www.nuget.org/packages/SKIT.FlurlHttpClient.ByteDance.DouyinOpen) 模块,可无缝对接抖音开放平台。 --- diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.json new file mode 100644 index 00000000..8b0f0b58 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "path": "xxxxx" + }, + "err_msg": "", + "err_no": 0, + "log_id": "202401151619351CF77AE5F7A43B8393C0" +} From 6e7af442d7acca093ff71dd4053506aa651e418c Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 8 Mar 2024 17:01:29 +0800 Subject: [PATCH 36/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=95=86=E5=B9=B3=E5=8F=B0=E4=BB=A3=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=8E=88=E6=9D=83=20v2=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OpenApi/DouyinMicroAppOpenApiRequest.cs | 2 + .../Events/Auth/ComponentAuthorizedEvent.cs | 4 +- .../Auth/ComponentUpdateAuthorizedEvent.cs | 4 +- ...penApiClientExecuteLegacyAuthExtensions.cs | 29 ++++ ...enApiClientExecuteLegacyOAuthExtensions.cs | 41 ----- ...OpenApiClientExecuteTpAppAuthExtensions.cs | 141 ++++++++++++++++++ ...penApiClientExecuteTpAppFileExtensions.cs} | 8 +- ...icroAppOpenApiClientParameterExtensions.cs | 2 +- .../OpenApiAuthThirdPartyTokenV2Request.cs | 22 +++ .../OpenApiAuthThirdPartyTokenV2Response.cs | 22 +++ .../OpenApiTpAppAuthGenerateLinkV3Request.cs | 36 +++++ .../OpenApiTpAppAuthGenerateLinkV3Response.cs | 38 +++++ ...OpenApiTpAppAuthGetAuthAppListV2Request.cs | 24 +++ ...penApiTpAppAuthGetAuthAppListV2Response.cs | 65 ++++++++ .../OpenApiTpAppAuthGetAuthTokenV2Request.cs | 30 ++++ .../OpenApiTpAppAuthGetAuthTokenV2Response.cs | 117 +++++++++++++++ ...enApiTpAppAuthRetrieveAuthCodeV2Request.cs | 13 ++ ...nApiTpAppAuthRetrieveAuthCodeV2Response.cs | 45 ++++++ ...penApiTpAppFileUploadMaterialV2Request.cs} | 2 +- ...enApiTpAppFileUploadMaterialV2Response.cs} | 2 +- .../Auth/OpenApiAuthGenerateLinkV2Request.cs | 27 ++++ .../OpenApiOAuthTokenV1Request.cs | 8 +- .../OpenApiOAuthTokenV1Response.cs | 2 +- .../OpenApiThirdPartyAuthAppListV1Response.cs | 2 +- .../AppsECPay/Bills/AppsFundBillsRequest.cs | 6 +- .../AppsGameWalletRequestBase.cs | 4 +- .../OpenApiAuthThirdPartyTokenV2Response.json | 4 + ...OpenApiTpAppAuthGenerateLinkV3Request.json | 3 + ...penApiTpAppAuthGenerateLinkV3Response.json | 8 + ...nApiTpAppAuthGetAuthAppListV2Response.json | 14 ++ ...penApiTpAppAuthGetAuthTokenV2Response.json | 24 +++ ...ApiTpAppAuthRetrieveAuthCodeV2Request.json | 3 + ...piTpAppAuthRetrieveAuthCodeV2Response.json | 9 ++ ...ApiTpAppFileUploadMaterialV2Response.json} | 0 .../OpenApiOAuthTokenV1Response.json | 0 35 files changed, 697 insertions(+), 64 deletions(-) delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/{DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs => DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs} (71%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs => TpAppFile/OpenApiTpAppFileUploadMaterialV2Request.cs} (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/{ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs => TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/{OAuth => Auth}/OpenApiOAuthTokenV1Request.cs (79%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/{OAuth => Auth}/OpenApiOAuthTokenV1Response.cs (98%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/{ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.json => TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/{OAuth => Auth}/OpenApiOAuthTokenV1Response.json (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiRequest.cs index cde02e6e..759d34d1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiRequest.cs @@ -14,6 +14,7 @@ public abstract class DouyinMicroAppOpenApiRequest : CommonRequestBase, ICommonR /// /// 获取或设置抖音小程序第三方的 AccessToken。 + /// 注意:v1、v2 版的 ComponentAccessToken 不可混用。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] @@ -28,6 +29,7 @@ public abstract class DouyinMicroAppOpenApiRequest : CommonRequestBase, ICommonR /// /// 获取或设置抖音小程序授权方的 AccessToken。 + /// 注意:v1、v2 版的 AuthorizerAccessToken 不可混用。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs index dac08320..e70e5e66 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentAuthorizedEvent.cs @@ -15,7 +15,7 @@ public class ComponentAuthorizedEvent : DouyinMicroAppOpenApiEvent [Newtonsoft.Json.JsonProperty("AuthorizationCode")] [System.Text.Json.Serialization.JsonPropertyName("AuthorizationCode")] [System.Xml.Serialization.XmlElement("AuthorizationCode")] - public string AuthCode { get; set; } = default!; + public string AuthorizationCode { get; set; } = default!; /// /// 获取或设置授权码有效期(单位:秒)。 @@ -23,7 +23,7 @@ public class ComponentAuthorizedEvent : DouyinMicroAppOpenApiEvent [Newtonsoft.Json.JsonProperty("AuthorizationCodeExpiresIn")] [System.Text.Json.Serialization.JsonPropertyName("AuthorizationCodeExpiresIn")] [System.Xml.Serialization.XmlElement("AuthorizationCodeExpiresIn")] - public long AuthCodeExpiresIn { get; set; } + public long AuthorizationCodeExpiresIn { get; set; } /// /// 获取或设置代创建的小程序名称。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs index b87c1a93..d1e180f8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Events/Auth/ComponentUpdateAuthorizedEvent.cs @@ -15,7 +15,7 @@ public class ComponentUpdateAuthorizedEvent : DouyinMicroAppOpenApiEvent [Newtonsoft.Json.JsonProperty("AuthorizationCode")] [System.Text.Json.Serialization.JsonPropertyName("AuthorizationCode")] [System.Xml.Serialization.XmlElement("AuthorizationCode")] - public string AuthCode { get; set; } = default!; + public string AuthorizationCode { get; set; } = default!; /// /// 获取或设置授权码有效期(单位:秒)。 @@ -23,6 +23,6 @@ public class ComponentUpdateAuthorizedEvent : DouyinMicroAppOpenApiEvent [Newtonsoft.Json.JsonProperty("AuthorizationCodeExpiresIn")] [System.Text.Json.Serialization.JsonPropertyName("AuthorizationCodeExpiresIn")] [System.Xml.Serialization.XmlElement("AuthorizationCodeExpiresIn")] - public long AuthCodeExpiresIn { get; set; } + public long AuthorizationCodeExpiresIn { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs index 34388ead..89726d8a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions.cs @@ -9,6 +9,35 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { public static class DouyinMicroAppOpenApiClientExecuteLegacyAuthExtensions { + /// + /// 异步调用 [GET] /v1/oauth/token 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiOAuthTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiOAuthTokenV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "v1", "oauth", "token") + .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "oauth", "token")) + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_access_token", request.ComponentAccessToken) + .SetQueryParam("grant_type", request.GrantType) + .SetQueryParam("authorization_code", request.AuthorizationCode) + .SetQueryParam("authorizer_refresh_token", request.AuthorizerRefreshToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + /// /// 异步调用 [GET] /v1/auth/tp/token 接口。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs deleted file mode 100644 index d5ce9cd5..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; -using Flurl; -using Flurl.Http; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi -{ - public static class DouyinMicroAppOpenApiClientExecuteLegacyOAuthExtensions - { - /// - /// 异步调用 [GET] /v1/oauth/token 接口。 - /// - /// REF:
- ///
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteOpenApiOAuthTokenV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiOAuthTokenV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "oauth", "token") - .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "oauth", "token")) - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken) - .SetQueryParam("grant_type", request.GrantType) - .SetQueryParam("authorization_code", request.AuthCode) - .SetQueryParam("authorizer_refresh_token", request.AuthorizerRefreshToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs new file mode 100644 index 00000000..32958a9f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs @@ -0,0 +1,141 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions + { + /// + /// 异步调用 [GET] /openapi/v2/auth/tp/token 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiAuthThirdPartyTokenV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthThirdPartyTokenV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.ComponentAppId is null) + request.ComponentAppId = client.Credentials.ComponentAppId; + + if (request.ComponentAppSecret is null) + request.ComponentAppSecret = client.Credentials.ComponentAppSecret; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "openapi", "v2", "auth", "token") + .WithUrl(url => url.RemovePath().AppendPathSegments("openapi", "v2", "auth", "token")) // NOTICE: 特殊入口点 + .SetQueryParam("component_appid", request.ComponentAppId) + .SetQueryParam("component_appsecret", request.ComponentAppSecret) + .SetQueryParam("component_ticket", request.ComponentTicket); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /tpapp/v3/auth/gen_link 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppAuthGenerateLinkV3Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthGenerateLinkV3Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v3", "auth", "gen_link") + .WithHeader("access-token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /tpapp/v2/auth/get_auth_token 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppAuthGetAuthTokenV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthGetAuthTokenV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "tpapp", "v2", "auth", "get_auth_token") + .SetQueryParam("grant_type", request.GrantType) + .SetQueryParam("authorization_code", request.AuthorizationCode) + .SetQueryParam("authorizer_refresh_token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /tpapp/v2/auth/retrieve_auth_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppAuthRetrieveAuthCodeV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthRetrieveAuthCodeV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "auth", "retrieve_auth_code") + .WithHeader("access-token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /tpapp/v2/auth/get_auth_app_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppAuthGetAuthAppListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthGetAuthAppListV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "tpapp", "v2", "auth", "get_auth_app_list") + .SetQueryParam("page", request.PageNumber) + .SetQueryParam("size", request.PageSize) + .WithHeader("access-token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs similarity index 71% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs index 070d8d6d..ad4e1e51 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs @@ -3,12 +3,11 @@ using System.Text; using System.Threading; using System.Threading.Tasks; -using Flurl; using Flurl.Http; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { - public static class DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions + public static class DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions { /// /// 异步调用 [POST] /tpapp/v2/file/upload_material 接口。 @@ -21,7 +20,7 @@ public static class DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions /// /// /// - public static async Task ExecuteOpenApiThirdPartyFileUploadMaterialV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyFileUploadMaterialV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenApiTpAppFileUploadMaterialV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppFileUploadMaterialV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -31,13 +30,12 @@ public static class DouyinMicroAppOpenApiClientExecuteThirdPartyFileExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "file", "upload_material") - .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("tpapp", "v2", "file", "upload_material")) .WithHeader("access-token", request.ComponentAccessToken); using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); - return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs index 1cd53b89..897d1a17 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientParameterExtensions.cs @@ -4,7 +4,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi { public static class DouyinMicroAppOpenApiClientParameterExtensions { - private const string BASE_URL = "https://open.microapp.bytedance.com/openapi"; + private const string BASE_URL = "https://open.microapp.bytedance.com"; /// /// 生成第三方应用服务商授权 URL。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Request.cs new file mode 100644 index 00000000..c2b86d26 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /openapi/v2/auth/tp/token 接口的请求。 + /// + public class OpenApiAuthThirdPartyTokenV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置第三方应用 AppSecret。如果不指定将使用构造 时的 参数。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? ComponentAppSecret { get; set; } + + /// + /// 获取或设置推送的 Ticket。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ComponentTicket { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs new file mode 100644 index 00000000..f554422a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /openapi/v2/auth/tp/token 接口的响应。 + /// + public class OpenApiAuthThirdPartyTokenV2Response : DouyinMicroAppOpenApiResponse + { + /// + /// 获取或设置第三方平台 AccessToken。 + /// + [Newtonsoft.Json.JsonProperty("component_access_token")] + [System.Text.Json.Serialization.JsonPropertyName("component_access_token")] + public string ComponentAccessToken { get; set; } = default!; + + /// + /// 获取或设置第三方平台 AccessToken 有效期(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("expires_in")] + [System.Text.Json.Serialization.JsonPropertyName("expires_in")] + public int ExpiresIn { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.cs new file mode 100644 index 00000000..41e9dae6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v3/auth/gen_link 接口的请求。 + /// + public class OpenApiTpAppAuthGenerateLinkV3Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置授权链接类型。 + /// + [Newtonsoft.Json.JsonProperty("link_type")] + [System.Text.Json.Serialization.JsonPropertyName("link_type")] + public int? LinkType { get; set; } + + /// + /// 获取或设置代创建的小程序图标文件路径。 + /// + [Newtonsoft.Json.JsonProperty("app_icon")] + [System.Text.Json.Serialization.JsonPropertyName("app_icon")] + public string? AppIconPath { get; set; } + + /// + /// 获取或设置代创建的小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string? AppName { get; set; } + + /// + /// 获取或设置授权回调地址。 + /// + [Newtonsoft.Json.JsonProperty("redirect_uri")] + [System.Text.Json.Serialization.JsonPropertyName("redirect_uri")] + public string? RedirectUrl { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs new file mode 100644 index 00000000..a0b3efae --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs @@ -0,0 +1,38 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v3/auth/gen_link 接口的响应。 + /// + public class OpenApiTpAppAuthGenerateLinkV3Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置授权链接。 + /// + [Newtonsoft.Json.JsonProperty("link")] + [System.Text.Json.Serialization.JsonPropertyName("link")] + public string AuthLink { get; set; } = default!; + } + } + + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public override int ErrorNumber { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public override string? ErrorMessage { get; set; } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Request.cs new file mode 100644 index 00000000..823dbc5d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Request.cs @@ -0,0 +1,24 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/auth/get_auth_app_list 接口的请求。 + /// + public class OpenApiTpAppAuthGetAuthAppListV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs new file mode 100644 index 00000000..418e224a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs @@ -0,0 +1,65 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/auth/get_auth_app_list 接口的响应。 + /// + public class OpenApiTpAppAuthGetAuthAppListV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class AuthApp + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("auth_appid")] + [System.Text.Json.Serialization.JsonPropertyName("auth_appid")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置授权时间戳。 + /// + [Newtonsoft.Json.JsonProperty("auth_time")] + [System.Text.Json.Serialization.JsonPropertyName("auth_time")] + public long AuthTimestamp { get; set; } + } + } + + /// + /// 获取或设置授权小程序列表。 + /// + [Newtonsoft.Json.JsonProperty("auth_app_list")] + [System.Text.Json.Serialization.JsonPropertyName("auth_app_list")] + public Types.AuthApp[] AuthAppList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total")] + [System.Text.Json.Serialization.JsonPropertyName("total")] + public int TotalCount { get; set; } + } + } + + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public override int ErrorNumber { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public override string? ErrorMessage { get; set; } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Request.cs new file mode 100644 index 00000000..d2a7edc8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Request.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/auth/get_auth_token 接口的请求。 + /// + public class OpenApiTpAppAuthGetAuthTokenV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置授权码。与字段 二选一。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? AuthorizationCode { get; set; } + + /// + /// 获取或设置授权方刷新令牌。与字段 二选一。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? AuthorizerRefreshToken { get; set; } + + /// + /// 获取或设置授权方式。 + /// 默认值:"app_to_tp_authorization_code" + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string GrantType { get; set; } = "app_to_tp_authorization_code"; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs new file mode 100644 index 00000000..8e5cc4e4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs @@ -0,0 +1,117 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/auth/get_auth_token 接口的响应。 + /// + public class OpenApiTpAppAuthGetAuthTokenV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Permission + { + /// + /// 获取或设置权限 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + public int Id { get; set; } + + /// + /// 获取或设置权限分类。 + /// + [Newtonsoft.Json.JsonProperty("category")] + [System.Text.Json.Serialization.JsonPropertyName("category")] + public string Category { get; set; } = default!; + + /// + /// 获取或设置权限描述。 + /// + [Newtonsoft.Json.JsonProperty("description")] + [System.Text.Json.Serialization.JsonPropertyName("description")] + public string Description { get; set; } = default!; + } + + public class ShareData + { + /// + /// 获取或设置服务商的分账比例上限(范围:0~30)。 + /// + [Newtonsoft.Json.JsonProperty("share_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("share_ratio")] + public int? ShareRatio { get; set; } + + /// + /// 获取或设置服务商的分账金额上限(范围:0~50)。 + /// + [Newtonsoft.Json.JsonProperty("share_amount")] + [System.Text.Json.Serialization.JsonPropertyName("share_amount")] + public int? ShareAmount { get; set; } + } + } + + /// + /// 获取或设置授权方 AccessToken。 + /// + [Newtonsoft.Json.JsonProperty("authorizer_access_token")] + [System.Text.Json.Serialization.JsonPropertyName("authorizer_access_token")] + public string AuthorizerAccessToken { get; set; } = default!; + + /// + /// 获取或设置授权方 RefreshToken。 + /// + [Newtonsoft.Json.JsonProperty("authorizer_refresh_token")] + [System.Text.Json.Serialization.JsonPropertyName("authorizer_refresh_token")] + public string? AuthorizerRefreshToken { get; set; } + + /// + /// 获取或设置授权方 AccessToken 有效期(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("expires_in")] + [System.Text.Json.Serialization.JsonPropertyName("expires_in")] + public int ExpiresIn { get; set; } + + /// + /// 获取或设置授权方 RefreshToken 有效期(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("refresh_expires_in")] + [System.Text.Json.Serialization.JsonPropertyName("refresh_expires_in")] + public int RefreshTokenExpiresIn { get; set; } + + /// + /// 获取或设置授权方小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("authorizer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorizer_appid")] + public string? AuthorizerAppId { get; set; } + + /// + /// 获取或设置授权权限列表。 + /// + [Newtonsoft.Json.JsonProperty("authorize_permission")] + [System.Text.Json.Serialization.JsonPropertyName("authorize_permission")] + public Types.Permission[]? PermissionList { get; set; } + } + } + + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public override int ErrorNumber { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public override string? ErrorMessage { get; set; } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs new file mode 100644 index 00000000..b22b1ef4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs @@ -0,0 +1,13 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/auth/retrieve_auth_code 接口的请求。 + /// + public class OpenApiTpAppAuthRetrieveAuthCodeV2Request : DouyinMicroAppOpenApiRequest + { + /// + [Newtonsoft.Json.JsonProperty("authorization_appid")] + [System.Text.Json.Serialization.JsonPropertyName("authorization_appid")] + public override string? AuthorizerAppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs new file mode 100644 index 00000000..78085b6a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs @@ -0,0 +1,45 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/auth/retrieve_auth_code 接口的响应。 + /// + public class OpenApiTpAppAuthRetrieveAuthCodeV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置授权码。 + /// + [Newtonsoft.Json.JsonProperty("authorization_code")] + [System.Text.Json.Serialization.JsonPropertyName("authorization_code")] + public string AuthorizationCode { get; set; } = default!; + + /// + /// 获取或设置授权码有效期(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("expires_in")] + [System.Text.Json.Serialization.JsonPropertyName("expires_in")] + public int ExpiresIn { get; set; } + } + } + + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public override int ErrorNumber { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public override string? ErrorMessage { get; set; } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Request.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Request.cs index b7f3b8b5..6c298278 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/file/upload_material 接口的请求。 /// - public class OpenApiThirdPartyFileUploadMaterialV2Request : DouyinMicroAppOpenApiRequest + public class OpenApiTpAppFileUploadMaterialV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置上传的文件类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs index 2fad3145..f21a1141 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/file/upload_material 接口的响应。 /// - public class OpenApiThirdPartyFileUploadMaterialV2Response : DouyinMicroAppOpenApiResponse + public class OpenApiTpAppFileUploadMaterialV2Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Request.cs index ec8c3af3..24f28acd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Request.cs @@ -5,5 +5,32 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// public class OpenApiAuthGenerateLinkV2Request : DouyinMicroAppOpenApiRequest { + /// + /// 获取或设置授权链接类型。 + /// + [Newtonsoft.Json.JsonProperty("link_type")] + [System.Text.Json.Serialization.JsonPropertyName("link_type")] + public int? LinkType { get; set; } + + /// + /// 获取或设置代创建的小程序图标文件路径。 + /// + [Newtonsoft.Json.JsonProperty("app_icon")] + [System.Text.Json.Serialization.JsonPropertyName("app_icon")] + public string? AppIconPath { get; set; } + + /// + /// 获取或设置代创建的小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string? AppName { get; set; } + + /// + /// 获取或设置授权回调地址。 + /// + [Newtonsoft.Json.JsonProperty("redirect_uri")] + [System.Text.Json.Serialization.JsonPropertyName("redirect_uri")] + public string? RedirectUrl { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Request.cs similarity index 79% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Request.cs index cda79c97..40435f4b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Request.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/oauth/token 接口的请求。 @@ -10,10 +10,10 @@ public class OpenApiOAuthTokenV1Request : DouyinMicroAppOpenApiRequest /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] - public string? AuthCode { get; set; } + public string? AuthorizationCode { get; set; } /// - /// 获取或设置授权方刷新令牌。与字段 二选一。 + /// 获取或设置授权方刷新令牌。与字段 二选一。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] @@ -21,7 +21,7 @@ public class OpenApiOAuthTokenV1Request : DouyinMicroAppOpenApiRequest /// /// 获取或设置授权方式。 - /// 默认值:app_to_tp_authorization_code + /// 默认值:"app_to_tp_authorization_code" /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Response.cs index 9b29a88c..e6fd3bd1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/OAuth/OpenApiOAuthTokenV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/oauth/token 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs index 217bf9b1..7042a8e2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/auth_app_list 接口的响应。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsRequest.cs index a3a3bb84..16ce8c1b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Bills/AppsFundBillsRequest.cs @@ -35,7 +35,7 @@ public class AppsFundBillsRequest : DouyinMicroAppRequest /// /// 获取或设置账户类型。 - /// 默认值:ALL + /// 默认值:"ALL" /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] @@ -43,7 +43,7 @@ public class AppsFundBillsRequest : DouyinMicroAppRequest /// /// 获取或设置收支类型。 - /// 默认值:ALL + /// 默认值:"ALL" /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] @@ -51,7 +51,7 @@ public class AppsFundBillsRequest : DouyinMicroAppRequest /// /// 获取或设置交易类型。 - /// 默认值:ALL + /// 默认值:"ALL" /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletRequestBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletRequestBase.cs index e42c538f..576292e1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletRequestBase.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsGame/__Abstractions/AppsGameWalletRequestBase.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { public abstract class AppsGameWalletRequestBase : DouyinMicroAppRequest { @@ -30,7 +30,7 @@ public abstract class AppsGameWalletRequestBase : DouyinMicroAppRequest /// /// 获取或设置平台。 - /// 默认值:android + /// 默认值:"android" /// [Newtonsoft.Json.JsonProperty("pf")] [System.Text.Json.Serialization.JsonPropertyName("pf")] diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.json new file mode 100644 index 00000000..ad04e954 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.json @@ -0,0 +1,4 @@ +{ + "expires_in": 3600, + "component_access_token": "xxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.json new file mode 100644 index 00000000..73f43e6a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.json @@ -0,0 +1,3 @@ +{ + "link_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.json new file mode 100644 index 00000000..1e8bdac0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.json @@ -0,0 +1,8 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "202401121734538F484F2C844C5C32253C", + "data": { + "link": "xxxxxxxxxxx" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.json new file mode 100644 index 00000000..609c39fa --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.json @@ -0,0 +1,14 @@ +{ + "data": { + "auth_app_list": [ + { + "auth_appid": "xxxx", + "auth_time": 1703062377 + } + ], + "total": 1 + }, + "err_msg": "", + "err_no": 0, + "log_id": "2024011516552804343697F9D7931FAB00" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.json new file mode 100644 index 00000000..04aff6f5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.json @@ -0,0 +1,24 @@ +{ + "err_no": 0, + "log_id": "2023101312022744C2A2666DB7BC00832B", + "data": { + "authorizer_access_token": "isvact.5dafax837bb9937cdxxxxxx200fO2Eh5YgvG4pFmj6nSf8NGr6j8Yfg", + "authorizer_appid": "xxxxxx", + "authorizer_refresh_token": "isvrft.d016bb817070xxxxxtUS9BNtfJ174uhFNFUnW", + "expires_in": 7200, + "refresh_expires_in": 2592000, + "authorize_permission": [ + { + "category": "开发管理权限", + "description": "帮助小程序进行基础功能开发及配置开发所需信息", + "id": 1 + }, + { + "category": "基本信息设置权限", + "description": "帮助小程序管理名称、头像、简介、服务类目等信息", + "id": 2 + } + ] + }, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.json new file mode 100644 index 00000000..54639a84 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.json @@ -0,0 +1,3 @@ +{ + "authorization_appid": "xxxxxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.json new file mode 100644 index 00000000..0a445ca1 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.json @@ -0,0 +1,9 @@ +{ + "data": { + "authorization_code": "xxxxxxxxxxx", + "expires_in": 3600 + }, + "err_msg": "", + "err_no": 0, + "log_id": "20240112171812CA5FDE08E24D242EFEAD" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/ThirdPartyFile/OpenApiThirdPartyFileUploadMaterialV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/OAuth/OpenApiOAuthTokenV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiOAuthTokenV1Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/OAuth/OpenApiOAuthTokenV1Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/Auth/OpenApiOAuthTokenV1Response.json From 3b9918f0e12bc9bb0400a592db92cbecb132d900 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 8 Mar 2024 18:04:44 +0800 Subject: [PATCH 37/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=95=86=E5=B9=B3=E5=8F=B0=E4=BB=A3=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=A8=A1=E6=9D=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20v2=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OpenApi/DouyinMicroAppOpenApiResponse.cs | 8 +- ...ClientExecuteLegacyThirdPartyExtensions.cs | 30 +---- ...ApiClientExecuteTpAppTemplateExtensions.cs | 103 ++++++++++++++++++ .../OpenApiAuthThirdPartyTokenV2Response.cs | 10 ++ .../OpenApiTpAppAuthGenerateLinkV3Response.cs | 10 -- ...penApiTpAppAuthGetAuthAppListV2Response.cs | 10 -- .../OpenApiTpAppAuthGetAuthTokenV2Response.cs | 10 -- ...nApiTpAppAuthRetrieveAuthCodeV2Response.cs | 10 -- ...penApiTpAppFileUploadMaterialV2Response.cs | 10 -- ...penApiTpAppTemplateAddTemplateV2Request.cs | 15 +++ ...enApiTpAppTemplateAddTemplateV2Response.cs | 9 ++ ...ApiTpAppTemplateDeleteTemplateV2Request.cs | 15 +++ ...piTpAppTemplateDeleteTemplateV2Response.cs | 9 ++ ...pAppTemplateGetTemplateAppListV2Request.cs | 9 ++ ...AppTemplateGetTemplateAppListV2Response.cs | 83 ++++++++++++++ ...piTpAppTemplateGetTemplateListV2Request.cs | 9 ++ ...iTpAppTemplateGetTemplateListV2Response.cs | 62 +++++++++++ .../Auth/OpenApiAuthGenerateLinkV2Response.cs | 2 +- .../Auth/OpenApiAuthPreAuthCodeV2Response.cs | 4 +- .../Auth/OpenApiAuthRetrieveV1Response.cs | 2 +- .../OpenApiAuthThirdPartyTokenV1Response.cs | 4 +- .../Auth/OpenApiOAuthTokenV1Response.cs | 2 +- ...enApiMicroAppAppAddCategoriesV1Response.cs | 4 +- ...enApiMicroAppAppAllCategoriesV1Response.cs | 4 +- .../OpenApiMicroAppAppCategoriesV1Response.cs | 4 +- ...piMicroAppAppDeleteCategoriesV1Response.cs | 4 +- ...piMicroAppAppSupplyCategoriesV1Response.cs | 4 +- ...penApiMicroAppAppCheckAppNameV1Response.cs | 4 +- ...OpenApiMicroAppAppCreditScoreV1Response.cs | 4 +- .../App/OpenApiMicroAppAppInfoV1Response.cs | 4 +- ...enApiMicroAppAppModifyAppIconV1Response.cs | 4 +- ...roAppAppModifyAppIntroductionV1Response.cs | 4 +- ...enApiMicroAppAppModifyAppNameV1Response.cs | 4 +- ...MicroAppAppModifyServerDomainV1Response.cs | 4 +- ...icroAppAppModifyWebviewDomainV1Response.cs | 4 +- .../App/OpenApiMicroAppAppQrcodeV1Response.cs | 2 +- ...enApiMicroAppAppQualityRatingV1Response.cs | 4 +- .../OpenApiMicroAppCode2SessionV1Response.cs | 4 +- ...OpenApiMicroAppUploadMaterialV1Response.cs | 4 +- ...perationLiveApplicationStatusV1Response.cs | 4 +- ...roAppOperationLiveApplicationV1Response.cs | 4 +- ...nPhoneNumberApplicationStatusV1Response.cs | 4 +- ...erationPhoneNumberApplicationV1Response.cs | 4 +- ...erationVideoApplicationStatusV1Response.cs | 4 +- ...oAppOperationVideoApplicationV1Response.cs | 4 +- ...oAppOperationAddShareTemplateV1Response.cs | 4 +- ...pOperationDeleteShareTemplateV1Response.cs | 4 +- ...pOperationModifyShareTemplateV1Response.cs | 4 +- ...rationSetDefaultShareTemplateV1Response.cs | 4 +- ...AppOperationShareTemplateListV1Response.cs | 2 +- ...roAppOperationAddShopMaterialV1Response.cs | 4 +- ...AppOperationQueryShopMaterialV1Response.cs | 4 +- ...nApiMicroAppPackageAuditHostsV1Response.cs | 4 +- .../OpenApiMicroAppPackageAuditV2Response.cs | 2 +- ...OpenApiMicroAppPackageReleaseV1Response.cs | 4 +- ...ApiMicroAppPackageRevokeAuditV1Response.cs | 4 +- ...penApiMicroAppPackageRollbackV1Response.cs | 4 +- .../OpenApiMicroAppPackageUploadV1Response.cs | 4 +- ...penApiMicroAppPackageVersionsV1Response.cs | 2 +- .../Settle/OpenApiSettleApplyV1Response.cs | 2 +- .../OpenApiSettleGetApplyStatusV1Response.cs | 2 +- .../Settle/OpenApiSettlePreCheckV1Response.cs | 2 +- ...ThirdPartyDownloadWebviewFileV1Response.cs | 2 +- .../OpenApiThirdPartyAuthAppListV1Response.cs | 2 +- ...irdPartyUploadPictureMaterialV1Response.cs | 2 +- ...ApiThirdPartyPOIBaseQueryAMapV1Response.cs | 4 +- ...ApiThirdPartyPOISupplierMatchV1Response.cs | 4 +- ...artyPOISupplierQueryMatchTaskV1Response.cs | 4 +- ...irdPartyPOISupplierQueryMatchV1Response.cs | 4 +- ...ApiThirdPartyPOISupplierQueryV1Response.cs | 4 +- ...nApiThirdPartyPOISupplierSyncV1Response.cs | 4 +- ...iThirdPartyTemplateAddTemplateV1Request.cs | 5 +- ...ThirdPartyTemplateAddTemplateV1Response.cs | 10 +- ...irdPartyTemplateDeleteTemplateV1Request.cs | 5 +- ...rdPartyTemplateDeleteTemplateV1Response.cs | 10 +- ...ThirdPartyTemplateGetDraftListV1Request.cs | 12 -- ...hirdPartyTemplateGetDraftListV1Response.cs | 52 --------- ...artyTemplateGetTemplateAppListV1Request.cs | 3 + ...rtyTemplateGetTemplateAppListV1Response.cs | 5 +- ...rdPartyTemplateGetTemplateListV1Request.cs | 5 +- ...dPartyTemplateGetTemplateListV1Response.cs | 7 +- .../OpenApiLegacyResponseBase.cs | 15 +++ ...dPartyTemplateDeleteTemplateV1Request.json | 3 + ...nApiTpAppTemplateAddTemplateV2Request.json | 3 + ...pTemplateGetTemplateAppListV2Response.json | 22 ++++ ...pAppTemplateGetTemplateListV2Response.json | 15 +++ ...rdPartyTemplateGetDraftListV1Response.json | 18 --- 87 files changed, 523 insertions(+), 269 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs delete mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/__Abstractions/OpenApiLegacyResponseBase.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.json delete mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiResponse.cs index bea4f869..6fde12df 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/DouyinMicroAppOpenApiResponse.cs @@ -8,15 +8,15 @@ public abstract class DouyinMicroAppOpenApiResponse : CommonResponseBase, ICommo /// /// 获取抖音小程序 API 返回的错误码。 /// - [Newtonsoft.Json.JsonProperty("errno")] - [System.Text.Json.Serialization.JsonPropertyName("errno")] + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] public virtual int ErrorNumber { get; set; } /// /// 获取抖音小程序 API 返回的错误描述。 /// - [Newtonsoft.Json.JsonProperty("message")] - [System.Text.Json.Serialization.JsonPropertyName("message")] + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] public virtual string? ErrorMessage { get; set; } /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs index 61c426b8..5995da64 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs @@ -264,6 +264,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -278,32 +279,6 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - /// - /// 异步调用 [GET] /v1/tp/template/get_draft_list 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - [Obsolete("相关接口或字段于 2022-12-28 下线。")] - public static async Task ExecuteOpenApiThirdPartyTemplateGetDraftListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetDraftListV1Request request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Get, "v1", "tp", "template", "get_draft_list") - .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "template", "get_draft_list")) - .SetQueryParam("component_appid", request.ComponentAppId) - .SetQueryParam("component_access_token", request.ComponentAccessToken); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - /// /// 异步调用 [GET] /v1/tp/template/get_tpl_app_list 接口。 /// @@ -315,6 +290,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiThirdPartyTemplateGetTemplateAppListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateGetTemplateAppListV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -340,6 +316,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiThirdPartyTemplateAddTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateAddTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -365,6 +342,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiThirdPartyTemplateDeleteTemplateV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiThirdPartyTemplateDeleteTemplateV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs new file mode 100644 index 00000000..3350758f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs @@ -0,0 +1,103 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions + { + /// + /// 异步调用 [GET] /tpapp/v2/template/get_tpl_app_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppTemplateGetTemplateAppListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateGetTemplateAppListV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "tpapp", "v2", "template", "get_tpl_app_list") + .WithHeader("access-token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /tpapp/v2/template/get_tpl_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppTemplateGetTemplateListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateGetTemplateListV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "tpapp", "v2", "template", "get_tpl_list") + .WithHeader("access-token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /tpapp/v2/template/add_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppTemplateAddTemplateV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateAddTemplateV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "template", "add_tpl") + .WithHeader("access-token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /tpapp/v2/template/del_tpl 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenApiTpAppTemplateDeleteTemplateV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateDeleteTemplateV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "template", "add_tpl") + .WithHeader("access-token", request.ComponentAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs index f554422a..585d938b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs @@ -5,6 +5,16 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models ///
public class OpenApiAuthThirdPartyTokenV2Response : DouyinMicroAppOpenApiResponse { + /// + [Newtonsoft.Json.JsonProperty("err_no")] + [System.Text.Json.Serialization.JsonPropertyName("err_no")] + public override int ErrorNumber { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("err_msg")] + [System.Text.Json.Serialization.JsonPropertyName("err_msg")] + public override string? ErrorMessage { get; set; } + /// /// 获取或设置第三方平台 AccessToken。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs index a0b3efae..57833c59 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs @@ -18,16 +18,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override int ErrorNumber { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs index 418e224a..12741117 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs @@ -45,16 +45,6 @@ public class AuthApp } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override int ErrorNumber { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs index 8e5cc4e4..ea7427f7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs @@ -97,16 +97,6 @@ public class ShareData } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override int ErrorNumber { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs index 78085b6a..b75e9630 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs @@ -25,16 +25,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override int ErrorNumber { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs index f21a1141..04e7b3cb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs @@ -18,16 +18,6 @@ public class Data } } - /// - [Newtonsoft.Json.JsonProperty("err_no")] - [System.Text.Json.Serialization.JsonPropertyName("err_no")] - public override int ErrorNumber { get; set; } - - /// - [Newtonsoft.Json.JsonProperty("err_msg")] - [System.Text.Json.Serialization.JsonPropertyName("err_msg")] - public override string? ErrorMessage { get; set; } - /// /// 获取或设置返回数据。 /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.cs new file mode 100644 index 00000000..a08a59fd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/template/add_tpl 接口的请求。 + /// + public class OpenApiTpAppTemplateAddTemplateV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置草稿 ID。 + /// + [Newtonsoft.Json.JsonProperty("draft_id")] + [System.Text.Json.Serialization.JsonPropertyName("draft_id")] + public long DraftId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Response.cs new file mode 100644 index 00000000..ed13078b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/template/add_tpl 接口的响应。 + /// + public class OpenApiTpAppTemplateAddTemplateV2Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Request.cs new file mode 100644 index 00000000..767dc011 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/template/del_tpl 接口的请求。 + /// + public class OpenApiTpAppTemplateDeleteTemplateV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("template_id")] + [System.Text.Json.Serialization.JsonPropertyName("template_id")] + public long TemplateId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Response.cs new file mode 100644 index 00000000..071c207c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /tpapp/v2/template/del_tpl 接口的响应。 + /// + public class OpenApiTpAppTemplateDeleteTemplateV2Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Request.cs new file mode 100644 index 00000000..0ed0a4bc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/template/get_tpl_app_list 接口的请求。 + /// + public class OpenApiTpAppTemplateGetTemplateAppListV2Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.cs new file mode 100644 index 00000000..dd073a97 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.cs @@ -0,0 +1,83 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/template/get_tpl_app_list 接口的响应。 + /// + public class OpenApiTpAppTemplateGetTemplateAppListV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class TemplateApp + { + /// + /// 获取或设置模板小程序 ID。 + /// + [Newtonsoft.Json.JsonProperty("tpl_app_id")] + [System.Text.Json.Serialization.JsonPropertyName("tpl_app_id")] + public string TemplateAppId { get; set; } = default!; + + /// + /// 获取或设置模板小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置上传当前版本的用户名称。 + /// + [Newtonsoft.Json.JsonProperty("nick_name")] + [System.Text.Json.Serialization.JsonPropertyName("nick_name")] + public string? Nickname { get; set; } + + /// + /// 获取或设置版本号。 + /// + [Newtonsoft.Json.JsonProperty("user_version")] + [System.Text.Json.Serialization.JsonPropertyName("user_version")] + public string? UserVersion { get; set; } + + /// + /// 获取或设置描述。 + /// + [Newtonsoft.Json.JsonProperty("user_desc")] + [System.Text.Json.Serialization.JsonPropertyName("user_desc")] + public string? UserDescription { get; set; } + + /// + /// 获取或设置草稿 ID。 + /// + [Newtonsoft.Json.JsonProperty("draft_id")] + [System.Text.Json.Serialization.JsonPropertyName("draft_id")] + public long? DraftId { get; set; } + + /// + /// 获取或设置上传时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long? CreateTimestamp { get; set; } + } + } + + /// + /// 获取或设置模板小程序列表。 + /// + [Newtonsoft.Json.JsonProperty("tpl_app_list")] + [System.Text.Json.Serialization.JsonPropertyName("tpl_app_list")] + public Types.TemplateApp[] TemplateAppList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Request.cs new file mode 100644 index 00000000..9e1a6697 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/template/get_tpl_list 接口的请求。 + /// + public class OpenApiTpAppTemplateGetTemplateListV2Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.cs new file mode 100644 index 00000000..4a96139a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.cs @@ -0,0 +1,62 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /tpapp/v2/template/get_tpl_list 接口的响应。 + /// + public class OpenApiTpAppTemplateGetTemplateListV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Template + { + /// + /// 获取或设置模板 ID。 + /// + [Newtonsoft.Json.JsonProperty("template_id")] + [System.Text.Json.Serialization.JsonPropertyName("template_id")] + public long TemplateId { get; set; } + + /// + /// 获取或设置版本号。 + /// + [Newtonsoft.Json.JsonProperty("user_version")] + [System.Text.Json.Serialization.JsonPropertyName("user_version")] + public string UserVersion { get; set; } = default!; + + /// + /// 获取或设置描述。 + /// + [Newtonsoft.Json.JsonProperty("user_desc")] + [System.Text.Json.Serialization.JsonPropertyName("user_desc")] + public string UserDescription { get; set; } = default!; + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + } + } + + /// + /// 获取或设置模板列表。 + /// + [Newtonsoft.Json.JsonProperty("template_list")] + [System.Text.Json.Serialization.JsonPropertyName("template_list")] + public Types.Template[] TemplateList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.cs index 97aa2e3d..cde23289 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthGenerateLinkV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/auth/gen_link 接口的响应。 /// - public class OpenApiAuthGenerateLinkV2Response : DouyinMicroAppOpenApiResponse + public class OpenApiAuthGenerateLinkV2Response : OpenApiLegacyResponseBase { /// /// 获取或设置授权链接。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.cs index 472fd511..81c0e5c7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthPreAuthCodeV2Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/auth/pre_auth_code 接口的响应。 /// - public class OpenApiAuthPreAuthCodeV2Response : DouyinMicroAppOpenApiResponse + public class OpenApiAuthPreAuthCodeV2Response : OpenApiLegacyResponseBase { /// /// 获取或设置预授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Response.cs index 81e3ccbb..c4e864c2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthRetrieveV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/auth/retrieve 接口的响应。 /// - public class OpenApiAuthRetrieveV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiAuthRetrieveV1Response : OpenApiLegacyResponseBase { /// /// 获取或设置授权码。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.cs index c21ddd9c..f336be82 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiAuthThirdPartyTokenV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/auth/tp/token 接口的响应。 /// - public class OpenApiAuthThirdPartyTokenV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiAuthThirdPartyTokenV1Response : OpenApiLegacyResponseBase { /// /// 获取或设置第三方平台 AccessToken。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Response.cs index e6fd3bd1..55b3935d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Auth/OpenApiOAuthTokenV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/oauth/token 接口的响应。 /// - public class OpenApiOAuthTokenV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiOAuthTokenV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs index 3df95163..cc28143c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/add_categories 接口的响应。 /// - public class OpenApiMicroAppAppAddCategoriesV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppAddCategoriesV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs index 336af07f..b1071583 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/all_categories 接口的响应。 /// - public class OpenApiMicroAppAppAllCategoriesV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppAllCategoriesV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs index e8d07ddd..66cf7f5e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/categories 接口的响应。 /// - public class OpenApiMicroAppAppCategoriesV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppCategoriesV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs index 09e891cb..ad0831d0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/del_categories 接口的响应。 /// - public class OpenApiMicroAppAppDeleteCategoriesV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppDeleteCategoriesV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs index a528a256..9b57d146 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/supply_categories 接口的响应。 /// - public class OpenApiMicroAppAppSupplyCategoriesV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppSupplyCategoriesV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs index fc32db15..290ac52f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/check_app_name 接口的响应。 /// - public class OpenApiMicroAppAppCheckAppNameV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppCheckAppNameV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs index 986732e8..f014697c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/credit_score 接口的响应。 /// - public class OpenApiMicroAppAppCreditScoreV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppCreditScoreV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs index 6cd1546a..a38de279 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/info 接口的响应。 /// - public class OpenApiMicroAppAppInfoV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppInfoV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs index ac25a81c..3bb900ab 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_icon 接口的响应。 /// - public class OpenApiMicroAppAppModifyAppIconV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyAppIconV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs index 2bdf5f11..7dfcb595 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_intro 接口的响应。 /// - public class OpenApiMicroAppAppModifyAppIntroductionV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyAppIntroductionV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs index c3d4c19d..92c1ba56 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_name 接口的响应。 /// - public class OpenApiMicroAppAppModifyAppNameV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyAppNameV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs index 3db3a8a2..d5a4d5a1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_server_domain 接口的响应。 /// - public class OpenApiMicroAppAppModifyServerDomainV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyServerDomainV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs index 9da95a53..7f9a6bd5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_webview_domain 接口的响应。 /// - public class OpenApiMicroAppAppModifyWebviewDomainV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppModifyWebviewDomainV1Response : OpenApiLegacyResponseBase { /// /// 获取或设置 Webview 域名列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs index f7c0aa51..641212d9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/qrcode 接口的响应。 /// - public class OpenApiMicroAppAppQrcodeV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppQrcodeV1Response : OpenApiLegacyResponseBase { public override bool IsSuccessful() { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs index 4235dd18..e8af4353 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/quality_rating 接口的响应。 /// - public class OpenApiMicroAppAppQualityRatingV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppAppQualityRatingV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs index 440dadb5..f6a8191c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppCode2SessionV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/code2session 接口的响应。 /// - public class OpenApiMicroAppCode2SessionV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppCode2SessionV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs index 86545726..030d56db 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/upload_material 接口的响应。 /// - public class OpenApiMicroAppUploadMaterialV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppUploadMaterialV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs index 1baf77e6..aa2732e8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationStatusV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/live_application_status 接口的响应。 /// - public class OpenApiMicroAppOperationLiveApplicationStatusV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationLiveApplicationStatusV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs index 0d931157..00eef9db 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/live_application 接口的响应。 /// - public class OpenApiMicroAppOperationLiveApplicationV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationLiveApplicationV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs index cd770762..a4e9cf13 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/phone_number_application_status 接口的响应。 /// - public class OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationPhoneNumberApplicationStatusV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs index 69e7f178..b13f3fd9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/phone_number_application 接口的响应。 /// - public class OpenApiMicroAppOperationPhoneNumberApplicationV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationPhoneNumberApplicationV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs index eb152533..ee32007e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationStatusV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/video_application_status 接口的响应。 /// - public class OpenApiMicroAppOperationVideoApplicationStatusV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationVideoApplicationStatusV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs index 0f9ac384..0882b462 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/video_application 接口的响应。 /// - public class OpenApiMicroAppOperationVideoApplicationV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationVideoApplicationV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs index 25340371..2b1d300e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/add_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationAddShareTemplateV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationAddShareTemplateV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs index 9532353b..cb6567ed 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/del_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationDeleteShareTemplateV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationDeleteShareTemplateV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs index 91ca89c2..e531198d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/modify_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationModifyShareTemplateV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationModifyShareTemplateV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs index eb787d99..d2475f8c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/set_default_share_tpl 接口的响应。 /// - public class OpenApiMicroAppOperationSetDefaultShareTemplateV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationSetDefaultShareTemplateV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs index 70c9df17..48a1ad2a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationShareTemplateListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/microapp/operation/share_tpl_list 接口的响应。 /// - public class OpenApiMicroAppOperationShareTemplateListV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationShareTemplateListV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs index a4522dcb..bed85ec2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/operation/add_shop_material 接口的响应。 /// - public class OpenApiMicroAppOperationAddShopMaterialV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationAddShopMaterialV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs index 86b99174..d1cabc8b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationQueryShopMaterialV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/operation/query_shop_material 接口的响应。 /// - public class OpenApiMicroAppOperationQueryShopMaterialV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppOperationQueryShopMaterialV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs index 7476c0a1..4eba3df1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/audit_hosts 接口的响应。 /// - public class OpenApiMicroAppPackageAuditHostsV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppPackageAuditHostsV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs index bbf6387a..03be5f95 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs @@ -3,6 +3,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/microapp/package/audit 接口的响应。 /// - public class OpenApiMicroAppPackageAuditV2Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppPackageAuditV2Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs index d76f1d82..55647b57 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/release 接口的响应。 /// - public class OpenApiMicroAppPackageReleaseV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppPackageReleaseV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs index 533c8c7b..05de87f9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/revoke_audit 接口的响应。 /// - public class OpenApiMicroAppPackageRevokeAuditV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppPackageRevokeAuditV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs index e0eb57a6..3acdb1f5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/rollback 接口的响应。 /// - public class OpenApiMicroAppPackageRollbackV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppPackageRollbackV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs index ab1a5c71..c9403560 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/upload 接口的响应。 /// - public class OpenApiMicroAppPackageUploadV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppPackageUploadV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs index 3d567bea..907d009e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/microapp/package/versions 接口的响应。 /// - public class OpenApiMicroAppPackageVersionsV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiMicroAppPackageVersionsV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Response.cs index 7e25c6a4..68d993fa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleApplyV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/settle/apply 接口的响应。 /// - public class OpenApiSettleApplyV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiSettleApplyV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.cs index 7f4e215c..b6c80d29 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettleGetApplyStatusV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/settle/get_apply_status 接口的响应。 /// - public class OpenApiSettleGetApplyStatusV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiSettleGetApplyStatusV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Response.cs index 8bd08d2f..7252ee8b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/Settle/OpenApiSettlePreCheckV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/settle/pre_check 接口的响应。 /// - public class OpenApiSettlePreCheckV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiSettlePreCheckV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs index d3007456..a60a4803 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Domain/OpenApiThirdPartyDownloadWebviewFileV1Response.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/tp/download/webview_file 接口的响应。 /// - public class OpenApiThirdPartyDownloadWebviewFileV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyDownloadWebviewFileV1Response : OpenApiLegacyResponseBase { public override bool IsSuccessful() { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs index 7042a8e2..cf3b2511 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyAuthAppListV1Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/tp/auth_app_list 接口的响应。 /// - public class OpenApiThirdPartyAuthAppListV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyAuthAppListV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs index f1d8cc01..b1c05c5d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Response.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/tp/upload_pic_material 接口的响应。 /// [Obsolete("相关接口或字段于 2024-01-23 下线。")] - public class OpenApiThirdPartyUploadPictureMaterialV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyUploadPictureMaterialV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs index 00bc2fdc..583c4a72 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOIBaseQueryAMapV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/base/query/amap 接口的响应。 /// - public class OpenApiThirdPartyPOIBaseQueryAMapV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyPOIBaseQueryAMapV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs index fa45ca66..7acc5312 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierMatchV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/poi/supplier/match 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierMatchV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierMatchV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs index e7f41690..9f2133a0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query/match_task 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierQueryMatchTaskV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs index 4eb151fa..e7fa074a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryMatchV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query/match 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierQueryMatchV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierQueryMatchV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs index 26182217..a2143f95 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierQueryV1Response.cs @@ -1,9 +1,9 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/poi/supplier/query 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierQueryV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierQueryV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs index 2dab8d43..45aeb9e1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs @@ -1,8 +1,8 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/poi/supplier/sync 接口的响应。 /// - public class OpenApiThirdPartyPOISupplierSyncV1Response : DouyinMicroAppOpenApiResponse + public class OpenApiThirdPartyPOISupplierSyncV1Response : OpenApiLegacyResponseBase { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs index 30a871da..a5cc9258 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/add_tpl 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiThirdPartyTemplateAddTemplateV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs index 375bf3a2..0ef7251a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateAddTemplateV1Response.cs @@ -1,8 +1,12 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/add_tpl 接口的响应。 /// - public class OpenApiThirdPartyTemplateAddTemplateV1Response : DouyinMicroAppOpenApiResponse - { } + [Obsolete("相关接口或字段于 2024-01-23 下线。")] + public class OpenApiThirdPartyTemplateAddTemplateV1Response : OpenApiLegacyResponseBase + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs index 656eb5a9..ecd4c5a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/del_tpl 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiThirdPartyTemplateDeleteTemplateV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs index 00d6a552..ad7eb6e8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateDeleteTemplateV1Response.cs @@ -1,8 +1,12 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/tp/template/del_tpl 接口的响应。 /// - public class OpenApiThirdPartyTemplateDeleteTemplateV1Response : DouyinMicroAppOpenApiResponse - { } + [Obsolete("相关接口或字段于 2024-01-23 下线。")] + public class OpenApiThirdPartyTemplateDeleteTemplateV1Response : OpenApiLegacyResponseBase + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs deleted file mode 100644 index 787ddfcf..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Request.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models -{ - /// - /// 表示 [GET] /v1/tp/template/get_draft_list 接口的请求。 - /// - [Obsolete("相关接口或字段于 2022-12-28 下线。")] - public class OpenApiThirdPartyTemplateGetDraftListV1Request : DouyinMicroAppOpenApiRequest - { - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs deleted file mode 100644 index e3b37dad..00000000 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; - -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models -{ - /// - /// 表示 [GET] /v1/tp/template/get_draft_list 接口的响应。 - /// - [Obsolete("相关接口或字段于 2022-12-28 下线。")] - public class OpenApiThirdPartyTemplateGetDraftListV1Response : DouyinMicroAppOpenApiResponse - { - public static class Types - { - public class Draft - { - /// - /// 获取或设置草稿 ID。 - /// - [Newtonsoft.Json.JsonProperty("draft_id")] - [System.Text.Json.Serialization.JsonPropertyName("draft_id")] - public long DraftId { get; set; } - - /// - /// 获取或设置版本号。 - /// - [Newtonsoft.Json.JsonProperty("user_version")] - [System.Text.Json.Serialization.JsonPropertyName("user_version")] - public string UserVersion { get; set; } = default!; - - /// - /// 获取或设置描述。 - /// - [Newtonsoft.Json.JsonProperty("user_desc")] - [System.Text.Json.Serialization.JsonPropertyName("user_desc")] - public string UserDescription { get; set; } = default!; - - /// - /// 获取或设置创建时间戳。 - /// - [Newtonsoft.Json.JsonProperty("create_time")] - [System.Text.Json.Serialization.JsonPropertyName("create_time")] - public long CreateTimestamp { get; set; } - } - } - - /// - /// 获取或设置草稿列表。 - /// - [Newtonsoft.Json.JsonProperty("draft_list")] - [System.Text.Json.Serialization.JsonPropertyName("draft_list")] - public Types.Draft[] DraftList { get; set; } = default!; - } -} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs index 58b3d795..d18112c6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_app_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiThirdPartyTemplateGetTemplateAppListV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs index 69395c29..f0c9d482 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateAppListV1Response.cs @@ -1,9 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_app_list 接口的响应。 /// - public class OpenApiThirdPartyTemplateGetTemplateAppListV1Response : DouyinMicroAppOpenApiResponse + [Obsolete("相关接口或字段于 2024-01-23 下线。")] + public class OpenApiThirdPartyTemplateGetTemplateAppListV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs index 9d31dd79..528d7c1a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_list 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiThirdPartyTemplateGetTemplateListV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs index f63f61d9..d4838cd3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetTemplateListV1Response.cs @@ -1,9 +1,12 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/tp/template/get_tpl_list 接口的响应。 /// - public class OpenApiThirdPartyTemplateGetTemplateListV1Response : DouyinMicroAppOpenApiResponse + [Obsolete("相关接口或字段于 2024-01-23 下线。")] + public class OpenApiThirdPartyTemplateGetTemplateListV1Response : OpenApiLegacyResponseBase { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/__Abstractions/OpenApiLegacyResponseBase.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/__Abstractions/OpenApiLegacyResponseBase.cs new file mode 100644 index 00000000..50008dda --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/__Abstractions/OpenApiLegacyResponseBase.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public abstract class OpenApiLegacyResponseBase : DouyinMicroAppOpenApiResponse + { + /// + [Newtonsoft.Json.JsonProperty("errno")] + [System.Text.Json.Serialization.JsonPropertyName("errno")] + public override int ErrorNumber { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("message")] + [System.Text.Json.Serialization.JsonPropertyName("message")] + public override string? ErrorMessage { get; set; } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json new file mode 100644 index 00000000..379aacbf --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json @@ -0,0 +1,3 @@ +{ + "template_id": 1010 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.json new file mode 100644 index 00000000..ddc5120c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.json @@ -0,0 +1,3 @@ +{ + "draft_id": 1010 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.json new file mode 100644 index 00000000..663a253f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.json @@ -0,0 +1,22 @@ +{ + "data": { + "tpl_app_list": [ + { + "tpl_app_id": "xxxxx", + "user_desc": "xxxxx", + "user_version": "x.x.x", + "app_name": "xxxx", + "create_time": 1702553299, + "draft_id": 1, + "nick_name": "xxxxx" + }, + { + "app_name": "xxxxx", + "tpl_app_id": "xxxxx" + } + ] + }, + "err_msg": "", + "err_no": 0, + "log_id": "20240115162821497BC0191A90E58ABD8D" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.json new file mode 100644 index 00000000..8ad56eb9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.json @@ -0,0 +1,15 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "20240115152221728055690DCBE01D5E8E", + "data": { + "template_list": [ + { + "user_desc": "xxxxx", + "user_version": "x.x.x", + "create_time": 1667389622, + "template_id": 1010 + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json deleted file mode 100644 index db683577..00000000 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/_Legacy/ThirdParty/Template/OpenApiThirdPartyTemplateGetDraftListV1Response.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "errno": 0, - "message": "success", - "draft_list": [ - { - "draft_id": 1, - "user_version": "2.2.2", - "user_desc": "xxx", - "create_time": 1488965932 - }, - { - "draft_id": 2, - "user_version": "3.3.3", - "user_desc": "xxx", - "create_time": 1504790916 - } - ] -} From 28255b5ee7c7be23b4be2701267a96f7fff89552 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 8 Mar 2024 19:40:04 +0800 Subject: [PATCH 38/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=95=86=E5=B9=B3=E5=8F=B0=E4=BB=A3=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=9F=BA=E7=A1=80=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=AE=A1=E7=90=86=20v2=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ApiClientExecuteAppsBasicInfoExtensions.cs | 149 ++++++++++ ...nApiClientExecuteAppsCategoryExtensions.cs | 126 +++++++++ ...iClientExecuteAppsCreditScoreExtensions.cs | 34 +++ ...penApiClientExecuteAppsDomainExtensions.cs | 57 ++++ ...pOpenApiClientExecuteAppsFileExtensions.cs | 44 +++ ...OpenApiClientExecuteAppsTrialExtensions.cs | 34 +++ ...piClientExecuteLegacyMicroAppExtensions.cs | 20 +- ...ClientExecuteLegacyThirdPartyExtensions.cs | 5 +- ...OpenApiClientExecuteTpAppAuthExtensions.cs | 20 +- ...OpenApiClientExecuteTpAppFileExtensions.cs | 9 +- ...ApiClientExecuteTpAppTemplateExtensions.cs | 16 +- .../OpenAppsBasicInfoCheckAppNameV2Request.cs | 15 + ...OpenAppsBasicInfoCheckAppNameV2Response.cs | 9 + .../OpenAppsBasicInfoGetInfoV2Request.cs | 9 + .../OpenAppsBasicInfoGetInfoV2Response.cs | 256 ++++++++++++++++++ .../OpenAppsBasicInfoGetQrcodeV2Request.cs | 23 ++ .../OpenAppsBasicInfoGetQrcodeV2Response.cs | 28 ++ ...OpenAppsBasicInfoModifyAppIconV2Request.cs | 15 + ...penAppsBasicInfoModifyAppIconV2Response.cs | 9 + ...BasicInfoModifyAppIntroductionV2Request.cs | 15 + ...asicInfoModifyAppIntroductionV2Response.cs | 9 + ...OpenAppsBasicInfoModifyAppNameV2Request.cs | 22 ++ ...penAppsBasicInfoModifyAppNameV2Response.cs | 9 + .../OpenAppsCategoryAddCategoriesV1Request.cs | 64 +++++ ...OpenAppsCategoryAddCategoriesV1Response.cs | 9 + ...enAppsCategoryDeleteCategoriesV1Request.cs | 17 ++ ...nAppsCategoryDeleteCategoriesV1Response.cs | 9 + ...enAppsCategoryGetAllCategoriesV1Request.cs | 9 + ...nAppsCategoryGetAllCategoriesV1Response.cs | 123 +++++++++ ...AppsCategoryGetAuditCategoriesV1Request.cs | 9 + ...ppsCategoryGetAuditCategoriesV1Response.cs | 124 +++++++++ ...enAppsCategorySupplyCategoriesV1Request.cs | 44 +++ ...nAppsCategorySupplyCategoriesV1Response.cs | 9 + ...nAppsCreditScoreGetCreditScoreV2Request.cs | 9 + ...AppsCreditScoreGetCreditScoreV2Response.cs | 28 ++ ...enAppsDomainModifyServerDomainV2Request.cs | 46 ++++ ...nAppsDomainModifyServerDomainV2Response.cs | 49 ++++ ...nAppsDomainModifyWebviewDomainV2Request.cs | 25 ++ ...AppsDomainModifyWebviewDomainV2Response.cs | 28 ++ .../OpenAppsFileUploadMaterialV2Request.cs | 38 +++ .../OpenAppsFileUploadMaterialV2Response.cs | 28 ++ .../OpenAppsTrialGetTrialInfoV2Request.cs | 9 + .../OpenAppsTrialGetTrialInfoV2Response.cs | 115 ++++++++ ...cs => OpenAuthThirdPartyTokenV2Request.cs} | 2 +- ...s => OpenAuthThirdPartyTokenV2Response.cs} | 2 +- ... => OpenTpAppAuthGenerateLinkV3Request.cs} | 2 +- ...=> OpenTpAppAuthGenerateLinkV3Response.cs} | 2 +- ...> OpenTpAppAuthGetAuthAppListV2Request.cs} | 2 +- ... OpenTpAppAuthGetAuthAppListV2Response.cs} | 2 +- ... => OpenTpAppAuthGetAuthTokenV2Request.cs} | 2 +- ...=> OpenTpAppAuthGetAuthTokenV2Response.cs} | 2 +- ...OpenTpAppAuthRetrieveAuthCodeV2Request.cs} | 2 +- ...penTpAppAuthRetrieveAuthCodeV2Response.cs} | 2 +- ...> OpenTpAppFileUploadMaterialV2Request.cs} | 9 +- ... OpenTpAppFileUploadMaterialV2Response.cs} | 2 +- ... OpenTpAppTemplateAddTemplateV2Request.cs} | 2 +- ...OpenTpAppTemplateAddTemplateV2Response.cs} | 2 +- ...enTpAppTemplateDeleteTemplateV2Request.cs} | 2 +- ...nTpAppTemplateDeleteTemplateV2Response.cs} | 2 +- ...AppTemplateGetTemplateAppListV2Request.cs} | 2 +- ...ppTemplateGetTemplateAppListV2Response.cs} | 2 +- ...nTpAppTemplateGetTemplateListV2Request.cs} | 2 +- ...TpAppTemplateGetTemplateListV2Response.cs} | 2 +- ...penApiMicroAppAppAddCategoriesV1Request.cs | 4 +- ...enApiMicroAppAppAddCategoriesV1Response.cs | 3 + ...penApiMicroAppAppAllCategoriesV1Request.cs | 5 +- ...enApiMicroAppAppAllCategoriesV1Response.cs | 3 + .../OpenApiMicroAppAppCategoriesV1Request.cs | 5 +- .../OpenApiMicroAppAppCategoriesV1Response.cs | 3 + ...ApiMicroAppAppDeleteCategoriesV1Request.cs | 4 +- ...piMicroAppAppDeleteCategoriesV1Response.cs | 3 + ...ApiMicroAppAppSupplyCategoriesV1Request.cs | 4 +- ...piMicroAppAppSupplyCategoriesV1Response.cs | 3 + ...OpenApiMicroAppAppCheckAppNameV1Request.cs | 5 +- ...penApiMicroAppAppCheckAppNameV1Response.cs | 3 + .../OpenApiMicroAppAppCreditScoreV1Request.cs | 5 +- ...OpenApiMicroAppAppCreditScoreV1Response.cs | 5 +- .../App/OpenApiMicroAppAppInfoV1Request.cs | 5 +- .../App/OpenApiMicroAppAppInfoV1Response.cs | 3 + ...penApiMicroAppAppModifyAppIconV1Request.cs | 5 +- ...enApiMicroAppAppModifyAppIconV1Response.cs | 6 +- ...croAppAppModifyAppIntroductionV1Request.cs | 3 + ...roAppAppModifyAppIntroductionV1Response.cs | 6 +- ...penApiMicroAppAppModifyAppNameV1Request.cs | 5 +- ...enApiMicroAppAppModifyAppNameV1Response.cs | 6 +- ...iMicroAppAppModifyServerDomainV1Request.cs | 2 + ...MicroAppAppModifyServerDomainV1Response.cs | 3 + ...MicroAppAppModifyWebviewDomainV1Request.cs | 4 +- ...icroAppAppModifyWebviewDomainV1Response.cs | 3 + .../App/OpenApiMicroAppAppQrcodeV1Request.cs | 9 +- .../App/OpenApiMicroAppAppQrcodeV1Response.cs | 2 + ...penApiMicroAppAppQualityRatingV1Request.cs | 5 +- ...enApiMicroAppAppQualityRatingV1Response.cs | 3 + .../OpenApiMicroAppUploadMaterialV1Request.cs | 3 +- ...OpenApiMicroAppUploadMaterialV1Response.cs | 5 +- ...hirdPartyUploadPictureMaterialV1Request.cs | 7 + ...oductApiClientExecuteCallbackExtensions.cs | 33 +++ ...roductApiClientExecuteProductExtensions.cs | 220 ++------------- ...ApiClientExecuteQualificationExtensions.cs | 79 ++++++ ...uctApiClientExecuteRefundRuleExtensions.cs | 57 ++++ ...oductApiClientExecuteResourceExtensions.cs | 55 ++++ ...st.cs => ProductSyncCallbackUrlRequest.cs} | 2 +- ...e.cs => ProductSyncCallbackUrlResponse.cs} | 2 +- .../ProductAddRequest.cs} | 2 +- .../ProductAddResponse.cs} | 2 +- .../ProductModifyNoAuditRequest.cs} | 2 +- .../ProductModifyNoAuditResponse.cs} | 2 +- .../ProductModifyRequest.cs} | 24 +- .../ProductModifyResponse.cs} | 2 +- .../ProductModifyStatusRequest.cs} | 2 +- .../ProductModifyStatusResponse.cs} | 2 +- .../ProductQueryClassInfoRequest.cs} | 2 +- .../ProductQueryClassInfoResponse.cs} | 2 +- .../ProductQueryRequest.cs} | 2 +- .../ProductQueryResponse.cs} | 2 +- .../ProductQueryReviewRequest.cs} | 2 +- .../ProductQueryReviewResponse.cs} | 2 +- .../ProductQueryTemplateInfoRequest.cs} | 2 +- .../ProductQueryTemplateInfoResponse.cs} | 2 +- ...t.cs => ProductAddQualificationRequest.cs} | 2 +- ....cs => ProductAddQualificationResponse.cs} | 2 +- ...s => ProductModifyQualificationRequest.cs} | 8 +- ... => ProductModifyQualificationResponse.cs} | 4 +- ...cs => ProductQueryQualificationRequest.cs} | 2 +- ...s => ProductQueryQualificationResponse.cs} | 2 +- ...t.cs => ProductModifyRefundRuleRequest.cs} | 2 +- ....cs => ProductModifyRefundRuleResponse.cs} | 2 +- ...s => ProductQueryRefundRuleMetaRequest.cs} | 2 +- ... => ProductQueryRefundRuleMetaResponse.cs} | 2 +- ...s => ProductQueryResourceStatusRequest.cs} | 2 +- ... => ProductQueryResourceStatusResponse.cs} | 2 +- ...est.cs => ProductUploadResourceRequest.cs} | 2 +- ...se.cs => ProductUploadResourceResponse.cs} | 2 +- ...roAppRoleApiClientExecuteRoleExtensions.cs | 4 +- ...croAppClientExecuteLegacyAppsExtensions.cs | 10 +- .../AppsCapacityUploadMaterialV1Request.cs | 9 +- .../Apps/Live/AppsUploadLiveImageRequest.cs | 9 +- .../OpenAppsBasicInfoGetInfoV2Response.json | 45 +++ .../OpenAppsBasicInfoGetQrcodeV2Request.json | 4 + .../OpenAppsBasicInfoGetQrcodeV2Response.json | 8 + ...sicInfoModifyAppIntroductionV2Request.json | 3 + ...enAppsBasicInfoModifyAppNameV2Request.json | 3 + ...penAppsCategoryAddCategoriesV1Request.json | 17 ++ ...AppsCategoryDeleteCategoriesV1Request.json | 3 + ...ppsCategoryGetAllCategoriesV1Response.json | 21 ++ ...sCategoryGetAuditCategoriesV1Response.json | 20 ++ ...AppsCategorySupplyCategoriesV1Request.json | 14 + ...psCreditScoreGetCreditScoreV2Response.json | 8 + ...AppsDomainModifyServerDomainV2Request.json | 4 + ...ppsDomainModifyServerDomainV2Response.json | 11 + ...ppsDomainModifyWebviewDomainV2Request.json | 4 + ...psDomainModifyWebviewDomainV2Response.json | 8 + .../OpenAppsTrialGetTrialInfoV2Response.json | 16 ++ ...=> OpenAuthThirdPartyTokenV2Response.json} | 0 ...> OpenTpAppAuthGenerateLinkV3Request.json} | 0 ... OpenTpAppAuthGenerateLinkV3Response.json} | 0 ...penTpAppAuthGetAuthAppListV2Response.json} | 0 ... OpenTpAppAuthGetAuthTokenV2Response.json} | 0 ...enTpAppAuthRetrieveAuthCodeV2Request.json} | 0 ...nTpAppAuthRetrieveAuthCodeV2Response.json} | 0 ...penTpAppFileUploadMaterialV2Response.json} | 0 ...penTpAppTemplateAddTemplateV2Request.json} | 0 ...TpAppTemplateDeleteTemplateV2Request.json} | 0 ...TemplateGetTemplateAppListV2Response.json} | 0 ...AppTemplateGetTemplateListV2Response.json} | 0 ...son => ProductSyncCallbackUrlRequest.json} | 0 ...on => ProductSyncCallbackUrlResponse.json} | 0 .../ProductAddRequest.json} | 0 .../ProductAddResponse.json} | 0 .../ProductModifyNoAuditRequest.json} | 0 .../ProductModifyNoAuditResponse.json} | 0 .../ProductModifyRequest.json} | 0 .../ProductModifyResponse.json} | 0 .../ProductModifyStatusRequest.json} | 0 .../ProductModifyStatusResponse.json} | 0 .../ProductQueryClassInfoRequest.json} | 0 .../ProductQueryClassInfoResponse.json} | 0 .../ProductQueryRequest.json} | 0 .../ProductQueryResponse.json} | 0 .../ProductQueryReviewRequest.json} | 0 .../ProductQueryReviewResponse.json} | 0 .../ProductQueryTemplateInfoRequest.json} | 0 .../ProductQueryTemplateInfoResponse.json} | 0 ...on => ProductAddQualificationRequest.json} | 0 ...n => ProductAddQualificationResponse.json} | 0 ...=> ProductModifyQualificationRequest.json} | 0 ...> ProductModifyQualificationResponse.json} | 0 ... => ProductQueryQualificationRequest.json} | 0 ...=> ProductQueryQualificationResponse.json} | 0 ...on => ProductModifyRefundRuleRequest.json} | 0 ...=> ProductQueryRefundRuleMetaRequest.json} | 0 ...> ProductQueryRefundRuleMetaResponse.json} | 0 ...=> ProductQueryResourceStatusRequest.json} | 0 ...> ProductQueryResourceStatusResponse.json} | 0 ...json => ProductUploadResourceRequest.json} | 0 ...son => ProductUploadResourceResponse.json} | 0 196 files changed, 2349 insertions(+), 322 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsBasicInfoExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCategoryExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCreditScoreExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsDomainExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsFileExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsTrialExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiAuthThirdPartyTokenV2Request.cs => OpenAuthThirdPartyTokenV2Request.cs} (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiAuthThirdPartyTokenV2Response.cs => OpenAuthThirdPartyTokenV2Response.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthGenerateLinkV3Request.cs => OpenTpAppAuthGenerateLinkV3Request.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthGenerateLinkV3Response.cs => OpenTpAppAuthGenerateLinkV3Response.cs} (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthGetAuthAppListV2Request.cs => OpenTpAppAuthGetAuthAppListV2Request.cs} (89%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthGetAuthAppListV2Response.cs => OpenTpAppAuthGetAuthAppListV2Response.cs} (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthGetAuthTokenV2Request.cs => OpenTpAppAuthGetAuthTokenV2Request.cs} (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthGetAuthTokenV2Response.cs => OpenTpAppAuthGetAuthTokenV2Response.cs} (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs => OpenTpAppAuthRetrieveAuthCodeV2Request.cs} (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/{OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs => OpenTpAppAuthRetrieveAuthCodeV2Response.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/{OpenApiTpAppFileUploadMaterialV2Request.cs => OpenTpAppFileUploadMaterialV2Request.cs} (72%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/{OpenApiTpAppFileUploadMaterialV2Response.cs => OpenTpAppFileUploadMaterialV2Response.cs} (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateAddTemplateV2Request.cs => OpenTpAppTemplateAddTemplateV2Request.cs} (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateAddTemplateV2Response.cs => OpenTpAppTemplateAddTemplateV2Response.cs} (69%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateDeleteTemplateV2Request.cs => OpenTpAppTemplateDeleteTemplateV2Request.cs} (83%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateDeleteTemplateV2Response.cs => OpenTpAppTemplateDeleteTemplateV2Response.cs} (69%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateGetTemplateAppListV2Request.cs => OpenTpAppTemplateGetTemplateAppListV2Request.cs} (69%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateGetTemplateAppListV2Response.cs => OpenTpAppTemplateGetTemplateAppListV2Response.cs} (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateGetTemplateListV2Request.cs => OpenTpAppTemplateGetTemplateListV2Request.cs} (69%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/{OpenApiTpAppTemplateGetTemplateListV2Response.cs => OpenTpAppTemplateGetTemplateListV2Response.cs} (96%) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteCallbackExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteQualificationExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteRefundRuleExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteResourceExtensions.cs rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/{ProductApiSyncCallbackUrlRequest.cs => ProductSyncCallbackUrlRequest.cs} (90%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/{ProductApiSyncCallbackUrlResponse.cs => ProductSyncCallbackUrlResponse.cs} (70%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiAddRequest.cs => Product/ProductAddRequest.cs} (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiAddResponse.cs => Product/ProductAddResponse.cs} (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiModifyNoAuditRequest.cs => Product/ProductModifyNoAuditRequest.cs} (97%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiModifyNoAuditResponse.cs => Product/ProductModifyNoAuditResponse.cs} (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiModifyRequest.cs => Product/ProductModifyRequest.cs} (69%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiModifyResponse.cs => Product/ProductModifyResponse.cs} (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiModifyStatusRequest.cs => Product/ProductModifyStatusRequest.cs} (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiModifyStatusResponse.cs => Product/ProductModifyStatusResponse.cs} (71%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryClassInfoRequest.cs => Product/ProductQueryClassInfoRequest.cs} (71%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryClassInfoResponse.cs => Product/ProductQueryClassInfoResponse.cs} (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryRequest.cs => Product/ProductQueryRequest.cs} (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryResponse.cs => Product/ProductQueryResponse.cs} (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryReviewRequest.cs => Product/ProductQueryReviewRequest.cs} (91%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryReviewResponse.cs => Product/ProductQueryReviewResponse.cs} (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryTemplateInfoRequest.cs => Product/ProductQueryTemplateInfoRequest.cs} (70%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/{ProductApiQueryTemplateInfoResponse.cs => Product/ProductQueryTemplateInfoResponse.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/{ProductApiAddQualificationRequest.cs => ProductAddQualificationRequest.cs} (99%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/{ProductApiAddQualificationResponse.cs => ProductAddQualificationResponse.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/{ProductApiModifyQualificationRequest.cs => ProductModifyQualificationRequest.cs} (95%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/{ProductApiModifyQualificationResponse.cs => ProductModifyQualificationResponse.cs} (76%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/{ProductApiQueryQualificationRequest.cs => ProductQueryQualificationRequest.cs} (96%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/{ProductApiQueryQualificationResponse.cs => ProductQueryQualificationResponse.cs} (98%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/{ProductApiModifyRefundRuleRequest.cs => ProductModifyRefundRuleRequest.cs} (87%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/{ProductApiModifyRefundRuleResponse.cs => ProductModifyRefundRuleResponse.cs} (70%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/{ProductApiQueryRefundRuleMetaRequest.cs => ProductQueryRefundRuleMetaRequest.cs} (70%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/{ProductApiQueryRefundRuleMetaResponse.cs => ProductQueryRefundRuleMetaResponse.cs} (94%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/{ProductApiQueryResourceStatusRequest.cs => ProductQueryResourceStatusRequest.cs} (85%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/{ProductApiQueryResourceStatusResponse.cs => ProductQueryResourceStatusResponse.cs} (93%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/{ProductApiUploadResourceRequest.cs => ProductUploadResourceRequest.cs} (92%) rename src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/{ProductApiUploadResourceResponse.cs => ProductUploadResourceResponse.cs} (91%) create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.json rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/{OpenApiAuthThirdPartyTokenV2Response.json => OpenAuthThirdPartyTokenV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/{OpenApiTpAppAuthGenerateLinkV3Request.json => OpenTpAppAuthGenerateLinkV3Request.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/{OpenApiTpAppAuthGenerateLinkV3Response.json => OpenTpAppAuthGenerateLinkV3Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/{OpenApiTpAppAuthGetAuthAppListV2Response.json => OpenTpAppAuthGetAuthAppListV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/{OpenApiTpAppAuthGetAuthTokenV2Response.json => OpenTpAppAuthGetAuthTokenV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/{OpenApiTpAppAuthRetrieveAuthCodeV2Request.json => OpenTpAppAuthRetrieveAuthCodeV2Request.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/{OpenApiTpAppAuthRetrieveAuthCodeV2Response.json => OpenTpAppAuthRetrieveAuthCodeV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppFile/{OpenApiTpAppFileUploadMaterialV2Response.json => OpenTpAppFileUploadMaterialV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/{OpenApiTpAppTemplateAddTemplateV2Request.json => OpenTpAppTemplateAddTemplateV2Request.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/{OpenApiThirdPartyTemplateDeleteTemplateV1Request.json => OpenTpAppTemplateDeleteTemplateV2Request.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/{OpenApiTpAppTemplateGetTemplateAppListV2Response.json => OpenTpAppTemplateGetTemplateAppListV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/{OpenApiTpAppTemplateGetTemplateListV2Response.json => OpenTpAppTemplateGetTemplateListV2Response.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/{ProductApiSyncCallbackUrlRequest.json => ProductSyncCallbackUrlRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/{ProductApiSyncCallbackUrlResponse.json => ProductSyncCallbackUrlResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiAddRequest.json => Product/ProductAddRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiAddResponse.json => Product/ProductAddResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiModifyNoAuditRequest.json => Product/ProductModifyNoAuditRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiModifyNoAuditResponse.json => Product/ProductModifyNoAuditResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiModifyRequest.json => Product/ProductModifyRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiModifyResponse.json => Product/ProductModifyResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiModifyStatusRequest.json => Product/ProductModifyStatusRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiModifyStatusResponse.json => Product/ProductModifyStatusResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryClassInfoRequest.json => Product/ProductQueryClassInfoRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryClassInfoResponse.json => Product/ProductQueryClassInfoResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryRequest.json => Product/ProductQueryRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryResponse.json => Product/ProductQueryResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryReviewRequest.json => Product/ProductQueryReviewRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryReviewResponse.json => Product/ProductQueryReviewResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryTemplateInfoRequest.json => Product/ProductQueryTemplateInfoRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/{ProductApiQueryTemplateInfoResponse.json => Product/ProductQueryTemplateInfoResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/{ProductApiAddQualificationRequest.json => ProductAddQualificationRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/{ProductApiAddQualificationResponse.json => ProductAddQualificationResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/{ProductApiModifyQualificationRequest.json => ProductModifyQualificationRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/{ProductApiModifyQualificationResponse.json => ProductModifyQualificationResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/{ProductApiQueryQualificationRequest.json => ProductQueryQualificationRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/{ProductApiQueryQualificationResponse.json => ProductQueryQualificationResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/{ProductApiModifyRefundRuleRequest.json => ProductModifyRefundRuleRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/{ProductApiQueryRefundRuleMetaRequest.json => ProductQueryRefundRuleMetaRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/{ProductApiQueryRefundRuleMetaResponse.json => ProductQueryRefundRuleMetaResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/{ProductApiQueryResourceStatusRequest.json => ProductQueryResourceStatusRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/{ProductApiQueryResourceStatusResponse.json => ProductQueryResourceStatusResponse.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/{ProductApiUploadResourceRequest.json => ProductUploadResourceRequest.json} (100%) rename test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/{ProductApiUploadResourceResponse.json => ProductUploadResourceResponse.json} (100%) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsBasicInfoExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsBasicInfoExtensions.cs new file mode 100644 index 00000000..72c3938d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsBasicInfoExtensions.cs @@ -0,0 +1,149 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsBasicInfoExtensions + { + /// + /// 异步调用 [GET] /apps/v2/basic_info/get_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsBasicInfoGetInfoV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsBasicInfoGetInfoV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v2", "basic_info", "get_info") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v2/basic_info/check_app_name 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsBasicInfoCheckAppNameV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsBasicInfoCheckAppNameV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v2", "basic_info", "check_app_name") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/basic_info/modify_app_name 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsBasicInfoModifyAppNameV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsBasicInfoModifyAppNameV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "basic_info", "modify_app_name") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/basic_info/modify_app_intro 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsBasicInfoModifyAppIntroductionV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsBasicInfoModifyAppIntroductionV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "basic_info", "modify_app_intro") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/basic_info/modify_app_icon 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsBasicInfoModifyAppIconV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsBasicInfoModifyAppIconV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "basic_info", "modify_app_icon") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/basic_info/get_qr_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsBasicInfoGetQrcodeV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsBasicInfoGetQrcodeV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "basic_info", "get_qr_code") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCategoryExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCategoryExtensions.cs new file mode 100644 index 00000000..bfca97cc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCategoryExtensions.cs @@ -0,0 +1,126 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsCategoryExtensions + { + /// + /// 异步调用 [GET] /apps/v1/category/get_all_categories 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsCategoryGetAllCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsCategoryGetAllCategoriesV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "category", "get_all_categories") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/category/get_audit_categories 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsCategoryGetAuditCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsCategoryGetAuditCategoriesV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "category", "get_audit_categories") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/category/add_categories 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsCategoryAddCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsCategoryAddCategoriesV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "category", "add_categories") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/category/del_categories 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsCategoryDeleteCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsCategoryDeleteCategoriesV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "category", "del_categories") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/category/supply_categories 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsCategorySupplyCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsCategorySupplyCategoriesV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "category", "supply_categories") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCreditScoreExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCreditScoreExtensions.cs new file mode 100644 index 00000000..d765ffc5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsCreditScoreExtensions.cs @@ -0,0 +1,34 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsCreditScoreExtensions + { + /// + /// 异步调用 [GET] /apps/v2/credit_score/get_credit_score 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsCreditScoreGetCreditScoreV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsCreditScoreGetCreditScoreV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v2", "credit_score", "get_credit_score") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsDomainExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsDomainExtensions.cs new file mode 100644 index 00000000..41f8363a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsDomainExtensions.cs @@ -0,0 +1,57 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsDomainExtensions + { + /// + /// 异步调用 [POST] /apps/v2/domain/modify_server_domain 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsDomainModifyServerDomainV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsDomainModifyServerDomainV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "domain", "modify_server_domain") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v2/domain/modify_webview_domain 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsDomainModifyWebviewDomainV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsDomainModifyWebviewDomainV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "domain", "modify_webview_domain") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsFileExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsFileExtensions.cs new file mode 100644 index 00000000..1ec16af2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsFileExtensions.cs @@ -0,0 +1,44 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsFileExtensions + { + /// + /// 异步调用 [POST] /apps/v2/file/upload_material 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsFileUploadMaterialV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsFileUploadMaterialV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.MaterialFileName is null) + request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + (request.MaterialType == 8 ? ".pdf" : ".jpg"); + + if (request.MaterialFileContentType is null) + request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName) ?? (request.MaterialType == 8 ? "application/pdf" : "image/jpeg"); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v2", "file", "upload_material") + .WithHeader("access-token", request.AuthorizerAccessToken); + + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType, formDataName: "material_file"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); + + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsTrialExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsTrialExtensions.cs new file mode 100644 index 00000000..90949bbb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsTrialExtensions.cs @@ -0,0 +1,34 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsTrialExtensions + { + /// + /// 异步调用 [GET] /apps/v2/trial/get_trial_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsTrialGetTrialInfoV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsTrialGetTrialInfoV2Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v2", "trial", "get_trial_info") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs index 73fd9024..480aa32c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs @@ -48,6 +48,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppUploadMaterialV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppUploadMaterialV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -57,7 +58,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + (request.MaterialType == 8 ? ".pdf" : ".jpg"); if (request.MaterialFileContentType is null) - request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName); + request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName) ?? (request.MaterialType == 8 ? "application/pdf" : "image/jpeg"); IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "microapp", "upload_material") @@ -65,7 +66,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("authorizer_access_token", request.AuthorizerAccessToken); - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType!, formDataName: "material_file"); + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType, formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -83,6 +84,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppInfoV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppInfoV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -108,6 +110,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppQrcodeV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppQrcodeV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -133,6 +136,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppCheckAppNameV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCheckAppNameV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -159,6 +163,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppModifyAppNameV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppNameV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -184,6 +189,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppModifyAppIntroductionV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppIntroductionV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -209,6 +215,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppModifyAppIconV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyAppIconV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -234,6 +241,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppAllCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppAllCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -259,6 +267,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -284,6 +293,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppAddCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppAddCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -309,6 +319,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppDeleteCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppDeleteCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -334,6 +345,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppSupplyCategoriesV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppSupplyCategoriesV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -359,6 +371,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppModifyServerDomainV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyServerDomainV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -384,6 +397,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppModifyWebviewDomainV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppModifyWebviewDomainV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -409,6 +423,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2023-10-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppQualityRatingV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppQualityRatingV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -434,6 +449,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public static async Task ExecuteOpenApiMicroAppAppCreditScoreV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppAppCreditScoreV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs index 5995da64..b66fca2e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions.cs @@ -57,13 +57,16 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyThirdPartyExtensions if (request.MaterialFileName is null) request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + if (request.MaterialFileContentType is null) + request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName) ?? "image/jpeg"; + IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "v1", "tp", "upload_pic_material") .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("v1", "tp", "upload_pic_material")) .SetQueryParam("component_appid", request.ComponentAppId) .SetQueryParam("component_access_token", request.ComponentAccessToken); - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType, formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs index 32958a9f..54a78deb 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions.cs @@ -20,7 +20,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions /// /// /// - public static async Task ExecuteOpenApiAuthThirdPartyTokenV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiAuthThirdPartyTokenV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenAuthThirdPartyTokenV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenAuthThirdPartyTokenV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -38,7 +38,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions .SetQueryParam("component_appsecret", request.ComponentAppSecret) .SetQueryParam("component_ticket", request.ComponentTicket); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -52,7 +52,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppAuthGenerateLinkV3Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthGenerateLinkV3Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppAuthGenerateLinkV3Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppAuthGenerateLinkV3Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -61,7 +61,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v3", "auth", "gen_link") .WithHeader("access-token", request.ComponentAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -76,7 +76,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppAuthGetAuthTokenV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthGetAuthTokenV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppAuthGetAuthTokenV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppAuthGetAuthTokenV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -87,7 +87,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions .SetQueryParam("authorization_code", request.AuthorizationCode) .SetQueryParam("authorizer_refresh_token", request.AuthorizerAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -101,7 +101,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppAuthRetrieveAuthCodeV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthRetrieveAuthCodeV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppAuthRetrieveAuthCodeV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppAuthRetrieveAuthCodeV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -110,7 +110,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "auth", "retrieve_auth_code") .WithHeader("access-token", request.ComponentAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -124,7 +124,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppAuthGetAuthAppListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppAuthGetAuthAppListV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppAuthGetAuthAppListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppAuthGetAuthAppListV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -135,7 +135,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppAuthExtensions .SetQueryParam("size", request.PageSize) .WithHeader("access-token", request.ComponentAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs index ad4e1e51..66398a55 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions.cs @@ -20,7 +20,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppFileUploadMaterialV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppFileUploadMaterialV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppFileUploadMaterialV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppFileUploadMaterialV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -28,14 +28,17 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppFileExtensions if (request.MaterialFileName is null) request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + if (request.MaterialFileContentType is null) + request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName) ?? "image/jpeg"; + IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "file", "upload_material") .WithHeader("access-token", request.ComponentAccessToken); - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType, formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); - return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs index 3350758f..78480068 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions.cs @@ -19,7 +19,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppTemplateGetTemplateAppListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateGetTemplateAppListV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppTemplateGetTemplateAppListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppTemplateGetTemplateAppListV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -28,7 +28,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions .CreateFlurlRequest(request, HttpMethod.Get, "tpapp", "v2", "template", "get_tpl_app_list") .WithHeader("access-token", request.ComponentAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -42,7 +42,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppTemplateGetTemplateListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateGetTemplateListV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppTemplateGetTemplateListV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppTemplateGetTemplateListV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -51,7 +51,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions .CreateFlurlRequest(request, HttpMethod.Get, "tpapp", "v2", "template", "get_tpl_list") .WithHeader("access-token", request.ComponentAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -65,7 +65,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppTemplateAddTemplateV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateAddTemplateV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppTemplateAddTemplateV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppTemplateAddTemplateV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -74,7 +74,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "template", "add_tpl") .WithHeader("access-token", request.ComponentAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -88,7 +88,7 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions /// /// /// - public static async Task ExecuteOpenApiTpAppTemplateDeleteTemplateV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiTpAppTemplateDeleteTemplateV2Request request, CancellationToken cancellationToken = default) + public static async Task ExecuteOpenTpAppTemplateDeleteTemplateV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenTpAppTemplateDeleteTemplateV2Request 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 @@ public static class DouyinMicroAppOpenApiClientExecuteTpAppTemplateExtensions .CreateFlurlRequest(request, HttpMethod.Post, "tpapp", "v2", "template", "add_tpl") .WithHeader("access-token", request.ComponentAccessToken); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Request.cs new file mode 100644 index 00000000..7fbab145 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/basic_info/check_app_name 接口的请求。 + /// + public class OpenAppsBasicInfoCheckAppNameV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置待检测的小程序名称。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string AppName { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Response.cs new file mode 100644 index 00000000..72b6d4cc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoCheckAppNameV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/basic_info/check_app_name 接口的响应。 + /// + public class OpenAppsBasicInfoCheckAppNameV2Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Request.cs new file mode 100644 index 00000000..8f975394 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/basic_info/get_info 接口的请求。 + /// + public class OpenAppsBasicInfoGetInfoV2Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.cs new file mode 100644 index 00000000..0b1a7bd1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.cs @@ -0,0 +1,256 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/basic_info/get_info 接口的响应。 + /// + public class OpenAppsBasicInfoGetInfoV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class NewNameAuditInfo + { + /// + /// 获取或设置新名称。 + /// + [Newtonsoft.Json.JsonProperty("new_name")] + [System.Text.Json.Serialization.JsonPropertyName("new_name")] + public string NewName { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("new_name_audit_state")] + [System.Text.Json.Serialization.JsonPropertyName("new_name_audit_state")] + public int AuditState { get; set; } + + /// + /// 获取或设置剩余更改次数。 + /// + [Newtonsoft.Json.JsonProperty("remaining_times")] + [System.Text.Json.Serialization.JsonPropertyName("remaining_times")] + public int RemainingTimes { get; set; } + + /// + /// 获取或设置审核拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? RejectReason { get; set; } + + /// + /// 获取或设置修改建议。 + /// + [Newtonsoft.Json.JsonProperty("advice")] + [System.Text.Json.Serialization.JsonPropertyName("advice")] + public string? Advice { get; set; } + } + + public class NewIntroductionAuditInfo + { + /// + /// 获取或设置新简介。 + /// + [Newtonsoft.Json.JsonProperty("new_intro")] + [System.Text.Json.Serialization.JsonPropertyName("new_intro")] + public string NewIntroduction { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("new_intro_audit_state")] + [System.Text.Json.Serialization.JsonPropertyName("new_intro_audit_state")] + public int AuditState { get; set; } + + /// + /// 获取或设置剩余更改次数。 + /// + [Newtonsoft.Json.JsonProperty("remaining_times")] + [System.Text.Json.Serialization.JsonPropertyName("remaining_times")] + public int RemainingTimes { get; set; } + + /// + /// 获取或设置审核拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? RejectReason { get; set; } + + /// + /// 获取或设置修改建议。 + /// + [Newtonsoft.Json.JsonProperty("advice")] + [System.Text.Json.Serialization.JsonPropertyName("advice")] + public string? Advice { get; set; } + } + + public class NewIconAuditInfo + { + /// + /// 获取或设置新图标 URL。 + /// + [Newtonsoft.Json.JsonProperty("new_icon")] + [System.Text.Json.Serialization.JsonPropertyName("new_icon")] + public string NewIconUrl { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("new_icon_audit_state")] + [System.Text.Json.Serialization.JsonPropertyName("new_icon_audit_state")] + public int AuditState { get; set; } + + /// + /// 获取或设置剩余更改次数。 + /// + [Newtonsoft.Json.JsonProperty("remaining_times")] + [System.Text.Json.Serialization.JsonPropertyName("remaining_times")] + public int RemainingTimes { get; set; } + + /// + /// 获取或设置审核拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? RejectReason { get; set; } + + /// + /// 获取或设置修改建议。 + /// + [Newtonsoft.Json.JsonProperty("advice")] + [System.Text.Json.Serialization.JsonPropertyName("advice")] + public string? Advice { get; set; } + } + + public class CategoryAuditInfo + { + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("app_category")] + [System.Text.Json.Serialization.JsonPropertyName("app_category")] + public string CategoryIdString { get; set; } = default!; + + /// + /// 获取或设置服务类目名称(以短横线分隔)。 + /// + [Newtonsoft.Json.JsonProperty("app_category_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_category_name")] + public string CategoryNameString { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("app_category_audit_state")] + [System.Text.Json.Serialization.JsonPropertyName("app_category_audit_state")] + public int AuditState { get; set; } + + /// + /// 获取或设置审核拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? RejectReason { get; set; } + } + + public class SubjectAuditInfo + { + /// + /// 获取或设置主体类型。 + /// + [Newtonsoft.Json.JsonProperty("subject_type")] + [System.Text.Json.Serialization.JsonPropertyName("subject_type")] + public int SubjectType { get; set; } + + /// + /// 获取或设置主体名称。 + /// + [Newtonsoft.Json.JsonProperty("subject_name")] + [System.Text.Json.Serialization.JsonPropertyName("subject_name")] + public string SubjectName { get; set; } = default!; + } + } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置小程序状态。 + /// + [Newtonsoft.Json.JsonProperty("app_state")] + [System.Text.Json.Serialization.JsonPropertyName("app_state")] + public int AppState { get; set; } + + /// + /// 获取或设置小程序简介。 + /// + [Newtonsoft.Json.JsonProperty("app_intro")] + [System.Text.Json.Serialization.JsonPropertyName("app_intro")] + public string AppIntroduction { get; set; } = default!; + + /// + /// 获取或设置小程序图标 URL。 + /// + [Newtonsoft.Json.JsonProperty("app_icon")] + [System.Text.Json.Serialization.JsonPropertyName("app_icon")] + public string AppIconUrl { get; set; } = default!; + + /// + /// 获取或设置新名称审核信息。 + /// + [Newtonsoft.Json.JsonProperty("new_name_audit_info")] + [System.Text.Json.Serialization.JsonPropertyName("new_name_audit_info")] + public Types.NewNameAuditInfo? NewNameAuditInfo { get; set; } + + /// + /// 获取或设置新简介审核信息。 + /// + [Newtonsoft.Json.JsonProperty("new_intro_audit_info")] + [System.Text.Json.Serialization.JsonPropertyName("new_intro_audit_info")] + public Types.NewIntroductionAuditInfo? NewIntroductionAuditInfo { get; set; } + + /// + /// 获取或设置新图标审核信息。 + /// + [Newtonsoft.Json.JsonProperty("new_icon_audit_info")] + [System.Text.Json.Serialization.JsonPropertyName("new_icon_audit_info")] + public Types.NewIconAuditInfo? NewIconAuditInfo { get; set; } + + /// + /// 获取或设置服务类目审核信息列表。 + /// + [Newtonsoft.Json.JsonProperty("app_categories_audit_info")] + [System.Text.Json.Serialization.JsonPropertyName("app_categories_audit_info")] + public Types.CategoryAuditInfo[]? CategoryAuditInfoList { get; set; } + + /// + /// 获取或设置主体审核信息。 + /// + [Newtonsoft.Json.JsonProperty("subject_audit_info")] + [System.Text.Json.Serialization.JsonPropertyName("subject_audit_info")] + public Types.SubjectAuditInfo? SubjectAuditInfo { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.cs new file mode 100644 index 00000000..77ef6caa --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.cs @@ -0,0 +1,23 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/get_qr_code 接口的请求。 + /// + public class OpenAppsBasicInfoGetQrcodeV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置版本。 + /// 默认值:"current" + /// + [Newtonsoft.Json.JsonProperty("version")] + [System.Text.Json.Serialization.JsonPropertyName("version")] + public string Version { get; set; } = "current"; + + /// + /// 获取或设置小程序页面路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string PagePath { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.cs new file mode 100644 index 00000000..c2b2d8ab --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/get_qr_code 接口的响应。 + /// + public class OpenAppsBasicInfoGetQrcodeV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置二维码链接。 + /// + [Newtonsoft.Json.JsonProperty("qr_code_url")] + [System.Text.Json.Serialization.JsonPropertyName("qr_code_url")] + public string QrcodeUrl { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Request.cs new file mode 100644 index 00000000..c815f301 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/modify_app_icon 接口的请求。 + /// + public class OpenAppsBasicInfoModifyAppIconV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置准备修改的小程序图标路径。 + /// + [Newtonsoft.Json.JsonProperty("new_icon_path")] + [System.Text.Json.Serialization.JsonPropertyName("new_icon_path")] + public string NewIconPath { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Response.cs new file mode 100644 index 00000000..43de879a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIconV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/modify_app_icon 接口的响应。 + /// + public class OpenAppsBasicInfoModifyAppIconV2Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.cs new file mode 100644 index 00000000..1735d15d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/modify_app_intro 接口的请求。 + /// + public class OpenAppsBasicInfoModifyAppIntroductionV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置准备修改的小程序简介。 + /// + [Newtonsoft.Json.JsonProperty("new_intro")] + [System.Text.Json.Serialization.JsonPropertyName("new_intro")] + public string NewIntroduction { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Response.cs new file mode 100644 index 00000000..f9e82222 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/modify_app_intro 接口的响应。 + /// + public class OpenAppsBasicInfoModifyAppIntroductionV2Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.cs new file mode 100644 index 00000000..3ebee0dc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/modify_app_name 接口的请求。 + /// + public class OpenAppsBasicInfoModifyAppNameV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置准备修改的小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("new_name")] + [System.Text.Json.Serialization.JsonPropertyName("new_name")] + public string NewName { get; set; } = string.Empty; + + /// + /// 获取或设置审核材料路径。 + /// + [Newtonsoft.Json.JsonProperty("material_file_path")] + [System.Text.Json.Serialization.JsonPropertyName("material_file_path")] + public string? MaterialFilePath { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Response.cs new file mode 100644 index 00000000..ab0d2c9c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/basic_info/modify_app_name 接口的响应。 + /// + public class OpenAppsBasicInfoModifyAppNameV2Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.cs new file mode 100644 index 00000000..6199aee4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.cs @@ -0,0 +1,64 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/category/add_categories 接口的请求。 + /// + public class OpenAppsCategoryAddCategoriesV1Request : DouyinMicroAppOpenApiRequest + { + public static class Types + { + public class CategoryInfo + { + public static class Types + { + public class Certification + { + /// + /// 获取或设置资质 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = string.Empty; + + /// + /// 获取或设置资质名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = string.Empty; + + /// + /// 获取或设置资质文件路径列表。 + /// + [Newtonsoft.Json.JsonProperty("path_list")] + [System.Text.Json.Serialization.JsonPropertyName("path_list")] + public IList? FilePathList { get; set; } + } + } + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category")] + [System.Text.Json.Serialization.JsonPropertyName("category")] + public string CategoryIdString { get; set; } = string.Empty; + + /// + /// 获取或设置服务类目资质信息列表。 + /// + [Newtonsoft.Json.JsonProperty("category_cert")] + [System.Text.Json.Serialization.JsonPropertyName("category_cert")] + public IList? CertificationList { get; set; } + } + } + + /// + /// 获取或设置服务类目信息列表。 + /// + [Newtonsoft.Json.JsonProperty("category_info")] + [System.Text.Json.Serialization.JsonPropertyName("category_info")] + public IList CategoryInfoList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Response.cs new file mode 100644 index 00000000..963eb374 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryAddCategoriesV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/category/add_categories 接口的响应。 + /// + public class OpenAppsCategoryAddCategoriesV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.cs new file mode 100644 index 00000000..fcb4673b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/category/del_categories 接口的请求。 + /// + public class OpenAppsCategoryDeleteCategoriesV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)列表。 + /// + [Newtonsoft.Json.JsonProperty("categories")] + [System.Text.Json.Serialization.JsonPropertyName("categories")] + public IList CategoryIdStringList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Response.cs new file mode 100644 index 00000000..ce045359 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/category/del_categories 接口的响应。 + /// + public class OpenAppsCategoryDeleteCategoriesV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Request.cs new file mode 100644 index 00000000..ec5bdd51 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/category/get_all_categories 接口的请求。 + /// + public class OpenAppsCategoryGetAllCategoriesV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.cs new file mode 100644 index 00000000..014b2a97 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.cs @@ -0,0 +1,123 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/category/get_all_categories 接口的响应。 + /// + public class OpenAppsCategoryGetAllCategoriesV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Category + { + public static class Types + { + public class Certification + { + public static class Types + { + public class Detail + { + /// + /// 获取或设置资质 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; + + /// + /// 获取或设置资质名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + } + } + + /// + /// 获取或设置需要的资质汇总列表。 + /// + [Newtonsoft.Json.JsonProperty("relation")] + [System.Text.Json.Serialization.JsonPropertyName("relation")] + public string[] RelationList { get; set; } = default!; + + /// + /// 获取或设置需要的资质的详细信息列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.Detail[] DetailList { get; set; } = default!; + + /// + /// 获取或设置解释说明。 + /// + [Newtonsoft.Json.JsonProperty("explanation")] + [System.Text.Json.Serialization.JsonPropertyName("explanation")] + public string Explanation { get; set; } = default!; + } + } + + /// + /// 获取或设置服务类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + public int Id { get; set; } + + /// + /// 获取或设置服务类目名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置服务类目级别。 + /// + [Newtonsoft.Json.JsonProperty("level")] + [System.Text.Json.Serialization.JsonPropertyName("level")] + public int Level { get; set; } + + /// + /// 获取或设置一级类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("fpid")] + [System.Text.Json.Serialization.JsonPropertyName("fpid")] + public int? FirstCategoryId { get; set; } + + /// + /// 获取或设置二级类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("spid")] + [System.Text.Json.Serialization.JsonPropertyName("spid")] + public int? SecondCategoryId { get; set; } + + /// + /// 获取或设置需要的资质信息。 + /// + [Newtonsoft.Json.JsonProperty("certification")] + [System.Text.Json.Serialization.JsonPropertyName("certification")] + public Types.Certification? Certification { get; set; } + } + } + + /// + /// 获取或设置服务类目列表。 + /// + [Newtonsoft.Json.JsonProperty("category_list")] + [System.Text.Json.Serialization.JsonPropertyName("category_list")] + public Types.Category[] CategoryList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Request.cs new file mode 100644 index 00000000..d98d6094 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/category/get_audit_categories 接口的请求。 + /// + public class OpenAppsCategoryGetAuditCategoriesV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.cs new file mode 100644 index 00000000..b3cb9586 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.cs @@ -0,0 +1,124 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/category/get_audit_categories 接口的响应。 + /// + public class OpenAppsCategoryGetAuditCategoriesV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class CategoryAuditInfo + { + public static class Types + { + public class Certification + { + /// + /// 获取或设置资质 ID。 + /// + [Newtonsoft.Json.JsonProperty("id")] + [System.Text.Json.Serialization.JsonPropertyName("id")] + public string Id { get; set; } = default!; + + /// + /// 获取或设置资质名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置资质文件路径列表。 + /// + [Newtonsoft.Json.JsonProperty("path_list")] + [System.Text.Json.Serialization.JsonPropertyName("path_list")] + public string[]? FilePathList { get; set; } + } + } + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category")] + [System.Text.Json.Serialization.JsonPropertyName("category")] + public string CategoryIdString { get; set; } = default!; + + /// + /// 获取或设置服务类目名称字符串(以短横线分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category_name")] + [System.Text.Json.Serialization.JsonPropertyName("category_name")] + public string CategoryNameString { get; set; } = default!; + + /// + /// 获取或设置服务类目资质 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category_cert_ids")] + [System.Text.Json.Serialization.JsonPropertyName("category_cert_ids")] + public string CertificationIdString { get; set; } = default!; + + /// + /// 获取或设置服务类目资质信息列表。 + /// + [Newtonsoft.Json.JsonProperty("category_cert")] + [System.Text.Json.Serialization.JsonPropertyName("category_cert")] + public Types.Certification[] CertificationList { get; set; } = default!; + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("category_audit_state")] + [System.Text.Json.Serialization.JsonPropertyName("category_audit_state")] + public int AuditState { get; set; } + + /// + /// 获取或设置审核拒绝原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? RejectReason { get; set; } + } + } + + /// + /// 获取或设置服务类目审核信息列表。 + /// + [Newtonsoft.Json.JsonProperty("app_category_audit_info")] + [System.Text.Json.Serialization.JsonPropertyName("app_category_audit_info")] + public Types.CategoryAuditInfo[] CategoryAuditInfoList { get; set; } = default!; + + /// + /// 获取或设置剩余修改次数。 + /// + [Newtonsoft.Json.JsonProperty("remaining_times")] + [System.Text.Json.Serialization.JsonPropertyName("remaining_times")] + public int RemainingTimes { get; set; } + + /// + /// 获取或设置本月总共可以修改次数。 + /// + [Newtonsoft.Json.JsonProperty("category_change_limit")] + [System.Text.Json.Serialization.JsonPropertyName("category_change_limit")] + public int CategoryChangeLimit { get; set; } + + /// + /// 获取或设置最多可以设置的服务类目数量。 + /// + [Newtonsoft.Json.JsonProperty("category_limit")] + [System.Text.Json.Serialization.JsonPropertyName("category_limit")] + public int CategoryTotalLimit { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.cs new file mode 100644 index 00000000..20217671 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.cs @@ -0,0 +1,44 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/category/supply_categories 接口的请求。 + /// + public class OpenAppsCategorySupplyCategoriesV1Request : DouyinMicroAppOpenApiRequest + { + public static class Types + { + public class CategoryInfo + { + public static class Types + { + public class Certification : OpenAppsCategoryAddCategoriesV1Request.Types.CategoryInfo.Types.Certification + { + } + } + + /// + /// 获取或设置服务类目 ID 字符串(以逗号分隔)。 + /// + [Newtonsoft.Json.JsonProperty("category")] + [System.Text.Json.Serialization.JsonPropertyName("category")] + public string CategoryIdString { get; set; } = string.Empty; + + /// + /// 获取或设置服务类目资质信息列表。 + /// + [Newtonsoft.Json.JsonProperty("category_cert")] + [System.Text.Json.Serialization.JsonPropertyName("category_cert")] + public IList? CertificationList { get; set; } + } + } + + /// + /// 获取或设置服务类目信息列表。 + /// + [Newtonsoft.Json.JsonProperty("category_info")] + [System.Text.Json.Serialization.JsonPropertyName("category_info")] + public IList CategoryInfoList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Response.cs new file mode 100644 index 00000000..9a69a7a9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCategory/OpenAppsCategorySupplyCategoriesV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/category/supply_categories 接口的响应。 + /// + public class OpenAppsCategorySupplyCategoriesV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Request.cs new file mode 100644 index 00000000..5670ae2d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/credit_score/get_credit_score 接口的请求。 + /// + public class OpenAppsCreditScoreGetCreditScoreV2Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.cs new file mode 100644 index 00000000..cba5d1ef --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/credit_score/get_credit_score 接口的响应。 + /// + public class OpenAppsCreditScoreGetCreditScoreV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置信用分分值。 + /// + [Newtonsoft.Json.JsonProperty("credit_score")] + [System.Text.Json.Serialization.JsonPropertyName("credit_score")] + public int CreditScore { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.cs new file mode 100644 index 00000000..34b39455 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.cs @@ -0,0 +1,46 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/domain/modify_server_domain 接口的请求。 + /// + public class OpenAppsDomainModifyServerDomainV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置执行动作。 + /// 默认值:"get" + /// + [Newtonsoft.Json.JsonProperty("action")] + [System.Text.Json.Serialization.JsonPropertyName("action")] + public string Action { get; set; } = "get"; + + /// + /// 获取或设置 HTTP 域名列表。 + /// + [Newtonsoft.Json.JsonProperty("request")] + [System.Text.Json.Serialization.JsonPropertyName("request")] + public IList? RequestDomainList { get; set; } + + /// + /// 获取或设置 WebSocket 域名列表。 + /// + [Newtonsoft.Json.JsonProperty("socket")] + [System.Text.Json.Serialization.JsonPropertyName("socket")] + public IList? SocketDomainList { get; set; } + + /// + /// 获取或设置上传域名列表。 + /// + [Newtonsoft.Json.JsonProperty("upload")] + [System.Text.Json.Serialization.JsonPropertyName("upload")] + public IList? UploadDomainList { get; set; } + + /// + /// 获取或设置下载域名列表。 + /// + [Newtonsoft.Json.JsonProperty("download")] + [System.Text.Json.Serialization.JsonPropertyName("download")] + public IList? DownloadDomainList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.cs new file mode 100644 index 00000000..8e496148 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.cs @@ -0,0 +1,49 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/domain/modify_server_domain 接口的响应。 + /// + public class OpenAppsDomainModifyServerDomainV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置 HTTP 域名列表。 + /// + [Newtonsoft.Json.JsonProperty("request")] + [System.Text.Json.Serialization.JsonPropertyName("request")] + public string[]? RequestDomainList { get; set; } + + /// + /// 获取或设置 WebSocket 域名列表。 + /// + [Newtonsoft.Json.JsonProperty("socket")] + [System.Text.Json.Serialization.JsonPropertyName("socket")] + public string[]? SocketDomainList { get; set; } + + /// + /// 获取或设置上传域名列表。 + /// + [Newtonsoft.Json.JsonProperty("upload")] + [System.Text.Json.Serialization.JsonPropertyName("upload")] + public string[]? UploadDomainList { get; set; } + + /// + /// 获取或设置下载域名列表。 + /// + [Newtonsoft.Json.JsonProperty("download")] + [System.Text.Json.Serialization.JsonPropertyName("download")] + public string[]? DownloadDomainList { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data? Data { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.cs new file mode 100644 index 00000000..9ade28ca --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/domain/modify_webview_domain 接口的请求。 + /// + public class OpenAppsDomainModifyWebviewDomainV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置执行动作。 + /// 默认值:"get" + /// + [Newtonsoft.Json.JsonProperty("action")] + [System.Text.Json.Serialization.JsonPropertyName("action")] + public string Action { get; set; } = "get"; + + /// + /// 获取或设置 Webview 域名列表。 + /// + [Newtonsoft.Json.JsonProperty("webview")] + [System.Text.Json.Serialization.JsonPropertyName("webview")] + public IList? WebviewDomainList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.cs new file mode 100644 index 00000000..74aabbcd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/domain/modify_webview_domain 接口的响应。 + /// + public class OpenAppsDomainModifyWebviewDomainV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置 Webview 域名列表。 + /// + [Newtonsoft.Json.JsonProperty("webview")] + [System.Text.Json.Serialization.JsonPropertyName("webview")] + public string[]? WebviewDomainList { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data? Data { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Request.cs new file mode 100644 index 00000000..c8c3145f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Request.cs @@ -0,0 +1,38 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/file/upload_material 接口的请求。 + /// + public class OpenAppsFileUploadMaterialV2Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置上传文件类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int MaterialType { get; set; } + + /// + /// 获取或设置上传文件字节数组。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public byte[] MaterialFileBytes { get; set; } = Array.Empty(); + + /// + /// 获取或设置上传文件名。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? MaterialFileName { get; set; } + + /// + /// 获取或设置上传文件 MIME 类型。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? MaterialFileContentType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Response.cs new file mode 100644 index 00000000..c5fde9eb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsFile/OpenAppsFileUploadMaterialV2Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v2/file/upload_material 接口的响应。 + /// + public class OpenAppsFileUploadMaterialV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置资源路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string FilePath { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Request.cs new file mode 100644 index 00000000..019261b9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/trial/get_trial_info 接口的请求。 + /// + public class OpenAppsTrialGetTrialInfoV2Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.cs new file mode 100644 index 00000000..1021614a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.cs @@ -0,0 +1,115 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v2/trial/get_trial_info 接口的响应。 + /// + public class OpenAppsTrialGetTrialInfoV2Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class TrialLimitInfo + { + /// + /// 获取或设置是否被限制进阶能力。 + /// + [Newtonsoft.Json.JsonProperty("is_capability_limited")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("is_capability_limited")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool IsCapabilityLimited { get; set; } + + /// + /// 获取或设置是否被限制支付额度。 + /// + [Newtonsoft.Json.JsonProperty("is_payment_restricted")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("is_payment_restricted")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool IsPaymentRestricted { get; set; } + + /// + /// 获取或设置是否被限制流量。 + /// + [Newtonsoft.Json.JsonProperty("is_traffic_limited")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("is_traffic_limited")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool IsTrafficLimited { get; set; } + } + + public class TrialTaskInfo + { + /// + /// 获取或设置任务名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置任务目标。 + /// + [Newtonsoft.Json.JsonProperty("target")] + [System.Text.Json.Serialization.JsonPropertyName("target")] + public int Target { get; set; } + + /// + /// 获取或设置任务进度。 + /// + [Newtonsoft.Json.JsonProperty("progress")] + [System.Text.Json.Serialization.JsonPropertyName("progress")] + public int Progress { get; set; } + } + } + + /// + /// 获取或设置信用分分值。 + /// + [Newtonsoft.Json.JsonProperty("app_credit_score")] + [System.Text.Json.Serialization.JsonPropertyName("app_credit_score")] + public int CreditScore { get; set; } + + /// + /// 获取或设置是否处于试运营期。 + /// + [Newtonsoft.Json.JsonProperty("is_trial")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("is_trial")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool IsTrial { get; set; } + + /// + /// 获取或设置试运营期限制信息。 + /// + [Newtonsoft.Json.JsonProperty("trial_limit_info")] + [System.Text.Json.Serialization.JsonPropertyName("trial_limit_info")] + public Types.TrialLimitInfo? TrialLimitInfo { get; set; } + + /// + /// 获取或设置试运营期通过分数。 + /// + [Newtonsoft.Json.JsonProperty("trial_pass_score")] + [System.Text.Json.Serialization.JsonPropertyName("trial_pass_score")] + public int? TrialPassScore { get; set; } + + /// + /// 获取或设置试运营期任务列表。 + /// + [Newtonsoft.Json.JsonProperty("trial_task_info")] + [System.Text.Json.Serialization.JsonPropertyName("trial_task_info")] + public Types.TrialTaskInfo[]? TrialTaskList { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenAuthThirdPartyTokenV2Request.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenAuthThirdPartyTokenV2Request.cs index c2b86d26..097ca7be 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenAuthThirdPartyTokenV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /openapi/v2/auth/tp/token 接口的请求。 /// - public class OpenApiAuthThirdPartyTokenV2Request : DouyinMicroAppOpenApiRequest + public class OpenAuthThirdPartyTokenV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置第三方应用 AppSecret。如果不指定将使用构造 时的 参数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenAuthThirdPartyTokenV2Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenAuthThirdPartyTokenV2Response.cs index 585d938b..fe8eaba8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenAuthThirdPartyTokenV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /openapi/v2/auth/tp/token 接口的响应。 /// - public class OpenApiAuthThirdPartyTokenV2Response : DouyinMicroAppOpenApiResponse + public class OpenAuthThirdPartyTokenV2Response : DouyinMicroAppOpenApiResponse { /// [Newtonsoft.Json.JsonProperty("err_no")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGenerateLinkV3Request.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGenerateLinkV3Request.cs index 41e9dae6..8b66e2a2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGenerateLinkV3Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v3/auth/gen_link 接口的请求。 /// - public class OpenApiTpAppAuthGenerateLinkV3Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppAuthGenerateLinkV3Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置授权链接类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGenerateLinkV3Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGenerateLinkV3Response.cs index 57833c59..4018caad 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGenerateLinkV3Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v3/auth/gen_link 接口的响应。 /// - public class OpenApiTpAppAuthGenerateLinkV3Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppAuthGenerateLinkV3Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Request.cs similarity index 89% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Request.cs index 823dbc5d..163746e0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/auth/get_auth_app_list 接口的请求。 /// - public class OpenApiTpAppAuthGetAuthAppListV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppAuthGetAuthAppListV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置分页页数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Response.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Response.cs index 12741117..cc980138 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/auth/get_auth_app_list 接口的响应。 /// - public class OpenApiTpAppAuthGetAuthAppListV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppAuthGetAuthAppListV2Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Request.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Request.cs index d2a7edc8..562b6cbc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/auth/get_auth_token 接口的请求。 /// - public class OpenApiTpAppAuthGetAuthTokenV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppAuthGetAuthTokenV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置授权码。与字段 二选一。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Response.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Response.cs index ea7427f7..ce936608 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/auth/get_auth_token 接口的响应。 /// - public class OpenApiTpAppAuthGetAuthTokenV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppAuthGetAuthTokenV2Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Request.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Request.cs index b22b1ef4..d4a1527b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/auth/retrieve_auth_code 接口的请求。 /// - public class OpenApiTpAppAuthRetrieveAuthCodeV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppAuthRetrieveAuthCodeV2Request : DouyinMicroAppOpenApiRequest { /// [Newtonsoft.Json.JsonProperty("authorization_appid")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Response.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Response.cs index b75e9630..66fdd58b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/auth/retrieve_auth_code 接口的响应。 /// - public class OpenApiTpAppAuthRetrieveAuthCodeV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppAuthRetrieveAuthCodeV2Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenTpAppFileUploadMaterialV2Request.cs similarity index 72% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenTpAppFileUploadMaterialV2Request.cs index 6c298278..2b4d8771 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenTpAppFileUploadMaterialV2Request.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/file/upload_material 接口的请求。 /// - public class OpenApiTpAppFileUploadMaterialV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppFileUploadMaterialV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置上传的文件类型。 @@ -27,5 +27,12 @@ public class OpenApiTpAppFileUploadMaterialV2Request : DouyinMicroAppOpenApiRequ [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public string? MaterialFileName { get; set; } + + /// + /// 获取或设置资源文件 MIME 类型。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? MaterialFileContentType { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenTpAppFileUploadMaterialV2Response.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenTpAppFileUploadMaterialV2Response.cs index 04e7b3cb..06dfc8a3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppFile/OpenTpAppFileUploadMaterialV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/file/upload_material 接口的响应。 /// - public class OpenApiTpAppFileUploadMaterialV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppFileUploadMaterialV2Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Request.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Request.cs index a08a59fd..c9225568 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/template/add_tpl 接口的请求。 /// - public class OpenApiTpAppTemplateAddTemplateV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppTemplateAddTemplateV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置草稿 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Response.cs similarity index 69% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Response.cs index ed13078b..823eede5 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/template/add_tpl 接口的响应。 /// - public class OpenApiTpAppTemplateAddTemplateV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppTemplateAddTemplateV2Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Request.cs similarity index 83% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Request.cs index 767dc011..159e3e14 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/template/del_tpl 接口的请求。 /// - public class OpenApiTpAppTemplateDeleteTemplateV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppTemplateDeleteTemplateV2Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置模板 ID。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Response.cs similarity index 69% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Response.cs index 071c207c..2ba95cfc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateDeleteTemplateV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /tpapp/v2/template/del_tpl 接口的响应。 /// - public class OpenApiTpAppTemplateDeleteTemplateV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppTemplateDeleteTemplateV2Response : DouyinMicroAppOpenApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Request.cs similarity index 69% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Request.cs index 0ed0a4bc..8bc15ca4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/template/get_tpl_app_list 接口的请求。 /// - public class OpenApiTpAppTemplateGetTemplateAppListV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppTemplateGetTemplateAppListV2Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Response.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Response.cs index dd073a97..14d2df15 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/template/get_tpl_app_list 接口的响应。 /// - public class OpenApiTpAppTemplateGetTemplateAppListV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppTemplateGetTemplateAppListV2Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Request.cs similarity index 69% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Request.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Request.cs index 9e1a6697..0a98d192 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Request.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/template/get_tpl_list 接口的请求。 /// - public class OpenApiTpAppTemplateGetTemplateListV2Request : DouyinMicroAppOpenApiRequest + public class OpenTpAppTemplateGetTemplateListV2Request : DouyinMicroAppOpenApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Response.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Response.cs index 4a96139a..2b4f6654 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Response.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /tpapp/v2/template/get_tpl_list 接口的响应。 /// - public class OpenApiTpAppTemplateGetTemplateListV2Response : DouyinMicroAppOpenApiResponse + public class OpenTpAppTemplateGetTemplateListV2Response : DouyinMicroAppOpenApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs index f59979ef..91628f20 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Request.cs @@ -1,10 +1,12 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/add_categories 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppAddCategoriesV1Request : DouyinMicroAppOpenApiRequest { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs index cc28143c..7c530ebd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAddCategoriesV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/add_categories 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppAddCategoriesV1Response : OpenApiLegacyResponseBase { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs index 31a1e2dd..bd3e77dc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/all_categories 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppAllCategoriesV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs index b1071583..e5bf892b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppAllCategoriesV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/all_categories 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppAllCategoriesV1Response : OpenApiLegacyResponseBase { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs index 8aa222c5..c14e6098 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/categories 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppCategoriesV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs index 66cf7f5e..8604f161 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppCategoriesV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/categories 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppCategoriesV1Response : OpenApiLegacyResponseBase { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs index 9b6a5edc..d5ba2b03 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Request.cs @@ -1,10 +1,12 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/del_categories 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppDeleteCategoriesV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs index ad0831d0..5ec6b57b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppDeleteCategoriesV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/del_categories 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppDeleteCategoriesV1Response : OpenApiLegacyResponseBase { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs index 3b8c1e02..aeacc5fc 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Request.cs @@ -1,10 +1,12 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/supply_categories 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppSupplyCategoriesV1Request : DouyinMicroAppOpenApiRequest { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs index 9b57d146..b718d98b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/Category/OpenApiMicroAppAppSupplyCategoriesV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/supply_categories 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppSupplyCategoriesV1Response : OpenApiLegacyResponseBase { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs index a9bd2b73..0fea2060 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/check_app_name 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppCheckAppNameV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs index 290ac52f..23aa0fdd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCheckAppNameV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/check_app_name 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppCheckAppNameV1Response : OpenApiLegacyResponseBase { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs index dffe42c0..714a0c63 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/credit_score 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppCreditScoreV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs index f014697c..d027e214 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppCreditScoreV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/credit_score 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppCreditScoreV1Response : OpenApiLegacyResponseBase { public static class Types @@ -23,6 +26,6 @@ public class Data /// [Newtonsoft.Json.JsonProperty("data")] [System.Text.Json.Serialization.JsonPropertyName("data")] - public Types.Data? Data { get; set; } + public Types.Data Data { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs index 52664f6c..36f42201 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/info 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppInfoV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs index a38de279..dd9feb60 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppInfoV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/info 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppInfoV1Response : OpenApiLegacyResponseBase { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs index 541a3b10..45e24791 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_icon 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyAppIconV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs index 3bb900ab..764c5b46 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIconV1Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_icon 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyAppIconV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs index c91412c1..e44ae8ba 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_intro 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyAppIntroductionV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs index 7dfcb595..9b4cfe2f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppIntroductionV1Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_intro 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyAppIntroductionV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs index c3cc9f3e..f72d554b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_name 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyAppNameV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs index 92c1ba56..ed962c17 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyAppNameV1Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_app_name 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyAppNameV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs index 2ced81c2..bf9e643b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/modify_server_domain 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyServerDomainV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs index d5a4d5a1..0503c0f0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_server_domain 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyServerDomainV1Response : OpenApiLegacyResponseBase { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs index 2b1cc0dd..03d742be 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models @@ -5,11 +6,12 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/modify_webview_domain 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyWebviewDomainV1Request : DouyinMicroAppOpenApiRequest { /// /// 获取或设置执行动作。 - /// 默认值:get + /// 默认值:"get" /// [Newtonsoft.Json.JsonProperty("action")] [System.Text.Json.Serialization.JsonPropertyName("action")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs index 7f9a6bd5..8e5de630 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyWebviewDomainV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/modify_webview_domain 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppModifyWebviewDomainV1Response : OpenApiLegacyResponseBase { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs index 513500bc..adb48258 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Request.cs @@ -1,13 +1,16 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/app/qrcode 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppQrcodeV1Request : DouyinMicroAppOpenApiRequest { /// - /// 获取或设置新名称。 - /// 默认值:current + /// 获取或设置版本。 + /// 默认值:"current" /// [Newtonsoft.Json.JsonProperty("version")] [System.Text.Json.Serialization.JsonPropertyName("version")] diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs index 641212d9..6255981c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQrcodeV1Response.cs @@ -1,3 +1,4 @@ +using System; using System.Linq; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v1/microapp/app/qrcode 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppAppQrcodeV1Response : OpenApiLegacyResponseBase { public override bool IsSuccessful() diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs index 105812eb..1a8bce85 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/quality_rating 接口的请求。 /// + [Obsolete("相关接口或字段于 2023-10-23 下线。")] public class OpenApiMicroAppAppQualityRatingV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs index e8af4353..ca47b1c0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppQualityRatingV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/app/quality_rating 接口的响应。 /// + [Obsolete("相关接口或字段于 2023-10-23 下线。")] public class OpenApiMicroAppAppQualityRatingV1Response : OpenApiLegacyResponseBase { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs index 291f2b7a..e26c6bd2 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Request.cs @@ -1,10 +1,11 @@ -using System; +using System; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/upload_material 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppUploadMaterialV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs index 030d56db..2c136b21 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/OpenApiMicroAppUploadMaterialV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/upload_material 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-01-23 下线。")] public class OpenApiMicroAppUploadMaterialV1Response : OpenApiLegacyResponseBase { public static class Types @@ -14,7 +17,7 @@ public class Data /// [Newtonsoft.Json.JsonProperty("path")] [System.Text.Json.Serialization.JsonPropertyName("path")] - public string Path { get; set; } = default!; + public string FilePath { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs index b72ffddd..e2d77a19 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/OpenApiThirdPartyUploadPictureMaterialV1Request.cs @@ -28,5 +28,12 @@ public class OpenApiThirdPartyUploadPictureMaterialV1Request : DouyinMicroAppOpe [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public string? MaterialFileName { get; set; } + + /// + /// 获取或设置资源文件 MIME 类型。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? MaterialFileContentType { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteCallbackExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteCallbackExtensions.cs new file mode 100644 index 00000000..a7426095 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteCallbackExtensions.cs @@ -0,0 +1,33 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi +{ + public static class DouyinMicroAppProductApiClientExecuteCallbackExtensions + { + /// + /// 异步调用 [POST] /sync_callback_url 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductSyncCallbackUrlAsync(this DouyinMicroAppProductApiClient client, Models.ProductSyncCallbackUrlRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "sync_callback_url"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteProductExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteProductExtensions.cs index 996fcac1..2ac507b0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteProductExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteProductExtensions.cs @@ -19,7 +19,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiAddAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiAddRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductAddAsync(this DouyinMicroAppProductApiClient client, Models.ProductAddRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -31,7 +31,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions .CreateFlurlRequest(request, HttpMethod.Post, "add") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -45,7 +45,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductModifyAsync(this DouyinMicroAppProductApiClient client, Models.ProductModifyRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -57,7 +57,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions .CreateFlurlRequest(request, HttpMethod.Post, "modify") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -71,7 +71,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyStatusAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyStatusRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductModifyStatusAsync(this DouyinMicroAppProductApiClient client, Models.ProductModifyStatusRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -83,7 +83,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions .CreateFlurlRequest(request, HttpMethod.Post, "modify_status") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -97,7 +97,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiModifyNoAuditAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyNoAuditRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductModifyNoAuditAsync(this DouyinMicroAppProductApiClient client, Models.ProductModifyNoAuditRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -112,7 +112,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions .CreateFlurlRequest(request, HttpMethod.Post, "modify_no_audit") .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -126,7 +126,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductQueryAsync(this DouyinMicroAppProductApiClient client, Models.ProductQueryRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -134,7 +134,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "query"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -149,7 +149,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryReviewAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryReviewRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductQueryReviewAsync(this DouyinMicroAppProductApiClient client, Models.ProductQueryReviewRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -157,7 +157,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "query_review"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -171,7 +171,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryTemplateInfoAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryTemplateInfoRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductQueryTemplateInfoAsync(this DouyinMicroAppProductApiClient client, Models.ProductQueryTemplateInfoRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -179,7 +179,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "query_template_info"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } /// @@ -193,7 +193,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions /// /// /// - public static async Task ExecuteProductApiQueryClassInfoAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryClassInfoRequest request, CancellationToken cancellationToken = default) + public static async Task ExecuteProductQueryClassInfoAsync(this DouyinMicroAppProductApiClient client, Models.ProductQueryClassInfoRequest request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); if (request is null) throw new ArgumentNullException(nameof(request)); @@ -201,195 +201,7 @@ public static class DouyinMicroAppProductApiClientExecuteProductExtensions IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "query_class_info"); - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } - - #region Resource - /// - /// 异步调用 [POST] /upload_resource 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiUploadResourceAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiUploadResourceRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "upload_resource"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /query_resource_status 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiQueryResourceStatusAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryResourceStatusRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "query_resource_status"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region Qualification - /// - /// 异步调用 [POST] /add_qualification 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiAddQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiAddQualificationRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "add_qualification") - .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /modify_qualification 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiModifyQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyQualificationRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "modify_qualification") - .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /query_qualification 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiQueryQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryQualificationRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "query_qualification"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region RefundRule - /// - /// 异步调用 [POST] /query_refund_rule_meta 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiQueryRefundRuleMetaAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiQueryRefundRuleMetaRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "query_refund_rule_meta") - .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - - /// - /// 异步调用 [POST] /modify_refund_rule 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiModifyRefundRuleAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiModifyRefundRuleRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "modify_refund_rule") - .WithHeader("Aweme-Check-Type", request.SandboxCheckType); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion - - #region Callback - /// - /// 异步调用 [POST] /sync_callback_url 接口。 - /// - /// REF:
- /// - ///
- ///
- /// - /// - /// - /// - public static async Task ExecuteProductApiSyncCallbackUrlAsync(this DouyinMicroAppProductApiClient client, Models.ProductApiSyncCallbackUrlRequest request, CancellationToken cancellationToken = default) - { - if (client is null) throw new ArgumentNullException(nameof(client)); - if (request is null) throw new ArgumentNullException(nameof(request)); - - IFlurlRequest flurlReq = client - .CreateFlurlRequest(request, HttpMethod.Post, "sync_callback_url"); - - return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); - } - #endregion } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteQualificationExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteQualificationExtensions.cs new file mode 100644 index 00000000..cc9f5eb6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteQualificationExtensions.cs @@ -0,0 +1,79 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi +{ + public static class DouyinMicroAppProductApiClientExecuteQualificationExtensions + { + /// + /// 异步调用 [POST] /add_qualification 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductAddQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductAddQualificationRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "add_qualification") + .WithHeader("Aweme-Check-Type", request.SandboxCheckType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /modify_qualification 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductModifyQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductModifyQualificationRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "modify_qualification") + .WithHeader("Aweme-Check-Type", request.SandboxCheckType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /query_qualification 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductQueryQualificationAsync(this DouyinMicroAppProductApiClient client, Models.ProductQueryQualificationRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "query_qualification"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteRefundRuleExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteRefundRuleExtensions.cs new file mode 100644 index 00000000..634215a7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteRefundRuleExtensions.cs @@ -0,0 +1,57 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi +{ + public static class DouyinMicroAppProductApiClientExecuteRefundRuleExtensions + { + /// + /// 异步调用 [POST] /query_refund_rule_meta 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductQueryRefundRuleMetaAsync(this DouyinMicroAppProductApiClient client, Models.ProductQueryRefundRuleMetaRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "query_refund_rule_meta") + .WithHeader("Aweme-Check-Type", request.SandboxCheckType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /modify_refund_rule 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductModifyRefundRuleAsync(this DouyinMicroAppProductApiClient client, Models.ProductModifyRefundRuleRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "modify_refund_rule") + .WithHeader("Aweme-Check-Type", request.SandboxCheckType); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteResourceExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteResourceExtensions.cs new file mode 100644 index 00000000..6ee10234 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Extensions/DouyinMicroAppProductApiClientExecuteResourceExtensions.cs @@ -0,0 +1,55 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi +{ + public static class DouyinMicroAppProductApiClientExecuteResourceExtensions + { + /// + /// 异步调用 [POST] /upload_resource 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductUploadResourceAsync(this DouyinMicroAppProductApiClient client, Models.ProductUploadResourceRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "upload_resource"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /query_resource_status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteProductQueryResourceStatusAsync(this DouyinMicroAppProductApiClient client, Models.ProductQueryResourceStatusRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "query_resource_status"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductSyncCallbackUrlRequest.cs similarity index 90% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductSyncCallbackUrlRequest.cs index 37ca5542..8c870fe3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductSyncCallbackUrlRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /sync_callback_url 接口的请求。 /// - public class ProductApiSyncCallbackUrlRequest : DouyinMicroAppProductApiRequest + public class ProductSyncCallbackUrlRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置接受通知的 URL。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductSyncCallbackUrlResponse.cs similarity index 70% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductSyncCallbackUrlResponse.cs index 023a2dbc..bb7c6a23 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductApiSyncCallbackUrlResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Callback/ProductSyncCallbackUrlResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /sync_callback_url 接口的响应。 /// - public class ProductApiSyncCallbackUrlResponse : DouyinMicroAppProductApiResponse + public class ProductSyncCallbackUrlResponse : DouyinMicroAppProductApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductAddRequest.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductAddRequest.cs index afa6480f..d982f369 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductAddRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /add 接口的请求。 /// - public class ProductApiAddRequest : DouyinMicroAppProductApiRequest + public class ProductAddRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductAddResponse.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductAddResponse.cs index c757035a..738f190f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiAddResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductAddResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /add 接口的响应。 /// - public class ProductApiAddResponse : DouyinMicroAppProductApiResponse + public class ProductAddResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyNoAuditRequest.cs similarity index 97% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyNoAuditRequest.cs index 5428ab47..869ce6cf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyNoAuditRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_no_audit 接口的请求。 /// - public class ProductApiModifyNoAuditRequest : DouyinMicroAppProductApiRequest + public class ProductModifyNoAuditRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyNoAuditResponse.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyNoAuditResponse.cs index c38ea767..406fb11f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyNoAuditResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyNoAuditResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_no_audit 接口的响应。 /// - public class ProductApiModifyNoAuditResponse : DouyinMicroAppProductApiResponse + public class ProductModifyNoAuditResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyRequest.cs similarity index 69% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyRequest.cs index bed67319..9181c261 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyRequest.cs @@ -3,51 +3,51 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify 接口的请求。 /// - public class ProductApiModifyRequest : DouyinMicroAppProductApiRequest + public class ProductModifyRequest : DouyinMicroAppProductApiRequest { public static class Types { - public class Product : ProductApiAddRequest.Types.Product + public class Product : ProductAddRequest.Types.Product { public new static class Types { - public class CommonProductInfo : ProductApiAddRequest.Types.Product.Types.CommonProductInfo + public class CommonProductInfo : ProductAddRequest.Types.Product.Types.CommonProductInfo { public new static class Types { - public class PriceInfo : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.PriceInfo + public class PriceInfo : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.PriceInfo { } - public class PathInfo : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.PathInfo + public class PathInfo : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.PathInfo { } - public class ProductFulfilment : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductFulfilment + public class ProductFulfilment : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductFulfilment { public new static class Types { - public class FulfillmentContent : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductFulfilment.Types.FulfillmentContent + public class FulfillmentContent : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductFulfilment.Types.FulfillmentContent { } } } - public class ProductDetail : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductDetail + public class ProductDetail : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductDetail { public new static class Types { - public class RichText : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductDetail.Types.RichText + public class RichText : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.ProductDetail.Types.RichText { } } } - public class AnchorInfo : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.AnchorInfo + public class AnchorInfo : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.AnchorInfo { public new static class Types { - public class VideoAnchorInfo : ProductApiAddRequest.Types.Product.Types.CommonProductInfo.Types.AnchorInfo.Types.VideoAnchorInfo + public class VideoAnchorInfo : ProductAddRequest.Types.Product.Types.CommonProductInfo.Types.AnchorInfo.Types.VideoAnchorInfo { } } @@ -55,7 +55,7 @@ public class VideoAnchorInfo : ProductApiAddRequest.Types.Product.Types.CommonPr } } - public class CourseInfo : ProductApiAddRequest.Types.Product.Types.CourseInfo + public class CourseInfo : ProductAddRequest.Types.Product.Types.CourseInfo { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyResponse.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyResponse.cs index fa16381a..f8eb320e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /modify 接口的响应。 /// - public class ProductApiModifyResponse : DouyinMicroAppProductApiResponse + public class ProductModifyResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyStatusRequest.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyStatusRequest.cs index 8baa8e88..140248dd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyStatusRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_status 接口的请求。 /// - public class ProductApiModifyStatusRequest : DouyinMicroAppProductApiRequest + public class ProductModifyStatusRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyStatusResponse.cs similarity index 71% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyStatusResponse.cs index f9710e86..942faef3 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiModifyStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductModifyStatusResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /modify_status 接口的响应。 /// - public class ProductApiModifyStatusResponse : DouyinMicroAppProductApiResponse + public class ProductModifyStatusResponse : DouyinMicroAppProductApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryClassInfoRequest.cs similarity index 71% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryClassInfoRequest.cs index eca99667..6e543e1e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryClassInfoRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_class_info 接口的请求。 /// - public class ProductApiQueryClassInfoRequest : DouyinMicroAppProductApiRequest + public class ProductQueryClassInfoRequest : DouyinMicroAppProductApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryClassInfoResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryClassInfoResponse.cs index c7f4665a..5ab80b94 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryClassInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryClassInfoResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_class_info 接口的响应。 /// - public class ProductApiQueryClassInfoResponse : DouyinMicroAppProductApiResponse + public class ProductQueryClassInfoResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryRequest.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryRequest.cs index 9cfff6e2..14084dfa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query 接口的请求。 /// - public class ProductApiQueryRequest : DouyinMicroAppProductApiRequest + public class ProductQueryRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置商品 ID 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryResponse.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryResponse.cs index bb2066d7..bce94163 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query 接口的响应。 /// - public class ProductApiQueryResponse : DouyinMicroAppProductApiResponse + public class ProductQueryResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryReviewRequest.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryReviewRequest.cs index fdfeb207..f2def8bf 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryReviewRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_review 接口的请求。 /// - public class ProductApiQueryReviewRequest : DouyinMicroAppProductApiRequest + public class ProductQueryReviewRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置商品 ID 列表。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryReviewResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryReviewResponse.cs index d832bdd1..d9479847 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryReviewResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryReviewResponse.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_review 接口的响应。 /// - public class ProductApiQueryReviewResponse : DouyinMicroAppProductApiResponse + public class ProductQueryReviewResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryTemplateInfoRequest.cs similarity index 70% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryTemplateInfoRequest.cs index 7a96dc45..87e7139b 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryTemplateInfoRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_template_info 接口的请求。 /// - public class ProductApiQueryTemplateInfoRequest : DouyinMicroAppProductApiRequest + public class ProductQueryTemplateInfoRequest : DouyinMicroAppProductApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryTemplateInfoResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryTemplateInfoResponse.cs index 9701e9a5..b8d7a8f8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/ProductApiQueryTemplateInfoResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Product/ProductQueryTemplateInfoResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_template_info 接口的响应。 /// - public class ProductApiQueryTemplateInfoResponse : DouyinMicroAppProductApiResponse + public class ProductQueryTemplateInfoResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductAddQualificationRequest.cs similarity index 99% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductAddQualificationRequest.cs index 3273852a..c1cbe200 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductAddQualificationRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /add_qualification 接口的请求。 /// - public class ProductApiAddQualificationRequest : DouyinMicroAppProductApiRequest + public class ProductAddQualificationRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductAddQualificationResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductAddQualificationResponse.cs index 07782d0a..90bff5e0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiAddQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductAddQualificationResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /add_qualification 接口的响应。 /// - public class ProductApiAddQualificationResponse : DouyinMicroAppProductApiResponse + public class ProductAddQualificationResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductModifyQualificationRequest.cs similarity index 95% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductModifyQualificationRequest.cs index 92bd3681..56e38e81 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductModifyQualificationRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_qualification 接口的请求。 /// - public class ProductApiModifyQualificationRequest : DouyinMicroAppProductApiRequest + public class ProductModifyQualificationRequest : DouyinMicroAppProductApiRequest { public static class Types { @@ -17,7 +17,7 @@ public class TeacherQualification { public static class Types { - public class DouyinAuthInfo : ProductApiAddQualificationRequest.Types.Qualification.Types.TeacherQualification.Types.DouyinAuthInfo + public class DouyinAuthInfo : ProductAddQualificationRequest.Types.Qualification.Types.TeacherQualification.Types.DouyinAuthInfo { } } @@ -100,7 +100,7 @@ public class DouyinAuthInfo : ProductApiAddQualificationRequest.Types.Qualificat public IList? DouyinAuthInfoList { get; set; } } - public class InstitutionQualification : ProductApiAddQualificationRequest.Types.Qualification.Types.InstitutionQualification + public class InstitutionQualification : ProductAddQualificationRequest.Types.Qualification.Types.InstitutionQualification { /// /// 获取或设置材料列表。 @@ -110,7 +110,7 @@ public class InstitutionQualification : ProductApiAddQualificationRequest.Types. public new IList MaterialList { get; set; } = new List(); } - public class Material : ProductApiAddQualificationRequest.Types.Qualification.Types.Material + public class Material : ProductAddQualificationRequest.Types.Qualification.Types.Material { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductModifyQualificationResponse.cs similarity index 76% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductModifyQualificationResponse.cs index 87084023..975e52e9 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiModifyQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductModifyQualificationResponse.cs @@ -3,11 +3,11 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_qualification 接口的响应。 /// - public class ProductApiModifyQualificationResponse : DouyinMicroAppProductApiResponse + public class ProductModifyQualificationResponse : DouyinMicroAppProductApiResponse { public static class Types { - public class Data : ProductApiAddQualificationResponse.Types.Data + public class Data : ProductAddQualificationResponse.Types.Data { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductQueryQualificationRequest.cs similarity index 96% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductQueryQualificationRequest.cs index a501e652..a402e778 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductQueryQualificationRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_qualification 接口的请求。 /// - public class ProductApiQueryQualificationRequest : DouyinMicroAppProductApiRequest + public class ProductQueryQualificationRequest : DouyinMicroAppProductApiRequest { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductQueryQualificationResponse.cs similarity index 98% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductQueryQualificationResponse.cs index 5aa1f19f..a135f7ff 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductApiQueryQualificationResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Qualification/ProductQueryQualificationResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_qualification 接口的响应。 /// - public class ProductApiQueryQualificationResponse : DouyinMicroAppProductApiResponse + public class ProductQueryQualificationResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductModifyRefundRuleRequest.cs similarity index 87% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductModifyRefundRuleRequest.cs index 290c1db1..a16145d8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductModifyRefundRuleRequest.cs @@ -5,7 +5,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_refund_rule 接口的请求。 /// - public class ProductApiModifyRefundRuleRequest : DouyinMicroAppProductApiRequest + public class ProductModifyRefundRuleRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置商品 ID 以及对应的规则 ID 字典。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductModifyRefundRuleResponse.cs similarity index 70% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductModifyRefundRuleResponse.cs index 73731c1d..784068c8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiModifyRefundRuleResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductModifyRefundRuleResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /modify_refund_rule 接口的响应。 /// - public class ProductApiModifyRefundRuleResponse : DouyinMicroAppProductApiResponse + public class ProductModifyRefundRuleResponse : DouyinMicroAppProductApiResponse { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductQueryRefundRuleMetaRequest.cs similarity index 70% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductQueryRefundRuleMetaRequest.cs index baca5a06..e60e5a2f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductQueryRefundRuleMetaRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_refund_rule_meta 接口的请求。 /// - public class ProductApiQueryRefundRuleMetaRequest : DouyinMicroAppProductApiRequest + public class ProductQueryRefundRuleMetaRequest : DouyinMicroAppProductApiRequest { } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductQueryRefundRuleMetaResponse.cs similarity index 94% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductQueryRefundRuleMetaResponse.cs index 83359a11..d164fb88 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductApiQueryRefundRuleMetaResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/RefundRule/ProductQueryRefundRuleMetaResponse.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /query_refund_rule_meta 接口的响应。 /// - public class ProductApiQueryRefundRuleMetaResponse : DouyinMicroAppProductApiResponse + public class ProductQueryRefundRuleMetaResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductQueryResourceStatusRequest.cs similarity index 85% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductQueryResourceStatusRequest.cs index f62ae776..ec2ebfca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductQueryResourceStatusRequest.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /query_resource_status 接口的请求。 /// - public class ProductApiQueryResourceStatusRequest : DouyinMicroAppProductApiRequest + public class ProductQueryResourceStatusRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置资源文件路径。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductQueryResourceStatusResponse.cs similarity index 93% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductQueryResourceStatusResponse.cs index 0853a239..b038103e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiQueryResourceStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductQueryResourceStatusResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /query_resource_status 接口的响应。 /// - public class ProductApiQueryResourceStatusResponse : DouyinMicroAppProductApiResponse + public class ProductQueryResourceStatusResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductUploadResourceRequest.cs similarity index 92% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductUploadResourceRequest.cs index 3f7f8492..d633eff8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductUploadResourceRequest.cs @@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi.Models /// /// 表示 [POST] /upload_resource 接口的请求。 /// - public class ProductApiUploadResourceRequest : DouyinMicroAppProductApiRequest + public class ProductUploadResourceRequest : DouyinMicroAppProductApiRequest { /// /// 获取或设置资源类型。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductUploadResourceResponse.cs similarity index 91% rename from src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs rename to src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductUploadResourceResponse.cs index 98cc25f6..4c9202e4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductApiUploadResourceResponse.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/ProductApi/Models/Resource/ProductUploadResourceResponse.cs @@ -3,7 +3,7 @@ /// /// 表示 [POST] /upload_resource 接口的响应。 /// - public class ProductApiUploadResourceResponse : DouyinMicroAppProductApiResponse + public class ProductUploadResourceResponse : DouyinMicroAppProductApiResponse { public static class Types { diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs index 9aa1a782..f4ace14d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/RoleApi/Extensions/DouyinMicroAppRoleApiClientExecuteRoleExtensions.cs @@ -31,12 +31,12 @@ public static class DouyinMicroAppRoleApiClientExecuteRoleExtensions request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + (request.MaterialType == 1010 ? ".pdf" : ".jpg"); if (request.MaterialFileContentType is null) - request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName); + request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName) ?? "image/jpeg"; IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "upload_material"); - using MultipartFormDataContent httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType!, formDataName: "material_file"); + using MultipartFormDataContent httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType, formDataName: "material_file"); httpContent.Add(new StringContent(request.AppId), "appid"); httpContent.Add(new StringContent(request.AccessToken!), "access_token"); httpContent.Add(new StringContent(request.MaterialType.ToString()), "material_type"); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs index bda7652d..b1b5e2ca 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecuteLegacyAppsExtensions.cs @@ -92,12 +92,15 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions if (request.MaterialFileName is null) request.MaterialFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + if (request.MaterialFileContentType is null) + request.MaterialFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.MaterialFileName) ?? "image/jpeg"; + IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "capacity", "upload_material") .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "v1", "capacity", "upload_material")) .WithHeader("access-token", request.AccessToken); - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: "image/jpeg", formDataName: "material_file"); + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.MaterialFileName, fileBytes: request.MaterialFileBytes, fileContentType: request.MaterialFileContentType, formDataName: "material_file"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.MaterialType.ToString())), "material_type"); return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); @@ -1727,12 +1730,15 @@ public static class DouyinMicroAppClientExecuteLegacyAppsExtensions if (request.ImageFileName is null) request.ImageFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + if (request.ImageFileContentType is null) + request.ImageFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.ImageFileName) ?? "image/jpeg"; + IFlurlRequest flurlReq = client .CreateFlurlRequest(request, HttpMethod.Post, "apps", "upload_live_image") .WithUrl(url => new Url(client._BASEURL_LEGACY).AppendPathSegments("apps", "upload_live_image")) .WithHeader("access-token", request.AccessToken); - using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: "image/jpeg", formDataName: "image"); + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: request.ImageFileContentType, formDataName: "image"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.Title)), "title"); httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.PagePath)), "start_page"); if (request.RoomId is not null) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs index 4380919a..864cf20e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Capacity/AppsCapacityUploadMaterialV1Request.cs @@ -22,10 +22,17 @@ public class AppsCapacityUploadMaterialV1Request : DouyinMicroAppRequest public byte[] MaterialFileBytes { get; set; } = Array.Empty(); /// - /// 获取或设置封面图片文件名。如果不指定将由系统自动生成。 + /// 获取或设置资源文件名。如果不指定将由系统自动生成。 /// [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public string? MaterialFileName { get; set; } + + /// + /// 获取或设置资源文件 MIME 类型。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? MaterialFileContentType { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageRequest.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageRequest.cs index 30aaa263..150174e4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageRequest.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/Apps/Live/AppsUploadLiveImageRequest.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models { @@ -48,5 +48,12 @@ public class AppsUploadLiveImageRequest : DouyinMicroAppRequest [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public string? ImageFileName { get; set; } + + /// + /// 获取或设置封面图片文件 MIME 类型。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? ImageFileContentType { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.json new file mode 100644 index 00000000..9704d461 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetInfoV2Response.json @@ -0,0 +1,45 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "202401162021508C7E711C39144F1127C8", + "data": { + "new_name_audit_info": { + "advice": "", + "new_name": "xxxx", + "new_name_audit_state": 4, + "reason": "", + "remaining_times": 3 + }, + "app_id": "xxxx", + "app_intro": "xxxxx", + "new_icon_audit_info": { + "advice": "", + "new_icon": "xxxx", + "new_icon_audit_state": 2, + "reason": "", + "remaining_times": 3 + }, + "new_intro_audit_info": { + "advice": "", + "new_intro": "xxxxx", + "new_intro_audit_state": 2, + "reason": "", + "remaining_times": 3 + }, + "subject_audit_info": { + "subject_name": "xxx", + "subject_type": 1 + }, + "app_categories_audit_info": [ + { + "app_category_audit_state": 2, + "app_category_name": "xx-xxxx-xx", + "reason": "", + "app_category": "xxx,xxx,xxx" + } + ], + "app_icon": "xxxxx", + "app_name": "xxxx", + "app_state": 0 + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.json new file mode 100644 index 00000000..9feda9fd --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Request.json @@ -0,0 +1,4 @@ +{ + "version": "latest", + "path": "xxxx/xxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.json new file mode 100644 index 00000000..e4d58da9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoGetQrcodeV2Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "qr_code_url": "xxxxxxx" + }, + "err_msg": "", + "err_no": 0, + "log_id": "20240116204738BF50CE363C57B719C353" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.json new file mode 100644 index 00000000..3511d5c6 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppIntroductionV2Request.json @@ -0,0 +1,3 @@ +{ + "new_intro": "xxxxxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.json new file mode 100644 index 00000000..cde6aa80 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsBasicInfo/OpenAppsBasicInfoModifyAppNameV2Request.json @@ -0,0 +1,3 @@ +{ + "new_name": "xxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.json new file mode 100644 index 00000000..dc058b5c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryAddCategoriesV1Request.json @@ -0,0 +1,17 @@ +{ + "category_info": [ + { + "category": "xxx,xxx,xxx", + "category_cert": [ + { + "id": "x", + "name": "《信息网络传播视听节目许可证》", + "path_list": [ "xxxx/xxxx" ] + } + ] + }, + { + "category": "xx,xxxx,xx" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.json new file mode 100644 index 00000000..78f01896 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryDeleteCategoriesV1Request.json @@ -0,0 +1,3 @@ +{ + "categories": [ "xxx,xxx,xxx" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.json new file mode 100644 index 00000000..f7849abe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAllCategoriesV1Response.json @@ -0,0 +1,21 @@ +{ + "log_id": "202401171430441545B42E14E727624A0D", + "data": { + "category_list": [ + { + "name": "餐饮", + "spid": 0, + "certification": { + "explanation": "", + "list": [], + "relation": [] + }, + "fpid": 0, + "id": 501, + "level": 1 + } + ] + }, + "err_msg": "", + "err_no": 0 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.json new file mode 100644 index 00000000..29978450 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategoryGetAuditCategoriesV1Response.json @@ -0,0 +1,20 @@ +{ + "data": { + "app_category_audit_info": [ + { + "category": "xxx,xxx,xxx", + "category_audit_state": 2, + "category_cert": null, + "category_cert_ids": "", + "category_name": "xx-xxxx-xx", + "reason": "" + } + ], + "category_change_limit": 5, + "category_limit": 5, + "remaining_times": 5 + }, + "err_msg": "", + "err_no": 0, + "log_id": "20240117144112523B289832A9008E1C74" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.json new file mode 100644 index 00000000..60d2562e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCategory/OpenAppsCategorySupplyCategoriesV1Request.json @@ -0,0 +1,14 @@ +{ + "category_info": [ + { + "category": "xxx,xxx,xxx", + "category_cert": [ + { + "id": "xxx", + "name": "xxxx", + "path_list": [ "xxxx/xxxx" ] + } + ] + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.json new file mode 100644 index 00000000..bfb093d2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsCreditScore/OpenAppsCreditScoreGetCreditScoreV2Response.json @@ -0,0 +1,8 @@ +{ + "err_no": 0, + "log_id": "202401171514133CBF034059DDAC621FB8", + "data": { + "credit_score": 100 + }, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.json new file mode 100644 index 00000000..9aefaff8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Request.json @@ -0,0 +1,4 @@ +{ + "action": "add", + "request": [ "www.xxx.com" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.json new file mode 100644 index 00000000..8af58c22 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyServerDomainV2Response.json @@ -0,0 +1,11 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "20240117114616666CB7AB1AAE5A69212E", + "data": { + "request": [ "www.xxx.com", "www.xxx.com" ], + "socket": [ "www.xxx.com", "www.xxx.com" ], + "upload": [ "www.xxx.com", "www.xxx.com" ], + "download": [ "www.xxx.com", "www.xxx.com" ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.json new file mode 100644 index 00000000..fd90b3cd --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Request.json @@ -0,0 +1,4 @@ +{ + "action": "add", + "webview": [ "www.xxx.com" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.json new file mode 100644 index 00000000..c0a499bf --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsDomain/OpenAppsDomainModifyWebviewDomainV2Response.json @@ -0,0 +1,8 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "202401171146249E93BBEB2833B467B53D", + "data": { + "webview": [ "www.xxx.com", "www.xxx.com" ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.json new file mode 100644 index 00000000..7e980590 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsTrial/OpenAppsTrialGetTrialInfoV2Response.json @@ -0,0 +1,16 @@ +{ + "data": { + "trial_task_info": null, + "app_credit_score": -999, + "is_trial": 1, + "trial_limit_info": { + "is_capability_limited": 1, + "is_payment_restricted": 0, + "is_traffic_limited": 0 + }, + "trial_pass_score": 80 + }, + "err_msg": "", + "err_no": 0, + "log_id": "20240117151219739E5689A61B947BFFE5" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenAuthThirdPartyTokenV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiAuthThirdPartyTokenV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenAuthThirdPartyTokenV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGenerateLinkV3Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGenerateLinkV3Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGenerateLinkV3Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGenerateLinkV3Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGenerateLinkV3Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthAppListV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGetAuthAppListV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthGetAuthTokenV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthGetAuthTokenV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenApiTpAppAuthRetrieveAuthCodeV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppAuth/OpenTpAppAuthRetrieveAuthCodeV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppFile/OpenTpAppFileUploadMaterialV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppFile/OpenApiTpAppFileUploadMaterialV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppFile/OpenTpAppFileUploadMaterialV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateAddTemplateV2Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateAddTemplateV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Request.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiThirdPartyTemplateDeleteTemplateV1Request.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateDeleteTemplateV2Request.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateAppListV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateGetTemplateAppListV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Response.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenApiTpAppTemplateGetTemplateListV2Response.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/TpAppTemplate/OpenTpAppTemplateGetTemplateListV2Response.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductApiSyncCallbackUrlRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductSyncCallbackUrlRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductApiSyncCallbackUrlRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductSyncCallbackUrlRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductApiSyncCallbackUrlResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductSyncCallbackUrlResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductApiSyncCallbackUrlResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Callback/ProductSyncCallbackUrlResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductAddRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductAddRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductAddResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiAddResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductAddResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyNoAuditRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyNoAuditRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyNoAuditRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyNoAuditRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyNoAuditResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyNoAuditResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyNoAuditResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyNoAuditResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyStatusRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyStatusRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyStatusRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyStatusRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyStatusResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyStatusResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiModifyStatusResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductModifyStatusResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryClassInfoRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryClassInfoRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryClassInfoRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryClassInfoRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryClassInfoResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryClassInfoResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryClassInfoResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryClassInfoResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryReviewRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryReviewRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryReviewRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryReviewRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryReviewResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryReviewResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryReviewResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryReviewResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryTemplateInfoRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryTemplateInfoRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryTemplateInfoRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryTemplateInfoRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryTemplateInfoResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryTemplateInfoResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/ProductApiQueryTemplateInfoResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Product/ProductQueryTemplateInfoResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiAddQualificationRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductAddQualificationRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiAddQualificationRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductAddQualificationRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiAddQualificationResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductAddQualificationResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiAddQualificationResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductAddQualificationResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiModifyQualificationRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductModifyQualificationRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiModifyQualificationRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductModifyQualificationRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiModifyQualificationResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductModifyQualificationResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiModifyQualificationResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductModifyQualificationResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiQueryQualificationRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductQueryQualificationRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiQueryQualificationRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductQueryQualificationRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiQueryQualificationResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductQueryQualificationResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductApiQueryQualificationResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Qualification/ProductQueryQualificationResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductApiModifyRefundRuleRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductModifyRefundRuleRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductApiModifyRefundRuleRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductModifyRefundRuleRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductApiQueryRefundRuleMetaRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductQueryRefundRuleMetaRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductApiQueryRefundRuleMetaRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductQueryRefundRuleMetaRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductApiQueryRefundRuleMetaResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductQueryRefundRuleMetaResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductApiQueryRefundRuleMetaResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/RefundRule/ProductQueryRefundRuleMetaResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiQueryResourceStatusRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductQueryResourceStatusRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiQueryResourceStatusRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductQueryResourceStatusRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiQueryResourceStatusResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductQueryResourceStatusResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiQueryResourceStatusResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductQueryResourceStatusResponse.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiUploadResourceRequest.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductUploadResourceRequest.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiUploadResourceRequest.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductUploadResourceRequest.json diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiUploadResourceResponse.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductUploadResourceResponse.json similarity index 100% rename from test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductApiUploadResourceResponse.json rename to test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/ProductApi/Resource/ProductUploadResourceResponse.json From fdbd04593a2d8b9b0511d50444e891203ab50726 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 9 Mar 2024 15:16:49 +0800 Subject: [PATCH 39/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=95=86=E5=B9=B3=E5=8F=B0=E4=BB=A3=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=BC=80=E5=8F=91=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20v2=20=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ientExecuteAppsPackageVersionExtensions.cs | 172 +++++++++++ ...piClientExecuteLegacyMicroAppExtensions.cs | 7 + ...iClientExecutePlatformWebhookExtensions.cs | 105 +++++++ .../OpenAppsPackageVersionAuditV1Request.cs | 43 +++ .../OpenAppsPackageVersionAuditV1Response.cs | 9 + ...ppsPackageVersionGetAuditHostsV1Request.cs | 9 + ...psPackageVersionGetAuditHostsV1Response.cs | 35 +++ ...nAppsPackageVersionGetVersionsV1Request.cs | 9 + ...AppsPackageVersionGetVersionsV1Response.cs | 273 ++++++++++++++++++ .../OpenAppsPackageVersionReleaseV1Request.cs | 9 + ...OpenAppsPackageVersionReleaseV1Response.cs | 9 + ...nAppsPackageVersionRevokeAuditV1Request.cs | 43 +++ ...AppsPackageVersionRevokeAuditV1Response.cs | 9 + ...OpenAppsPackageVersionRollbackV1Request.cs | 9 + ...penAppsPackageVersionRollbackV1Response.cs | 9 + .../OpenAppsPackageVersionUploadV1Request.cs | 48 +++ .../OpenAppsPackageVersionUploadV1Response.cs | 9 + ...PlatformWebhookEventStatusListV1Request.cs | 9 + ...latformWebhookEventStatusListV1Response.cs | 86 ++++++ ...OpenPlatformWebhookResetSecretV1Request.cs | 9 + ...penPlatformWebhookResetSecretV1Response.cs | 28 ++ ...PlatformWebhookSaveCallbackUrlV1Request.cs | 15 + ...latformWebhookSaveCallbackUrlV1Response.cs | 9 + ...atformWebhookUpdateEventStatusV1Request.cs | 37 +++ ...tformWebhookUpdateEventStatusV1Response.cs | 9 + ...roAppOperationLiveApplicationV1Response.cs | 3 +- ...erationPhoneNumberApplicationV1Response.cs | 3 +- ...oAppOperationVideoApplicationV1Response.cs | 3 +- ...oAppOperationAddShareTemplateV1Response.cs | 3 +- ...pOperationDeleteShareTemplateV1Response.cs | 3 +- ...pOperationModifyShareTemplateV1Response.cs | 3 +- ...rationSetDefaultShareTemplateV1Response.cs | 3 +- ...roAppOperationAddShopMaterialV1Response.cs | 3 +- ...enApiMicroAppPackageAuditHostsV1Request.cs | 5 +- ...nApiMicroAppPackageAuditHostsV1Response.cs | 3 + .../OpenApiMicroAppPackageAuditV2Request.cs | 2 + .../OpenApiMicroAppPackageAuditV2Response.cs | 6 +- .../OpenApiMicroAppPackageReleaseV1Request.cs | 5 +- ...OpenApiMicroAppPackageReleaseV1Response.cs | 6 +- ...nApiMicroAppPackageRevokeAuditV1Request.cs | 5 +- ...ApiMicroAppPackageRevokeAuditV1Response.cs | 6 +- ...OpenApiMicroAppPackageRollbackV1Request.cs | 5 +- ...penApiMicroAppPackageRollbackV1Response.cs | 6 +- .../OpenApiMicroAppPackageUploadV1Request.cs | 3 + .../OpenApiMicroAppPackageUploadV1Response.cs | 6 +- ...OpenApiMicroAppPackageVersionsV1Request.cs | 5 +- ...penApiMicroAppPackageVersionsV1Response.cs | 2 + ...nApiThirdPartyPOISupplierSyncV1Response.cs | 3 +- .../OpenAppsPackageVersionAuditV1Request.json | 6 + ...PackageVersionGetAuditHostsV1Response.json | 15 + ...psPackageVersionGetVersionsV1Response.json | 68 +++++ ...OpenAppsPackageVersionUploadV1Request.json | 7 + ...tformWebhookEventStatusListV1Response.json | 19 ++ ...nPlatformWebhookResetSecretV1Response.json | 8 + ...atformWebhookSaveCallbackUrlV1Request.json | 3 + ...formWebhookUpdateEventStatusV1Request.json | 8 + 56 files changed, 1216 insertions(+), 19 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsPackageVersionExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecutePlatformWebhookExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsPackageVersionExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsPackageVersionExtensions.cs new file mode 100644 index 00000000..e0f98f5f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsPackageVersionExtensions.cs @@ -0,0 +1,172 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsPackageVersionExtensions + { + /// + /// 异步调用 [POST] /apps/v1/package_version/upload/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsPackageVersionUploadV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsPackageVersionUploadV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "package_version", "upload", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/package_version/get_audit_hosts/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsPackageVersionGetAuditHostsV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsPackageVersionGetAuditHostsV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "package_version", "get_audit_hosts", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/package_version/audit/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsPackageVersionAuditV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsPackageVersionAuditV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "package_version", "audit", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/package_version/revoke_audit/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsPackageVersionRevokeAuditV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsPackageVersionRevokeAuditV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "package_version", "revoke_audit", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/package_version/release/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsPackageVersionReleaseV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsPackageVersionReleaseV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "package_version", "release", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/package_version/rollback/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsPackageVersionRollbackV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsPackageVersionRollbackV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "package_version", "rollback", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/package_version/versions/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsPackageVersionGetVersionsV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsPackageVersionGetVersionsV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "package_version", "versions", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs index 480aa32c..1ed24a45 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions.cs @@ -807,6 +807,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public static async Task ExecuteOpenApiMicroAppPackageUploadV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageUploadV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -832,6 +833,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public static async Task ExecuteOpenApiMicroAppPackageAuditHostsV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageAuditHostsV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -857,6 +859,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public static async Task ExecuteOpenApiMicroAppPackageAuditV2Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageAuditV2Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -882,6 +885,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public static async Task ExecuteOpenApiMicroAppPackageRevokeAuditV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageRevokeAuditV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -907,6 +911,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public static async Task ExecuteOpenApiMicroAppPackageReleaseV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageReleaseV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -932,6 +937,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public static async Task ExecuteOpenApiMicroAppPackageRollbackV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageRollbackV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); @@ -957,6 +963,7 @@ public static class DouyinMicroAppOpenApiClientExecuteLegacyMicroAppExtensions /// /// /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public static async Task ExecuteOpenApiMicroAppPackageVersionsV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenApiMicroAppPackageVersionsV1Request request, CancellationToken cancellationToken = default) { if (client is null) throw new ArgumentNullException(nameof(client)); diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecutePlatformWebhookExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecutePlatformWebhookExtensions.cs new file mode 100644 index 00000000..397df718 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecutePlatformWebhookExtensions.cs @@ -0,0 +1,105 @@ +using System; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecutePlatformWebhookExtensions + { + #region Webhook + /// + /// 异步调用 [GET] /platform/v1/webhook/reset_secret/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenPlatformWebhookResetSecretV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenPlatformWebhookResetSecretV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "platform", "v1", "webhook", "reset_secret", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /platform/v1/webhook/save_callback_url/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenPlatformWebhookSaveCallbackUrlV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenPlatformWebhookSaveCallbackUrlV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "platform", "v1", "webhook", "save_callback_url", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /platform/v1/webhook/event_status_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenPlatformWebhookEventStatusListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenPlatformWebhookEventStatusListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "platform", "v1", "webhook", "event_status_list", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /platform/v1/webhook/update_event_status/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenPlatformWebhookUpdateEventStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenPlatformWebhookUpdateEventStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "platform", "v1", "webhook", "update_event_status", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.cs new file mode 100644 index 00000000..532f1c94 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.cs @@ -0,0 +1,43 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/audit/ 接口的请求。 + /// + public class OpenAppsPackageVersionAuditV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置本次提审的宿主端列表。 + /// + [Newtonsoft.Json.JsonProperty("host_names")] + [System.Text.Json.Serialization.JsonPropertyName("host_names")] + public IList HostNames { get; set; } = new List(); + + /// + /// 获取或设置本次提审的备注信息。 + /// + [Newtonsoft.Json.JsonProperty("audit_note")] + [System.Text.Json.Serialization.JsonPropertyName("audit_note")] + public string? AuditNote { get; set; } + + /// + /// 获取或设置重新提审方式。 + /// + [Newtonsoft.Json.JsonProperty("audit_way")] + [System.Text.Json.Serialization.JsonPropertyName("audit_way")] + public int? AuditWay { get; set; } + + /// + /// 获取或设置版本通道。 + /// + [Newtonsoft.Json.JsonProperty("tag")] + [System.Text.Json.Serialization.JsonPropertyName("tag")] + public string? VersionTag { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("TpAppID")] + [System.Text.Json.Serialization.JsonPropertyName("TpAppID")] + public override string? ComponentAppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Response.cs new file mode 100644 index 00000000..75fd3af4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionAuditV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/audit/ 接口的响应。 + /// + public class OpenAppsPackageVersionAuditV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Request.cs new file mode 100644 index 00000000..c3329d6b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/package_version/get_audit_hosts/ 接口的请求。 + /// + public class OpenAppsPackageVersionGetAuditHostsV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.cs new file mode 100644 index 00000000..49dd7910 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/package_version/get_audit_hosts/ 接口的响应。 + /// + public class OpenAppsPackageVersionGetAuditHostsV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置本次审核可选宿主端列表。 + /// + [Newtonsoft.Json.JsonProperty("host_names")] + [System.Text.Json.Serialization.JsonPropertyName("host_names")] + public string[] HostNames { get; set; } = default!; + + /// + /// 获取或设置上次发布的宿主端列表。 + /// + [Newtonsoft.Json.JsonProperty("released_host_names")] + [System.Text.Json.Serialization.JsonPropertyName("released_host_names")] + public string[] ReleasedHostNames { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Request.cs new file mode 100644 index 00000000..349bf859 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/package_version/versions/ 接口的请求。 + /// + public class OpenAppsPackageVersionGetVersionsV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.cs new file mode 100644 index 00000000..5cb6106b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.cs @@ -0,0 +1,273 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/package_version/versions/ 接口的响应。 + /// + public class OpenAppsPackageVersionGetVersionsV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public abstract class VersionInfoBase + { + /// + /// 获取或设置服务类目列表。 + /// + [Newtonsoft.Json.JsonProperty("categories")] + [System.Text.Json.Serialization.JsonPropertyName("categories")] + public string[] CategoryList { get; set; } = default!; + + /// + /// 获取或设置小程序管理员的头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("developer_avatar")] + [System.Text.Json.Serialization.JsonPropertyName("developer_avatar")] + public string DeveloperAvatarUrl { get; set; } = default!; + + /// + /// 获取或设置小程序管理员的账号。 + /// + [Newtonsoft.Json.JsonProperty("developer_id")] + [System.Text.Json.Serialization.JsonPropertyName("developer_id")] + public string DeveloperId { get; set; } = default!; + + /// + /// 获取或设置小程序管理员的昵称。 + /// + [Newtonsoft.Json.JsonProperty("developer_name")] + [System.Text.Json.Serialization.JsonPropertyName("developer_name")] + public string DeveloperName { get; set; } = default!; + + /// + /// 获取或设置版本号。 + /// + [Newtonsoft.Json.JsonProperty("version")] + [System.Text.Json.Serialization.JsonPropertyName("version")] + public string Version { get; set; } = default!; + + /// + /// 获取或设置版本通道。 + /// + [Newtonsoft.Json.JsonProperty("version_tag")] + [System.Text.Json.Serialization.JsonPropertyName("version_tag")] + public string VersionTag { get; set; } = default!; + + /// + /// 获取或设置更新信息。 + /// + [Newtonsoft.Json.JsonProperty("summary")] + [System.Text.Json.Serialization.JsonPropertyName("summary")] + public string Summary { get; set; } = default!; + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("ctime")] + [System.Text.Json.Serialization.JsonPropertyName("ctime")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置各宿主端附件字典。 + /// + [Newtonsoft.Json.JsonProperty("attach_info")] + [System.Text.Json.Serialization.JsonPropertyName("attach_info")] + public IDictionary? AttachmentMap { get; set; } + } + + public class LatestVersionInfo : VersionInfoBase + { + /// + /// 获取或设置是否已提审。 + /// + [Newtonsoft.Json.JsonProperty("has_audit")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("has_audit")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool HasAudited { get; set; } + + /// + /// 获取或设置截图 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("screenshot")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithCommaSplitConverter))] + [System.Text.Json.Serialization.JsonPropertyName("screenshot")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithCommaSplitConverter))] + public string[]? ScreenshotUrlList { get; set; } + } + + public class AuditVersionInfo : VersionInfoBase + { + /// + /// 获取或设置通过审核的宿主端列表。 + /// + [Newtonsoft.Json.JsonProperty("approved_apps")] + [System.Text.Json.Serialization.JsonPropertyName("approved_apps")] + public string[]? ApprovedApps { get; set; } + + /// + /// 获取或设置是否已发布。 + /// + [Newtonsoft.Json.JsonProperty("has_publish")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("has_publish")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool HasPublished { get; set; } + + /// + /// 获取或设置是否是被下架的版本。 + /// + [Newtonsoft.Json.JsonProperty("is_illegal_version")] + [System.Text.Json.Serialization.JsonPropertyName("is_illegal_version")] + public bool IsIllegalVersion { get; set; } + + /// + /// 获取或设置审核状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置审核不通过原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? RejectReason { get; set; } + + /// + /// 获取或设置各宿主端审核不通过原因字典。 + /// + [Newtonsoft.Json.JsonProperty("reason_detail")] + [System.Text.Json.Serialization.JsonPropertyName("reason_detail")] + public IDictionary? RejectReasonDetailMap { get; set; } + } + + public class GrayVersionInfo : VersionInfoBase + { + /// + /// 获取或设置各宿主端灰度比例字典。 + /// + [Newtonsoft.Json.JsonProperty("host_gray_scale")] + [System.Text.Json.Serialization.JsonPropertyName("host_gray_scale")] + public IDictionary? HostGrayScaleMap { get; set; } + } + + public class CurrentVersionInfo : VersionInfoBase + { + public static class Types + { + public class Rollback + { + /// + /// 获取或设置是否可以回退。 + /// + [Newtonsoft.Json.JsonProperty("can_rollback")] + [System.Text.Json.Serialization.JsonPropertyName("can_rollback")] + public bool CanRollback { get; set; } + + /// + /// 获取或设置可以回退到的上一版本号。 + /// + [Newtonsoft.Json.JsonProperty("last_version")] + [System.Text.Json.Serialization.JsonPropertyName("last_version")] + public string? LastVersion { get; set; } + } + } + + /// + /// 获取或设置通过审核的宿主端列表。 + /// + [Newtonsoft.Json.JsonProperty("approved_apps")] + [System.Text.Json.Serialization.JsonPropertyName("approved_apps")] + public string[]? ApprovedApps { get; set; } + + /// + /// 获取或设置没有通过审核的宿主端列表。 + /// + [Newtonsoft.Json.JsonProperty("not_approved_apps")] + [System.Text.Json.Serialization.JsonPropertyName("not_approved_apps")] + public string[]? NotApprovedApps { get; set; } + + /// + /// 获取或设置是否已下架。 + /// + [Newtonsoft.Json.JsonProperty("has_down")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("has_down")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))] + public bool HasDowned { get; set; } + + /// + /// 获取或设置开发者平台账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("uid")] + [System.Text.Json.Serialization.JsonPropertyName("uid")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long? UserUID { get; set; } + + /// + /// 获取或设置审核不通过原因。 + /// + [Newtonsoft.Json.JsonProperty("reason")] + [System.Text.Json.Serialization.JsonPropertyName("reason")] + public string? RejectReason { get; set; } + + /// + /// 获取或设置各宿主端审核不通过原因字典。 + /// + [Newtonsoft.Json.JsonProperty("reason_detail")] + [System.Text.Json.Serialization.JsonPropertyName("reason_detail")] + public IDictionary? RejectReasonDetailMap { get; set; } + + /// + /// 获取或设置回退信息。 + /// + [Newtonsoft.Json.JsonProperty("rollback")] + [System.Text.Json.Serialization.JsonPropertyName("rollback")] + public Types.Rollback? Rollback { get; set; } + } + } + + /// + /// 获取或设置测试版本信息。 + /// + [Newtonsoft.Json.JsonProperty("latest")] + [System.Text.Json.Serialization.JsonPropertyName("latest")] + public Types.LatestVersionInfo? LatestVersionInfo { get; set; } + + /// + /// 获取或设置审核版本信息。 + /// + [Newtonsoft.Json.JsonProperty("audit")] + [System.Text.Json.Serialization.JsonPropertyName("audit")] + public Types.AuditVersionInfo? AuditVersionInfo { get; set; } + + /// + /// 获取或设置灰度版本信息。 + /// + [Newtonsoft.Json.JsonProperty("gray")] + [System.Text.Json.Serialization.JsonPropertyName("gray")] + public Types.GrayVersionInfo? GrayVersionInfo { get; set; } + + /// + /// 获取或设置线上版本信息。 + /// + [Newtonsoft.Json.JsonProperty("current")] + [System.Text.Json.Serialization.JsonPropertyName("current")] + public Types.CurrentVersionInfo? CurrentVersionInfo { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Request.cs new file mode 100644 index 00000000..17e3c9aa --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/release/ 接口的请求。 + /// + public class OpenAppsPackageVersionReleaseV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Response.cs new file mode 100644 index 00000000..c5a0e77b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionReleaseV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/release/ 接口的响应。 + /// + public class OpenAppsPackageVersionReleaseV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Request.cs new file mode 100644 index 00000000..d0617d6d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Request.cs @@ -0,0 +1,43 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/revoke_audit/ 接口的请求。 + /// + public class OpenAppsPackageVersionRevokeAuditV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置本次提审的宿主端列表。 + /// + [Newtonsoft.Json.JsonProperty("host_names")] + [System.Text.Json.Serialization.JsonPropertyName("host_names")] + public IList HostNames { get; set; } = new List(); + + /// + /// 获取或设置本次提审的备注信息。 + /// + [Newtonsoft.Json.JsonProperty("audit_note")] + [System.Text.Json.Serialization.JsonPropertyName("audit_note")] + public string? AuditNote { get; set; } + + /// + /// 获取或设置重新提审方式。 + /// + [Newtonsoft.Json.JsonProperty("audit_way")] + [System.Text.Json.Serialization.JsonPropertyName("audit_way")] + public int? AuditWay { get; set; } + + /// + /// 获取或设置版本通道。 + /// + [Newtonsoft.Json.JsonProperty("tag")] + [System.Text.Json.Serialization.JsonPropertyName("tag")] + public string? Tag { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("TpAppID")] + [System.Text.Json.Serialization.JsonPropertyName("TpAppID")] + public override string? ComponentAppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Response.cs new file mode 100644 index 00000000..8fa15d51 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRevokeAuditV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/revoke_audit/ 接口的响应。 + /// + public class OpenAppsPackageVersionRevokeAuditV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Request.cs new file mode 100644 index 00000000..599bc911 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/rollback/ 接口的请求。 + /// + public class OpenAppsPackageVersionRollbackV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Response.cs new file mode 100644 index 00000000..c91034d2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionRollbackV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/rollback/ 接口的响应。 + /// + public class OpenAppsPackageVersionRollbackV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.cs new file mode 100644 index 00000000..77a504f1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/upload/ 接口的请求。 + /// + public class OpenAppsPackageVersionUploadV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置提交 ID。 + /// + [Newtonsoft.Json.JsonProperty("template_id")] + [System.Text.Json.Serialization.JsonPropertyName("template_id")] + public long TemplateId { get; set; } + + /// + /// 获取或设置版本。 + /// + [Newtonsoft.Json.JsonProperty("user_version")] + [System.Text.Json.Serialization.JsonPropertyName("user_version")] + public string UserVersion { get; set; } = string.Empty; + + /// + /// 获取或设置描述。 + /// + [Newtonsoft.Json.JsonProperty("user_desc")] + [System.Text.Json.Serialization.JsonPropertyName("user_desc")] + public string UserDescription { get; set; } = string.Empty; + + /// + /// 获取或设置配置的 JSON 字符串。 + /// + [Newtonsoft.Json.JsonProperty("ext_json")] + [System.Text.Json.Serialization.JsonPropertyName("ext_json")] + public string? ExtraJson { get; set; } + + /// + /// 获取或设置版本通道。 + /// + [Newtonsoft.Json.JsonProperty("tag")] + [System.Text.Json.Serialization.JsonPropertyName("tag")] + public string? VersionTag { get; set; } + + /// + [Newtonsoft.Json.JsonProperty("TpAppID")] + [System.Text.Json.Serialization.JsonPropertyName("TpAppID")] + public override string? ComponentAppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Response.cs new file mode 100644 index 00000000..b3755345 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsPackageVersion/OpenAppsPackageVersionUploadV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/package_version/upload/ 接口的响应。 + /// + public class OpenAppsPackageVersionUploadV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Request.cs new file mode 100644 index 00000000..387887a8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /platform/v1/webhook/event_status_list/ 接口的请求。 + /// + public class OpenPlatformWebhookEventStatusListV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.cs new file mode 100644 index 00000000..2e7e6fe3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.cs @@ -0,0 +1,86 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /platform/v1/webhook/event_status_list/ 接口的响应。 + /// + public class OpenPlatformWebhookEventStatusListV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class WebhookInfo + { + /// + /// 获取或设置 Webhook Secret。 + /// + [Newtonsoft.Json.JsonProperty("secret")] + [System.Text.Json.Serialization.JsonPropertyName("secret")] + public string Secret { get; set; } = default!; + + /// + /// 获取或设置回调地址。 + /// + [Newtonsoft.Json.JsonProperty("callback_url")] + [System.Text.Json.Serialization.JsonPropertyName("callback_url")] + public string CallbackUrl { get; set; } = default!; + } + + public class EventInfo + { + /// + /// 获取或设置事件名。 + /// + [Newtonsoft.Json.JsonProperty("event")] + [System.Text.Json.Serialization.JsonPropertyName("event")] + public string Event { get; set; } = default!; + + /// + /// 获取或设置中文名称。 + /// + [Newtonsoft.Json.JsonProperty("name_cn")] + [System.Text.Json.Serialization.JsonPropertyName("name_cn")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置事件描述。 + /// + [Newtonsoft.Json.JsonProperty("desc")] + [System.Text.Json.Serialization.JsonPropertyName("desc")] + public string Description { get; set; } = default!; + + /// + /// 获取或设置订阅状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } + } + + /// + /// 获取或设置 Webhook 配置信息。 + /// + [Newtonsoft.Json.JsonProperty("webhook_info")] + [System.Text.Json.Serialization.JsonPropertyName("webhook_info")] + public Types.WebhookInfo WebhookInfo { get; set; } = default!; + + /// + /// 获取或设置回调事件列表。 + /// + [Newtonsoft.Json.JsonProperty("event_list")] + [System.Text.Json.Serialization.JsonPropertyName("event_list")] + public Types.EventInfo[] EventList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Request.cs new file mode 100644 index 00000000..2b4562cc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /platform/v1/webhook/reset_secret/ 接口的请求。 + /// + public class OpenPlatformWebhookResetSecretV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.cs new file mode 100644 index 00000000..2b53038b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /platform/v1/webhook/reset_secret/ 接口的响应。 + /// + public class OpenPlatformWebhookResetSecretV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置 Webhook Secret。 + /// + [Newtonsoft.Json.JsonProperty("secret")] + [System.Text.Json.Serialization.JsonPropertyName("secret")] + public string Secret { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.cs new file mode 100644 index 00000000..f20d4f76 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /platform/v1/webhook/save_callback_url/ 接口的请求。 + /// + public class OpenPlatformWebhookSaveCallbackUrlV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置回调地址。 + /// + [Newtonsoft.Json.JsonProperty("callback_url")] + [System.Text.Json.Serialization.JsonPropertyName("callback_url")] + public string CallbackUrl { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Response.cs new file mode 100644 index 00000000..f85b256a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /platform/v1/webhook/save_callback_url/ 接口的响应。 + /// + public class OpenPlatformWebhookSaveCallbackUrlV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.cs new file mode 100644 index 00000000..bd366f00 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.cs @@ -0,0 +1,37 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /platform/v1/webhook/update_event_status/ 接口的请求。 + /// + public class OpenPlatformWebhookUpdateEventStatusV1Request : DouyinMicroAppOpenApiRequest + { + public static class Types + { + public class EventInfo + { + /// + /// 获取或设置事件名。 + /// + [Newtonsoft.Json.JsonProperty("event")] + [System.Text.Json.Serialization.JsonPropertyName("event")] + public string Event { get; set; } = string.Empty; + + /// + /// 获取或设置订阅状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } + } + + /// + /// 获取或设置回调事件列表。 + /// + [Newtonsoft.Json.JsonProperty("event_list")] + [System.Text.Json.Serialization.JsonPropertyName("event_list")] + public IList EventList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Response.cs new file mode 100644 index 00000000..7c278a6b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /platform/v1/webhook/update_event_status/ 接口的响应。 + /// + public class OpenPlatformWebhookUpdateEventStatusV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs index 00eef9db..bb9aa7fa 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationLiveApplicationV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/live_application 接口的响应。 ///
public class OpenApiMicroAppOperationLiveApplicationV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs index b13f3fd9..1e97293e 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationPhoneNumberApplicationV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/phone_number_application 接口的响应。 ///
public class OpenApiMicroAppOperationPhoneNumberApplicationV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs index 0882b462..43e1225d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/Application/OpenApiMicroAppOperationVideoApplicationV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/video_application 接口的响应。 ///
public class OpenApiMicroAppOperationVideoApplicationV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs index 2b1d300e..33114f42 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationAddShareTemplateV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/add_share_tpl 接口的响应。 ///
public class OpenApiMicroAppOperationAddShareTemplateV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs index cb6567ed..246629b7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationDeleteShareTemplateV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/del_share_tpl 接口的响应。 ///
public class OpenApiMicroAppOperationDeleteShareTemplateV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs index e531198d..b069a7bd 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationModifyShareTemplateV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/modify_share_tpl 接口的响应。 ///
public class OpenApiMicroAppOperationModifyShareTemplateV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs index d2475f8c..a56205ec 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShareTemplate/OpenApiMicroAppOperationSetDefaultShareTemplateV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/set_default_share_tpl 接口的响应。 ///
public class OpenApiMicroAppOperationSetDefaultShareTemplateV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs index bed85ec2..f578013a 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Operation/ShopMaterial/OpenApiMicroAppOperationAddShopMaterialV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/microapp/operation/add_shop_material 接口的响应。 ///
public class OpenApiMicroAppOperationAddShopMaterialV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs index 50fe2544..04ba49c0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/audit_hosts 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageAuditHostsV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs index 4eba3df1..0dcb973d 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditHostsV1Response.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/audit_hosts 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageAuditHostsV1Response : OpenApiLegacyResponseBase { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs index dbdf731b..d2f397a7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Request.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [POST] /v2/microapp/package/audit 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageAuditV2Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs index 03be5f95..ce33291c 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageAuditV2Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v2/microapp/package/audit 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageAuditV2Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs index 9d92b04f..d62a31b7 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/release 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageReleaseV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs index 55647b57..01932094 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageReleaseV1Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/release 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageReleaseV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs index 0585ce88..471477f4 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/revoke_audit 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageRevokeAuditV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs index 05de87f9..7cd4d539 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRevokeAuditV1Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/revoke_audit 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageRevokeAuditV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs index 0c7f06a4..04e692e6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/rollback 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageRollbackV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs index 3acdb1f5..d3195612 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageRollbackV1Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/rollback 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageRollbackV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs index 7e7c69a1..d73d5265 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Request.cs @@ -1,8 +1,11 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/upload 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageUploadV1Request : DouyinMicroAppOpenApiRequest { /// diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs index c9403560..653c6f12 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageUploadV1Response.cs @@ -1,8 +1,12 @@ +using System; + namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [POST] /v1/microapp/package/upload 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageUploadV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs index 0174eb25..aaee6bae 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Request.cs @@ -1,8 +1,11 @@ -namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models { /// /// 表示 [GET] /v1/microapp/package/versions 接口的请求。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageVersionsV1Request : DouyinMicroAppOpenApiRequest { } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs index 907d009e..c692b2f0 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/Package/OpenApiMicroAppPackageVersionsV1Response.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models @@ -5,6 +6,7 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// /// 表示 [GET] /v1/microapp/package/versions 接口的响应。 /// + [Obsolete("相关接口或字段于 2024-02-21 下线。")] public class OpenApiMicroAppPackageVersionsV1Response : OpenApiLegacyResponseBase { public static class Types diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs index 45aeb9e1..1e27540f 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/ThirdParty/POI/OpenApiThirdPartyPOISupplierSyncV1Response.cs @@ -4,5 +4,6 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models /// 表示 [POST] /v1/tp/poi/supplier/sync 接口的响应。 /// public class OpenApiThirdPartyPOISupplierSyncV1Response : OpenApiLegacyResponseBase - { } + { + } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.json new file mode 100644 index 00000000..9adf3c71 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionAuditV1Request.json @@ -0,0 +1,6 @@ +{ + "host_names": [ "YkaYm7173K" ], + "audit_note": "AvTotSPfit", + "audit_way": 1, + "tag": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.json new file mode 100644 index 00000000..5069a199 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetAuditHostsV1Response.json @@ -0,0 +1,15 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "3TmkBXaKXL", + "data": { + "host_names": [ + "toutiao", + "douyin" + ], + "released_host_names": [ + "toutiao", + "douyin" + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.json new file mode 100644 index 00000000..4b66df1c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionGetVersionsV1Response.json @@ -0,0 +1,68 @@ +{ + "err_no": 0, + "err_msg": "success", + "log_id": "2034EAC", + "data": { + "audit": { + "approved_apps": [ "抖音" ], + "attach_info": { + "今日头条": "http://xxxx", + "今日头条lite": "http://xxxx" + }, + "categories": [ "服务类-快递、物流-查件" ], + "ctime": 1591019952, + "developer_avatar": "xxx", + "developer_id": "xxx", + "developer_name": "xxx", + "has_publish": 0, + "is_illegal_version": false, + "reason": "今日头条: 无法进入小程序;小程序页面存在闪退、卡顿、黑屏等功能异常问题;今日头条lite: 无法进入小程序", + "reason_detail": { + "今日头条": [ "无法进入小程序", "小程序页面存在闪退、卡顿、黑屏等功能异常问题" ], + "今日头条lite": [ "无法进入小程序" ] + }, + "status": 2, + "summary": "今天是5月30日", + "version": "1.0.1" + }, + "current": { + "approved_apps": [], + "attach_info": {}, + "categories": [ "服务类-快递、物流-查件" ], + "ctime": 1585727678, + "developer_avatar": null, + "developer_id": null, + "developer_name": null, + "has_down": 0, + "not_approved_apps": [], + "rollback": { + "can_rollback": false, + "last_version": "" + }, + "summary": "测试版本1.0.0", + "uid": 123123, + "version": "1.0.0" + }, + "latest": { + "categories": [ "服务类-快递、物流-查件" ], + "ctime": 1590755478, + "developer_avatar": "xxx", + "developer_id": "xxx", + "developer_name": "xxx", + "has_audit": 1, + "screenshot": "", + "summary": "今天是5月30日", + "version": "1.0.1" + }, + "gray": { + "categories": [ "服务类-快递、物流-查件" ], + "ctime": 1590755478, + "developer_avatar": "xxx", + "developer_id": "xxx", + "developer_name": "xxx", + "summary": "今天是5月30日", + "version": "1.0.1", + "host_gray_scale": {} + } + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.json new file mode 100644 index 00000000..396d33ed --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsPackageVersion/OpenAppsPackageVersionUploadV1Request.json @@ -0,0 +1,7 @@ +{ + "ext_json": "{\"extEnable\":true,\"extAppid\":\"xxx\",\"pages\":[]}", + "template_id": 9133504853504535288, + "user_desc": "AvbQ8S0fXp", + "user_version": "1.1.1", + "tag": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.json new file mode 100644 index 00000000..f620bd69 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookEventStatusListV1Response.json @@ -0,0 +1,19 @@ +{ + "log_id": "ZcabTr0mNP", + "data": { + "webhook_info": { + "secret": "82bU3YS4zK", + "callback_url": "zD6T62rz6p" + }, + "event_list": [ + { + "event": "Hnvd6JbjVi", + "name_cn": "aRmr2mb3JN", + "desc": "d80J5RlxFs", + "status": 1 + } + ] + }, + "err_no": 0, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.json new file mode 100644 index 00000000..40afdfff --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookResetSecretV1Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "secret": "E4WE142xUY" + }, + "err_no": 0, + "err_msg": "", + "log_id": "8HWyNxQlCa" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.json new file mode 100644 index 00000000..e57c21a7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookSaveCallbackUrlV1Request.json @@ -0,0 +1,3 @@ +{ + "callback_url": "s57XNzNBna" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.json new file mode 100644 index 00000000..e3e1271f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/Platform/Webhook/OpenPlatformWebhookUpdateEventStatusV1Request.json @@ -0,0 +1,8 @@ +{ + "event_list": [ + { + "status": 1, + "event": "L98AxizwKs" + } + ] +} From bdd7c49adcc3e4987736868802f6e7d8ac73357e Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 9 Mar 2024 16:51:16 +0800 Subject: [PATCH 40/42] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=95=86=E5=B9=B3=E5=8F=B0=E4=BB=A3=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=A4=87=E6=A1=88=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 +- ...ApiClientExecuteAppsICPRecordExtensions.cs | 276 ++++++++++++++ ...PRecordGetFacialRecognitionUrlV1Request.cs | 15 + ...RecordGetFacialRecognitionUrlV1Response.cs | 35 ++ ...AppsICPRecordQueryCorpTypeListV1Request.cs | 9 + ...ppsICPRecordQueryCorpTypeListV1Response.cs | 75 ++++ ...rdQueryFacialRecognitionStatusV1Request.cs | 15 + ...dQueryFacialRecognitionStatusV1Response.cs | 28 ++ ...hargePeopleCredentialsTypeListV1Request.cs | 9 + ...argePeopleCredentialsTypeListV1Response.cs | 48 +++ ...rdQueryPreApprovalItemTypeListV1Request.cs | 9 + ...dQueryPreApprovalItemTypeListV1Response.cs | 48 +++ ...AppsICPRecordQueryRecordStatusV1Request.cs | 9 + ...ppsICPRecordQueryRecordStatusV1Response.cs | 35 ++ ...enAppsICPRecordQueryRegionListV1Request.cs | 9 + ...nAppsICPRecordQueryRegionListV1Response.cs | 62 ++++ ...ordQueryServiceContentTypeListV1Request.cs | 9 + ...rdQueryServiceContentTypeListV1Response.cs | 55 +++ ...ordSendFacialRecognitionNotifyV1Request.cs | 22 ++ ...rdSendFacialRecognitionNotifyV1Response.cs | 28 ++ ...nAppsICPRecordSubmitRecordInfoV1Request.cs | 343 ++++++++++++++++++ ...AppsICPRecordSubmitRecordInfoV1Response.cs | 9 + .../OpenAppsICPRecordUploadImageV1Request.cs | 38 ++ .../OpenAppsICPRecordUploadImageV1Response.cs | 28 ++ ...iMicroAppAppModifyServerDomainV1Request.cs | 2 +- ...cordGetFacialRecognitionUrlV1Response.json | 9 + ...sICPRecordQueryCorpTypeListV1Response.json | 27 ++ ...ueryFacialRecognitionStatusV1Response.json | 8 + ...gePeopleCredentialsTypeListV1Response.json | 13 + ...ueryPreApprovalItemTypeListV1Response.json | 13 + ...sICPRecordQueryRecordStatusV1Response.json | 8 + ...ppsICPRecordQueryRegionListV1Response.json | 28 ++ ...QueryServiceContentTypeListV1Response.json | 19 + ...dSendFacialRecognitionNotifyV1Request.json | 4 + ...SendFacialRecognitionNotifyV1Response.json | 8 + ...ppsICPRecordSubmitRecordInfoV1Request.json | 71 ++++ ...penAppsICPRecordUploadImageV1Response.json | 8 + 37 files changed, 1436 insertions(+), 2 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsICPRecordExtensions.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bf81342..52642fbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,7 @@ [展开查看] -- Release 3.0.0 (2024-xx-xx) +- Release 3.0.0 (todo) - **新增**:新增 URL Link v2、URL Schema v2、二维码 v2、订阅消息 v2、推广计划 v2、流量主 v2 等相关接口。 @@ -45,6 +45,10 @@ - **新增**:新增泛知识角色系统抖音号绑定相关接口。 + - **新增**:新增服务商平台代开发小程序授权 v2、代开发小程序模板管理 v2、代开发小程序基础信息管理 v2、代开发小程序开发管理 v2 等相关接口。 + + - **新增**:新增服务商平台代开发小程序备案相关接口。 + - **新增**:独立化直播小玩法 API 客户端,支持自动生成请求签名。 - **变更**:升级公共组件至 v3.0.0。完整变更说明请参阅迁移指南。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsICPRecordExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsICPRecordExtensions.cs new file mode 100644 index 00000000..480df29c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Extensions/DouyinMicroAppOpenApiClientExecuteAppsICPRecordExtensions.cs @@ -0,0 +1,276 @@ +using System; +using System.Net.Http; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using Flurl.Http; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi +{ + public static class DouyinMicroAppOpenApiClientExecuteAppsICPRecordExtensions + { + /// + /// 异步调用 [POST] /apps/v1/icp_record/upload_image/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordUploadImageV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordUploadImageV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + if (request.ImageFileName is null) + request.ImageFileName = Guid.NewGuid().ToString("N").ToLower() + ".jpg"; + + if (request.ImageFileContentType is null) + request.ImageFileContentType = Utilities.FileNameToContentTypeMapper.GetContentTypeForMaterial(request.ImageFileName) ?? "image/jpeg"; + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "icp_record", "upload_image", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: request.ImageFileName, fileBytes: request.ImageFileBytes, fileContentType: request.ImageFileContentType, formDataName: "image"); + httpContent.Add(new ByteArrayContent(Encoding.UTF8.GetBytes(request.ImageType.ToString())), "image_type"); + + return await client.SendFlurlRequestAsync(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/get_facial_recognition_url/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordGetFacialRecognitionUrlV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordGetFacialRecognitionUrlV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "get_facial_recognition_url", "") + .SetQueryParam("province_code", request.ProvinceCode) + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/icp_record/send_facial_recognition_notify/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordSendFacialRecognitionNotifyV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordSendFacialRecognitionNotifyV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "icp_record", "send_facial_recognition_notify", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/query_facial_recognition_status/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordQueryFacialRecognitionStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordQueryFacialRecognitionStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "query_facial_recognition_status", "") + .SetQueryParam("facial_recognition_token", request.FacialRecognitionToken) + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/query_corp_type_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordQueryCorpTypeListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordQueryCorpTypeListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "query_corp_type_list", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/query_region_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordQueryRegionListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordQueryRegionListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "query_region_list", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/query_incharge_people_credentials_type_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "query_incharge_people_credentials_type_list", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/query_service_content_type_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordQueryServiceContentTypeListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordQueryServiceContentTypeListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "query_incharge_people_credentials_type_list", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/query_pre_approval_item_type_list/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordQueryPreApprovalItemTypeListV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordQueryPreApprovalItemTypeListV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "query_pre_approval_item_type_list", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /apps/v1/icp_record/query_record_status/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordQueryRecordStatusV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordQueryRecordStatusV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "apps", "v1", "icp_record", "query_record_status", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /apps/v1/icp_record/submit_record_info/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteOpenAppsICPRecordSubmitRecordInfoV1Async(this DouyinMicroAppOpenApiClient client, Models.OpenAppsICPRecordSubmitRecordInfoV1Request request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "apps", "v1", "icp_record", "submit_record_info", "") + .WithHeader("access-token", request.AuthorizerAccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Request.cs new file mode 100644 index 00000000..cc4e9a08 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/get_facial_recognition_url/ 接口的请求。 + /// + public class OpenAppsICPRecordGetFacialRecognitionUrlV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置省份编码。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string ProvinceCode { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.cs new file mode 100644 index 00000000..309a537d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/get_facial_recognition_url/ 接口的响应。 + /// + public class OpenAppsICPRecordGetFacialRecognitionUrlV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置人证核验 Token。 + /// + [Newtonsoft.Json.JsonProperty("facial_recognition_token")] + [System.Text.Json.Serialization.JsonPropertyName("facial_recognition_token")] + public string FacialRecognitionToken { get; set; } = default!; + + /// + /// 获取或设置人证核验链接。 + /// + [Newtonsoft.Json.JsonProperty("facial_recognition_url")] + [System.Text.Json.Serialization.JsonPropertyName("facial_recognition_url")] + public string FacialRecognitionUrl { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Request.cs new file mode 100644 index 00000000..dc2d57a1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_corp_type_list/ 接口的请求。 + /// + public class OpenAppsICPRecordQueryCorpTypeListV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.cs new file mode 100644 index 00000000..5e8736ae --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.cs @@ -0,0 +1,75 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_corp_type_list/ 接口的响应。 + /// + public class OpenAppsICPRecordQueryCorpTypeListV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class CorpTypeInfo + { + public static class Types + { + public class CredentialsTypeInfo + { + /// + /// 获取或设置证件类型。 + /// + [Newtonsoft.Json.JsonProperty("credentials_type_id")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_type_id")] + public int CredentialsTypeInfoId { get; set; } + + /// + /// 获取或设置证件类型名称。 + /// + [Newtonsoft.Json.JsonProperty("credentials_type_name")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_type_name")] + public string CredentialsTypeInfoName { get; set; } = default!; + } + } + + /// + /// 获取或设置主体类型。 + /// + [Newtonsoft.Json.JsonProperty("corp_type_id")] + [System.Text.Json.Serialization.JsonPropertyName("corp_type_id")] + public int CorpTypeId { get; set; } + + /// + /// 获取或设置主体类型名称。 + /// + [Newtonsoft.Json.JsonProperty("corp_type_name")] + [System.Text.Json.Serialization.JsonPropertyName("corp_type_name")] + public string CorpTypeName { get; set; } = default!; + + /// + /// 获取或设置证件类型列表。 + /// + [Newtonsoft.Json.JsonProperty("credentials_type_list")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_type_list")] + public Types.CredentialsTypeInfo[]? CredentialsTypeList { get; set; } + } + } + + /// + /// 获取或设置主体类型列表。 + /// + [Newtonsoft.Json.JsonProperty("corp_type_list")] + [System.Text.Json.Serialization.JsonPropertyName("corp_type_list")] + public Types.CorpTypeInfo[] CorpTypeList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Request.cs new file mode 100644 index 00000000..3f0e143b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Request.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_facial_recognition_status/ 接口的请求。 + /// + public class OpenAppsICPRecordQueryFacialRecognitionStatusV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置人证核验 Token。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string FacialRecognitionToken { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.cs new file mode 100644 index 00000000..78715dbc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_facial_recognition_status/ 接口的响应。 + /// + public class OpenAppsICPRecordQueryFacialRecognitionStatusV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置人证核验状态。 + /// + [Newtonsoft.Json.JsonProperty("facial_recognition_status")] + [System.Text.Json.Serialization.JsonPropertyName("facial_recognition_status")] + public int FacialRecognitionStatus { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Request.cs new file mode 100644 index 00000000..bbee3a0f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_incharge_people_credentials_type_list/ 接口的请求。 + /// + public class OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.cs new file mode 100644 index 00000000..428568b1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_incharge_people_credentials_type_list/ 接口的响应。 + /// + public class OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class CredentialsTypeInfo + { + /// + /// 获取或设置证件类型。 + /// + [Newtonsoft.Json.JsonProperty("credentials_type_id")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_type_id")] + public int CredentialsTypeInfoId { get; set; } + + /// + /// 获取或设置证件类型名称。 + /// + [Newtonsoft.Json.JsonProperty("credentials_type_name")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_type_name")] + public string CredentialsTypeInfoName { get; set; } = default!; + } + } + + /// + /// 获取或设置证件类型列表。 + /// + [Newtonsoft.Json.JsonProperty("credentials_type_list")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_type_list")] + public Types.CredentialsTypeInfo[]? CredentialsTypeList { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Request.cs new file mode 100644 index 00000000..45f3a2cf --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_pre_approval_item_type_list/ 接口的请求。 + /// + public class OpenAppsICPRecordQueryPreApprovalItemTypeListV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.cs new file mode 100644 index 00000000..c609f17c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.cs @@ -0,0 +1,48 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_pre_approval_item_type_list/ 接口的响应。 + /// + public class OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class PreApprovalItemTypeInfo + { + /// + /// 获取或设置前置审批类型。 + /// + [Newtonsoft.Json.JsonProperty("pre_approval_item_id")] + [System.Text.Json.Serialization.JsonPropertyName("pre_approval_item_id")] + public int PreApprovalItemTypeId { get; set; } + + /// + /// 获取或设置前置审批类型名称。 + /// + [Newtonsoft.Json.JsonProperty("pre_approval_item_name")] + [System.Text.Json.Serialization.JsonPropertyName("pre_approval_item_name")] + public string PreApprovalItemTypeName { get; set; } = default!; + } + } + + /// + /// 获取或设置前置审批类型列表。 + /// + [Newtonsoft.Json.JsonProperty("pre_approval_item_type_list")] + [System.Text.Json.Serialization.JsonPropertyName("pre_approval_item_type_list")] + public Types.PreApprovalItemTypeInfo[] PreApprovalItemTypeList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Request.cs new file mode 100644 index 00000000..a67f6b36 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_record_status/ 接口的请求。 + /// + public class OpenAppsICPRecordQueryRecordStatusV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.cs new file mode 100644 index 00000000..2d7ba1ee --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.cs @@ -0,0 +1,35 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_record_status/ 接口的响应。 + /// + public class OpenAppsICPRecordQueryRecordStatusV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置备案状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置失败原因列表。 + /// + [Newtonsoft.Json.JsonProperty("region_list")] + [System.Text.Json.Serialization.JsonPropertyName("region_list")] + public string[]? RejectReasonList { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Request.cs new file mode 100644 index 00000000..54c5b3a4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_region_list/ 接口的请求。 + /// + public class OpenAppsICPRecordQueryRegionListV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.cs new file mode 100644 index 00000000..fb6471e4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.cs @@ -0,0 +1,62 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_region_list/ 接口的响应。 + /// + public class OpenAppsICPRecordQueryRegionListV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class Region + { + /// + /// 获取或设置区域编码。 + /// + [Newtonsoft.Json.JsonProperty("code")] + [System.Text.Json.Serialization.JsonPropertyName("code")] + public string Code { get; set; } = default!; + + /// + /// 获取或设置区域名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置区域类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public int Type { get; set; } + + /// + /// 获取或设置子区域列表。 + /// + [Newtonsoft.Json.JsonProperty("sub_region")] + [System.Text.Json.Serialization.JsonPropertyName("sub_region")] + public Region[]? Children { get; set; } + } + } + + /// + /// 获取或设置区域列表。 + /// + [Newtonsoft.Json.JsonProperty("region_list")] + [System.Text.Json.Serialization.JsonPropertyName("region_list")] + public Types.Region[] RegionList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Request.cs new file mode 100644 index 00000000..d3950b85 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Request.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_service_content_type_list/ 接口的请求。 + /// + public class OpenAppsICPRecordQueryServiceContentTypeListV1Request : DouyinMicroAppOpenApiRequest + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.cs new file mode 100644 index 00000000..ca22f6c2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.cs @@ -0,0 +1,55 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [GET] /apps/v1/icp_record/query_service_content_type_list/ 接口的响应。 + /// + public class OpenAppsICPRecordQueryServiceContentTypeListV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class ServiceContentTypeInfo + { + /// + /// 获取或设置服务内容类型。 + /// + [Newtonsoft.Json.JsonProperty("service_content_type_id")] + [System.Text.Json.Serialization.JsonPropertyName("service_content_type_id")] + public int ServiceContentTypeId { get; set; } + + /// + /// 获取或设置服务内容类型名称。 + /// + [Newtonsoft.Json.JsonProperty("service_content_type_name")] + [System.Text.Json.Serialization.JsonPropertyName("service_content_type_name")] + public string ServiceContentTypeName { get; set; } = default!; + + /// + /// 获取或设置子服务内容类型列表。 + /// + [Newtonsoft.Json.JsonProperty("sub_service_content_type_list")] + [System.Text.Json.Serialization.JsonPropertyName("sub_service_content_type_list")] + public ServiceContentTypeInfo[]? SubServiceContentTypeList { get; set; } + } + } + + /// + /// 获取或设置服务内容类型列表。 + /// + [Newtonsoft.Json.JsonProperty("service_content_type_list")] + [System.Text.Json.Serialization.JsonPropertyName("service_content_type_list")] + public Types.ServiceContentTypeInfo[] ServiceContentTypeList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.cs new file mode 100644 index 00000000..1fa561c8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/icp_record/send_facial_recognition_notify/ 接口的请求。 + /// + public class OpenAppsICPRecordSendFacialRecognitionNotifyV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置省份编码。 + /// + [Newtonsoft.Json.JsonProperty("province_code")] + [System.Text.Json.Serialization.JsonPropertyName("province_code")] + public string ProvinceCode { get; set; } = string.Empty; + + /// + /// 获取或设置小程序负责人手机号。 + /// + [Newtonsoft.Json.JsonProperty("app_incharge_people_phone")] + [System.Text.Json.Serialization.JsonPropertyName("app_incharge_people_phone")] + public string PhoneNumber { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.cs new file mode 100644 index 00000000..985650de --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/icp_record/send_facial_recognition_notify/ 接口的响应。 + /// + public class OpenAppsICPRecordSendFacialRecognitionNotifyV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置人证核验 Token。 + /// + [Newtonsoft.Json.JsonProperty("facial_recognition_token")] + [System.Text.Json.Serialization.JsonPropertyName("facial_recognition_token")] + public string FacialRecognitionToken { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.cs new file mode 100644 index 00000000..0fcf4049 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.cs @@ -0,0 +1,343 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/icp_record/submit_record_info/ 接口的请求。 + /// + public class OpenAppsICPRecordSubmitRecordInfoV1Request : DouyinMicroAppOpenApiRequest + { + public static class Types + { + public class Material + { + /// + /// 获取或设置资源路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string FilePath { get; set; } = string.Empty; + } + + public class CorpInfo + { + /// + /// 获取或设置主体类型。 + /// + [Newtonsoft.Json.JsonProperty("corp_type")] + [System.Text.Json.Serialization.JsonPropertyName("corp_type")] + public int CorpType { get; set; } + + /// + /// 获取或设置省份编号。 + /// + [Newtonsoft.Json.JsonProperty("province_code")] + [System.Text.Json.Serialization.JsonPropertyName("province_code")] + public string ProvinceCode { get; set; } = string.Empty; + + /// + /// 获取或设置省份名称。 + /// + [Newtonsoft.Json.JsonProperty("province_name")] + [System.Text.Json.Serialization.JsonPropertyName("province_name")] + public string ProvinceName { get; set; } = string.Empty; + + /// + /// 获取或设置城市编号。 + /// + [Newtonsoft.Json.JsonProperty("city_code")] + [System.Text.Json.Serialization.JsonPropertyName("city_code")] + public string CityCode { get; set; } = string.Empty; + + /// + /// 获取或设置城市名称。 + /// + [Newtonsoft.Json.JsonProperty("city_name")] + [System.Text.Json.Serialization.JsonPropertyName("city_name")] + public string CityName { get; set; } = string.Empty; + + /// + /// 获取或设置区县编号。 + /// + [Newtonsoft.Json.JsonProperty("region_code")] + [System.Text.Json.Serialization.JsonPropertyName("region_code")] + public string DistrictCode { get; set; } = string.Empty; + + /// + /// 获取或设置区县名称。 + /// + [Newtonsoft.Json.JsonProperty("region_name")] + [System.Text.Json.Serialization.JsonPropertyName("region_name")] + public string DistrictName { get; set; } = string.Empty; + + /// + /// 获取或设置通信地址。 + /// + [Newtonsoft.Json.JsonProperty("communication_address")] + [System.Text.Json.Serialization.JsonPropertyName("communication_address")] + public string CommunicationAddress { get; set; } = string.Empty; + + /// + /// 获取或设置证件类型。 + /// + [Newtonsoft.Json.JsonProperty("credentials_type")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_type")] + public int CredentialsType { get; set; } + + /// + /// 获取或设置证件地址。 + /// + [Newtonsoft.Json.JsonProperty("credentials_address")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_address")] + public string CredentialsAddress { get; set; } = string.Empty; + + /// + /// 获取或设置证件名称。 + /// + [Newtonsoft.Json.JsonProperty("credentials_name")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_name")] + public string CredentialsName { get; set; } = string.Empty; + + /// + /// 获取或设置证件编号。 + /// + [Newtonsoft.Json.JsonProperty("credentials_number")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_number")] + public string CredentialsNumber { get; set; } = string.Empty; + + /// + /// 获取或设置证件材料。 + /// + [Newtonsoft.Json.JsonProperty("credentials_pic")] + [System.Text.Json.Serialization.JsonPropertyName("credentials_pic")] + public Material CredentialsMaterial { get; set; } = new Material(); + + /// + /// 获取或设置负责人证件类型。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_credentials_type")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_credentials_type")] + public int InchargePeopleCredentialsType { get; set; } + + /// + /// 获取或设置负责人证件编号。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_credentials_number")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_credentials_number")] + public string InchargePeopleCredentialsNumber { get; set; } = string.Empty; + + /// + /// 获取或设置负责人证件正面材料。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_credentials_front")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_credentials_front")] + public Material InchargePeopleCredentialsFrontMaterial { get; set; } = new Material(); + + /// + /// 获取或设置负责人证件背面材料。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_credentials_back")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_credentials_back")] + public Material InchargePeopleCredentialsBackMaterial { get; set; } = new Material(); + + /// + /// 获取或设置负责人证件是否有有效期。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_credentials_has_end_time")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_credentials_has_end_time")] + public bool? InchargePeopleCredentialsHasEndTime { get; set; } + + /// + /// 获取或设置负责人证件有效开始日期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_credentials_valid_start_time")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_credentials_valid_start_time")] + public long? InchargePeopleCredentialsValidStartTimestamp { get; set; } + + /// + /// 获取或设置负责人证件有效结束日期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_credentials_valid_end_time")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_credentials_valid_end_time")] + public long? InchargePeopleCredentialsValidEndTimestamp { get; set; } + + /// + /// 获取或设置负责人姓名。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_name")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_name")] + public string InchargePeopleName { get; set; } = string.Empty; + + /// + /// 获取或设置负责人邮箱。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_email")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_email")] + public string InchargePeopleEmail { get; set; } = string.Empty; + + /// + /// 获取或设置负责人手机号。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_phone")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_phone")] + public string InchargePeoplePhoneNumber { get; set; } = string.Empty; + + /// + /// 获取或设置负责人应急手机号。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_emergency_phone")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_emergency_phone")] + public string InchargePeopleEmergencyPhoneNumber { get; set; } = string.Empty; + + /// + /// 获取或设置负责人授权书材料列表。 + /// + [Newtonsoft.Json.JsonProperty("corp_authority_letter")] + [System.Text.Json.Serialization.JsonPropertyName("corp_authority_letter")] + public IList? CorpAuthorityLetterMaterialList { get; set; } + + /// + /// 获取或设置主办单位备案承诺书材料列表。 + /// + [Newtonsoft.Json.JsonProperty("corp_commitment")] + [System.Text.Json.Serialization.JsonPropertyName("corp_commitment")] + public IList? CorpCommitmentMaterialList { get; set; } + + /// + /// 获取或设置主办单位其他材料列表。 + /// + [Newtonsoft.Json.JsonProperty("corp_other_materials")] + [System.Text.Json.Serialization.JsonPropertyName("corp_other_materials")] + public IList? CorpOtherMaterialList { get; set; } + + /// + /// 获取或设置备注信息。 + /// + [Newtonsoft.Json.JsonProperty("remark")] + [System.Text.Json.Serialization.JsonPropertyName("remark")] + public string? Remark { get; set; } + } + + public class AppInfo + { + public static class Types + { + public class PreApproval + { + /// + /// 获取或设置前置审核项 ID。 + /// + [Newtonsoft.Json.JsonProperty("pre_approval_item_id")] + [System.Text.Json.Serialization.JsonPropertyName("pre_approval_item_id")] + public int PreApprovalTypeId { get; set; } + + /// + /// 获取或设置前置审批编号。 + /// + [Newtonsoft.Json.JsonProperty("pre_approval_number")] + [System.Text.Json.Serialization.JsonPropertyName("pre_approval_number")] + public string? PreApprovalNumber { get; set; } + + /// + /// 获取或设置前置审批文件材料列表。 + /// + [Newtonsoft.Json.JsonProperty("pre_approval_files")] + [System.Text.Json.Serialization.JsonPropertyName("pre_approval_files")] + public IList? PreApprovalMaterialList { get; set; } + } + } + + /// + /// 获取或设置语种列表。 + /// + [Newtonsoft.Json.JsonProperty("app_language")] + [System.Text.Json.Serialization.JsonPropertyName("app_language")] + public IList LanguageTypeList { get; set; } = new List(); + + /// + /// 获取或设置人证核验 Token。 + /// + [Newtonsoft.Json.JsonProperty("facial_recognition_token")] + [System.Text.Json.Serialization.JsonPropertyName("facial_recognition_token")] + public string FacialRecognitionToken { get; set; } = string.Empty; + + /// + /// 获取或设置负责人邮箱。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_email")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_email")] + public string InchargePeopleEmail { get; set; } = string.Empty; + + /// + /// 获取或设置负责人手机号。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_phone")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_phone")] + public string InchargePeoplePhoneNumber { get; set; } = string.Empty; + + /// + /// 获取或设置负责人应急手机号。 + /// + [Newtonsoft.Json.JsonProperty("incharge_people_emergency_phone")] + [System.Text.Json.Serialization.JsonPropertyName("incharge_people_emergency_phone")] + public string InchargePeopleEmergencyPhoneNumber { get; set; } = string.Empty; + + /// + /// 获取或设置是否涉及前置审批。 + /// + [Newtonsoft.Json.JsonProperty("involve_pre_approval")] + [System.Text.Json.Serialization.JsonPropertyName("involve_pre_approval")] + public bool IsPreApprovalInvolved { get; set; } + + /// + /// 获取或设置前置审批列表。 + /// + [Newtonsoft.Json.JsonProperty("pre_approval_list")] + [System.Text.Json.Serialization.JsonPropertyName("pre_approval_list")] + public IList? PreApprovalList { get; set; } + + /// + /// 获取或设置服务内容 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("service_content_type_list")] + [System.Text.Json.Serialization.JsonPropertyName("service_content_type_list")] + public IList ServiceContentTypeList { get; set; } = new List(); + + /// + /// 获取或设置负责人授权书材料列表。 + /// + [Newtonsoft.Json.JsonProperty("app_authority_letter")] + [System.Text.Json.Serialization.JsonPropertyName("app_authority_letter")] + public IList? AppAuthorityLetterMaterialList { get; set; } + + /// + /// 获取或设置其他材料列表。 + /// + [Newtonsoft.Json.JsonProperty("app_other_materials")] + [System.Text.Json.Serialization.JsonPropertyName("app_other_materials")] + public IList? AppOtherMaterialList { get; set; } + + /// + /// 获取或设置备注信息。 + /// + [Newtonsoft.Json.JsonProperty("remark")] + [System.Text.Json.Serialization.JsonPropertyName("remark")] + public string? Remark { get; set; } + } + } + + /// + /// 获取或设置备案主体信息。 + /// + [Newtonsoft.Json.JsonProperty("corp_info")] + [System.Text.Json.Serialization.JsonPropertyName("corp_info")] + public Types.CorpInfo CorpInfo { get; set; } = new Types.CorpInfo(); + + /// + /// 获取或设置备案应用信息。 + /// + [Newtonsoft.Json.JsonProperty("app_info")] + [System.Text.Json.Serialization.JsonPropertyName("app_info")] + public Types.AppInfo AppInfo { get; set; } = new Types.AppInfo(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Response.cs new file mode 100644 index 00000000..bd369a5d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Response.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/icp_record/submit_record_info/ 接口的响应。 + /// + public class OpenAppsICPRecordSubmitRecordInfoV1Response : DouyinMicroAppOpenApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Request.cs new file mode 100644 index 00000000..86907612 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Request.cs @@ -0,0 +1,38 @@ +using System; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/icp_record/upload_image/ 接口的请求。 + /// + public class OpenAppsICPRecordUploadImageV1Request : DouyinMicroAppOpenApiRequest + { + /// + /// 获取或设置图片类型。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int ImageType { get; set; } + + /// + /// 获取或设置图片文件字节数组。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public byte[] ImageFileBytes { get; set; } = Array.Empty(); + + /// + /// 获取或设置图片文件名。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? ImageFileName { get; set; } + + /// + /// 获取或设置图片文件 MIME 类型。如果不指定将由系统自动生成。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? ImageFileContentType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.cs new file mode 100644 index 00000000..8a6f7116 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.cs @@ -0,0 +1,28 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi.Models +{ + /// + /// 表示 [POST] /apps/v1/icp_record/upload_image/ 接口的响应。 + /// + public class OpenAppsICPRecordUploadImageV1Response : DouyinMicroAppOpenApiResponse + { + public static class Types + { + public class Data + { + /// + /// 获取或设置资源路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string FilePath { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs index bf9e643b..f8e87ee1 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/ExtendedSDK/OpenApi/Models/_Legacy/MicroApp/App/OpenApiMicroAppAppModifyServerDomainV1Request.cs @@ -11,7 +11,7 @@ public class OpenApiMicroAppAppModifyServerDomainV1Request : DouyinMicroAppOpenA { /// /// 获取或设置执行动作。 - /// 默认值:get + /// 默认值:"get" /// [Newtonsoft.Json.JsonProperty("action")] [System.Text.Json.Serialization.JsonPropertyName("action")] diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.json new file mode 100644 index 00000000..463014fc --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordGetFacialRecognitionUrlV1Response.json @@ -0,0 +1,9 @@ +{ + "err_no": 0, + "log_id": "2023120718400603FC7DFC64EFC63EE90F", + "data": { + "facial_recognition_token": "xxxx", + "facial_recognition_url": "https://xxxxxx" + }, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.json new file mode 100644 index 00000000..8615d5d2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryCorpTypeListV1Response.json @@ -0,0 +1,27 @@ +{ + "data": { + "corp_type_list": [ + { + "corp_type_id": 4, + "corp_type_name": "企业", + "credentials_type_list": [ + { + "credentials_type_id": 1, + "credentials_type_name": "营业执照(个人或企业)" + }, + { + "credentials_type_id": 12, + "credentials_type_name": "组织机构代码证" + }, + { + "credentials_type_id": 27, + "credentials_type_name": "外国企业常驻代表机构登记证" + } + ] + } + ] + }, + "err_msg": "", + "err_no": 0, + "log_id": "202312121723335178F7582A6F5A0B21C2" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.json new file mode 100644 index 00000000..09f8d7c8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryFacialRecognitionStatusV1Response.json @@ -0,0 +1,8 @@ +{ + "data": { + "facial_recognition_status": 0 + }, + "err_msg": "", + "err_no": 0, + "log_id": "2023120718534175A5E8F8399C21436591" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.json new file mode 100644 index 00000000..05e69ad2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryInchargePeopleCredentialsTypeListV1Response.json @@ -0,0 +1,13 @@ +{ + "log_id": "202312061606373E2733BD492C282631F0", + "data": { + "credentials_type_list": [ + { + "credentials_type_id": 2, + "credentials_type_name": "居民身份证" + } + ] + }, + "err_msg": "", + "err_no": 0 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.json new file mode 100644 index 00000000..a2da6c20 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryPreApprovalItemTypeListV1Response.json @@ -0,0 +1,13 @@ +{ + "data": { + "pre_approval_item_type_list": [ + { + "pre_approval_item_id": 2, + "pre_approval_item_name": "出版" + } + ] + }, + "err_msg": "", + "err_no": 0, + "log_id": "202312061607073E2733BD492C28264063" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.json new file mode 100644 index 00000000..2a08a7e0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRecordStatusV1Response.json @@ -0,0 +1,8 @@ +{ + "log_id": "20231211091551EA10E6F43911AAE7AA17", + "data": { + "status": 1 + }, + "err_msg": "", + "err_no": 0 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.json new file mode 100644 index 00000000..59972925 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryRegionListV1Response.json @@ -0,0 +1,28 @@ +{ + "data": { + "region_list": [ + { + "name": "北京市", + "type": 1, + "code": "110000", + "sub_region": [ + { + "code": "110100", + "name": "市辖区", + "type": 2, + "sub_region": [ + { + "name": "东城区", + "type": 3, + "code": "110101" + } + ] + } + ] + } + ] + }, + "err_msg": "", + "err_no": 0, + "log_id": "20231206161404445521002D87E92CAAAC" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.json new file mode 100644 index 00000000..8f3a036b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordQueryServiceContentTypeListV1Response.json @@ -0,0 +1,19 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "202312061606423E2733BD492C2826347D", + "data": { + "service_content_type_list": [ + { + "service_content_type_id": 500, + "service_content_type_name": "生活服务", + "sub_service_content_type_list": [ + { + "service_content_type_id": 1, + "service_content_type_name": "生活缴费" + } + ] + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.json new file mode 100644 index 00000000..77d904be --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Request.json @@ -0,0 +1,4 @@ +{ + "app_incharge_people_phone": "1xxxxxxxxxx", + "province_code": "310000" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.json new file mode 100644 index 00000000..f8b187e5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSendFacialRecognitionNotifyV1Response.json @@ -0,0 +1,8 @@ +{ + "err_msg": "", + "err_no": 0, + "log_id": "2023120718533575A5E8F8399C2143627D", + "data": { + "facial_recognition_token": "xxxxx" + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.json new file mode 100644 index 00000000..a74b0256 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordSubmitRecordInfoV1Request.json @@ -0,0 +1,71 @@ +{ + "corp_info": { + "corp_type": 4, + "credentials_type": 1, + "credentials_name": "1", + "credentials_number": "xxxxx", + "credentials_pic": { + "path": "xxxx" + }, + "credentials_address": "xxxxx", + "province_code": "320000", + "province_name": "江苏省", + "city_code": "120100", + "city_name": "市辖区", + "region_code": "120104", + "region_name": "南开区", + "communication_address": "xxxx", + "incharge_people_name": "xxx", + "incharge_people_credentials_type": 2, + "incharge_people_credentials_number": "xxxxxxx", + "incharge_people_credentials_front": { + "path": "xxxxxx" + }, + "incharge_people_credentials_back": { + "path": "xxxxx" + }, + "incharge_people_credentials_has_end_time": true, + "incharge_people_credentials_valid_start_time": 1704038400, + "incharge_people_credentials_valid_end_time": 1733328000, + "incharge_people_email": "xxxxxx", + "incharge_people_phone": "xxxxxx", + "incharge_people_emergency_phone": "xxxxxx", + "remark": "备注", + "corp_other_materials": [ + { + "path": "xxxxxxx" + } + ], + "corp_authority_letter": [ + { + "path": "xxxxxx" + } + ] + }, + "app_info": { + "app_language": [ 1 ], + "service_content_type_list": [ 1 ], + "involve_pre_approval": true, + "pre_approval_list": [ + { + "pre_approval_item_id": 3, + "pre_approval_number": "5678", + "pre_approval_files": [ + { + "path": "xxxxx" + } + ] + } + ], + "incharge_people_email": "xxxxx", + "incharge_people_phone": "xxxx", + "incharge_people_emergency_phone": "xxxx", + "remark": "备注", + "facial_recognition_token": "xxxxx", + "app_other_materials": [ + { + "path": "xxxxxx" + } + ] + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.json new file mode 100644 index 00000000..8453b59e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/OpenApi/AppsICPRecord/OpenAppsICPRecordUploadImageV1Response.json @@ -0,0 +1,8 @@ +{ + "log_id": "20231212184332A802F6FF1672E3072333", + "data": { + "path": "xxxxxxx" + }, + "err_msg": "", + "err_no": 0 +} From 769422aa39e1fae1108bc38783054509a36e1373 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 9 Mar 2024 17:38:28 +0800 Subject: [PATCH 41/42] =?UTF-8?q?docs:=20=E5=AE=8C=E5=96=84=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/MicroApp/Basic_EventDeserialization.md | 2 +- docs/MicroApp/Basic_ModelDefinition.md | 82 +++++++++++++-------- docs/MicroApp/README.md | 15 ++-- 3 files changed, 62 insertions(+), 37 deletions(-) diff --git a/docs/MicroApp/Basic_EventDeserialization.md b/docs/MicroApp/Basic_EventDeserialization.md index 8f8567e7..f5a89302 100644 --- a/docs/MicroApp/Basic_EventDeserialization.md +++ b/docs/MicroApp/Basic_EventDeserialization.md @@ -14,7 +14,7 @@ string webhookXml = " ... "; var webhookModel = client.DeserializeEventFromXml(webhookXml); ``` -完整的回调通知模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/OpenApi/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/SDK/ProductApi/Events_ 目录。 +完整的回调通知模型定义可以参考项目目录下的 _src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/ExtendedSDK/OpenApi/Events_、_src/SKIT.FlurlHttpClient.ByteDance.Api/ExtendedSDK/ProductApi/Events_ 目录。 --- diff --git a/docs/MicroApp/Basic_ModelDefinition.md b/docs/MicroApp/Basic_ModelDefinition.md index 8cfb48b8..fb0f770e 100644 --- a/docs/MicroApp/Basic_ModelDefinition.md +++ b/docs/MicroApp/Basic_ModelDefinition.md @@ -20,27 +20,50 @@ [展开查看] -| | 抖音 API | 备注 | -| :-: | :------------------------------------: | :------------------: | -| √ | 接口调用凭证 | | -| √ | 登录 | | -| √ | 数据缓存 | | -| √ | 分享 | | -| √ | 客服 | | -| × | 交易系统 | 异构协议,需独立模块 | -| √ | 二维码 | | -| √ | 内容安全 | | -| √ | 课程库 | | -| √ | 担保支付 | | -| √ | 评价 | | -| √ | 订阅消息 | | -| √ | 其它:直播间自定义封面 | | -| √ | 其它:抖音开放平台与小程序视频打通能力 | | -| √ | 小程序推广计划 | | -| √ | 挂载 | | -| √ | 分发 | | -| √ | 引导关注抖音号 | | -| √ | 数据分析 | | +| | 抖音 API | 备注 | +| :-: | :---------------------------------------: | :--------------------------------: | +| × | 联合授权 | 异构协议,请使用 `DouyinOpen` 模块 | +| × | 接口调用凭证:经营能力调用凭证 | 异构协议,请使用 `DouyinOpen` 模块 | +| × | 接口调用凭证:用户授权调用凭证 | 异构协议,请使用 `DouyinOpen` 模块 | +| √ | 接口调用凭证:非用户授权调用凭证 | | +| × | 私聊和群聊 | 异构协议,请使用 `DouyinOpen` 模块 | +| √ | 登录 | | +| √ | 小程序码与小程序链接 | | +| √ | 线索组件 | | +| √ | 视频能力 | | +| √ | 搜索能力 | | +| √ | 任务能力 | | +| × | 电商 | _开发中_ | +| × | 生活服务 | _开发中_ | +| √ | 用户信息 | | +| √ | 分享 | | +| √ | 客服 | | +| × | 交易工具 | _开发中_ | +| × | 小程序券 | _开发中_ | +| × | 交易系统 | _开发中_ | +| √ | 内容安全 | | +| √ | 泛知识:角色系统 | | +| √ | 泛知识:课程库 | | +| √ | 担保支付 | | +| √ | 评价 | | +| √ | 其他:直播间自定义封面 | | +| √ | 其他:抖音开放平台与小程序视频打通能力 | | +| × | 其他:开放能力配置 | _开发中_ | +| √ | 其他:上传资源 | | +| × | 其他:解决方案测试实体管理 | _开发中_ | +| √ | 订阅消息 | | +| √ | 小程序推广计划 | | +| √ | 挂载 | | +| √ | 分发 | | +| × | 数据分析 | _开发中_ | +| √ | 服务类目 | | +| √ | 直播间能力 | | +| √ | 抖音开放能力 | | +| √ | 页面结构自定义 | | +| √ | 普通二维码绑定 | | +| √ | 抖音号绑定 | | +| √ | 流量主 | | +| × | 抖店绑定 | _开发中_ | @@ -66,14 +89,15 @@ [展开查看] -| | 抖音 API | 备注 | -| :-: | :--------------------: | :--: | -| √ | 授权相关接口 | | -| √ | 域名相关接口 | | -| √ | 模板管理接口 | | -| √ | 代商家管理小程序 | | -| √ | 代商家管理小程序 | | -| √ | 代商家入驻抖音开放平台 | | +| | 抖音 API | 备注 | +| :-: | :----------------------------------: | :------: | +| √ | 代开发小程序:上传资源 | | +| √ | 代开发小程序:授权 | | +| √ | 代开发小程序:域名 | | +| √ | 代开发小程序:模板管理 | | +| √ | 代开发小程序:代商家管理小程序 | | +| √ | 代开发小程序:代商家入驻抖音开放平台 | | +| × | 代开发生活服务商家应用 | _开发中_ | diff --git a/docs/MicroApp/README.md b/docs/MicroApp/README.md index 70cedc51..876f87aa 100644 --- a/docs/MicroApp/README.md +++ b/docs/MicroApp/README.md @@ -9,8 +9,9 @@ ## 功能 - 基于抖音小程序开放平台 API 封装。 -- 提供了抖音小程序所需的 AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 +- 提供了抖音小程序所需的 RSA、AES、MD5、SHA-1、HMAC-SHA-256 等算法工具类。 - 提供了解析回调通知事件等扩展方法。 +- 配合 [SKIT.FlurlHttpClient.ByteDance.DouyinOpen](../DouyinOpen/README.md) 模块,可无缝对接抖音开放平台。 --- @@ -66,8 +67,8 @@ if (response.IsSuccessful()) } else { - Console.WriteLine("错误代码:" + response.ErrorCode); - Console.WriteLine("错误描述:" + response.ErrorMessage); + Console.WriteLine("错误代码:" + response.ErrorNumber); + Console.WriteLine("错误描述:" + response.ErrorTips); } ``` @@ -78,7 +79,7 @@ else - 服务商平台: ```csharp -using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.OpenApi; +using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.OpenApi; var options = new DouyinMicroAppOpenApiClientOptions() { @@ -91,7 +92,7 @@ var client = DouyinMicroAppOpenApiClientBuilder.Create(options).Build(); - 泛知识课程库: ```csharp -using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.ProductApi; +using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.ProductApi; var options = new DouyinMicroAppProductApiClientOptions() { @@ -104,7 +105,7 @@ var client = DouyinMicroAppProductApiClientBuilder.Create(options).Build(); - 泛知识角色系统: ```csharp -using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.RoleApi; +using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.RoleApi; var options = new DouyinMicroAppRoleApiClientOptions() { @@ -117,7 +118,7 @@ var client = DouyinMicroAppRoleApiClientBuilder.Create(options).Build(); - 直播小玩法: ```csharp -using SKIT.FlurlHttpClient.ByteDance.MicroApp.SDK.Webcast; +using SKIT.FlurlHttpClient.ByteDance.MicroApp.ExtendedSDK.Webcast; var options = new DouyinMicroAppWebcastClientOptions() { From ae93f43963a010a30ad1f1968c4d787aff432ebd Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 9 Mar 2024 17:38:44 +0800 Subject: [PATCH 42/42] feat(microapp): bump version to v3.0.0 --- CHANGELOG.md | 2 +- .../SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52642fbb..9da7cc27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,7 +33,7 @@ [展开查看] -- Release 3.0.0 (todo) +- Release 3.0.0 (2024-03-09) - **新增**:新增 URL Link v2、URL Schema v2、二维码 v2、订阅消息 v2、推广计划 v2、流量主 v2 等相关接口。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj index 24726c68..f38e8097 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/SKIT.FlurlHttpClient.ByteDance.MicroApp.csproj @@ -1,7 +1,7 @@ - net461; netstandard2.0; net6.0 + net462; netstandard2.0; net6.0 10.0 enable true @@ -14,7 +14,7 @@ MIT https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.ByteDance Flurl.Http ByteDance MicroApp 字节 字节跳动 头条 今日头条 抖音 字节小程序 字节跳动小程序 头条小程序 今日头条小程序 抖音小程序 - 3.0.0-preview.1 + 3.0.0 基于 Flurl.Http 的抖音小程序开放平台 API 客户端,支持小程序、小游戏、服务商平台、泛知识课程库、泛知识角色系统、直播小玩法等接口。 Fu Diwei git @@ -36,7 +36,7 @@ - +