From ba5a5ee8f4f3600881f558f058a0c35f49a2f49a Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Mon, 22 Dec 2025 14:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E7=89=A9=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api-client/schemas.gen.ts | 51 ++- apps/web-antd/src/api-client/services.gen.ts | 12 +- apps/web-antd/src/api-client/types.gen.ts | 51 ++- .../devicemanagement/deviceinfo/index.vue | 226 ++++++++++++- .../devicemanagement/deviceinfo/schema.ts | 15 +- .../ioTPlatformThingModelInfo/index.vue | 6 +- .../ioTPlatformThingModelInfo/schema.ts | 297 ++++++++++++------ 7 files changed, 525 insertions(+), 133 deletions(-) diff --git a/apps/web-antd/src/api-client/schemas.gen.ts b/apps/web-antd/src/api-client/schemas.gen.ts index 3418703..5086f1a 100644 --- a/apps/web-antd/src/api-client/schemas.gen.ts +++ b/apps/web-antd/src/api-client/schemas.gen.ts @@ -3055,11 +3055,6 @@ export const DeviceThingModelPropertyUpdateInputSchema = { description: '设备端物模型Id', format: 'uuid' }, - filedType: { - type: 'string', - description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', - nullable: true - }, ioTPlatformRawFieldName: { minLength: 1, type: 'string', @@ -5196,6 +5191,7 @@ export const IoTDBDynamicObjectPagedResultDtoSchema = { } as const; export const IoTPlatformProductInfoInputSchema = { + required: ['ioTPlatformType'], type: 'object', properties: { ioTPlatformType: { @@ -5227,6 +5223,23 @@ export const IoTPlatformProductInfoOutputSchema = { description: '平台产品信息' } as const; +export const IoTPlatformProductPropertyInfoInputSchema = { + required: ['ioTPlatformProductId', 'ioTPlatformType'], + type: 'object', + properties: { + ioTPlatformType: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + minLength: 1, + type: 'string', + description: '物联网平台中对应的产品Id' + } + }, + additionalProperties: false, + description: '产品属性信息输入' +} as const; + export const IoTPlatformThingModelCreateInputSchema = { type: 'object', properties: { @@ -5266,6 +5279,20 @@ export const IoTPlatformThingModelCreateInputSchema = { isValueNeedConvert: { type: 'boolean', description: '是否需要值类型转换' + }, + ioTPlatformRawFieldDataType: { + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件数据类型,int等/>', + nullable: true + }, + isSpecialIdentifier: { + type: 'boolean', + description: '是否是特殊物模型标识符' + }, + ioTPlatformRawFieldExtension: { + type: 'string', + description: '物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型', + nullable: true } }, additionalProperties: false @@ -5503,6 +5530,20 @@ export const IoTPlatformThingModelUpdateInputSchema = { type: 'boolean', description: '是否需要值类型转换' }, + ioTPlatformRawFieldDataType: { + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件数据类型,int等/>', + nullable: true + }, + isSpecialIdentifier: { + type: 'boolean', + description: '是否是特殊物模型标识符' + }, + ioTPlatformRawFieldExtension: { + type: 'string', + description: '物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型', + nullable: true + }, id: { type: 'string', format: 'uuid' diff --git a/apps/web-antd/src/api-client/services.gen.ts b/apps/web-antd/src/api-client/services.gen.ts index 4edda27..cc68af2 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, PostAggregationBusinessReceiveCommandInfoAsyncData, PostAggregationBusinessReceiveCommandInfoAsyncError, PostAggregationBusinessReceiveCommandInfoAsyncResponse, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncData, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncError, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncResponse, PostAggregationBusinessBatchCreateDeviceInfoAsyncData, PostAggregationBusinessBatchCreateDeviceInfoAsyncError, PostAggregationBusinessBatchCreateDeviceInfoAsyncResponse, 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, PostAggregationDeviceDeviceCommandForApiAsyncData, PostAggregationDeviceDeviceCommandForApiAsyncError, PostAggregationDeviceDeviceCommandForApiAsyncResponse, PostDeviceInfoFindByDeviceAddressData, PostDeviceInfoFindByDeviceAddressError, PostDeviceInfoFindByDeviceAddressResponse, PostDeviceInfoPageData, PostDeviceInfoPageError, PostDeviceInfoPageResponse, PostDeviceInfoCacheDeviceDataToRedisError, PostDeviceInfoCacheDeviceDataToRedisResponse, 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, PostDeviceThingModelManagementCommandPageAsyncData, PostDeviceThingModelManagementCommandPageAsyncError, PostDeviceThingModelManagementCommandPageAsyncResponse, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncData, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncResponse, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncResponse, 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, PostIoTplatformThingModelInfoCreateAsyncData, PostIoTplatformThingModelInfoCreateAsyncError, PostIoTplatformThingModelInfoCreateAsyncResponse, PostIoTplatformThingModelInfoUpdateAsyncData, PostIoTplatformThingModelInfoUpdateAsyncError, PostIoTplatformThingModelInfoUpdateAsyncResponse, PostIoTplatformThingModelInfoDeleteAsyncData, PostIoTplatformThingModelInfoDeleteAsyncError, PostIoTplatformThingModelInfoDeleteAsyncResponse, PostIoTplatformThingModelInfoFindByIdAsyncData, PostIoTplatformThingModelInfoFindByIdAsyncError, PostIoTplatformThingModelInfoFindByIdAsyncResponse, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncData, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncError, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncResponse, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncData, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncError, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncResponse, PostIoTplatformThingModelInfoCopyStandardThingModelData, PostIoTplatformThingModelInfoCopyStandardThingModelError, PostIoTplatformThingModelInfoCopyStandardThingModelResponse, PostIoTplatformThingModelInfoPageAsyncData, PostIoTplatformThingModelInfoPageAsyncError, PostIoTplatformThingModelInfoPageAsyncResponse, PostIoTplatformThingModelInfoStandardThingModelPageAsyncError, PostIoTplatformThingModelInfoStandardThingModelPageAsyncResponse, 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, PostOneNetServiceReceivePlaintextDataChangeData, PostOneNetServiceReceivePlaintextDataChangeError, PostOneNetServiceReceivePlaintextDataChangeResponse, GetOneNetServiceReceivePlaintextDataChangeData, GetOneNetServiceReceivePlaintextDataChangeError, GetOneNetServiceReceivePlaintextDataChangeResponse, PostOneNetServiceReceiveCiphertextDataChangeData, PostOneNetServiceReceiveCiphertextDataChangeError, PostOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceReceiveCiphertextDataChangeData, GetOneNetServiceReceiveCiphertextDataChangeError, GetOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceCheckLocalMemroyData, GetOneNetServiceCheckLocalMemroyError, GetOneNetServiceCheckLocalMemroyResponse, 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, 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, PostAggregationWorkshopGetProductListAsyncData, PostAggregationWorkshopGetProductListAsyncError, PostAggregationWorkshopGetProductListAsyncResponse } 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, PostAggregationBusinessReceiveCommandInfoAsyncData, PostAggregationBusinessReceiveCommandInfoAsyncError, PostAggregationBusinessReceiveCommandInfoAsyncResponse, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncData, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncError, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncResponse, PostAggregationBusinessBatchCreateDeviceInfoAsyncData, PostAggregationBusinessBatchCreateDeviceInfoAsyncError, PostAggregationBusinessBatchCreateDeviceInfoAsyncResponse, 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, PostAggregationDeviceDeviceCommandForApiAsyncData, PostAggregationDeviceDeviceCommandForApiAsyncError, PostAggregationDeviceDeviceCommandForApiAsyncResponse, PostDeviceInfoFindByDeviceAddressData, PostDeviceInfoFindByDeviceAddressError, PostDeviceInfoFindByDeviceAddressResponse, PostDeviceInfoPageData, PostDeviceInfoPageError, PostDeviceInfoPageResponse, PostDeviceInfoCacheDeviceDataToRedisError, PostDeviceInfoCacheDeviceDataToRedisResponse, 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, PostDeviceThingModelManagementCommandPageAsyncData, PostDeviceThingModelManagementCommandPageAsyncError, PostDeviceThingModelManagementCommandPageAsyncResponse, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncData, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncResponse, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncResponse, 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, PostAggregationIoTplatformGetIoTplatformProductPropertyInfoAsyncData, PostAggregationIoTplatformGetIoTplatformProductPropertyInfoAsyncError, PostAggregationIoTplatformGetIoTplatformProductPropertyInfoAsyncResponse, PostIoTplatformThingModelInfoCreateAsyncData, PostIoTplatformThingModelInfoCreateAsyncError, PostIoTplatformThingModelInfoCreateAsyncResponse, PostIoTplatformThingModelInfoUpdateAsyncData, PostIoTplatformThingModelInfoUpdateAsyncError, PostIoTplatformThingModelInfoUpdateAsyncResponse, PostIoTplatformThingModelInfoDeleteAsyncData, PostIoTplatformThingModelInfoDeleteAsyncError, PostIoTplatformThingModelInfoDeleteAsyncResponse, PostIoTplatformThingModelInfoFindByIdAsyncData, PostIoTplatformThingModelInfoFindByIdAsyncError, PostIoTplatformThingModelInfoFindByIdAsyncResponse, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncData, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncError, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncResponse, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncData, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncError, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncResponse, PostIoTplatformThingModelInfoCopyStandardThingModelData, PostIoTplatformThingModelInfoCopyStandardThingModelError, PostIoTplatformThingModelInfoCopyStandardThingModelResponse, PostIoTplatformThingModelInfoPageAsyncData, PostIoTplatformThingModelInfoPageAsyncError, PostIoTplatformThingModelInfoPageAsyncResponse, PostIoTplatformThingModelInfoStandardThingModelPageAsyncError, PostIoTplatformThingModelInfoStandardThingModelPageAsyncResponse, 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, PostOneNetServiceReceivePlaintextDataChangeData, PostOneNetServiceReceivePlaintextDataChangeError, PostOneNetServiceReceivePlaintextDataChangeResponse, GetOneNetServiceReceivePlaintextDataChangeData, GetOneNetServiceReceivePlaintextDataChangeError, GetOneNetServiceReceivePlaintextDataChangeResponse, PostOneNetServiceReceiveCiphertextDataChangeData, PostOneNetServiceReceiveCiphertextDataChangeError, PostOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceReceiveCiphertextDataChangeData, GetOneNetServiceReceiveCiphertextDataChangeError, GetOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceCheckLocalMemroyData, GetOneNetServiceCheckLocalMemroyError, GetOneNetServiceCheckLocalMemroyResponse, 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, 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, PostAggregationWorkshopGetProductListAsyncData, PostAggregationWorkshopGetProductListAsyncError, PostAggregationWorkshopGetProductListAsyncResponse } from './types.gen'; export const client = createClient(createConfig()); @@ -787,6 +787,16 @@ export const postAggregationIoTplatformGetIoTplatformProductInfoAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/Aggregation/IoTPlatform/GetIoTPlatformProductPropertyInfoAsync' + }); +}; + /** * 创建物模型信息 */ diff --git a/apps/web-antd/src/api-client/types.gen.ts b/apps/web-antd/src/api-client/types.gen.ts index f948970..c269640 100644 --- a/apps/web-antd/src/api-client/types.gen.ts +++ b/apps/web-antd/src/api-client/types.gen.ts @@ -1752,10 +1752,6 @@ export type DeviceThingModelPropertyUpdateInput = { * 设备端物模型Id */ deviceThingModelId: string; - /** - * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst - */ - filedType?: (string) | null; /** * 物联网平台中对应的产品物模型属性或者事件名称 */ @@ -2586,7 +2582,7 @@ export type IoTDBDynamicObjectPagedResultDto = { * 产品信息输入 */ export type IoTPlatformProductInfoInput = { - ioTPlatformType?: IoTPlatformTypeEnum; + ioTPlatformType: IoTPlatformTypeEnum; }; /** @@ -2604,6 +2600,17 @@ export type IoTPlatformProductInfoOutput = { productName?: (string) | null; }; +/** + * 产品属性信息输入 + */ +export type IoTPlatformProductPropertyInfoInput = { + ioTPlatformType: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId: string; +}; + export type IoTPlatformThingModelCreateInput = { ioTPlatform?: IoTPlatformTypeEnum; /** @@ -2634,6 +2641,18 @@ export type IoTPlatformThingModelCreateInput = { * 是否需要值类型转换 */ isValueNeedConvert?: boolean; + /** + * 物联网平台中对应的产品物模型属性或者事件数据类型,int等/> + */ + ioTPlatformRawFieldDataType?: (string) | null; + /** + * 是否是特殊物模型标识符 + */ + isSpecialIdentifier?: boolean; + /** + * 物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型 + */ + ioTPlatformRawFieldExtension?: (string) | null; }; /** @@ -2783,6 +2802,18 @@ export type IoTPlatformThingModelUpdateInput = { * 是否需要值类型转换 */ isValueNeedConvert?: boolean; + /** + * 物联网平台中对应的产品物模型属性或者事件数据类型,int等/> + */ + ioTPlatformRawFieldDataType?: (string) | null; + /** + * 是否是特殊物模型标识符 + */ + isSpecialIdentifier?: boolean; + /** + * 物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型 + */ + ioTPlatformRawFieldExtension?: (string) | null; id?: string; }; @@ -6238,6 +6269,16 @@ export type PostAggregationIoTplatformGetIoTplatformProductInfoAsyncResponse = ( export type PostAggregationIoTplatformGetIoTplatformProductInfoAsyncError = unknown; +export type PostAggregationIoTplatformGetIoTplatformProductPropertyInfoAsyncData = { + query?: { + input?: IoTPlatformProductPropertyInfoInput; + }; +}; + +export type PostAggregationIoTplatformGetIoTplatformProductPropertyInfoAsyncResponse = (Array); + +export type PostAggregationIoTplatformGetIoTplatformProductPropertyInfoAsyncError = unknown; + export type PostIoTplatformThingModelInfoCreateAsyncData = { query?: { input?: IoTPlatformThingModelCreateInput; diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue index 525a7b0..e46ad6e 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue @@ -9,6 +9,7 @@ import { Page, useVbenModal } from '@vben/common-ui'; import { Button, + Input, message as Message, Modal, Popover, @@ -30,6 +31,7 @@ import { Icon } from '#/components/icon'; import { Loading } from '#/components/Loading'; import { TableAction } from '#/components/table-action'; import { $t } from '#/locales'; +import IoTPlatformThingModelDataSelect from '#/views/thingmodelinfo/IoTPlatformThingModelDataSelect.vue'; import { addDeviceFormSchema, @@ -159,6 +161,72 @@ const cacheRefreshLoading = ref(false); const pageLoading = ref(false); const loadingTip = ref('缓存刷新中...'); const commandRow: Record = ref({}); + +// 指令属性-值对列表 +interface CommandProperty { + id: string; // 唯一标识 + propertyId: string; // 物模型属性ID + propertyName: string; // 物模型属性名称(用于显示) + platformFieldName: string; // 平台字段名称(用于提交的键) + standardFieldName: string; // 标准字段名称 + value: string; // 指令值 +} + +const commandProperties = ref([ + { + id: `prop-${Date.now()}`, + propertyId: '', + propertyName: '', + platformFieldName: '', + standardFieldName: '', + value: '', + }, +]); + +// 添加新的属性-值对 +const addCommandProperty = () => { + commandProperties.value.push({ + id: `prop-${Date.now()}-${Math.random()}`, + propertyId: '', + propertyName: '', + platformFieldName: '', + standardFieldName: '', + value: '', + }); +}; + +// 删除属性-值对 +const removeCommandProperty = (id: string) => { + const index = commandProperties.value.findIndex((p) => p.id === id); + if (index > -1) { + commandProperties.value.splice(index, 1); + } + // 如果删除后没有项目,至少保留一个 + if (commandProperties.value.length === 0) { + addCommandProperty(); + } +}; + +// 处理物模型属性选择变化 +const handlePropertyChange = (item: any, property: CommandProperty) => { + if (item) { + property.propertyId = item.id || item.value || ''; + property.propertyName = + item.standardFieldDisplayName || + item.ioTPlatformRawFieldName || + item.label || + ''; + // 优先使用平台原始字段名,如果没有则使用标准字段名 + property.platformFieldName = item.ioTPlatformRawFieldName || item.standardFieldName || ''; + property.standardFieldName = item.standardFieldName || ''; + } else { + property.propertyId = ''; + property.propertyName = ''; + property.platformFieldName = ''; + property.standardFieldName = ''; + } +}; + const [UserModal, userModalApi] = useVbenModal({ draggable: true, onConfirm: submit, @@ -173,8 +241,27 @@ const [CommandModal, commandModalApi] = useVbenModal({ onConfirm: submitCommand, onBeforeClose: () => { commandRow.value = {}; + // 重置属性列表,保留一个空项 + commandProperties.value = [ + { + id: `prop-${Date.now()}`, + propertyId: '', + propertyName: '', + platformFieldName: '', + standardFieldName: '', + value: '', + }, + ]; return true; }, + onOpenChange: (isOpen: boolean) => { + if (isOpen && commandRow.value) { + // 打开模态框时,确保至少有一个属性-值对 + if (commandProperties.value.length === 0) { + addCommandProperty(); + } + } + }, }); const [AddForm, addFormApi] = useVbenForm({ @@ -454,24 +541,65 @@ const openAddModal = async () => { const openCommandModal = (row: Record) => { commandRow.value = row; + // 重置属性列表,保留一个空项 + commandProperties.value = [ + { + id: `prop-${Date.now()}`, + propertyId: '', + propertyName: '', + platformFieldName: '', + standardFieldName: '', + value: '', + }, + ]; commandModalApi.open(); }; // 指令提交逻辑 async function submitCommand() { - const { valid } = await commandFormApi.validate(); - if (!valid) return; + // 验证所有属性-值对都已填写 + const invalidProperties = commandProperties.value.filter( + (p) => !p.propertyId || !p.value || p.value.trim() === '', + ); - const formValues = await commandFormApi.getValues(); + if (invalidProperties.length > 0) { + Message.error('请完整填写所有属性名称和指令值'); + return; + } + + // 验证至少有一个有效的属性-值对(有键和值) + const validProperties = commandProperties.value.filter( + (p) => { + const key = p.platformFieldName || p.standardFieldName || p.propertyName; + return key && p.value && p.value.trim() !== ''; + }, + ); + + if (validProperties.length === 0) { + Message.error('请至少添加一个有效的属性-值对'); + return; + } try { commandModalApi.setState({ loading: true, confirmLoading: true }); + // 将属性-值对组成字典 + const commandContent: Record = {}; + commandProperties.value.forEach((prop) => { + if (prop.value && prop.value.trim() !== '') { + // 优先使用平台字段名作为键,如果没有则使用标准字段名,最后使用显示名称 + const key = prop.platformFieldName || prop.standardFieldName || prop.propertyName; + if (key) { + commandContent[key] = prop.value; + } + } + }); + // 调用指令接口 const result = await postAggregationDeviceDeviceCommandForApiAsync({ body: { - Id: commandRow.value.id, - CommandContent: formValues.CommandContent, + id: commandRow.value.id, + commandContent: commandContent, }, }); @@ -479,6 +607,17 @@ async function submitCommand() { Message.success('指令下发成功'); commandModalApi.close(); commandRow.value = {}; + // 重置属性列表 + commandProperties.value = [ + { + id: `prop-${Date.now()}`, + propertyId: '', + propertyName: '', + platformFieldName: '', + standardFieldName: '', + value: '', + }, + ]; } else { Message.error('指令下发失败'); } @@ -852,8 +991,81 @@ const toolbarActions = computed(() => [ - - + +
+
+
+ + 属性-值对 {{ index + 1 }} + + +
+
+
+ + +
+
+ + +
+
+
+ 已选择属性: {{ property.propertyName }} + + (平台字段: {{ property.platformFieldName }}) + +
+
+
+ +
+
diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts index 56ea510..21b2966 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts @@ -793,20 +793,7 @@ export const editDeviceFormSchemaEdit: any = computed(() => [ ]); export const commandFormSchema: any = computed(() => [ - { - component: 'Textarea', - fieldName: 'CommandContent', - label: $t('abp.IoTDBBase.Command'), - componentProps: { - rows: 8, - placeholder: $t('common.pleaseInput') + $t('abp.IoTDBBase.Command'), - showCount: true, - maxLength: 1000, - }, - rules: z.string().min(1, { - message: `${$t('common.pleaseInput')}${$t('abp.IoTDBBase.Command')}`, - }), - }, + // 指令表单不再使用schema字段,改为在模板中动态渲染 ]); export const batchAddDeviceFormSchema: any = computed(() => [ diff --git a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue index e7d8605..a4c3543 100644 --- a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue +++ b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue @@ -208,7 +208,8 @@ const [CopyModal, copyModalApi] = useVbenModal({ const [AddForm, addFormApi] = useVbenForm({ collapsed: false, commonConfig: { - labelWidth: 110, + labelWidth: 150, + labelClass: 'whitespace-nowrap', componentProps: { class: 'w-4/5', }, @@ -223,7 +224,8 @@ const [AddForm, addFormApi] = useVbenForm({ const [EditForm, editFormApi] = useVbenForm({ collapsed: false, commonConfig: { - labelWidth: 110, + labelWidth: 150, + labelClass: 'whitespace-nowrap', componentProps: { class: 'w-4/5', }, diff --git a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts index b40cb9a..6e5968f 100644 --- a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts +++ b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts @@ -217,57 +217,6 @@ export const addThingModelFormSchema = computed(() => [ }, }, }, - { - component: 'Input', - fieldName: 'ioTPlatformRawFieldName', - label: $t('abp.thingModelInfos.IoTPlatformRawFieldName'), - rules: z.preprocess( - (v) => (v == null ? '' : v), - z.string().min(1, $t('common.required')), - ), - componentProps: { - placeholder: - $t('common.pleaseInput') + - $t('abp.thingModelInfos.IoTPlatformRawFieldName'), - }, - }, - { - component: 'StandardThingModelCodeSelect', - fieldName: 'standardFieldDisplayName', - label: $t('abp.thingModelInfos.StandardFieldDisplayName'), - rules: z.preprocess( - (v) => (v == null ? '' : v), - z.string().min(1, $t('common.required')), - ), - componentProps: (formValues: any) => ({ - // 传入联动的类型编码(运行时具体值) - typeCode: formValues?.filedType ?? null, - onResolve: (item: any | null) => { - // 选择后自动回填:名称=displayText,值类型=extendedAttribute(转大写) - formValues.standardFieldDisplayName = item?.displayText ?? ''; - formValues.standardFieldName = item?.code ?? ''; - formValues.standardFieldValueType = (item?.extendedAttribute ?? '') - .toString() - .toUpperCase(); - }, - placeholder: - $t('common.pleaseSelect') + $t('abp.thingModelInfos.StandardFieldName'), - }), - }, - { - component: 'Input', - fieldName: 'standardFieldName', - label: $t('abp.thingModelInfos.StandardFieldName'), - rules: z.preprocess( - (v) => (v == null ? '' : v), - z.string().min(1, $t('common.required')), - ), - componentProps: { - placeholder: - $t('common.pleaseInput') + - $t('abp.thingModelInfos.StandardFieldDisplayName'), - }, - }, { component: 'ApiSelect', fieldName: 'standardFieldValueType', @@ -306,6 +255,57 @@ export const addThingModelFormSchema = computed(() => [ }, }, }, + { + component: 'StandardThingModelCodeSelect', + fieldName: 'standardFieldDisplayName', + label: $t('abp.thingModelInfos.StandardFieldDisplayName'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: (formValues: any) => ({ + // 传入联动的类型编码(运行时具体值) + typeCode: formValues?.filedType ?? null, + onResolve: (item: any | null) => { + // 选择后自动回填:名称=displayText,值类型=extendedAttribute(转大写) + formValues.standardFieldDisplayName = item?.displayText ?? ''; + formValues.standardFieldName = item?.code ?? ''; + formValues.standardFieldValueType = (item?.extendedAttribute ?? '') + .toString() + .toUpperCase(); + }, + placeholder: + $t('common.pleaseSelect') + $t('abp.thingModelInfos.StandardFieldName'), + }), + }, + { + component: 'Input', + fieldName: 'standardFieldName', + label: $t('abp.thingModelInfos.StandardFieldName'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: { + placeholder: + $t('common.pleaseInput') + + $t('abp.thingModelInfos.StandardFieldDisplayName'), + }, + }, + { + component: 'Input', + fieldName: 'ioTPlatformRawFieldName', + label: $t('abp.thingModelInfos.IoTPlatformRawFieldName'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: { + placeholder: + $t('common.pleaseInput') + + $t('abp.thingModelInfos.IoTPlatformRawFieldName'), + }, + }, { component: 'Switch', fieldName: 'isValueNeedConvert', @@ -315,6 +315,56 @@ export const addThingModelFormSchema = computed(() => [ style: { width: 'auto' }, }, }, + { + component: 'ApiSelect', + fieldName: 'ioTPlatformRawFieldDataType', + label: '平台物模型值类型', + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'StandardThingModelDataTypeEnum', + }, + }, + labelField: 'value', + valueField: 'secondValue', + optionsPropName: 'options', + immediate: true, + allowClear: true, + placeholder: '请选择平台原始字段数据类型', + afterFetch: (res: any) => { + // 确保返回的是数组格式 + if (Array.isArray(res)) { + return res; + } + if (res && Array.isArray(res.items)) { + return res.items; + } + if (res && Array.isArray(res.data)) { + return res.data; + } + return []; + }, + }, + }, + { + component: 'Switch', + fieldName: 'isSpecialIdentifier', + label: '是否特殊物模型标识符', + defaultValue: false, + componentProps: { + style: { width: 'auto' }, + }, + }, + { + component: 'Textarea', + fieldName: 'ioTPlatformRawFieldExtension', + label: '平台物模型值类型扩展', + componentProps: { + rows: 4, + placeholder: '请输入平台原始字段扩展信息(用于扩展结构体类型,JSON格式)', + }, + }, ]); // 编辑物模型表单schema @@ -356,54 +406,6 @@ export const editThingModelFormSchema = computed(() => [ }, }, }, - { - component: 'Input', - fieldName: 'ioTPlatformRawFieldName', - label: $t('abp.thingModelInfos.IoTPlatformRawFieldName'), - rules: z.preprocess( - (v) => (v == null ? '' : v), - z.string().min(1, $t('common.required')), - ), - componentProps: { - // disabled: true, // 编辑时禁用 - placeholder: - $t('common.pleaseInput') + - $t('abp.thingModelInfos.IoTPlatformRawFieldName'), - }, - }, - { - component: 'StandardThingModelCodeSelect', - fieldName: 'standardFieldDisplayName', - label: $t('abp.thingModelInfos.StandardFieldDisplayName'), - rules: z.preprocess( - (v) => (v == null ? '' : v), - z.string().min(1, $t('common.required')), - ), - componentProps: (formValues: any) => ({ - typeCode: formValues?.filedType ?? null, - disabled: true, // 编辑时禁用 - onResolve: (item: any | null) => { - formValues.standardFieldDisplayName = item?.displayText ?? ''; - formValues.standardFieldValueType = (item?.extendedAttribute ?? '') - .toString() - .toUpperCase(); - }, - placeholder: - $t('common.pleaseInput') + - $t('abp.thingModelInfos.StandardFieldDisplayName'), - }), - }, - { - component: 'Input', - fieldName: 'standardFieldName', - label: $t('abp.thingModelInfos.StandardFieldName'), - rules: z.string().min(1, $t('common.required')), - componentProps: { - disabled: true, // 编辑时禁用 - placeholder: - $t('common.pleaseSelect') + $t('abp.thingModelInfos.StandardFieldName'), - }, - }, { component: 'ApiSelect', fieldName: 'standardFieldValueType', @@ -445,6 +447,54 @@ export const editThingModelFormSchema = computed(() => [ }, }, }, + { + component: 'StandardThingModelCodeSelect', + fieldName: 'standardFieldDisplayName', + label: $t('abp.thingModelInfos.StandardFieldDisplayName'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: (formValues: any) => ({ + typeCode: formValues?.filedType ?? null, + disabled: true, // 编辑时禁用 + onResolve: (item: any | null) => { + formValues.standardFieldDisplayName = item?.displayText ?? ''; + formValues.standardFieldValueType = (item?.extendedAttribute ?? '') + .toString() + .toUpperCase(); + }, + placeholder: + $t('common.pleaseInput') + + $t('abp.thingModelInfos.StandardFieldDisplayName'), + }), + }, + { + component: 'Input', + fieldName: 'standardFieldName', + label: $t('abp.thingModelInfos.StandardFieldName'), + rules: z.string().min(1, $t('common.required')), + componentProps: { + disabled: true, // 编辑时禁用 + placeholder: + $t('common.pleaseSelect') + $t('abp.thingModelInfos.StandardFieldName'), + }, + }, + { + component: 'Input', + fieldName: 'ioTPlatformRawFieldName', + label: $t('abp.thingModelInfos.IoTPlatformRawFieldName'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: { + // disabled: true, // 编辑时禁用 + placeholder: + $t('common.pleaseInput') + + $t('abp.thingModelInfos.IoTPlatformRawFieldName'), + }, + }, { component: 'Switch', fieldName: 'isValueNeedConvert', @@ -453,6 +503,55 @@ export const editThingModelFormSchema = computed(() => [ style: { width: 'auto' }, }, }, + { + component: 'ApiSelect', + fieldName: 'ioTPlatformRawFieldDataType', + label: '平台物模型值类型', + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'StandardThingModelDataTypeEnum', + }, + }, + labelField: 'value', + valueField: 'secondValue', + optionsPropName: 'options', + immediate: true, + allowClear: true, + placeholder: '请选择平台原始字段数据类型', + afterFetch: (res: any) => { + // 确保返回的是数组格式 + if (Array.isArray(res)) { + return res; + } + if (res && Array.isArray(res.items)) { + return res.items; + } + if (res && Array.isArray(res.data)) { + return res.data; + } + return []; + }, + }, + }, + { + component: 'Switch', + fieldName: 'isSpecialIdentifier', + label: '是否特殊物模型标识符', + componentProps: { + style: { width: 'auto' }, + }, + }, + { + component: 'Textarea', + fieldName: 'ioTPlatformRawFieldExtension', + label: '平台物模型值类型扩展', + componentProps: { + rows: 4, + placeholder: '请输入平台原始字段扩展信息(用于扩展结构体类型,JSON格式)', + }, + }, ]); // 复制已有模型表单schema