From f17cc21c57758785bfd2249d47ae93715cc38586 Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Tue, 30 Jun 2026 16:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=EF=BC=9A=E6=89=B9=E9=87=8F=E5=90=8C=E6=AD=A5=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=E5=A4=8D=E9=80=89=E6=A1=86=E9=80=89=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api-client/services.gen.ts | 12 +- apps/web-antd/src/api-client/types.gen.ts | 30 +++++ .../devicemanagement/deviceinfo/index.vue | 103 ++++++++++++++++++ .../devicemanagement/deviceinfo/schema.ts | 14 +++ 4 files changed, 158 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/api-client/services.gen.ts b/apps/web-antd/src/api-client/services.gen.ts index 0beedb0..a8d1b08 100644 --- a/apps/web-antd/src/api-client/services.gen.ts +++ b/apps/web-antd/src/api-client/services.gen.ts @@ -1,7 +1,7 @@ // This file is auto-generated by @hey-api/openapi-ts import { createClient, createConfig, type Options, formDataBodySerializer } from '@hey-api/client-axios'; -import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionError, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationError, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationError, GetApiAbpApplicationLocalizationResponse, PostApiAppAccountLoginData, PostApiAppAccountLoginError, PostApiAppAccountLoginResponse, PostApiAppAccountLogin2FaData, PostApiAppAccountLogin2FaError, PostApiAppAccountLogin2FaResponse, PostApiAppAccountLoginOidcData, PostApiAppAccountLoginOidcError, PostApiAppAccountLoginOidcResponse, PostApiAppAccountRefreshTokenData, PostApiAppAccountRefreshTokenError, PostApiAppAccountRefreshTokenResponse, PostApiAppAccountLogoutError, PostApiAppAccountLogoutResponse, PostAuditLogsPageData, PostAuditLogsPageError, PostAuditLogsPageResponse, PostAggregationBusinessReceiveSetCommandInfoAsyncData, PostAggregationBusinessReceiveSetCommandInfoAsyncError, PostAggregationBusinessReceiveSetCommandInfoAsyncResponse, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncData, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncError, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncResponse, PostAggregationBusinessBatchQueryDeviceFreezeDataInfoAsyncData, PostAggregationBusinessBatchQueryDeviceFreezeDataInfoAsyncError, PostAggregationBusinessBatchQueryDeviceFreezeDataInfoAsyncResponse, PostAggregationBusinessQueryDeviceDataInfoAsyncData, PostAggregationBusinessQueryDeviceDataInfoAsyncError, PostAggregationBusinessQueryDeviceDataInfoAsyncResponse, PostAggregationBusinessQueryDeviceFreezeDataInfoAsyncData, PostAggregationBusinessQueryDeviceFreezeDataInfoAsyncError, PostAggregationBusinessQueryDeviceFreezeDataInfoAsyncResponse, PostAggregationBusinessBatchCreateDeviceInfoAsyncData, PostAggregationBusinessBatchCreateDeviceInfoAsyncError, PostAggregationBusinessBatchCreateDeviceInfoAsyncResponse, PostAggregationBusinessReceiveGetCommandInfoAsyncData, PostAggregationBusinessReceiveGetCommandInfoAsyncError, PostAggregationBusinessReceiveGetCommandInfoAsyncResponse, GetCommonGetSelectListData, GetCommonGetSelectListError, GetCommonGetSelectListResponse, PostCtWingAccountInsertAsyncData, PostCtWingAccountInsertAsyncError, PostCtWingAccountInsertAsyncResponse, PostCtWingAccountModifyAsyncData, PostCtWingAccountModifyAsyncError, PostCtWingAccountModifyAsyncResponse, PostCtWingAccountDeleteAsyncData, PostCtWingAccountDeleteAsyncError, PostCtWingAccountDeleteAsyncResponse, PostCtWingAccountListAsyncData, PostCtWingAccountListAsyncError, PostCtWingAccountListAsyncResponse, PostCtWingProductInsertAsyncData, PostCtWingProductInsertAsyncError, PostCtWingProductInsertAsyncResponse, PostCtWingProductModifyAsyncData, PostCtWingProductModifyAsyncError, PostCtWingProductModifyAsyncResponse, PostCtWingProductDeleteAsyncData, PostCtWingProductDeleteAsyncError, PostCtWingProductDeleteAsyncResponse, PostCtWingProductGetAsyncData, PostCtWingProductGetAsyncError, PostCtWingProductGetAsyncResponse, PostCtWingProductProductStatusChangeAsyncData, PostCtWingProductProductStatusChangeAsyncError, PostCtWingProductProductStatusChangeAsyncResponse, PostCtWingProductListAsyncData, PostCtWingProductListAsyncError, PostCtWingProductListAsyncResponse, PostCtWingServiceReceiveStatusChangeError, PostCtWingServiceReceiveStatusChangeResponse, PostCtWingServiceReceiveDataChangeError, PostCtWingServiceReceiveDataChangeResponse, PostCtWingServiceReceiveCommandChangeError, PostCtWingServiceReceiveCommandChangeResponse, PostCtWingServiceReceiveEventChangeError, PostCtWingServiceReceiveEventChangeResponse, PostCtWingServiceReceiveDeviceChangeError, PostCtWingServiceReceiveDeviceChangeResponse, PostDataDictionaryPageData, PostDataDictionaryPageError, PostDataDictionaryPageResponse, PostDataDictionaryPageDetailData, PostDataDictionaryPageDetailError, PostDataDictionaryPageDetailResponse, PostDataDictionarySelectDetailData, PostDataDictionarySelectDetailError, PostDataDictionarySelectDetailResponse, PostDataDictionaryCreateData, PostDataDictionaryCreateError, PostDataDictionaryCreateResponse, PostDataDictionaryCreateDetailData, PostDataDictionaryCreateDetailError, PostDataDictionaryCreateDetailResponse, PostDataDictionaryStatusData, PostDataDictionaryStatusError, PostDataDictionaryStatusResponse, PostDataDictionaryUpdateDetailData, PostDataDictionaryUpdateDetailError, PostDataDictionaryUpdateDetailResponse, PostDataDictionaryDeleteData, PostDataDictionaryDeleteError, PostDataDictionaryDeleteResponse, PostDataDictionaryDeleteDataDictionaryTypeData, PostDataDictionaryDeleteDataDictionaryTypeError, PostDataDictionaryDeleteDataDictionaryTypeResponse, PostDataDictionaryUpdateData, PostDataDictionaryUpdateError, PostDataDictionaryUpdateResponse, PostAggregationDeviceCreateAsyncData, PostAggregationDeviceCreateAsyncError, PostAggregationDeviceCreateAsyncResponse, PostAggregationDeviceBatchCreateAsyncData, PostAggregationDeviceBatchCreateAsyncError, PostAggregationDeviceBatchCreateAsyncResponse, PostAggregationDeviceDeleteAsyncData, PostAggregationDeviceDeleteAsyncError, PostAggregationDeviceDeleteAsyncResponse, PostAggregationDeviceFindByIdAsyncData, PostAggregationDeviceFindByIdAsyncError, PostAggregationDeviceFindByIdAsyncResponse, PostAggregationDeviceRepushDeviceInfoToIoTplatformData, PostAggregationDeviceRepushDeviceInfoToIoTplatformError, PostAggregationDeviceRepushDeviceInfoToIoTplatformResponse, PostAggregationDeviceEnableDeviceForApiAsyncData, PostAggregationDeviceEnableDeviceForApiAsyncError, PostAggregationDeviceEnableDeviceForApiAsyncResponse, PostAggregationDeviceUpdateDeviceSecKeyForApiAsyncData, PostAggregationDeviceUpdateDeviceSecKeyForApiAsyncError, PostAggregationDeviceUpdateDeviceSecKeyForApiAsyncResponse, PostAggregationDeviceDeviceCommandForApiAsyncData, PostAggregationDeviceDeviceCommandForApiAsyncError, PostAggregationDeviceDeviceCommandForApiAsyncResponse, PostAggregationDeviceGetDevicePropertyValueForApiAsyncData, PostAggregationDeviceGetDevicePropertyValueForApiAsyncError, PostAggregationDeviceGetDevicePropertyValueForApiAsyncResponse, PostAggregationDeviceDeviceUpgradeForApiAsyncData, PostAggregationDeviceDeviceUpgradeForApiAsyncError, PostAggregationDeviceDeviceUpgradeForApiAsyncResponse, PostAggregationDeviceDeviceBatchUpgradeForApiAsyncData, PostAggregationDeviceDeviceBatchUpgradeForApiAsyncError, PostAggregationDeviceDeviceBatchUpgradeForApiAsyncResponse, PostAggregationDeviceDownloadFirmwareData, PostAggregationDeviceDownloadFirmwareError, PostAggregationDeviceDownloadFirmwareResponse, GetAggregationDeviceDownloadFirmwareData, GetAggregationDeviceDownloadFirmwareError, GetAggregationDeviceDownloadFirmwareResponse, PostAggregationDeviceBindingDeviceThingModelData, PostAggregationDeviceBindingDeviceThingModelError, PostAggregationDeviceBindingDeviceThingModelResponse, PostAggregationDeviceCallDeviceServiceForApiAsyncData, PostAggregationDeviceCallDeviceServiceForApiAsyncError, PostAggregationDeviceCallDeviceServiceForApiAsyncResponse, PostAggregationDeviceDeviceMasterSwitchForApiAsyncData, PostAggregationDeviceDeviceMasterSwitchForApiAsyncError, PostAggregationDeviceDeviceMasterSwitchForApiAsyncResponse, PostFirmwareInfoCreateAsyncData, PostFirmwareInfoCreateAsyncError, PostFirmwareInfoCreateAsyncResponse, PostFirmwareInfoUpdateAsyncData, PostFirmwareInfoUpdateAsyncError, PostFirmwareInfoUpdateAsyncResponse, PostFirmwareInfoDeleteAsyncData, PostFirmwareInfoDeleteAsyncError, PostFirmwareInfoDeleteAsyncResponse, PostFirmwareInfoFindByIdAsyncData, PostFirmwareInfoFindByIdAsyncError, PostFirmwareInfoFindByIdAsyncResponse, PostFirmwareInfoUpdateStatusByIdAsyncData, PostFirmwareInfoUpdateStatusByIdAsyncError, PostFirmwareInfoUpdateStatusByIdAsyncResponse, PostFirmwareInfoFindByDeviceProductIdAsyncData, PostFirmwareInfoFindByDeviceProductIdAsyncError, PostFirmwareInfoFindByDeviceProductIdAsyncResponse, PostFirmwareInfoPageData, PostFirmwareInfoPageError, PostFirmwareInfoPageResponse, PostDeviceInfoFindByDeviceAddressData, PostDeviceInfoFindByDeviceAddressError, PostDeviceInfoFindByDeviceAddressResponse, PostDeviceInfoPageData, PostDeviceInfoPageError, PostDeviceInfoPageResponse, PostDeviceInfoCacheDeviceDataToRedisError, PostDeviceInfoCacheDeviceDataToRedisResponse, PostDeviceInfoMqttDeviceLoginData, PostDeviceInfoMqttDeviceLoginError, PostDeviceInfoMqttDeviceLoginResponse, PostDeviceThingModelManagementCreateAsyncData, PostDeviceThingModelManagementCreateAsyncError, PostDeviceThingModelManagementCreateAsyncResponse, PostDeviceThingModelManagementUpdateAsyncData, PostDeviceThingModelManagementUpdateAsyncError, PostDeviceThingModelManagementUpdateAsyncResponse, PostDeviceThingModelManagementDeleteAsyncData, PostDeviceThingModelManagementDeleteAsyncError, PostDeviceThingModelManagementDeleteAsyncResponse, PostDeviceThingModelManagementFindByIdAsyncData, PostDeviceThingModelManagementFindByIdAsyncError, PostDeviceThingModelManagementFindByIdAsyncResponse, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncData, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncError, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncResponse, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncData, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncError, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncResponse, PostDeviceThingModelManagementBuildAnalysisScriptAsyncData, PostDeviceThingModelManagementBuildAnalysisScriptAsyncError, PostDeviceThingModelManagementBuildAnalysisScriptAsyncResponse, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncData, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncError, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncResponse, PostDeviceThingModelManagementMessageAnalysisTestAsyncData, PostDeviceThingModelManagementMessageAnalysisTestAsyncError, PostDeviceThingModelManagementMessageAnalysisTestAsyncResponse, PostDeviceThingModelManagementFindByPlatformProductIdAsyncData, PostDeviceThingModelManagementFindByPlatformProductIdAsyncError, PostDeviceThingModelManagementFindByPlatformProductIdAsyncResponse, PostDeviceThingModelManagementCopyAnotherDeviceThingModelAsyncData, PostDeviceThingModelManagementCopyAnotherDeviceThingModelAsyncError, PostDeviceThingModelManagementCopyAnotherDeviceThingModelAsyncResponse, PostDeviceThingModelManagementCopyIoTplatformThingModelToDeviceAsyncData, PostDeviceThingModelManagementCopyIoTplatformThingModelToDeviceAsyncError, PostDeviceThingModelManagementCopyIoTplatformThingModelToDeviceAsyncResponse, PostDeviceThingModelManagementPageAsyncData, PostDeviceThingModelManagementPageAsyncError, PostDeviceThingModelManagementPageAsyncResponse, PostDeviceThingModelManagementPropertyCreateAsyncData, PostDeviceThingModelManagementPropertyCreateAsyncError, PostDeviceThingModelManagementPropertyCreateAsyncResponse, PostDeviceThingModelManagementPropertyUpdateAsyncData, PostDeviceThingModelManagementPropertyUpdateAsyncError, PostDeviceThingModelManagementPropertyUpdateAsyncResponse, PostDeviceThingModelManagementPropertyDeleteAsyncData, PostDeviceThingModelManagementPropertyDeleteAsyncError, PostDeviceThingModelManagementPropertyDeleteAsyncResponse, PostDeviceThingModelManagementPropertyFindByIdAsyncData, PostDeviceThingModelManagementPropertyFindByIdAsyncError, PostDeviceThingModelManagementPropertyFindByIdAsyncResponse, PostDeviceThingModelManagementPropertyPageAsyncData, PostDeviceThingModelManagementPropertyPageAsyncError, PostDeviceThingModelManagementPropertyPageAsyncResponse, PostDeviceThingModelManagementCommandCreateAsyncData, PostDeviceThingModelManagementCommandCreateAsyncError, PostDeviceThingModelManagementCommandCreateAsyncResponse, PostDeviceThingModelManagementCommandUpdateAsyncData, PostDeviceThingModelManagementCommandUpdateAsyncError, PostDeviceThingModelManagementCommandUpdateAsyncResponse, PostDeviceThingModelManagementCommandDeleteAsyncData, PostDeviceThingModelManagementCommandDeleteAsyncError, PostDeviceThingModelManagementCommandDeleteAsyncResponse, PostDeviceThingModelManagementCommandFindByIdAsyncData, PostDeviceThingModelManagementCommandFindByIdAsyncError, PostDeviceThingModelManagementCommandFindByIdAsyncResponse, PostDeviceThingModelManagementUpdateCommandStatusByIdAsyncData, PostDeviceThingModelManagementUpdateCommandStatusByIdAsyncError, PostDeviceThingModelManagementUpdateCommandStatusByIdAsyncResponse, PostDeviceThingModelManagementCommandPageAsyncData, PostDeviceThingModelManagementCommandPageAsyncError, PostDeviceThingModelManagementCommandPageAsyncResponse, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncData, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncResponse, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncResponse, PostUpgradeRecordUpdateStatusAsyncData, PostUpgradeRecordUpdateStatusAsyncError, PostUpgradeRecordUpdateStatusAsyncResponse, PostUpgradeRecordBatchUpdateStatusAsyncData, PostUpgradeRecordBatchUpdateStatusAsyncError, PostUpgradeRecordBatchUpdateStatusAsyncResponse, PostUpgradeRecordDeleteAsyncData, PostUpgradeRecordDeleteAsyncError, PostUpgradeRecordDeleteAsyncResponse, PostUpgradeRecordPageData, PostUpgradeRecordPageError, PostUpgradeRecordPageResponse, PostFeaturesListData, PostFeaturesListError, PostFeaturesListResponse, PostFeaturesUpdateData, PostFeaturesUpdateError, PostFeaturesUpdateResponse, PostFeaturesDeleteData, PostFeaturesDeleteError, PostFeaturesDeleteResponse, PostFilesPageData, PostFilesPageError, PostFilesPageResponse, PostFilesUploadData, PostFilesUploadError, PostFilesUploadResponse, PostFilesDeleteData, PostFilesDeleteError, PostFilesDeleteResponse, PostFilesDownloadData, PostFilesDownloadError, PostFilesDownloadResponse, PostIdentitySecurityLogsPageData, PostIdentitySecurityLogsPageError, PostIdentitySecurityLogsPageResponse, PostAggregationIoTplatformGetIoTplatformProductInfoAsyncData, PostAggregationIoTplatformGetIoTplatformProductInfoAsyncError, PostAggregationIoTplatformGetIoTplatformProductInfoAsyncResponse, PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncData, PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncError, PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncResponse, PostAggregationIoTplatformGetIoTplatformProductThingModelInfoAsyncData, PostAggregationIoTplatformGetIoTplatformProductThingModelInfoAsyncError, PostAggregationIoTplatformGetIoTplatformProductThingModelInfoAsyncResponse, PostAggregationIoTplatformUpdateIoTplatformProductThingModelInfoAsyncData, PostAggregationIoTplatformUpdateIoTplatformProductThingModelInfoAsyncError, PostAggregationIoTplatformUpdateIoTplatformProductThingModelInfoAsyncResponse, PostAggregationIoTplatformIoTplatformDataLogReHandlerAsyncData, PostAggregationIoTplatformIoTplatformDataLogReHandlerAsyncError, PostAggregationIoTplatformIoTplatformDataLogReHandlerAsyncResponse, PostIoTplatformThingModelInfoCreateAsyncData, PostIoTplatformThingModelInfoCreateAsyncError, PostIoTplatformThingModelInfoCreateAsyncResponse, PostIoTplatformThingModelInfoUpdateAsyncData, PostIoTplatformThingModelInfoUpdateAsyncError, PostIoTplatformThingModelInfoUpdateAsyncResponse, PostIoTplatformThingModelInfoDeleteAsyncData, PostIoTplatformThingModelInfoDeleteAsyncError, PostIoTplatformThingModelInfoDeleteAsyncResponse, PostIoTplatformThingModelInfoFindByIdAsyncData, PostIoTplatformThingModelInfoFindByIdAsyncError, PostIoTplatformThingModelInfoFindByIdAsyncResponse, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncData, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncError, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncResponse, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncData, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncError, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncResponse, PostIoTplatformThingModelInfoCopyStandardThingModelData, PostIoTplatformThingModelInfoCopyStandardThingModelError, PostIoTplatformThingModelInfoCopyStandardThingModelResponse, PostIoTplatformThingModelInfoPageAsyncData, PostIoTplatformThingModelInfoPageAsyncError, PostIoTplatformThingModelInfoPageAsyncResponse, PostIoTplatformThingModelInfoGetAllPlatformThingModelAsyncError, PostIoTplatformThingModelInfoGetAllPlatformThingModelAsyncResponse, PostIoTplatformThingModelInfoStandardThingModelPageAsyncError, PostIoTplatformThingModelInfoStandardThingModelPageAsyncResponse, PostIoTplatformThingModelInfoUpdateOperableIdentifierData, PostIoTplatformThingModelInfoUpdateOperableIdentifierError, PostIoTplatformThingModelInfoUpdateOperableIdentifierResponse, PostIoTplatformThingModelInfoGetIoTplatformThingModelServiceData, PostIoTplatformThingModelInfoGetIoTplatformThingModelServiceError, PostIoTplatformThingModelInfoGetIoTplatformThingModelServiceResponse, PostIoTplatformThingModelInfoCreateIoTplatformThingModelCommandData, PostIoTplatformThingModelInfoCreateIoTplatformThingModelCommandError, PostIoTplatformThingModelInfoCreateIoTplatformThingModelCommandResponse, PostLanguagesAllError, PostLanguagesAllResponse, PostLanguagesPageData, PostLanguagesPageError, PostLanguagesPageResponse, PostLanguagesCreateData, PostLanguagesCreateError, PostLanguagesCreateResponse, PostLanguagesUpdateData, PostLanguagesUpdateError, PostLanguagesUpdateResponse, PostLanguagesDeleteData, PostLanguagesDeleteError, PostLanguagesDeleteResponse, PostLanguagesSetDefaultData, PostLanguagesSetDefaultError, PostLanguagesSetDefaultResponse, PostLanguageTextsAllResourceError, PostLanguageTextsAllResourceResponse, PostLanguageTextsPageData, PostLanguageTextsPageError, PostLanguageTextsPageResponse, PostLanguageTextsCreateData, PostLanguageTextsCreateError, PostLanguageTextsCreateResponse, PostLanguageTextsUpdateData, PostLanguageTextsUpdateError, PostLanguageTextsUpdateResponse, PostMenusUserMenuError, PostMenusUserMenuResponse, PostMenusPageData, PostMenusPageError, PostMenusPageResponse, PostMenusCreateData, PostMenusCreateError, PostMenusCreateResponse, PostMenusUpdateData, PostMenusUpdateError, PostMenusUpdateResponse, PostMenusDeleteData, PostMenusDeleteError, PostMenusDeleteResponse, PostMenusTreeError, PostMenusTreeResponse, PostNotificationNotificationPageData, PostNotificationNotificationPageError, PostNotificationNotificationPageResponse, PostNotificationNotificationSubscriptionPageData, PostNotificationNotificationSubscriptionPageError, PostNotificationNotificationSubscriptionPageResponse, PostNotificationDeleteData, PostNotificationDeleteError, PostNotificationDeleteResponse, PostNotificationSendCommonWarningMessageData, PostNotificationSendCommonWarningMessageError, PostNotificationSendCommonWarningMessageResponse, PostNotificationSendCommonInformationMessageData, PostNotificationSendCommonInformationMessageError, PostNotificationSendCommonInformationMessageResponse, PostNotificationSendCommonErrorMessageData, PostNotificationSendCommonErrorMessageError, PostNotificationSendCommonErrorMessageResponse, PostNotificationSendBroadCastWarningMessageData, PostNotificationSendBroadCastWarningMessageError, PostNotificationSendBroadCastWarningMessageResponse, PostNotificationSendBroadCastInformationMessageData, PostNotificationSendBroadCastInformationMessageError, PostNotificationSendBroadCastInformationMessageResponse, PostNotificationSendBroadCastErrorMessageData, PostNotificationSendBroadCastErrorMessageError, PostNotificationSendBroadCastErrorMessageResponse, PostNotificationReadData, PostNotificationReadError, PostNotificationReadResponse, PostNotificationBatchReadData, PostNotificationBatchReadError, PostNotificationBatchReadResponse, PostOneNetAccountInsertAsyncData, PostOneNetAccountInsertAsyncError, PostOneNetAccountInsertAsyncResponse, PostOneNetAccountModifyAsyncData, PostOneNetAccountModifyAsyncError, PostOneNetAccountModifyAsyncResponse, PostOneNetAccountDeleteAsyncData, PostOneNetAccountDeleteAsyncError, PostOneNetAccountDeleteAsyncResponse, PostOneNetAccountListAsyncData, PostOneNetAccountListAsyncError, PostOneNetAccountListAsyncResponse, PostOneNetProductInsertAsyncData, PostOneNetProductInsertAsyncError, PostOneNetProductInsertAsyncResponse, PostOneNetProductModifyAsyncData, PostOneNetProductModifyAsyncError, PostOneNetProductModifyAsyncResponse, PostOneNetProductDeleteAsyncData, PostOneNetProductDeleteAsyncError, PostOneNetProductDeleteAsyncResponse, PostOneNetProductGetAsyncData, PostOneNetProductGetAsyncError, PostOneNetProductGetAsyncResponse, PostOneNetProductProductStatusChangeAsyncData, PostOneNetProductProductStatusChangeAsyncError, PostOneNetProductProductStatusChangeAsyncResponse, PostOneNetProductUpdateThingModelAsyncData, PostOneNetProductUpdateThingModelAsyncError, PostOneNetProductUpdateThingModelAsyncResponse, PostOneNetProductListAsyncData, PostOneNetProductListAsyncError, PostOneNetProductListAsyncResponse, PostOneNetProductOneNetDataFlowConfigData, PostOneNetProductOneNetDataFlowConfigError, PostOneNetProductOneNetDataFlowConfigResponse, PostOneNetServiceReceivePlaintextDataChangeData, PostOneNetServiceReceivePlaintextDataChangeError, PostOneNetServiceReceivePlaintextDataChangeResponse, GetOneNetServiceReceivePlaintextDataChangeData, GetOneNetServiceReceivePlaintextDataChangeError, GetOneNetServiceReceivePlaintextDataChangeResponse, PostOneNetServiceReceiveCiphertextDataChangeData, PostOneNetServiceReceiveCiphertextDataChangeError, PostOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceReceiveCiphertextDataChangeData, GetOneNetServiceReceiveCiphertextDataChangeError, GetOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceCheckLocalMemroyData, GetOneNetServiceCheckLocalMemroyError, GetOneNetServiceCheckLocalMemroyResponse, PostOneNetServiceDataServerReceiveEmqxDataError, PostOneNetServiceDataServerReceiveEmqxDataResponse, PostOrganizationUnitsTreeError, PostOrganizationUnitsTreeResponse, PostOrganizationUnitsCreateData, PostOrganizationUnitsCreateError, PostOrganizationUnitsCreateResponse, PostOrganizationUnitsDeleteData, PostOrganizationUnitsDeleteError, PostOrganizationUnitsDeleteResponse, PostOrganizationUnitsUpdateData, PostOrganizationUnitsUpdateError, PostOrganizationUnitsUpdateResponse, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncData, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncError, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncResponse, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncData, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncError, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncResponse, PostOrganizationUnitsAddUserToOrganizationUnitData, PostOrganizationUnitsAddUserToOrganizationUnitError, PostOrganizationUnitsAddUserToOrganizationUnitResponse, PostOrganizationUnitsRemoveUserFromOrganizationUnitData, PostOrganizationUnitsRemoveUserFromOrganizationUnitError, PostOrganizationUnitsRemoveUserFromOrganizationUnitResponse, PostOrganizationUnitsGetUsersData, PostOrganizationUnitsGetUsersError, PostOrganizationUnitsGetUsersResponse, PostOrganizationUnitsGetRolesData, PostOrganizationUnitsGetRolesError, PostOrganizationUnitsGetRolesResponse, PostOrganizationUnitsGetUnAddUsersData, PostOrganizationUnitsGetUnAddUsersError, PostOrganizationUnitsGetUnAddUsersResponse, PostOrganizationUnitsGetUnAddRolesData, PostOrganizationUnitsGetUnAddRolesError, PostOrganizationUnitsGetUnAddRolesResponse, PostPermissionsTreeData, PostPermissionsTreeError, PostPermissionsTreeResponse, PostPermissionsUpdateData, PostPermissionsUpdateError, PostPermissionsUpdateResponse, PostRolesAllError, PostRolesAllResponse, PostRolesPageData, PostRolesPageError, PostRolesPageResponse, PostRolesCreateData, PostRolesCreateError, PostRolesCreateResponse, PostRolesUpdateData, PostRolesUpdateError, PostRolesUpdateResponse, PostRolesDeleteData, PostRolesDeleteError, PostRolesDeleteResponse, GetApiAppAbpProBasicApplicationConfigurationError, GetApiAppAbpProBasicApplicationConfigurationResponse, PostSettingsAllError, PostSettingsAllResponse, PostSettingsUpdateData, PostSettingsUpdateError, PostSettingsUpdateResponse, PostTableModelPacketInfoPageData, PostTableModelPacketInfoPageError, PostTableModelPacketInfoPageResponse, PostTableModelDeviceDataInfoPageData, PostTableModelDeviceDataInfoPageError, PostTableModelDeviceDataInfoPageResponse, PostTableModelCtWingLogInfoData, PostTableModelCtWingLogInfoError, PostTableModelCtWingLogInfoResponse, PostTableModelOneNetLogInfoData, PostTableModelOneNetLogInfoError, PostTableModelOneNetLogInfoResponse, PostTenantsFindData, PostTenantsFindError, PostTenantsFindResponse, PostTenantsPageData, PostTenantsPageError, PostTenantsPageResponse, PostTenantsCreateData, PostTenantsCreateError, PostTenantsCreateResponse, PostTenantsUpdateData, PostTenantsUpdateError, PostTenantsUpdateResponse, PostTenantsDeleteData, PostTenantsDeleteError, PostTenantsDeleteResponse, PostTenantsPageConnectionStringData, PostTenantsPageConnectionStringError, PostTenantsPageConnectionStringResponse, PostTenantsAddOrUpdateConnectionStringData, PostTenantsAddOrUpdateConnectionStringError, PostTenantsAddOrUpdateConnectionStringResponse, PostTenantsDeleteConnectionStringData, PostTenantsDeleteConnectionStringError, PostTenantsDeleteConnectionStringResponse, PostTextTemplatesPageData, PostTextTemplatesPageError, PostTextTemplatesPageResponse, PostTextTemplatesCreateData, PostTextTemplatesCreateError, PostTextTemplatesCreateResponse, PostTextTemplatesUpdateData, PostTextTemplatesUpdateError, PostTextTemplatesUpdateResponse, PostTextTemplatesDeleteData, PostTextTemplatesDeleteError, PostTextTemplatesDeleteResponse, PostTextTemplatesExportData, PostTextTemplatesExportError, PostTextTemplatesExportResponse, PostTreeModelDeviceDataInfoPageData, PostTreeModelDeviceDataInfoPageError, PostTreeModelDeviceDataInfoPageResponse, PostTreeModelDevicePatchListAsyncData, PostTreeModelDevicePatchListAsyncError, PostTreeModelDevicePatchListAsyncResponse, PostUsersPageData, PostUsersPageError, PostUsersPageResponse, PostUsersListData, PostUsersListError, PostUsersListResponse, PostUsersExportData, PostUsersExportError, PostUsersExportResponse, PostUsersCreateData, PostUsersCreateError, PostUsersCreateResponse, PostUsersUpdateData, PostUsersUpdateError, PostUsersUpdateResponse, PostUsersDeleteData, PostUsersDeleteError, PostUsersDeleteResponse, PostUsersRoleData, PostUsersRoleError, PostUsersRoleResponse, PostUsersChangePasswordData, PostUsersChangePasswordError, PostUsersChangePasswordResponse, PostUsersResetPasswordData, PostUsersResetPasswordError, PostUsersResetPasswordResponse, PostUsersLockData, PostUsersLockError, PostUsersLockResponse, PostUsersFindByUserNameData, PostUsersFindByUserNameError, PostUsersFindByUserNameResponse, PostUsersMyProfileError, PostUsersMyProfileResponse, PostUsersCanUseTwoFactorError, PostUsersCanUseTwoFactorResponse, PostUsersGetQrCodeError, PostUsersGetQrCodeResponse, PostUsersEnabledTwoFactorData, PostUsersEnabledTwoFactorError, PostUsersEnabledTwoFactorResponse, PostUsersDisabledTwoFactorData, PostUsersDisabledTwoFactorError, PostUsersDisabledTwoFactorResponse, PostUsersResetTwoFactorData, PostUsersResetTwoFactorError, PostUsersResetTwoFactorResponse, PostUsersNeedChangePasswordError, PostUsersNeedChangePasswordResponse, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncData, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncError, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncResponse, PostAggregationWorkshopReceiveWorkshopProductionBatchInfoAsyncData, PostAggregationWorkshopReceiveWorkshopProductionBatchInfoAsyncError, PostAggregationWorkshopReceiveWorkshopProductionBatchInfoAsyncResponse, PostAggregationWorkshopReceiveWorkshopQueryDeviceInfoAsyncData, PostAggregationWorkshopReceiveWorkshopQueryDeviceInfoAsyncError, PostAggregationWorkshopReceiveWorkshopQueryDeviceInfoAsyncResponse, PostAggregationWorkshopGetProductListAsyncData, PostAggregationWorkshopGetProductListAsyncError, PostAggregationWorkshopGetProductListAsyncResponse, PostAggregationWorkshopReceiveWorkshopQueryDevicePageAsyncData, PostAggregationWorkshopReceiveWorkshopQueryDevicePageAsyncError, PostAggregationWorkshopReceiveWorkshopQueryDevicePageAsyncResponse, PostAggregationWorkshopReceiveWorkshopUpdateDeviceLifeInfoAsyncData, PostAggregationWorkshopReceiveWorkshopUpdateDeviceLifeInfoAsyncError, PostAggregationWorkshopReceiveWorkshopUpdateDeviceLifeInfoAsyncResponse } from './types.gen'; +import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionError, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationError, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationError, GetApiAbpApplicationLocalizationResponse, PostApiAppAccountLoginData, PostApiAppAccountLoginError, PostApiAppAccountLoginResponse, PostApiAppAccountLogin2FaData, PostApiAppAccountLogin2FaError, PostApiAppAccountLogin2FaResponse, PostApiAppAccountLoginOidcData, PostApiAppAccountLoginOidcError, PostApiAppAccountLoginOidcResponse, PostApiAppAccountRefreshTokenData, PostApiAppAccountRefreshTokenError, PostApiAppAccountRefreshTokenResponse, PostApiAppAccountLogoutError, PostApiAppAccountLogoutResponse, PostAuditLogsPageData, PostAuditLogsPageError, PostAuditLogsPageResponse, PostAggregationBusinessReceiveSetCommandInfoAsyncData, PostAggregationBusinessReceiveSetCommandInfoAsyncError, PostAggregationBusinessReceiveSetCommandInfoAsyncResponse, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncData, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncError, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncResponse, PostAggregationBusinessBatchQueryDeviceFreezeDataInfoAsyncData, PostAggregationBusinessBatchQueryDeviceFreezeDataInfoAsyncError, PostAggregationBusinessBatchQueryDeviceFreezeDataInfoAsyncResponse, PostAggregationBusinessQueryDeviceDataInfoAsyncData, PostAggregationBusinessQueryDeviceDataInfoAsyncError, PostAggregationBusinessQueryDeviceDataInfoAsyncResponse, PostAggregationBusinessQueryDeviceFreezeDataInfoAsyncData, PostAggregationBusinessQueryDeviceFreezeDataInfoAsyncError, PostAggregationBusinessQueryDeviceFreezeDataInfoAsyncResponse, PostAggregationBusinessBatchCreateDeviceInfoAsyncData, PostAggregationBusinessBatchCreateDeviceInfoAsyncError, PostAggregationBusinessBatchCreateDeviceInfoAsyncResponse, PostAggregationBusinessReceiveGetCommandInfoAsyncData, PostAggregationBusinessReceiveGetCommandInfoAsyncError, PostAggregationBusinessReceiveGetCommandInfoAsyncResponse, GetCommonGetSelectListData, GetCommonGetSelectListError, GetCommonGetSelectListResponse, PostCtWingAccountInsertAsyncData, PostCtWingAccountInsertAsyncError, PostCtWingAccountInsertAsyncResponse, PostCtWingAccountModifyAsyncData, PostCtWingAccountModifyAsyncError, PostCtWingAccountModifyAsyncResponse, PostCtWingAccountDeleteAsyncData, PostCtWingAccountDeleteAsyncError, PostCtWingAccountDeleteAsyncResponse, PostCtWingAccountListAsyncData, PostCtWingAccountListAsyncError, PostCtWingAccountListAsyncResponse, PostCtWingProductInsertAsyncData, PostCtWingProductInsertAsyncError, PostCtWingProductInsertAsyncResponse, PostCtWingProductModifyAsyncData, PostCtWingProductModifyAsyncError, PostCtWingProductModifyAsyncResponse, PostCtWingProductDeleteAsyncData, PostCtWingProductDeleteAsyncError, PostCtWingProductDeleteAsyncResponse, PostCtWingProductGetAsyncData, PostCtWingProductGetAsyncError, PostCtWingProductGetAsyncResponse, PostCtWingProductProductStatusChangeAsyncData, PostCtWingProductProductStatusChangeAsyncError, PostCtWingProductProductStatusChangeAsyncResponse, PostCtWingProductListAsyncData, PostCtWingProductListAsyncError, PostCtWingProductListAsyncResponse, PostCtWingServiceReceiveStatusChangeError, PostCtWingServiceReceiveStatusChangeResponse, PostCtWingServiceReceiveDataChangeError, PostCtWingServiceReceiveDataChangeResponse, PostCtWingServiceReceiveCommandChangeError, PostCtWingServiceReceiveCommandChangeResponse, PostCtWingServiceReceiveEventChangeError, PostCtWingServiceReceiveEventChangeResponse, PostCtWingServiceReceiveDeviceChangeError, PostCtWingServiceReceiveDeviceChangeResponse, PostDataDictionaryPageData, PostDataDictionaryPageError, PostDataDictionaryPageResponse, PostDataDictionaryPageDetailData, PostDataDictionaryPageDetailError, PostDataDictionaryPageDetailResponse, PostDataDictionarySelectDetailData, PostDataDictionarySelectDetailError, PostDataDictionarySelectDetailResponse, PostDataDictionaryCreateData, PostDataDictionaryCreateError, PostDataDictionaryCreateResponse, PostDataDictionaryCreateDetailData, PostDataDictionaryCreateDetailError, PostDataDictionaryCreateDetailResponse, PostDataDictionaryStatusData, PostDataDictionaryStatusError, PostDataDictionaryStatusResponse, PostDataDictionaryUpdateDetailData, PostDataDictionaryUpdateDetailError, PostDataDictionaryUpdateDetailResponse, PostDataDictionaryDeleteData, PostDataDictionaryDeleteError, PostDataDictionaryDeleteResponse, PostDataDictionaryDeleteDataDictionaryTypeData, PostDataDictionaryDeleteDataDictionaryTypeError, PostDataDictionaryDeleteDataDictionaryTypeResponse, PostDataDictionaryUpdateData, PostDataDictionaryUpdateError, PostDataDictionaryUpdateResponse, PostAggregationDeviceCreateAsyncData, PostAggregationDeviceCreateAsyncError, PostAggregationDeviceCreateAsyncResponse, PostAggregationDeviceBatchCreateAsyncData, PostAggregationDeviceBatchCreateAsyncError, PostAggregationDeviceBatchCreateAsyncResponse, PostAggregationDeviceBatchSyncFromOneNETAsyncData, PostAggregationDeviceBatchSyncFromOneNETAsyncError, PostAggregationDeviceBatchSyncFromOneNETAsyncResponse, PostAggregationDeviceDeleteAsyncData, PostAggregationDeviceDeleteAsyncError, PostAggregationDeviceDeleteAsyncResponse, PostAggregationDeviceFindByIdAsyncData, PostAggregationDeviceFindByIdAsyncError, PostAggregationDeviceFindByIdAsyncResponse, PostAggregationDeviceRepushDeviceInfoToIoTplatformData, PostAggregationDeviceRepushDeviceInfoToIoTplatformError, PostAggregationDeviceRepushDeviceInfoToIoTplatformResponse, PostAggregationDeviceEnableDeviceForApiAsyncData, PostAggregationDeviceEnableDeviceForApiAsyncError, PostAggregationDeviceEnableDeviceForApiAsyncResponse, PostAggregationDeviceUpdateDeviceSecKeyForApiAsyncData, PostAggregationDeviceUpdateDeviceSecKeyForApiAsyncError, PostAggregationDeviceUpdateDeviceSecKeyForApiAsyncResponse, PostAggregationDeviceDeviceCommandForApiAsyncData, PostAggregationDeviceDeviceCommandForApiAsyncError, PostAggregationDeviceDeviceCommandForApiAsyncResponse, PostAggregationDeviceGetDevicePropertyValueForApiAsyncData, PostAggregationDeviceGetDevicePropertyValueForApiAsyncError, PostAggregationDeviceGetDevicePropertyValueForApiAsyncResponse, PostAggregationDeviceDeviceUpgradeForApiAsyncData, PostAggregationDeviceDeviceUpgradeForApiAsyncError, PostAggregationDeviceDeviceUpgradeForApiAsyncResponse, PostAggregationDeviceDeviceBatchUpgradeForApiAsyncData, PostAggregationDeviceDeviceBatchUpgradeForApiAsyncError, PostAggregationDeviceDeviceBatchUpgradeForApiAsyncResponse, PostAggregationDeviceDownloadFirmwareData, PostAggregationDeviceDownloadFirmwareError, PostAggregationDeviceDownloadFirmwareResponse, GetAggregationDeviceDownloadFirmwareData, GetAggregationDeviceDownloadFirmwareError, GetAggregationDeviceDownloadFirmwareResponse, PostAggregationDeviceBindingDeviceThingModelData, PostAggregationDeviceBindingDeviceThingModelError, PostAggregationDeviceBindingDeviceThingModelResponse, PostAggregationDeviceCallDeviceServiceForApiAsyncData, PostAggregationDeviceCallDeviceServiceForApiAsyncError, PostAggregationDeviceCallDeviceServiceForApiAsyncResponse, PostAggregationDeviceDeviceMasterSwitchForApiAsyncData, PostAggregationDeviceDeviceMasterSwitchForApiAsyncError, PostAggregationDeviceDeviceMasterSwitchForApiAsyncResponse, PostFirmwareInfoCreateAsyncData, PostFirmwareInfoCreateAsyncError, PostFirmwareInfoCreateAsyncResponse, PostFirmwareInfoUpdateAsyncData, PostFirmwareInfoUpdateAsyncError, PostFirmwareInfoUpdateAsyncResponse, PostFirmwareInfoDeleteAsyncData, PostFirmwareInfoDeleteAsyncError, PostFirmwareInfoDeleteAsyncResponse, PostFirmwareInfoFindByIdAsyncData, PostFirmwareInfoFindByIdAsyncError, PostFirmwareInfoFindByIdAsyncResponse, PostFirmwareInfoUpdateStatusByIdAsyncData, PostFirmwareInfoUpdateStatusByIdAsyncError, PostFirmwareInfoUpdateStatusByIdAsyncResponse, PostFirmwareInfoFindByDeviceProductIdAsyncData, PostFirmwareInfoFindByDeviceProductIdAsyncError, PostFirmwareInfoFindByDeviceProductIdAsyncResponse, PostFirmwareInfoPageData, PostFirmwareInfoPageError, PostFirmwareInfoPageResponse, PostDeviceInfoFindByDeviceAddressData, PostDeviceInfoFindByDeviceAddressError, PostDeviceInfoFindByDeviceAddressResponse, PostDeviceInfoPageData, PostDeviceInfoPageError, PostDeviceInfoPageResponse, PostDeviceInfoCacheDeviceDataToRedisError, PostDeviceInfoCacheDeviceDataToRedisResponse, PostDeviceInfoMqttDeviceLoginData, PostDeviceInfoMqttDeviceLoginError, PostDeviceInfoMqttDeviceLoginResponse, PostDeviceThingModelManagementCreateAsyncData, PostDeviceThingModelManagementCreateAsyncError, PostDeviceThingModelManagementCreateAsyncResponse, PostDeviceThingModelManagementUpdateAsyncData, PostDeviceThingModelManagementUpdateAsyncError, PostDeviceThingModelManagementUpdateAsyncResponse, PostDeviceThingModelManagementDeleteAsyncData, PostDeviceThingModelManagementDeleteAsyncError, PostDeviceThingModelManagementDeleteAsyncResponse, PostDeviceThingModelManagementFindByIdAsyncData, PostDeviceThingModelManagementFindByIdAsyncError, PostDeviceThingModelManagementFindByIdAsyncResponse, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncData, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncError, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncResponse, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncData, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncError, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncResponse, PostDeviceThingModelManagementBuildAnalysisScriptAsyncData, PostDeviceThingModelManagementBuildAnalysisScriptAsyncError, PostDeviceThingModelManagementBuildAnalysisScriptAsyncResponse, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncData, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncError, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncResponse, PostDeviceThingModelManagementMessageAnalysisTestAsyncData, PostDeviceThingModelManagementMessageAnalysisTestAsyncError, PostDeviceThingModelManagementMessageAnalysisTestAsyncResponse, PostDeviceThingModelManagementFindByPlatformProductIdAsyncData, PostDeviceThingModelManagementFindByPlatformProductIdAsyncError, PostDeviceThingModelManagementFindByPlatformProductIdAsyncResponse, PostDeviceThingModelManagementCopyAnotherDeviceThingModelAsyncData, PostDeviceThingModelManagementCopyAnotherDeviceThingModelAsyncError, PostDeviceThingModelManagementCopyAnotherDeviceThingModelAsyncResponse, PostDeviceThingModelManagementCopyIoTplatformThingModelToDeviceAsyncData, PostDeviceThingModelManagementCopyIoTplatformThingModelToDeviceAsyncError, PostDeviceThingModelManagementCopyIoTplatformThingModelToDeviceAsyncResponse, PostDeviceThingModelManagementPageAsyncData, PostDeviceThingModelManagementPageAsyncError, PostDeviceThingModelManagementPageAsyncResponse, PostDeviceThingModelManagementPropertyCreateAsyncData, PostDeviceThingModelManagementPropertyCreateAsyncError, PostDeviceThingModelManagementPropertyCreateAsyncResponse, PostDeviceThingModelManagementPropertyUpdateAsyncData, PostDeviceThingModelManagementPropertyUpdateAsyncError, PostDeviceThingModelManagementPropertyUpdateAsyncResponse, PostDeviceThingModelManagementPropertyDeleteAsyncData, PostDeviceThingModelManagementPropertyDeleteAsyncError, PostDeviceThingModelManagementPropertyDeleteAsyncResponse, PostDeviceThingModelManagementPropertyFindByIdAsyncData, PostDeviceThingModelManagementPropertyFindByIdAsyncError, PostDeviceThingModelManagementPropertyFindByIdAsyncResponse, PostDeviceThingModelManagementPropertyPageAsyncData, PostDeviceThingModelManagementPropertyPageAsyncError, PostDeviceThingModelManagementPropertyPageAsyncResponse, PostDeviceThingModelManagementCommandCreateAsyncData, PostDeviceThingModelManagementCommandCreateAsyncError, PostDeviceThingModelManagementCommandCreateAsyncResponse, PostDeviceThingModelManagementCommandUpdateAsyncData, PostDeviceThingModelManagementCommandUpdateAsyncError, PostDeviceThingModelManagementCommandUpdateAsyncResponse, PostDeviceThingModelManagementCommandDeleteAsyncData, PostDeviceThingModelManagementCommandDeleteAsyncError, PostDeviceThingModelManagementCommandDeleteAsyncResponse, PostDeviceThingModelManagementCommandFindByIdAsyncData, PostDeviceThingModelManagementCommandFindByIdAsyncError, PostDeviceThingModelManagementCommandFindByIdAsyncResponse, PostDeviceThingModelManagementUpdateCommandStatusByIdAsyncData, PostDeviceThingModelManagementUpdateCommandStatusByIdAsyncError, PostDeviceThingModelManagementUpdateCommandStatusByIdAsyncResponse, PostDeviceThingModelManagementCommandPageAsyncData, PostDeviceThingModelManagementCommandPageAsyncError, PostDeviceThingModelManagementCommandPageAsyncResponse, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncData, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncResponse, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncResponse, PostUpgradeRecordUpdateStatusAsyncData, PostUpgradeRecordUpdateStatusAsyncError, PostUpgradeRecordUpdateStatusAsyncResponse, PostUpgradeRecordBatchUpdateStatusAsyncData, PostUpgradeRecordBatchUpdateStatusAsyncError, PostUpgradeRecordBatchUpdateStatusAsyncResponse, PostUpgradeRecordDeleteAsyncData, PostUpgradeRecordDeleteAsyncError, PostUpgradeRecordDeleteAsyncResponse, PostUpgradeRecordPageData, PostUpgradeRecordPageError, PostUpgradeRecordPageResponse, PostFeaturesListData, PostFeaturesListError, PostFeaturesListResponse, PostFeaturesUpdateData, PostFeaturesUpdateError, PostFeaturesUpdateResponse, PostFeaturesDeleteData, PostFeaturesDeleteError, PostFeaturesDeleteResponse, PostFilesPageData, PostFilesPageError, PostFilesPageResponse, PostFilesUploadData, PostFilesUploadError, PostFilesUploadResponse, PostFilesDeleteData, PostFilesDeleteError, PostFilesDeleteResponse, PostFilesDownloadData, PostFilesDownloadError, PostFilesDownloadResponse, PostIdentitySecurityLogsPageData, PostIdentitySecurityLogsPageError, PostIdentitySecurityLogsPageResponse, PostAggregationIoTplatformGetIoTplatformProductInfoAsyncData, PostAggregationIoTplatformGetIoTplatformProductInfoAsyncError, PostAggregationIoTplatformGetIoTplatformProductInfoAsyncResponse, PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncData, PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncError, PostAggregationIoTplatformGetIoTplatformAccountInfoAsyncResponse, PostAggregationIoTplatformGetIoTplatformProductThingModelInfoAsyncData, PostAggregationIoTplatformGetIoTplatformProductThingModelInfoAsyncError, PostAggregationIoTplatformGetIoTplatformProductThingModelInfoAsyncResponse, PostAggregationIoTplatformUpdateIoTplatformProductThingModelInfoAsyncData, PostAggregationIoTplatformUpdateIoTplatformProductThingModelInfoAsyncError, PostAggregationIoTplatformUpdateIoTplatformProductThingModelInfoAsyncResponse, PostAggregationIoTplatformIoTplatformDataLogReHandlerAsyncData, PostAggregationIoTplatformIoTplatformDataLogReHandlerAsyncError, PostAggregationIoTplatformIoTplatformDataLogReHandlerAsyncResponse, PostIoTplatformThingModelInfoCreateAsyncData, PostIoTplatformThingModelInfoCreateAsyncError, PostIoTplatformThingModelInfoCreateAsyncResponse, PostIoTplatformThingModelInfoUpdateAsyncData, PostIoTplatformThingModelInfoUpdateAsyncError, PostIoTplatformThingModelInfoUpdateAsyncResponse, PostIoTplatformThingModelInfoDeleteAsyncData, PostIoTplatformThingModelInfoDeleteAsyncError, PostIoTplatformThingModelInfoDeleteAsyncResponse, PostIoTplatformThingModelInfoFindByIdAsyncData, PostIoTplatformThingModelInfoFindByIdAsyncError, PostIoTplatformThingModelInfoFindByIdAsyncResponse, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncData, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncError, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncResponse, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncData, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncError, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncResponse, PostIoTplatformThingModelInfoCopyStandardThingModelData, PostIoTplatformThingModelInfoCopyStandardThingModelError, PostIoTplatformThingModelInfoCopyStandardThingModelResponse, PostIoTplatformThingModelInfoPageAsyncData, PostIoTplatformThingModelInfoPageAsyncError, PostIoTplatformThingModelInfoPageAsyncResponse, PostIoTplatformThingModelInfoGetAllPlatformThingModelAsyncError, PostIoTplatformThingModelInfoGetAllPlatformThingModelAsyncResponse, PostIoTplatformThingModelInfoStandardThingModelPageAsyncError, PostIoTplatformThingModelInfoStandardThingModelPageAsyncResponse, PostIoTplatformThingModelInfoUpdateOperableIdentifierData, PostIoTplatformThingModelInfoUpdateOperableIdentifierError, PostIoTplatformThingModelInfoUpdateOperableIdentifierResponse, PostIoTplatformThingModelInfoGetIoTplatformThingModelServiceData, PostIoTplatformThingModelInfoGetIoTplatformThingModelServiceError, PostIoTplatformThingModelInfoGetIoTplatformThingModelServiceResponse, PostIoTplatformThingModelInfoCreateIoTplatformThingModelCommandData, PostIoTplatformThingModelInfoCreateIoTplatformThingModelCommandError, PostIoTplatformThingModelInfoCreateIoTplatformThingModelCommandResponse, PostLanguagesAllError, PostLanguagesAllResponse, PostLanguagesPageData, PostLanguagesPageError, PostLanguagesPageResponse, PostLanguagesCreateData, PostLanguagesCreateError, PostLanguagesCreateResponse, PostLanguagesUpdateData, PostLanguagesUpdateError, PostLanguagesUpdateResponse, PostLanguagesDeleteData, PostLanguagesDeleteError, PostLanguagesDeleteResponse, PostLanguagesSetDefaultData, PostLanguagesSetDefaultError, PostLanguagesSetDefaultResponse, PostLanguageTextsAllResourceError, PostLanguageTextsAllResourceResponse, PostLanguageTextsPageData, PostLanguageTextsPageError, PostLanguageTextsPageResponse, PostLanguageTextsCreateData, PostLanguageTextsCreateError, PostLanguageTextsCreateResponse, PostLanguageTextsUpdateData, PostLanguageTextsUpdateError, PostLanguageTextsUpdateResponse, PostMenusUserMenuError, PostMenusUserMenuResponse, PostMenusPageData, PostMenusPageError, PostMenusPageResponse, PostMenusCreateData, PostMenusCreateError, PostMenusCreateResponse, PostMenusUpdateData, PostMenusUpdateError, PostMenusUpdateResponse, PostMenusDeleteData, PostMenusDeleteError, PostMenusDeleteResponse, PostMenusTreeError, PostMenusTreeResponse, PostNotificationNotificationPageData, PostNotificationNotificationPageError, PostNotificationNotificationPageResponse, PostNotificationNotificationSubscriptionPageData, PostNotificationNotificationSubscriptionPageError, PostNotificationNotificationSubscriptionPageResponse, PostNotificationDeleteData, PostNotificationDeleteError, PostNotificationDeleteResponse, PostNotificationSendCommonWarningMessageData, PostNotificationSendCommonWarningMessageError, PostNotificationSendCommonWarningMessageResponse, PostNotificationSendCommonInformationMessageData, PostNotificationSendCommonInformationMessageError, PostNotificationSendCommonInformationMessageResponse, PostNotificationSendCommonErrorMessageData, PostNotificationSendCommonErrorMessageError, PostNotificationSendCommonErrorMessageResponse, PostNotificationSendBroadCastWarningMessageData, PostNotificationSendBroadCastWarningMessageError, PostNotificationSendBroadCastWarningMessageResponse, PostNotificationSendBroadCastInformationMessageData, PostNotificationSendBroadCastInformationMessageError, PostNotificationSendBroadCastInformationMessageResponse, PostNotificationSendBroadCastErrorMessageData, PostNotificationSendBroadCastErrorMessageError, PostNotificationSendBroadCastErrorMessageResponse, PostNotificationReadData, PostNotificationReadError, PostNotificationReadResponse, PostNotificationBatchReadData, PostNotificationBatchReadError, PostNotificationBatchReadResponse, PostOneNetAccountInsertAsyncData, PostOneNetAccountInsertAsyncError, PostOneNetAccountInsertAsyncResponse, PostOneNetAccountModifyAsyncData, PostOneNetAccountModifyAsyncError, PostOneNetAccountModifyAsyncResponse, PostOneNetAccountDeleteAsyncData, PostOneNetAccountDeleteAsyncError, PostOneNetAccountDeleteAsyncResponse, PostOneNetAccountListAsyncData, PostOneNetAccountListAsyncError, PostOneNetAccountListAsyncResponse, PostOneNetProductInsertAsyncData, PostOneNetProductInsertAsyncError, PostOneNetProductInsertAsyncResponse, PostOneNetProductModifyAsyncData, PostOneNetProductModifyAsyncError, PostOneNetProductModifyAsyncResponse, PostOneNetProductDeleteAsyncData, PostOneNetProductDeleteAsyncError, PostOneNetProductDeleteAsyncResponse, PostOneNetProductGetAsyncData, PostOneNetProductGetAsyncError, PostOneNetProductGetAsyncResponse, PostOneNetProductProductStatusChangeAsyncData, PostOneNetProductProductStatusChangeAsyncError, PostOneNetProductProductStatusChangeAsyncResponse, PostOneNetProductUpdateThingModelAsyncData, PostOneNetProductUpdateThingModelAsyncError, PostOneNetProductUpdateThingModelAsyncResponse, PostOneNetProductListAsyncData, PostOneNetProductListAsyncError, PostOneNetProductListAsyncResponse, PostOneNetProductOneNetDataFlowConfigData, PostOneNetProductOneNetDataFlowConfigError, PostOneNetProductOneNetDataFlowConfigResponse, PostOneNetServiceReceivePlaintextDataChangeData, PostOneNetServiceReceivePlaintextDataChangeError, PostOneNetServiceReceivePlaintextDataChangeResponse, GetOneNetServiceReceivePlaintextDataChangeData, GetOneNetServiceReceivePlaintextDataChangeError, GetOneNetServiceReceivePlaintextDataChangeResponse, PostOneNetServiceReceiveCiphertextDataChangeData, PostOneNetServiceReceiveCiphertextDataChangeError, PostOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceReceiveCiphertextDataChangeData, GetOneNetServiceReceiveCiphertextDataChangeError, GetOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceCheckLocalMemroyData, GetOneNetServiceCheckLocalMemroyError, GetOneNetServiceCheckLocalMemroyResponse, PostOneNetServiceDataServerReceiveEmqxDataError, PostOneNetServiceDataServerReceiveEmqxDataResponse, PostOrganizationUnitsTreeError, PostOrganizationUnitsTreeResponse, PostOrganizationUnitsCreateData, PostOrganizationUnitsCreateError, PostOrganizationUnitsCreateResponse, PostOrganizationUnitsDeleteData, PostOrganizationUnitsDeleteError, PostOrganizationUnitsDeleteResponse, PostOrganizationUnitsUpdateData, PostOrganizationUnitsUpdateError, PostOrganizationUnitsUpdateResponse, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncData, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncError, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncResponse, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncData, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncError, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncResponse, PostOrganizationUnitsAddUserToOrganizationUnitData, PostOrganizationUnitsAddUserToOrganizationUnitError, PostOrganizationUnitsAddUserToOrganizationUnitResponse, PostOrganizationUnitsRemoveUserFromOrganizationUnitData, PostOrganizationUnitsRemoveUserFromOrganizationUnitError, PostOrganizationUnitsRemoveUserFromOrganizationUnitResponse, PostOrganizationUnitsGetUsersData, PostOrganizationUnitsGetUsersError, PostOrganizationUnitsGetUsersResponse, PostOrganizationUnitsGetRolesData, PostOrganizationUnitsGetRolesError, PostOrganizationUnitsGetRolesResponse, PostOrganizationUnitsGetUnAddUsersData, PostOrganizationUnitsGetUnAddUsersError, PostOrganizationUnitsGetUnAddUsersResponse, PostOrganizationUnitsGetUnAddRolesData, PostOrganizationUnitsGetUnAddRolesError, PostOrganizationUnitsGetUnAddRolesResponse, PostPermissionsTreeData, PostPermissionsTreeError, PostPermissionsTreeResponse, PostPermissionsUpdateData, PostPermissionsUpdateError, PostPermissionsUpdateResponse, PostRolesAllError, PostRolesAllResponse, PostRolesPageData, PostRolesPageError, PostRolesPageResponse, PostRolesCreateData, PostRolesCreateError, PostRolesCreateResponse, PostRolesUpdateData, PostRolesUpdateError, PostRolesUpdateResponse, PostRolesDeleteData, PostRolesDeleteError, PostRolesDeleteResponse, GetApiAppAbpProBasicApplicationConfigurationError, GetApiAppAbpProBasicApplicationConfigurationResponse, PostSettingsAllError, PostSettingsAllResponse, PostSettingsUpdateData, PostSettingsUpdateError, PostSettingsUpdateResponse, PostTableModelPacketInfoPageData, PostTableModelPacketInfoPageError, PostTableModelPacketInfoPageResponse, PostTableModelDeviceDataInfoPageData, PostTableModelDeviceDataInfoPageError, PostTableModelDeviceDataInfoPageResponse, PostTableModelCtWingLogInfoData, PostTableModelCtWingLogInfoError, PostTableModelCtWingLogInfoResponse, PostTableModelOneNetLogInfoData, PostTableModelOneNetLogInfoError, PostTableModelOneNetLogInfoResponse, PostTenantsFindData, PostTenantsFindError, PostTenantsFindResponse, PostTenantsPageData, PostTenantsPageError, PostTenantsPageResponse, PostTenantsCreateData, PostTenantsCreateError, PostTenantsCreateResponse, PostTenantsUpdateData, PostTenantsUpdateError, PostTenantsUpdateResponse, PostTenantsDeleteData, PostTenantsDeleteError, PostTenantsDeleteResponse, PostTenantsPageConnectionStringData, PostTenantsPageConnectionStringError, PostTenantsPageConnectionStringResponse, PostTenantsAddOrUpdateConnectionStringData, PostTenantsAddOrUpdateConnectionStringError, PostTenantsAddOrUpdateConnectionStringResponse, PostTenantsDeleteConnectionStringData, PostTenantsDeleteConnectionStringError, PostTenantsDeleteConnectionStringResponse, PostTextTemplatesPageData, PostTextTemplatesPageError, PostTextTemplatesPageResponse, PostTextTemplatesCreateData, PostTextTemplatesCreateError, PostTextTemplatesCreateResponse, PostTextTemplatesUpdateData, PostTextTemplatesUpdateError, PostTextTemplatesUpdateResponse, PostTextTemplatesDeleteData, PostTextTemplatesDeleteError, PostTextTemplatesDeleteResponse, PostTextTemplatesExportData, PostTextTemplatesExportError, PostTextTemplatesExportResponse, PostTreeModelDeviceDataInfoPageData, PostTreeModelDeviceDataInfoPageError, PostTreeModelDeviceDataInfoPageResponse, PostTreeModelDevicePatchListAsyncData, PostTreeModelDevicePatchListAsyncError, PostTreeModelDevicePatchListAsyncResponse, PostUsersPageData, PostUsersPageError, PostUsersPageResponse, PostUsersListData, PostUsersListError, PostUsersListResponse, PostUsersExportData, PostUsersExportError, PostUsersExportResponse, PostUsersCreateData, PostUsersCreateError, PostUsersCreateResponse, PostUsersUpdateData, PostUsersUpdateError, PostUsersUpdateResponse, PostUsersDeleteData, PostUsersDeleteError, PostUsersDeleteResponse, PostUsersRoleData, PostUsersRoleError, PostUsersRoleResponse, PostUsersChangePasswordData, PostUsersChangePasswordError, PostUsersChangePasswordResponse, PostUsersResetPasswordData, PostUsersResetPasswordError, PostUsersResetPasswordResponse, PostUsersLockData, PostUsersLockError, PostUsersLockResponse, PostUsersFindByUserNameData, PostUsersFindByUserNameError, PostUsersFindByUserNameResponse, PostUsersMyProfileError, PostUsersMyProfileResponse, PostUsersCanUseTwoFactorError, PostUsersCanUseTwoFactorResponse, PostUsersGetQrCodeError, PostUsersGetQrCodeResponse, PostUsersEnabledTwoFactorData, PostUsersEnabledTwoFactorError, PostUsersEnabledTwoFactorResponse, PostUsersDisabledTwoFactorData, PostUsersDisabledTwoFactorError, PostUsersDisabledTwoFactorResponse, PostUsersResetTwoFactorData, PostUsersResetTwoFactorError, PostUsersResetTwoFactorResponse, PostUsersNeedChangePasswordError, PostUsersNeedChangePasswordResponse, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncData, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncError, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncResponse, PostAggregationWorkshopReceiveWorkshopProductionBatchInfoAsyncData, PostAggregationWorkshopReceiveWorkshopProductionBatchInfoAsyncError, PostAggregationWorkshopReceiveWorkshopProductionBatchInfoAsyncResponse, PostAggregationWorkshopReceiveWorkshopQueryDeviceInfoAsyncData, PostAggregationWorkshopReceiveWorkshopQueryDeviceInfoAsyncError, PostAggregationWorkshopReceiveWorkshopQueryDeviceInfoAsyncResponse, PostAggregationWorkshopGetProductListAsyncData, PostAggregationWorkshopGetProductListAsyncError, PostAggregationWorkshopGetProductListAsyncResponse, PostAggregationWorkshopReceiveWorkshopQueryDevicePageAsyncData, PostAggregationWorkshopReceiveWorkshopQueryDevicePageAsyncError, PostAggregationWorkshopReceiveWorkshopQueryDevicePageAsyncResponse, PostAggregationWorkshopReceiveWorkshopUpdateDeviceLifeInfoAsyncData, PostAggregationWorkshopReceiveWorkshopUpdateDeviceLifeInfoAsyncError, PostAggregationWorkshopReceiveWorkshopUpdateDeviceLifeInfoAsyncResponse } from './types.gen'; export const client = createClient(createConfig()); @@ -436,6 +436,16 @@ export const postAggregationDeviceBatchCreateAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/Aggregation/Device/BatchSyncDeviceFromOneNETAsync' + }); +}; + /** * 删除设备信息 */ diff --git a/apps/web-antd/src/api-client/types.gen.ts b/apps/web-antd/src/api-client/types.gen.ts index 59cf79a..919e78d 100644 --- a/apps/web-antd/src/api-client/types.gen.ts +++ b/apps/web-antd/src/api-client/types.gen.ts @@ -194,6 +194,24 @@ export type BatchCreateDeviceAggregationInput = { encryptionType?: DeviceAuthenticationModeEnum; }; +/** + * 从OneNET批量查询设备信息并同步更新本地 + */ +export type BatchSyncDeviceFromOneNETInput = { + /** + * 物联网平台类型 + */ + ioTPlatform: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId: string; + /** + * 要同步的设备地址列表(可选) + */ + deviceAddresses?: Array<(string)> | null; +}; + /** * 批量更新设备升级记录状态信息输入 */ @@ -4716,6 +4734,10 @@ export type PageDeviceInput = { * 设备地址列表(批量查询) */ addressList?: Array<(string)> | null; + /** + * 平台推送是否成功(null=不过滤,true=已同步,false=未同步) + */ + isPlatformPushSuccess?: boolean; }; /** @@ -7216,6 +7238,14 @@ export type PostAggregationDeviceBatchCreateAsyncResponse = (boolean); export type PostAggregationDeviceBatchCreateAsyncError = unknown; +export type PostAggregationDeviceBatchSyncFromOneNETAsyncData = { + body?: BatchSyncDeviceFromOneNETInput; +}; + +export type PostAggregationDeviceBatchSyncFromOneNETAsyncResponse = (boolean); + +export type PostAggregationDeviceBatchSyncFromOneNETAsyncError = unknown; + export type PostAggregationDeviceDeleteAsyncData = { query?: { input?: IdInput; diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue index 9fb4559..78608fd 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue @@ -29,6 +29,7 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { getCommonGetSelectList, postAggregationDeviceBatchCreateAsync, + postAggregationDeviceBatchSyncFromOneNETAsync, postAggregationDeviceBindingDeviceThingModel, postAggregationDeviceCallDeviceServiceForApiAsync, postAggregationDeviceCreateAsync, @@ -315,6 +316,7 @@ watch( ); const cacheRefreshLoading = ref(false); +const batchSyncLoading = ref(false); const pageLoading = ref(false); const loadingTip = ref('缓存刷新中...'); const commandRow: Record = ref({}); @@ -1640,6 +1642,7 @@ const [BatchAddModal, batchAddModalApi] = useVbenModal({ }, }); +// 批量同步OneNET设备表单 // 批量设备升级表单 const [BatchUpgradeForm, batchUpgradeFormApi] = useVbenForm({ collapsed: false, @@ -2632,6 +2635,96 @@ async function submitBatchAdd() { } } +// 批量同步OneNET/CTWing 设备(优先筛选条件,其次取表格数据) +async function handleBatchSync() { + const EMQX = 3; + + // 读取复选框选中的设备地址 + const gridInstance = gridApi.grid as any; + const selectedRows: any[] = gridInstance?.getCheckboxRecords?.() ?? []; + const selectedAddresses: string[] = selectedRows + .map((row: any) => row.deviceAddress) + .filter(Boolean); + + // 优先读取筛选表单中的值 + const filterValues = await gridApi.formApi.getValues(); + let ioTPlatform: number | undefined = undefined; + let ioTPlatformProductId: string | undefined = undefined; + + // 筛选条件中的平台 + const filterPlatform = filterValues.ioTPlatform; + + // 判断平台:优先筛选条件 + if (filterPlatform !== undefined && filterPlatform !== null && filterPlatform !== '') { + const fp = Number(filterPlatform); + if (fp === EMQX) { + Message.warning('批量同步不支持 EMQX 平台,仅支持 OneNET 和 CTWing'); + return; + } + ioTPlatform = fp; + ioTPlatformProductId = filterValues.ioTPlatformProductId; + } + + // 平台或产品未从筛选获取到,从选中设备或表格数据补全 + if (!ioTPlatform || !ioTPlatformProductId) { + // 优先用选中设备推导 + const sourceRows: any[] = selectedRows.length > 0 + ? selectedRows + : (() => { + const tableData = gridInstance?.getTableData?.(); + return tableData?.fullData || tableData?.visibleData || []; + })(); + + // 收集源数据中所有有效平台(排除 EMQX) + const platforms = new Set(); + for (const row of sourceRows) { + const rp = Number(row.ioTPlatform); + if (rp && rp !== EMQX) { + platforms.add(rp); + if (!ioTPlatformProductId && row.ioTPlatformProductId) { + ioTPlatformProductId = row.ioTPlatformProductId; + } + } + } + + if (platforms.size === 0) { + Message.warning('列表中无 OneNET 或 CTWing 设备,请先筛选产品'); + return; + } + if (platforms.size > 1) { + Message.warning('列表中包含多个平台的设备,请先筛选为单一平台后再同步'); + return; + } + + ioTPlatform = ioTPlatform || [...platforms][0]; + } + + if (!ioTPlatformProductId) { + Message.warning('未找到产品信息,请先在筛选条件中选择产品'); + return; + } + + try { + batchSyncLoading.value = true; + const body: any = { ioTPlatform: ioTPlatform!, ioTPlatformProductId }; + if (selectedAddresses.length > 0) { + body.deviceAddresses = selectedAddresses; + } + const resp = await postAggregationDeviceBatchSyncFromOneNETAsync({ body }); + if (resp.data) { + Message.success('批量同步设备信息成功'); + gridApi.reload(); + } else { + Message.error('批量同步设备信息失败'); + } + } catch (error) { + console.error('批量同步设备信息失败:', error); + Message.error('批量同步设备信息失败'); + } finally { + batchSyncLoading.value = false; + } +} + // 打开批量添加模态框 const openBatchAddModal = () => { console.log('打开批量添加模态框'); @@ -2906,6 +2999,16 @@ const toolbarActions = computed(() => [ onClick: openBatchAddModal.bind(null), auth: ['AbpIdentity.Users.Create'], }, + { + label: '批量同步', + type: 'primary', + icon: batchSyncLoading.value + ? 'ant-design:loading-outlined' + : 'ant-design:sync-outlined', + onClick: handleBatchSync, + disabled: batchSyncLoading.value, + auth: ['AbpIdentity.Users.Create'], + }, { label: '批量绑定设备端物模型', type: 'default', diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts index 127da36..c7da8a8 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts @@ -118,6 +118,20 @@ export const querySchema = computed(() => [ }; }, }, + { + component: 'Select', + fieldName: 'isPlatformPushSuccess', + label: '同步状态', + componentProps: { + options: [ + { label: '全部', value: undefined }, + { label: '已同步', value: true }, + { label: '未同步', value: false }, + ], + allowClear: true, + placeholder: '请选择同步状态', + }, + }, ]); export const tableSchema: any = computed((): VxeGridProps['columns'] => [