From 57459751dcd7b96d16b3cfff82ee4d14c9c80d7e Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Tue, 5 Aug 2025 17:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=81=A5=E6=B5=8B=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api-client/schemas.gen.ts | 247 ++++-------------- apps/web-antd/src/api-client/services.gen.ts | 32 +-- apps/web-antd/src/api-client/types.gen.ts | 227 ++++------------ .../web-antd/src/locales/langs/en-US/abp.json | 7 + .../web-antd/src/locales/langs/zh-CN/abp.json | 14 +- .../devicemanagement/deviceinfo/index.vue | 67 +++-- .../devicemanagement/deviceinfo/schema.ts | 16 +- .../telemetryLog/index.vue | 12 + .../telemetryLog/schema.ts | 66 +++-- .../onenetmanagement/privateProduct/schema.ts | 70 +---- 10 files changed, 231 insertions(+), 527 deletions(-) diff --git a/apps/web-antd/src/api-client/schemas.gen.ts b/apps/web-antd/src/api-client/schemas.gen.ts index 0409410..d253cfc 100644 --- a/apps/web-antd/src/api-client/schemas.gen.ts +++ b/apps/web-antd/src/api-client/schemas.gen.ts @@ -1717,6 +1717,24 @@ export const DeleteTextTemplateInputSchema = { description: '删除模板' } as const; +export const DeviceCommandForApiInputSchema = { + required: ['commandContent'], + type: 'object', + properties: { + id: { + type: 'string', + format: 'uuid' + }, + commandContent: { + minLength: 1, + type: 'string', + description: '设备在物联网平台中发送的命令内容,JSON格式' + } + }, + additionalProperties: false, + description: '设备命令' +} as const; + export const DeviceManagementInfoDtoSchema = { type: 'object', properties: { @@ -4258,196 +4276,6 @@ export const MessageTypeSchema = { '说明:': '广播消息=10,普通文本消息=20' } as const; -export const MeterReadingPacketInfoDtoSchema = { - type: 'object', - properties: { - dataBaseName: { - type: 'string', - description: '数据库名称,用于构建存储路径,来自系统配置', - nullable: true - }, - ioTDataType: { - type: 'string', - description: `数据类型,用于构建存储路径 - JiShe.ServicePro.Consts.IoTDBDataTypeConst`, - nullable: true - }, - deviceType: { - type: 'string', - description: `设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 -JiShe.ServicePro.Enums.DeviceTypeEnum`, - nullable: true - }, - deviceAddress: { - type: 'string', - description: '设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等', - nullable: true - }, - timestamps: { - type: 'integer', - description: '时标,也就是业务时间戳,单位毫秒,必须通过DateTimeOffset获取', - format: 'int64' - }, - formattedTimestamps: { - type: 'string', - description: '时标格式化以后的本地时间', - format: 'date-time', - readOnly: true - }, - devicePath: { - type: 'string', - description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明', - nullable: true - }, - scoreValue: { - type: 'string', - description: '排序索引分数值,具体值可以根据不同业务场景进行定义,例如时间戳、或者某一个固定的标识', - nullable: true - }, - packetType: { - type: 'integer', - description: '数据包类型', - format: 'int32' - }, - manualOrNot: { - type: 'boolean', - description: '是否手动操作' - }, - taskMark: { - type: 'string', - description: '任务数据唯一标记', - nullable: true - }, - isTimeout: { - type: 'boolean', - description: '是否超时' - }, - pendingCopyReadTime: { - type: 'string', - description: '待抄读时间', - format: 'date-time' - }, - focusId: { - type: 'integer', - description: '集中器Id', - format: 'int32' - }, - focusAddress: { - type: 'string', - description: '集中器地址', - nullable: true - }, - meterAddress: { - type: 'string', - description: '表地址', - nullable: true - }, - databaseBusiID: { - type: 'integer', - description: '数据库业务ID', - format: 'int32' - }, - afn: { - type: 'integer', - description: 'AFN功能码', - format: 'int32' - }, - fn: { - type: 'integer', - description: '抄读功能码', - format: 'int32' - }, - pn: { - type: 'integer', - description: '抄读计量点', - format: 'int32' - }, - itemCode: { - type: 'string', - description: '采集项编码', - nullable: true - }, - subItemCode: { - type: 'string', - description: '子项编码,一般用于透明转发的编码', - nullable: true - }, - seq: { - type: 'integer', - description: '帧序列域 SEQ', - format: 'int32' - }, - msa: { - type: 'integer', - description: '地址域A3的主站地址MSA', - format: 'int32' - }, - isSend: { - type: 'boolean', - description: '是否发送' - }, - sendNum: { - type: 'integer', - description: '发送次数', - format: 'int32', - nullable: true - }, - nextSendTime: { - type: 'string', - description: '下次发送时间', - format: 'date-time', - nullable: true - }, - creationTime: { - type: 'string', - description: '创建时间', - format: 'date-time' - }, - issuedMessageHexString: { - type: 'string', - description: '下发消息内容', - nullable: true - }, - issuedMessageId: { - type: 'string', - description: '下发消息Id', - nullable: true - }, - focusDensity: { - type: 'integer', - description: '集中器采集密度', - format: 'int32' - }, - receivedMessageHexString: { - type: 'string', - description: '消息上报内容', - nullable: true - }, - receivedTime: { - type: 'string', - description: '消息上报时间', - format: 'date-time', - nullable: true - }, - receivedMessageId: { - type: 'string', - description: '上报消息Id', - nullable: true - }, - receivedRemark: { - type: 'string', - description: '上报报文解析备注,异常情况下才有', - nullable: true - }, - isReceived: { - type: 'boolean', - description: '是否已上报' - } - }, - additionalProperties: false, - description: '抄读任务数据 Dto' -} as const; - export const MeterReadingPacketInfoPageInputSchema = { type: 'object', properties: { @@ -4500,9 +4328,9 @@ export const MeterReadingPacketInfoPageInputSchema = { format: 'date-time', nullable: true }, - meterAddress: { + ioTPlatformDeviceOpenInfo: { type: 'string', - description: '表地址', + description: '物联网平台设备ID', nullable: true } }, @@ -4551,22 +4379,37 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`, description: '设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明', nullable: true }, - productId: { + ioTPlatformProductId: { type: 'string', description: '物联网平台产品Id', nullable: true }, - platformDeviceId: { + ioTPlatformDeviceOpenInfo: { type: 'string', description: '物联网平台设备ID', nullable: true }, + ioTPlatformProductName: { + type: 'string', + description: '物联网平台中对应的产品Name', + nullable: true + }, + ioTPlatformAccountId: { + type: 'string', + description: '物联网平台中对应的账号Id', + nullable: true + }, + accountPhoneNumber: { + type: 'string', + description: '账户手机号', + nullable: true + }, messageType: { type: 'string', description: '消息类型', nullable: true }, - rawMessage: { + issueRawMessage: { type: 'string', description: '下发消息体原始内容', nullable: true @@ -4581,7 +4424,7 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`, description: '下发结果原始内容', nullable: true }, - responseResult: { + responsePayload: { type: 'string', description: '下发结果', nullable: true @@ -7645,7 +7488,7 @@ export const QueryCTWingAepReceiveMessageInputSchema = { format: 'date-time', nullable: true }, - platformDeviceId: { + ioTPlatformDeviceOpenInfo: { type: 'string', description: '物联网平台设备ID', nullable: true @@ -7711,7 +7554,7 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`, description: '物联网平台服务Id', nullable: true }, - platformDeviceId: { + ioTPlatformDeviceOpenInfo: { type: 'string', description: '物联网平台设备ID', nullable: true @@ -7836,7 +7679,7 @@ export const QueryOneNETReceiveMessageInputSchema = { format: 'date-time', nullable: true }, - platformDeviceId: { + ioTPlatformDeviceOpenInfo: { type: 'string', description: '物联网平台设备ID', nullable: true @@ -7892,7 +7735,7 @@ JiShe.ServicePro.Enums.DeviceTypeEnum`, description: '物联网平台产品Id', nullable: true }, - platformDeviceId: { + ioTPlatformDeviceOpenInfo: { type: 'string', description: '物联网平台设备ID', nullable: true @@ -8141,11 +7984,11 @@ export const ResetTwoFactorInputSchema = { } as const; export const ResponeResultEnumSchema = { - enum: [0, 1, 2, 3, 4, 5, 6, 200, 201, 400, 401, 403, 404, 500, 503, 504, -102, -101], + enum: [0, 1, 2, 3, 4, 5, 6, 200, 201, 400, 401, 403, 404, 500, 503, 504, 10421, -102, -101], type: 'integer', description: '响应结果枚举', format: 'int32', - '说明:': 'Success=0,Fail=1,LoginOut=2,TimeOut=3,Exception=4,NotAllowed=5,NotLoggedIn=6,OK=200,NoData=201,BadRequest=400,Unauthorized=401,Forbidden=403,NotFound=404,AepInternalError=500,ServiceUnavailable=503,AsyncService=504,HandlerException=-102,HandlerFail=-101' + '说明:': 'Success=0,Fail=1,LoginOut=2,TimeOut=3,Exception=4,NotAllowed=5,NotLoggedIn=6,OK=200,NoData=201,BadRequest=400,Unauthorized=401,Forbidden=403,NotFound=404,AepInternalError=500,ServiceUnavailable=503,AsyncService=504,DeviceNotOnline=10421,HandlerException=-102,HandlerFail=-101' } as const; export const ReturnValueApiDescriptionModelSchema = { diff --git a/apps/web-antd/src/api-client/services.gen.ts b/apps/web-antd/src/api-client/services.gen.ts index 8a7f7e0..add47ec 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, GetCommonGetSelectListData, GetCommonGetSelectListError, GetCommonGetSelectListResponse, PostCtWingAccountInsertAsyncData, PostCtWingAccountInsertAsyncError, PostCtWingAccountInsertAsyncResponse, PostCtWingAccountModifyAsyncData, PostCtWingAccountModifyAsyncError, PostCtWingAccountModifyAsyncResponse, PostCtWingAccountDeleteAsyncData, PostCtWingAccountDeleteAsyncError, PostCtWingAccountDeleteAsyncResponse, PostCtWingAccountListAsyncData, PostCtWingAccountListAsyncError, PostCtWingAccountListAsyncResponse, PostAggregationCtWingReceiveWorkshopProductionInfoAsyncData, PostAggregationCtWingReceiveWorkshopProductionInfoAsyncError, PostAggregationCtWingReceiveWorkshopProductionInfoAsyncResponse, PostAggregationCtWingGetProductListAsyncData, PostAggregationCtWingGetProductListAsyncError, PostAggregationCtWingGetProductListAsyncResponse, 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, 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, PostDeviceInfoFindByDeviceAddressData, PostDeviceInfoFindByDeviceAddressError, PostDeviceInfoFindByDeviceAddressResponse, PostDeviceInfoPageData, PostDeviceInfoPageError, PostDeviceInfoPageResponse, PostDeviceInfoCacheDeviceDataToRedisError, PostDeviceInfoCacheDeviceDataToRedisResponse, PostFeaturesListData, PostFeaturesListError, PostFeaturesListResponse, PostFeaturesUpdateData, PostFeaturesUpdateError, PostFeaturesUpdateResponse, PostFeaturesDeleteData, PostFeaturesDeleteError, PostFeaturesDeleteResponse, PostFilesPageData, PostFilesPageError, PostFilesPageResponse, PostFilesUploadData, PostFilesUploadError, PostFilesUploadResponse, PostFilesDeleteData, PostFilesDeleteError, PostFilesDeleteResponse, PostFilesDownloadData, PostFilesDownloadError, PostFilesDownloadResponse, PostIdentitySecurityLogsPageData, PostIdentitySecurityLogsPageError, PostIdentitySecurityLogsPageResponse, 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, PostAggregationOneNetReceiveWorkshopProductionInfoAsyncData, PostAggregationOneNetReceiveWorkshopProductionInfoAsyncError, PostAggregationOneNetReceiveWorkshopProductionInfoAsyncResponse, PostAggregationOneNetGetProductListAsyncData, PostAggregationOneNetGetProductListAsyncError, PostAggregationOneNetGetProductListAsyncResponse, PostOneNetProductInsertAsyncData, PostOneNetProductInsertAsyncError, PostOneNetProductInsertAsyncResponse, PostOneNetProductModifyAsyncData, PostOneNetProductModifyAsyncError, PostOneNetProductModifyAsyncResponse, PostOneNetProductDeleteAsyncData, PostOneNetProductDeleteAsyncError, PostOneNetProductDeleteAsyncResponse, PostOneNetProductGetAsyncData, PostOneNetProductGetAsyncError, PostOneNetProductGetAsyncResponse, PostOneNetProductProductStatusChangeAsyncData, PostOneNetProductProductStatusChangeAsyncError, PostOneNetProductProductStatusChangeAsyncResponse, PostOneNetProductListAsyncData, PostOneNetProductListAsyncError, PostOneNetProductListAsyncResponse, PostOneNetServiceReceivePlaintextDataChangeData, PostOneNetServiceReceivePlaintextDataChangeError, PostOneNetServiceReceivePlaintextDataChangeResponse, GetOneNetServiceReceivePlaintextDataChangeData, GetOneNetServiceReceivePlaintextDataChangeError, GetOneNetServiceReceivePlaintextDataChangeResponse, PostOneNetServiceReceiveCiphertextDataChangeData, PostOneNetServiceReceiveCiphertextDataChangeError, PostOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceReceiveCiphertextDataChangeData, GetOneNetServiceReceiveCiphertextDataChangeError, GetOneNetServiceReceiveCiphertextDataChangeResponse, 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, PostTableModelPacketInfoInsertData, PostTableModelPacketInfoInsertError, PostTableModelPacketInfoInsertResponse, PostTableModelPacketInfoBatchInsertData, PostTableModelPacketInfoBatchInsertError, PostTableModelPacketInfoBatchInsertResponse, 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 } 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, GetCommonGetSelectListData, GetCommonGetSelectListError, GetCommonGetSelectListResponse, PostCtWingAccountInsertAsyncData, PostCtWingAccountInsertAsyncError, PostCtWingAccountInsertAsyncResponse, PostCtWingAccountModifyAsyncData, PostCtWingAccountModifyAsyncError, PostCtWingAccountModifyAsyncResponse, PostCtWingAccountDeleteAsyncData, PostCtWingAccountDeleteAsyncError, PostCtWingAccountDeleteAsyncResponse, PostCtWingAccountListAsyncData, PostCtWingAccountListAsyncError, PostCtWingAccountListAsyncResponse, PostAggregationCtWingReceiveWorkshopProductionInfoAsyncData, PostAggregationCtWingReceiveWorkshopProductionInfoAsyncError, PostAggregationCtWingReceiveWorkshopProductionInfoAsyncResponse, PostAggregationCtWingGetProductListAsyncData, PostAggregationCtWingGetProductListAsyncError, PostAggregationCtWingGetProductListAsyncResponse, 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, 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, PostFeaturesListData, PostFeaturesListError, PostFeaturesListResponse, PostFeaturesUpdateData, PostFeaturesUpdateError, PostFeaturesUpdateResponse, PostFeaturesDeleteData, PostFeaturesDeleteError, PostFeaturesDeleteResponse, PostFilesPageData, PostFilesPageError, PostFilesPageResponse, PostFilesUploadData, PostFilesUploadError, PostFilesUploadResponse, PostFilesDeleteData, PostFilesDeleteError, PostFilesDeleteResponse, PostFilesDownloadData, PostFilesDownloadError, PostFilesDownloadResponse, PostIdentitySecurityLogsPageData, PostIdentitySecurityLogsPageError, PostIdentitySecurityLogsPageResponse, 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, PostAggregationOneNetReceiveWorkshopProductionInfoAsyncData, PostAggregationOneNetReceiveWorkshopProductionInfoAsyncError, PostAggregationOneNetReceiveWorkshopProductionInfoAsyncResponse, PostAggregationOneNetGetProductListAsyncData, PostAggregationOneNetGetProductListAsyncError, PostAggregationOneNetGetProductListAsyncResponse, PostOneNetProductInsertAsyncData, PostOneNetProductInsertAsyncError, PostOneNetProductInsertAsyncResponse, PostOneNetProductModifyAsyncData, PostOneNetProductModifyAsyncError, PostOneNetProductModifyAsyncResponse, PostOneNetProductDeleteAsyncData, PostOneNetProductDeleteAsyncError, PostOneNetProductDeleteAsyncResponse, PostOneNetProductGetAsyncData, PostOneNetProductGetAsyncError, PostOneNetProductGetAsyncResponse, PostOneNetProductProductStatusChangeAsyncData, PostOneNetProductProductStatusChangeAsyncError, PostOneNetProductProductStatusChangeAsyncResponse, PostOneNetProductListAsyncData, PostOneNetProductListAsyncError, PostOneNetProductListAsyncResponse, PostOneNetServiceReceivePlaintextDataChangeData, PostOneNetServiceReceivePlaintextDataChangeError, PostOneNetServiceReceivePlaintextDataChangeResponse, GetOneNetServiceReceivePlaintextDataChangeData, GetOneNetServiceReceivePlaintextDataChangeError, GetOneNetServiceReceivePlaintextDataChangeResponse, PostOneNetServiceReceiveCiphertextDataChangeData, PostOneNetServiceReceiveCiphertextDataChangeError, PostOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceReceiveCiphertextDataChangeData, GetOneNetServiceReceiveCiphertextDataChangeError, GetOneNetServiceReceiveCiphertextDataChangeResponse, 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 } from './types.gen'; export const client = createClient(createConfig()); @@ -416,6 +416,16 @@ export const postAggregationDeviceRepushDeviceInfoToIoTplatform = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/Aggregation/Device/DeviceCommandForApiAsync' + }); +}; + /** * 根据设备地址查询设备信息 */ @@ -1029,26 +1039,6 @@ export const postTableModelPacketInfoPage = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/TableModel/PacketInfoInsert' - }); -}; - -/** - * 批量插入遥测数据包 - */ -export const postTableModelPacketInfoBatchInsert = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/TableModel/PacketInfoBatchInsert' - }); -}; - /** * 查询设备数据表模型信息 */ diff --git a/apps/web-antd/src/api-client/types.gen.ts b/apps/web-antd/src/api-client/types.gen.ts index e93e5e0..47bdf7f 100644 --- a/apps/web-antd/src/api-client/types.gen.ts +++ b/apps/web-antd/src/api-client/types.gen.ts @@ -891,6 +891,17 @@ export type DeleteTextTemplateInput = { id?: string; }; +/** + * 设备命令 + */ +export type DeviceCommandForApiInput = { + id?: string; + /** + * 设备在物联网平台中发送的命令内容,JSON格式 + */ + commandContent: string; +}; + export type DeviceManagementInfoDto = { id?: string; creationTime?: string; @@ -1954,158 +1965,6 @@ export type MessageLevel = 10 | 20 | 30; */ export type MessageType = 10 | 20; -/** - * 抄读任务数据 Dto - */ -export type MeterReadingPacketInfoDto = { - /** - * 数据库名称,用于构建存储路径,来自系统配置 - */ - dataBaseName?: (string) | null; - /** - * 数据类型,用于构建存储路径 - * JiShe.ServicePro.Consts.IoTDBDataTypeConst - */ - ioTDataType?: (string) | null; - /** - * 设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 - * JiShe.ServicePro.Enums.DeviceTypeEnum - */ - deviceType?: (string) | null; - /** - * 设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等 - */ - deviceAddress?: (string) | null; - /** - * 时标,也就是业务时间戳,单位毫秒,必须通过DateTimeOffset获取 - */ - timestamps?: number; - /** - * 时标格式化以后的本地时间 - */ - readonly formattedTimestamps?: string; - /** - * 设备路径,树模型使用,表模型会在数据插入的时候直接获取继承类的名称作为表明 - */ - devicePath?: (string) | null; - /** - * 排序索引分数值,具体值可以根据不同业务场景进行定义,例如时间戳、或者某一个固定的标识 - */ - scoreValue?: (string) | null; - /** - * 数据包类型 - */ - packetType?: number; - /** - * 是否手动操作 - */ - manualOrNot?: boolean; - /** - * 任务数据唯一标记 - */ - taskMark?: (string) | null; - /** - * 是否超时 - */ - isTimeout?: boolean; - /** - * 待抄读时间 - */ - pendingCopyReadTime?: string; - /** - * 集中器Id - */ - focusId?: number; - /** - * 集中器地址 - */ - focusAddress?: (string) | null; - /** - * 表地址 - */ - meterAddress?: (string) | null; - /** - * 数据库业务ID - */ - databaseBusiID?: number; - /** - * AFN功能码 - */ - afn?: number; - /** - * 抄读功能码 - */ - fn?: number; - /** - * 抄读计量点 - */ - pn?: number; - /** - * 采集项编码 - */ - itemCode?: (string) | null; - /** - * 子项编码,一般用于透明转发的编码 - */ - subItemCode?: (string) | null; - /** - * 帧序列域 SEQ - */ - seq?: number; - /** - * 地址域A3的主站地址MSA - */ - msa?: number; - /** - * 是否发送 - */ - isSend?: boolean; - /** - * 发送次数 - */ - sendNum?: (number) | null; - /** - * 下次发送时间 - */ - nextSendTime?: (string) | null; - /** - * 创建时间 - */ - creationTime?: string; - /** - * 下发消息内容 - */ - issuedMessageHexString?: (string) | null; - /** - * 下发消息Id - */ - issuedMessageId?: (string) | null; - /** - * 集中器采集密度 - */ - focusDensity?: number; - /** - * 消息上报内容 - */ - receivedMessageHexString?: (string) | null; - /** - * 消息上报时间 - */ - receivedTime?: (string) | null; - /** - * 上报消息Id - */ - receivedMessageId?: (string) | null; - /** - * 上报报文解析备注,异常情况下才有 - */ - receivedRemark?: (string) | null; - /** - * 是否已上报 - */ - isReceived?: boolean; -}; - /** * 分页查询输入 */ @@ -2147,9 +2006,9 @@ export type MeterReadingPacketInfoPageInput = { */ endCreationTime?: (string) | null; /** - * 表地址 + * 物联网平台设备ID */ - meterAddress?: (string) | null; + ioTPlatformDeviceOpenInfo?: (string) | null; }; /** @@ -2189,11 +2048,23 @@ export type MeterReadingPacketInfoPageOutput = { /** * 物联网平台产品Id */ - productId?: (string) | null; + ioTPlatformProductId?: (string) | null; /** * 物联网平台设备ID */ - platformDeviceId?: (string) | null; + ioTPlatformDeviceOpenInfo?: (string) | null; + /** + * 物联网平台中对应的产品Name + */ + ioTPlatformProductName?: (string) | null; + /** + * 物联网平台中对应的账号Id + */ + ioTPlatformAccountId?: (string) | null; + /** + * 账户手机号 + */ + accountPhoneNumber?: (string) | null; /** * 消息类型 */ @@ -2201,7 +2072,7 @@ export type MeterReadingPacketInfoPageOutput = { /** * 下发消息体原始内容 */ - rawMessage?: (string) | null; + issueRawMessage?: (string) | null; /** * 下发消息体 */ @@ -2213,7 +2084,7 @@ export type MeterReadingPacketInfoPageOutput = { /** * 下发结果 */ - responseResult?: (string) | null; + responsePayload?: (string) | null; /** * 遥测指令来源 */ @@ -3921,7 +3792,7 @@ export type QueryCTWingAepReceiveMessageInput = { /** * 物联网平台设备ID */ - platformDeviceId?: (string) | null; + ioTPlatformDeviceOpenInfo?: (string) | null; }; /** @@ -3973,7 +3844,7 @@ export type QueryCTWingAepReceiveMessageOutput = { /** * 物联网平台设备ID */ - platformDeviceId?: (string) | null; + ioTPlatformDeviceOpenInfo?: (string) | null; /** * 消息类型 */ @@ -4060,7 +3931,7 @@ export type QueryOneNETReceiveMessageInput = { /** * 物联网平台设备ID */ - platformDeviceId?: (string) | null; + ioTPlatformDeviceOpenInfo?: (string) | null; }; /** @@ -4104,7 +3975,7 @@ export type QueryOneNETReceiveMessageOutput = { /** * 物联网平台设备ID */ - platformDeviceId?: (string) | null; + ioTPlatformDeviceOpenInfo?: (string) | null; /** * 消息类型 */ @@ -4207,7 +4078,7 @@ export type ResetTwoFactorInput = { /** * 响应结果枚举 */ -export type ResponeResultEnum = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 200 | 201 | 400 | 401 | 403 | 404 | 500 | 503 | 504 | -102 | -101; +export type ResponeResultEnum = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 200 | 201 | 400 | 401 | 403 | 404 | 500 | 503 | 504 | 10421 | -102 | -101; export type ReturnValueApiDescriptionModel = { type?: (string) | null; @@ -4965,6 +4836,16 @@ export type PostAggregationDeviceRepushDeviceInfoToIoTplatformResponse = (Device export type PostAggregationDeviceRepushDeviceInfoToIoTplatformError = unknown; +export type PostAggregationDeviceDeviceCommandForApiAsyncData = { + query?: { + input?: DeviceCommandForApiInput; + }; +}; + +export type PostAggregationDeviceDeviceCommandForApiAsyncResponse = (boolean); + +export type PostAggregationDeviceDeviceCommandForApiAsyncError = unknown; + export type PostDeviceInfoFindByDeviceAddressData = { query?: { deviceAddress?: string; @@ -5594,26 +5475,6 @@ export type PostTableModelPacketInfoPageResponse = (MeterReadingPacketInfoPageOu export type PostTableModelPacketInfoPageError = unknown; -export type PostTableModelPacketInfoInsertData = { - query?: { - input?: MeterReadingPacketInfoDto; - }; -}; - -export type PostTableModelPacketInfoInsertResponse = (unknown); - -export type PostTableModelPacketInfoInsertError = unknown; - -export type PostTableModelPacketInfoBatchInsertData = { - query?: { - input?: Array; - }; -}; - -export type PostTableModelPacketInfoBatchInsertResponse = (unknown); - -export type PostTableModelPacketInfoBatchInsertError = unknown; - export type PostTableModelDeviceDataInfoPageData = { body?: DeviceTableModelDataInfoPageInput; }; diff --git a/apps/web-antd/src/locales/langs/en-US/abp.json b/apps/web-antd/src/locales/langs/en-US/abp.json index a32dfae..f684739 100644 --- a/apps/web-antd/src/locales/langs/en-US/abp.json +++ b/apps/web-antd/src/locales/langs/en-US/abp.json @@ -311,5 +311,12 @@ "CreationTime": "CreationTime", "LastModificationTime": "LastModificationTime", "CannotDeleteAccountWithProducts": "Cannot delete account with products" + }, + "telemetryLog": { + "IssueRawMessage": "IssueRawMessage", + "IssuePayload": "IssuePayload", + "ResponseRawMessage": "ResponseRawMessage", + "ResponsePayload": "ResponsePayload", + "TelemetrySourceName": "TelemetrySourceName" } } diff --git a/apps/web-antd/src/locales/langs/zh-CN/abp.json b/apps/web-antd/src/locales/langs/zh-CN/abp.json index aef0ebd..b4669e5 100644 --- a/apps/web-antd/src/locales/langs/zh-CN/abp.json +++ b/apps/web-antd/src/locales/langs/zh-CN/abp.json @@ -84,7 +84,6 @@ "deviceInfo": "设备信息", "deviceId": "设备ID", "timestamps": "时标", - "manualOrNot": "是否手动操作", "isTimeout": "是否超时", "afn": "AFN功能码", "fn": "抄读功能码", @@ -92,12 +91,6 @@ "itemCode": "采集项编码", "isSend": "是否发送", "sendNum": "发送次数", - "nextSendTime": "下次发送时间", - "issuedMessageHexString": "下发消息内容", - "receivedMessageHexString": "消息上报内容", - "receivedTime": "消息上报时间", - "isReceived": "是否已上报", - "receivedRemark": "上报报文解析备注", "title": "日志" }, "message": { @@ -313,5 +306,12 @@ "CreationTime": "创建时间", "LastModificationTime": "更新时间", "CannotDeleteAccountWithProducts": "该账号下存在产品,无法删除" + }, + "telemetryLog": { + "IssueRawMessage": "下发消息体原始内容", + "IssuePayload": "下发消息体", + "ResponseRawMessage": "下发结果原始内容", + "ResponsePayload": "下发结果", + "TelemetrySourceName": "遥测指令来源" } } diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue index a57f55b..eb04509 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/index.vue @@ -21,6 +21,7 @@ import { postAggregationDeviceBatchCreateAsync, postAggregationDeviceCreateAsync, postAggregationDeviceDeleteAsync, + postAggregationDeviceDeviceCommandForApiAsync, postAggregationDeviceRepushDeviceInfoToIoTplatform, postDeviceInfoCacheDeviceDataToRedis, postDeviceInfoPage, @@ -366,7 +367,7 @@ const repushDeviceInfo = async (row: Record) => { } else { Message.error('重推设备信息失败'); } - } catch (error) { + } catch { Message.error('重推设备信息失败'); } finally { pageLoading.value = false; @@ -393,16 +394,24 @@ async function submitCommand() { try { commandModalApi.setState({ loading: true, confirmLoading: true }); - // TODO: 调用指令接口 - console.log('指令内容:', formValues.command); - console.log('设备信息:', commandRow.value); + // 调用指令接口 + const result = await postAggregationDeviceDeviceCommandForApiAsync({ + body: { + Id: commandRow.value.id, + CommandContent: formValues.CommandContent, + }, + }); - Message.success($t('common.operationSuccess')); - commandModalApi.close(); - commandRow.value = {}; + if (result.data) { + Message.success('指令下发成功'); + commandModalApi.close(); + commandRow.value = {}; + } else { + Message.error('指令下发失败'); + } } catch (error) { console.error('指令发送失败:', error); - Message.error($t('common.operationFailed')); + Message.error('指令下发失败'); } finally { commandModalApi.setState({ loading: false, confirmLoading: false }); } @@ -530,7 +539,9 @@ watch( addressLines.value = 0; return; } - const lines = addressList.split('\n').filter((line: string) => line.trim()); + const lines = addressList + .split('\n') + .filter((line: string) => line.trim()); addressLines.value = lines.length; console.log('备用方案更新行数:', addressLines.value); } catch { @@ -552,38 +563,47 @@ const startLineCheck = () => { try { // 尝试多种方式获取表单值 let addressList = ''; - + // 方式1:直接获取 const formValues = batchAddFormApi.getValues(); console.log('表单值:', formValues); addressList = formValues?.addressList || ''; - + // 方式2:如果方式1失败,尝试其他方法 if (!addressList) { try { const rawValues = batchAddFormApi.getValues(); console.log('原始表单值:', rawValues); addressList = rawValues?.addressList || ''; - } catch (e) { - console.log('方式2失败:', e); + } catch (error) { + console.log('方式2失败:', error); } } - + // 方式3:直接从DOM获取 if (!addressList) { - const textarea = document.querySelector('textarea[name="addressList"]') as HTMLTextAreaElement; + const textarea = document.querySelector( + 'textarea[name="addressList"]', + ) as HTMLTextAreaElement; if (textarea) { addressList = textarea.value; console.log('从DOM获取的地址列表:', addressList); } } - + console.log('获取到的地址列表:', addressList); - + if (addressList && typeof addressList === 'string') { - const lines = addressList.split('\n').filter((line: string) => line.trim()); + const lines = addressList + .split('\n') + .filter((line: string) => line.trim()); const newLineCount = lines.length; - console.log('计算出的行数:', newLineCount, '当前行数:', addressLines.value); + console.log( + '计算出的行数:', + newLineCount, + '当前行数:', + addressLines.value, + ); if (newLineCount !== addressLines.value) { console.log('定时器更新行数:', newLineCount); addressLines.value = newLineCount; @@ -768,19 +788,18 @@ const toolbarActions = computed(() => [
共 {{ addressLines }} 行设备地址 - + (超过100行限制) - - 当前行数: {{ addressLines }} (调试信息) - + 当前行数: {{ addressLines }} (调试信息)
-
diff --git a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts index 6c29c2f..809fd3b 100644 --- a/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts +++ b/apps/web-antd/src/views/devicemanagement/deviceinfo/schema.ts @@ -4,6 +4,8 @@ import { computed } from 'vue'; import { z } from '@vben/common-ui'; +import dayjs from 'dayjs'; + import { getCommonGetSelectList, postCtWingAccountListAsync, @@ -63,11 +65,17 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [ field: 'lastOnlineTime', title: $t('abp.deviceInfos.LastOnlineTime'), minWidth: '150', + formatter: ({ cellValue }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : ''; + }, }, { field: 'lastOfflineTime', title: $t('abp.deviceInfos.LastOfflineTime'), minWidth: '150', + formatter: ({ cellValue }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : ''; + }, }, { field: 'platformPassword', @@ -652,7 +660,7 @@ export const editDeviceFormSchemaEdit: any = computed(() => [ export const commandFormSchema: any = computed(() => [ { component: 'Textarea', - fieldName: 'command', + fieldName: 'CommandContent', label: $t('abp.IoTDBBase.Command'), componentProps: { rows: 8, @@ -673,9 +681,11 @@ export const batchAddDeviceFormSchema: any = computed(() => [ label: $t('abp.deviceInfos.deviceAddress'), componentProps: { rows: 4, - placeholder: $t('common.pleaseInput') + $t('abp.deviceInfos.deviceAddress') + ',每行一个设备地址', + placeholder: `${ + $t('common.pleaseInput') + $t('abp.deviceInfos.deviceAddress') + },每行一个设备地址`, showCount: false, - maxLength: 10000, + maxLength: 10_000, style: { resize: 'vertical', minHeight: '32px', diff --git a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue index 63e16ae..db3312d 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue +++ b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/index.vue @@ -287,6 +287,18 @@ onMounted(async () => { + + diff --git a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts index d7df1a5..9f00d1e 100644 --- a/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts +++ b/apps/web-antd/src/views/iotdbdatamanagement/telemetryLog/schema.ts @@ -1,3 +1,9 @@ +/* + * @Description: 文件内容描述 + * @Author: 陈益 + * @Date: 2025-06-25 17:07:53 + * @LastEditors: 陈益 + */ import type { VxeGridProps } from '#/adapter/vxe-table'; import { computed } from 'vue'; @@ -18,6 +24,32 @@ export const querySchema = computed(() => [ export const tableSchema: any = computed((): VxeGridProps['columns'] => [ { title: $t('common.seq'), type: 'seq', width: 50 }, + { + field: 'formattedTimestamps', + title: $t('abp.IoTDBBase.FormattedTimestamps'), + minWidth: '150', + }, + { + field: 'ioTPlatformName', + title: $t('common.BelongingIoTPlatform'), + minWidth: '120', + slots: { default: 'ioTPlatformName' }, + }, + { + field: 'accountPhoneNumber', + title: $t('common.BelongingAccountName'), + minWidth: '120', + }, + { + field: 'ioTPlatformProductName', + title: $t('common.BelongingProductName'), + minWidth: '120', + }, + { + field: 'ioTPlatformDeviceOpenInfo', + title: $t('abp.deviceInfos.ioTPlatformDeviceOpenInfo'), + minWidth: '150', + }, { field: 'ioTDataType', title: $t('abp.IoTDBBase.IoTDataType'), @@ -33,54 +65,34 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [ title: $t('abp.IoTDBBase.DeviceAddress'), minWidth: '120', }, - { - field: 'formattedTimestamps', - title: $t('abp.IoTDBBase.FormattedTimestamps'), - minWidth: '150', - }, - { - field: 'productId', - title: $t('abp.CTWingLog.ProductId'), - minWidth: '120', - }, - { - field: 'platformDeviceId', - title: $t('abp.CTWingLog.PlatformDeviceId'), - minWidth: '150', - }, { field: 'messageType', title: $t('abp.CTWingLog.MessageType'), minWidth: '120', }, { - field: 'rawMessage', - title: $t('abp.CTWingLog.RawMessage'), + field: 'issueRawMessage', + title: $t('abp.telemetryLog.IssueRawMessage'), minWidth: '200', }, { field: 'issuePayload', - title: $t('abp.log.issuedMessageHexString'), + title: $t('abp.telemetryLog.IssuePayload'), minWidth: '200', }, { field: 'responseRawMessage', - title: $t('abp.log.receivedMessageHexString'), + title: $t('abp.telemetryLog.ResponseRawMessage'), minWidth: '200', }, { - field: 'responseResult', - title: $t('abp.log.receivedRemark'), + field: 'responsePayload', + title: $t('abp.telemetryLog.ResponsePayload'), minWidth: '150', }, { field: 'telemetrySourceName', - title: $t('abp.log.manualOrNot'), - minWidth: '120', - }, - { - field: 'ioTPlatformName', - title: $t('abp.deviceInfos.ioTPlatformName'), + title: $t('abp.telemetryLog.TelemetrySourceName'), minWidth: '120', }, ]); diff --git a/apps/web-antd/src/views/onenetmanagement/privateProduct/schema.ts b/apps/web-antd/src/views/onenetmanagement/privateProduct/schema.ts index a6801de..67b3ad8 100644 --- a/apps/web-antd/src/views/onenetmanagement/privateProduct/schema.ts +++ b/apps/web-antd/src/views/onenetmanagement/privateProduct/schema.ts @@ -4,6 +4,8 @@ import { computed, h } from 'vue'; import { z } from '@vben/common-ui'; +import dayjs from 'dayjs'; + import { postOneNetAccountListAsync } from '#/api-client'; import { $t } from '#/locales'; @@ -57,84 +59,32 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [ field: 'productCreateTime', title: $t('abp.OneNETManagement.IoTPlatformProductCreateTime'), minWidth: '150', - formatter: ({ cellValue }: any) => { - if (!cellValue) return '-'; - const date = new Date(cellValue); - if (isNaN(date.getTime())) return '-'; - return date - .toLocaleString('zh-CN', { - year: 'numeric', - month: '2-digit', - day: '2-digit', - hour: '2-digit', - minute: '2-digit', - second: '2-digit', - hour12: false, - }) - .replaceAll('/', '-'); + formatter: ({ cellValue }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : ''; }, }, { field: 'productUpdateTime', title: $t('abp.OneNETManagement.IoTPlatformProductUpdateTime'), minWidth: '150', - formatter: ({ cellValue }: any) => { - if (!cellValue) return '-'; - const date = new Date(cellValue); - if (isNaN(date.getTime())) return '-'; - return date - .toLocaleString('zh-CN', { - year: 'numeric', - month: '2-digit', - day: '2-digit', - hour: '2-digit', - minute: '2-digit', - second: '2-digit', - hour12: false, - }) - .replaceAll('/', '-'); + formatter: ({ cellValue }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : ''; }, }, { field: 'creationTime', title: $t('abp.OneNETManagement.CreationTime'), minWidth: '150', - formatter: ({ cellValue }: any) => { - if (!cellValue) return '-'; - const date = new Date(cellValue); - if (isNaN(date.getTime())) return '-'; - return date - .toLocaleString('zh-CN', { - year: 'numeric', - month: '2-digit', - day: '2-digit', - hour: '2-digit', - minute: '2-digit', - second: '2-digit', - hour12: false, - }) - .replaceAll('/', '-'); + formatter: ({ cellValue }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : ''; }, }, { field: 'lastModificationTime', title: $t('abp.OneNETManagement.LastModificationTime'), minWidth: '150', - formatter: ({ cellValue }: any) => { - if (!cellValue) return '-'; - const date = new Date(cellValue); - if (isNaN(date.getTime())) return '-'; - return date - .toLocaleString('zh-CN', { - year: 'numeric', - month: '2-digit', - day: '2-digit', - hour: '2-digit', - minute: '2-digit', - second: '2-digit', - hour12: false, - }) - .replaceAll('/', '-'); + formatter: ({ cellValue }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : ''; }, }, {