From ca55e50c9c4bf5e74e07af167fd6765f8e213ce3 Mon Sep 17 00:00:00 2001 From: ChenYi <296215406@outlook.com> Date: Mon, 1 Dec 2025 16:31:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=A8=A1=E5=9E=8B=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/.env.development | 4 +- apps/web-antd/src/api-client/schemas.gen.ts | 648 ++++++++++-------- apps/web-antd/src/api-client/services.gen.ts | 192 +++--- apps/web-antd/src/api-client/types.gen.ts | 609 ++++++++-------- .../src/router/routes/modules/system.ts | 2 +- .../StandardThingModelCodeSelect.vue | 0 .../deviceThingModelManagement}/index.vue | 75 +- .../deviceThingModelManagement}/schema.ts | 0 .../StandardThingModelCodeSelect.vue | 188 +++++ .../ioTPlatformThingModelInfo/index.vue | 446 ++++++++++++ .../ioTPlatformThingModelInfo/schema.ts | 416 +++++++++++ 11 files changed, 1867 insertions(+), 713 deletions(-) rename apps/web-antd/src/views/{devicemanagement/thingmodelinfo => thingmodelinfo/deviceThingModelManagement}/StandardThingModelCodeSelect.vue (100%) rename apps/web-antd/src/views/{devicemanagement/thingmodelinfo => thingmodelinfo/deviceThingModelManagement}/index.vue (84%) rename apps/web-antd/src/views/{devicemanagement/thingmodelinfo => thingmodelinfo/deviceThingModelManagement}/schema.ts (100%) create mode 100644 apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/StandardThingModelCodeSelect.vue create mode 100644 apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue create mode 100644 apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts diff --git a/apps/web-antd/.env.development b/apps/web-antd/.env.development index c1e0c98..3ead9bd 100644 --- a/apps/web-antd/.env.development +++ b/apps/web-antd/.env.development @@ -36,9 +36,9 @@ VITE_REFRESH_ROLE = true # 后端接口地址 #VITE_APP_API_ADDRESS=http://47.110.53.196:28080 - VITE_APP_API_ADDRESS=http://10.10.90.3:10500 + VITE_APP_API_ADDRESS=http://10.10.90.12:10500 # websocket地址 -VITE_WEBSOCKET_URL=http://10.10.90.3:10500/signalr/notification +VITE_WEBSOCKET_URL=http://10.10.90.12:10500/signalr/notification diff --git a/apps/web-antd/src/api-client/schemas.gen.ts b/apps/web-antd/src/api-client/schemas.gen.ts index 95c9b30..3e89c77 100644 --- a/apps/web-antd/src/api-client/schemas.gen.ts +++ b/apps/web-antd/src/api-client/schemas.gen.ts @@ -1488,50 +1488,6 @@ export const CreateTextTemplateInputSchema = { description: '创建模板' } as const; -export const CreateThingModelInputSchema = { - type: 'object', - properties: { - ioTPlatform: { - '$ref': '#/components/schemas/IoTPlatformTypeEnum' - }, - ioTPlatformProductId: { - type: 'string', - description: '物联网平台中对应的产品Id', - nullable: true - }, - filedType: { - type: 'string', - description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', - nullable: true - }, - ioTPlatformRawFieldName: { - type: 'string', - description: '物联网平台中对应的产品物模型属性或者事件名称', - nullable: true - }, - standardFieldName: { - type: 'string', - description: '管理后台产品标准的物模型属性或者事件名称', - nullable: true - }, - standardFieldValueType: { - type: 'string', - description: '标准物模型字段值类型', - nullable: true - }, - standardFieldDisplayName: { - type: 'string', - description: '标准物模型字段显示名称', - nullable: true - }, - isValueNeedConvert: { - type: 'boolean', - description: '是否需要值类型转换' - } - }, - additionalProperties: false -} as const; - export const CurrentCultureDtoSchema = { type: 'object', properties: { @@ -2063,6 +2019,20 @@ export const DeviceManagementInfoDtoSchema = { description: '设备来源类型', nullable: true, readOnly: true + }, + deviceType: { + '$ref': '#/components/schemas/DeviceTypeEnum' + }, + deviceTypeName: { + type: 'string', + description: '设备类型,与业务系统无关', + nullable: true, + readOnly: true + }, + deviceThingModelDataId: { + type: 'string', + description: '设备物模型数据Id', + format: 'uuid' } }, additionalProperties: false @@ -2131,7 +2101,8 @@ export const DeviceTableModelDataInfoPageInputSchema = { }, ioTDataType: { type: 'string', - description: '数据类型', + description: `数据类型,用于构建存储路径 + JiShe.ServicePro.Consts.IoTDBDataTypeConst`, nullable: true }, deviceType: { @@ -2139,7 +2110,7 @@ export const DeviceTableModelDataInfoPageInputSchema = { }, deviceAddress: { type: 'string', - description: '设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等', + description: '通信设备地址、用于构建存储路径', nullable: true }, startCreationTime: { @@ -2178,12 +2149,18 @@ export const DeviceTableModelDataInfoPageOutputSchema = { }, deviceType: { type: 'string', - description: '设备类型集中器、电表、水表、流量计、传感器等', + description: `设备类型 +JiShe.ServicePro.Enums.DeviceTypeEnum`, nullable: true }, - deviceId: { + deviceAddress: { type: 'string', - description: '设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等', + description: '通信设备地址、用于构建存储路径', + nullable: true + }, + subDevice: { + type: 'string', + description: '子设备', nullable: true }, timestamps: { @@ -2233,139 +2210,6 @@ export const DeviceTelemetryCommandTypeEnumSchema = { '说明:': '阀控=1,抄读=2' } as const; -export const DeviceThingModelInfoDtoSchema = { - type: 'object', - properties: { - id: { - type: 'string', - format: 'uuid' - }, - creationTime: { - type: 'string', - format: 'date-time' - }, - creatorId: { - type: 'string', - format: 'uuid', - nullable: true - }, - lastModificationTime: { - type: 'string', - format: 'date-time', - nullable: true - }, - lastModifierId: { - type: 'string', - format: 'uuid', - nullable: true - }, - isDeleted: { - type: 'boolean' - }, - deleterId: { - type: 'string', - format: 'uuid', - nullable: true - }, - deletionTime: { - type: 'string', - format: 'date-time', - nullable: true - }, - tenantId: { - type: 'string', - description: '租户Id', - format: 'uuid', - nullable: true - }, - remark: { - type: 'string', - description: '备注', - nullable: true - }, - osaCreatorId: { - type: 'integer', - description: '旧系统授权创建者Id', - format: 'int32', - nullable: true - }, - osaLastModifierId: { - type: 'integer', - description: '旧系统授权最后修改者Id', - format: 'int32', - nullable: true - }, - osaDeleterId: { - type: 'integer', - description: '旧系统授权最后删除者Id', - format: 'int32', - nullable: true - }, - extraProperties: { - type: 'object', - additionalProperties: {}, - description: '扩展属性,用于存储自定义字段,JSON格式', - nullable: true - }, - ioTPlatform: { - '$ref': '#/components/schemas/IoTPlatformTypeEnum' - }, - ioTPlatformProductId: { - type: 'string', - description: '物联网平台中对应的产品Id', - nullable: true - }, - filedType: { - type: 'string', - description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', - nullable: true - }, - ioTPlatformRawFieldName: { - type: 'string', - description: '物联网平台中对应的产品物模型属性或者事件名称', - nullable: true - }, - standardFieldName: { - type: 'string', - description: '管理后台产品标准的物模型属性或者事件名称', - nullable: true - }, - standardFieldValueType: { - type: 'string', - description: '标准物模型字段值类型', - nullable: true - }, - standardFieldDisplayName: { - type: 'string', - description: '标准物模型字段显示名称', - nullable: true - }, - isValueNeedConvert: { - type: 'boolean', - description: '是否需要值类型转换' - } - }, - additionalProperties: false -} as const; - -export const DeviceThingModelInfoDtoPagedResultDtoSchema = { - type: 'object', - properties: { - items: { - type: 'array', - items: { - '$ref': '#/components/schemas/DeviceThingModelInfoDto' - }, - nullable: true - }, - totalCount: { - type: 'integer', - format: 'int64' - } - }, - additionalProperties: false -} as const; - export const DeviceTreeModelDataInfoInputSchema = { type: 'object', properties: { @@ -2395,7 +2239,8 @@ export const DeviceTreeModelDataInfoInputSchema = { }, ioTDataType: { type: 'string', - description: '数据类型', + description: `数据类型,用于构建存储路径 + JiShe.ServicePro.Consts.IoTDBDataTypeConst`, nullable: true }, deviceType: { @@ -2403,7 +2248,7 @@ export const DeviceTreeModelDataInfoInputSchema = { }, deviceAddress: { type: 'string', - description: '设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等', + description: '通信设备地址、用于构建存储路径', nullable: true }, startCreationTime: { @@ -2428,12 +2273,11 @@ export const DeviceTreeModelDataInfoInputSchema = { } as const; export const DeviceTypeEnumSchema = { - enum: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], + enum: [0, 1, 2, 3], type: 'integer', - description: `表计类型 -电表= 1,水表= 2,燃气表= 3,热能表= 4,水表流量计=5,燃气表流量计=6`, + description: '设备类型,与业务系统无关', format: 'int32', - '说明:': '电表=1,水表=2,燃气表=3,热能表=4,水表流量计=5,燃气表流量计=6,特殊电表=7,传感器=8,采集器=9,集中器=10,电机保护器=11' + '说明:': '未知=0,网关设备=1,直连设备=2,子设备=3' } as const; export const DisabledTwoFactorInputSchema = { @@ -4406,6 +4250,285 @@ export const IoTDBDynamicObjectPagedResultDtoSchema = { additionalProperties: false } as const; +export const IoTPlatformThingModelCreateInputSchema = { + type: 'object', + properties: { + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + filedType: { + type: 'string', + description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', + nullable: true + }, + ioTPlatformRawFieldName: { + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件名称', + nullable: true + }, + standardFieldName: { + type: 'string', + description: '管理后台产品标准的物模型属性或者事件名称', + nullable: true + }, + standardFieldValueType: { + type: 'string', + description: '标准物模型字段值类型', + nullable: true + }, + standardFieldDisplayName: { + type: 'string', + description: '标准物模型字段显示名称', + nullable: true + }, + isValueNeedConvert: { + type: 'boolean', + description: '是否需要值类型转换' + } + }, + additionalProperties: false +} as const; + +export const IoTPlatformThingModelInfoDtoSchema = { + type: 'object', + properties: { + id: { + type: 'string', + format: 'uuid' + }, + creationTime: { + type: 'string', + format: 'date-time' + }, + creatorId: { + type: 'string', + format: 'uuid', + nullable: true + }, + lastModificationTime: { + type: 'string', + format: 'date-time', + nullable: true + }, + lastModifierId: { + type: 'string', + format: 'uuid', + nullable: true + }, + isDeleted: { + type: 'boolean' + }, + deleterId: { + type: 'string', + format: 'uuid', + nullable: true + }, + deletionTime: { + type: 'string', + format: 'date-time', + nullable: true + }, + tenantId: { + type: 'string', + description: '租户Id', + format: 'uuid', + nullable: true + }, + remark: { + type: 'string', + description: '备注', + nullable: true + }, + osaCreatorId: { + type: 'integer', + description: '旧系统授权创建者Id', + format: 'int32', + nullable: true + }, + osaLastModifierId: { + type: 'integer', + description: '旧系统授权最后修改者Id', + format: 'int32', + nullable: true + }, + osaDeleterId: { + type: 'integer', + description: '旧系统授权最后删除者Id', + format: 'int32', + nullable: true + }, + extraProperties: { + type: 'object', + additionalProperties: {}, + description: '扩展属性,用于存储自定义字段,JSON格式', + nullable: true + }, + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + filedType: { + type: 'string', + description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', + nullable: true + }, + ioTPlatformRawFieldName: { + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件名称', + nullable: true + }, + standardFieldName: { + type: 'string', + description: '管理后台产品标准的物模型属性或者事件名称', + nullable: true + }, + standardFieldValueType: { + type: 'string', + description: '标准物模型字段值类型', + nullable: true + }, + standardFieldDisplayName: { + type: 'string', + description: '标准物模型字段显示名称', + nullable: true + }, + isValueNeedConvert: { + type: 'boolean', + description: '是否需要值类型转换' + }, + isSpecialIdentifier: { + type: 'boolean', + description: '是否是特殊物模型标识符' + } + }, + additionalProperties: false, + description: '平台端物模型信息' +} as const; + +export const IoTPlatformThingModelInfoDtoPagedResultDtoSchema = { + type: 'object', + properties: { + items: { + type: 'array', + items: { + '$ref': '#/components/schemas/IoTPlatformThingModelInfoDto' + }, + nullable: true + }, + totalCount: { + type: 'integer', + format: 'int64' + } + }, + additionalProperties: false +} as const; + +export const IoTPlatformThingModelPageInputSchema = { + type: 'object', + properties: { + pageIndex: { + type: 'integer', + description: '当前页面.默认从1开始', + format: 'int32' + }, + pageSize: { + type: 'integer', + description: '每页多少条.每页显示多少记录', + format: 'int32' + }, + skipCount: { + type: 'integer', + description: '跳过多少条', + format: 'int32', + readOnly: true + }, + sorting: { + type: 'string', + description: `排序 + + name desc +`, + nullable: true + }, + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + searchKeyWords: { + type: 'string', + description: '搜索关键字', + nullable: true + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + filedType: { + type: 'string', + description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', + nullable: true + } + }, + additionalProperties: false +} as const; + +export const IoTPlatformThingModelUpdateInputSchema = { + type: 'object', + properties: { + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + filedType: { + type: 'string', + description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', + nullable: true + }, + ioTPlatformRawFieldName: { + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件名称', + nullable: true + }, + standardFieldName: { + type: 'string', + description: '管理后台产品标准的物模型属性或者事件名称', + nullable: true + }, + standardFieldValueType: { + type: 'string', + description: '标准物模型字段值类型', + nullable: true + }, + standardFieldDisplayName: { + type: 'string', + description: '标准物模型字段显示名称', + nullable: true + }, + isValueNeedConvert: { + type: 'boolean', + description: '是否需要值类型转换' + }, + id: { + type: 'string', + format: 'uuid' + } + }, + additionalProperties: false +} as const; + export const IoTPlatformTypeEnumSchema = { enum: [1, 2], type: 'integer', @@ -4621,7 +4744,8 @@ export const MeterReadingPacketInfoPageInputSchema = { }, ioTDataType: { type: 'string', - description: '数据类型', + description: `数据类型,用于构建存储路径 + JiShe.ServicePro.Consts.IoTDBDataTypeConst`, nullable: true }, deviceType: { @@ -4629,7 +4753,7 @@ export const MeterReadingPacketInfoPageInputSchema = { }, deviceAddress: { type: 'string', - description: '设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等', + description: '通信设备地址、用于构建存储路径', nullable: true }, startCreationTime: { @@ -4674,13 +4798,18 @@ export const MeterReadingPacketInfoPageOutputSchema = { }, deviceType: { type: 'string', - description: `设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 + description: `设备类型,用于构建存储路径 JiShe.ServicePro.Enums.DeviceTypeEnum`, nullable: true }, deviceAddress: { type: 'string', - description: '设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等', + description: '通信设备地址、用于构建存储路径', + nullable: true + }, + subDevice: { + type: 'string', + description: '子设备', nullable: true }, timestamps: { @@ -5334,6 +5463,11 @@ export const OneNETProductInfoDtoSchema = { type: 'string', description: 'TLS通讯服务地址', nullable: true + }, + thingModelInfos: { + type: 'string', + description: '物模型信息', + nullable: true } }, additionalProperties: false @@ -6442,60 +6576,6 @@ export const PageTextTemplateOutputPagedResultDtoSchema = { additionalProperties: false } as const; -export const PageThingModelInputSchema = { - type: 'object', - properties: { - pageIndex: { - type: 'integer', - description: '当前页面.默认从1开始', - format: 'int32' - }, - pageSize: { - type: 'integer', - description: '每页多少条.每页显示多少记录', - format: 'int32' - }, - skipCount: { - type: 'integer', - description: '跳过多少条', - format: 'int32', - readOnly: true - }, - sorting: { - type: 'string', - description: `排序 - - name desc -`, - nullable: true - }, - ioTPlatform: { - '$ref': '#/components/schemas/IoTPlatformTypeEnum' - }, - searchKeyword: { - type: 'string', - description: '搜索关键字', - nullable: true - }, - ioTPlatformProductId: { - type: 'string', - description: '物联网平台中对应的产品Id', - nullable: true - }, - filedType: { - type: 'string', - description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', - nullable: true - }, - searchKeyWords: { - type: 'string', - description: '搜索关键词', - nullable: true - } - }, - additionalProperties: false -} as const; - export const PagingAuditLogActionOutputSchema = { type: 'object', properties: { @@ -7831,7 +7911,8 @@ export const QueryCTWingAepReceiveMessageInputSchema = { }, ioTDataType: { type: 'string', - description: '数据类型', + description: `数据类型,用于构建存储路径 + JiShe.ServicePro.Consts.IoTDBDataTypeConst`, nullable: true }, deviceType: { @@ -7839,7 +7920,7 @@ export const QueryCTWingAepReceiveMessageInputSchema = { }, deviceAddress: { type: 'string', - description: '设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等', + description: '通信设备地址、用于构建存储路径', nullable: true }, startCreationTime: { @@ -7884,13 +7965,18 @@ export const QueryCTWingAepReceiveMessageOutputSchema = { }, deviceType: { type: 'string', - description: `设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 + description: `设备类型,用于构建存储路径 JiShe.ServicePro.Enums.DeviceTypeEnum`, nullable: true }, deviceAddress: { type: 'string', - description: '设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等', + description: '通信设备地址、用于构建存储路径', + nullable: true + }, + subDevice: { + type: 'string', + description: '子设备', nullable: true }, timestamps: { @@ -8038,7 +8124,8 @@ export const QueryOneNETReceiveMessageInputSchema = { }, ioTDataType: { type: 'string', - description: '数据类型', + description: `数据类型,用于构建存储路径 + JiShe.ServicePro.Consts.IoTDBDataTypeConst`, nullable: true }, deviceType: { @@ -8046,7 +8133,7 @@ export const QueryOneNETReceiveMessageInputSchema = { }, deviceAddress: { type: 'string', - description: '设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等', + description: '通信设备地址、用于构建存储路径', nullable: true }, startCreationTime: { @@ -8091,13 +8178,18 @@ export const QueryOneNETReceiveMessageOutputSchema = { }, deviceType: { type: 'string', - description: `设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 + description: `设备类型,用于构建存储路径 JiShe.ServicePro.Enums.DeviceTypeEnum`, nullable: true }, deviceAddress: { type: 'string', - description: '设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等', + description: '通信设备地址、用于构建存储路径', + nullable: true + }, + subDevice: { + type: 'string', + description: '子设备', nullable: true }, timestamps: { @@ -9223,54 +9315,6 @@ export const UpdateTextTemplateInputSchema = { description: '更新模板' } as const; -export const UpdateThingModelInputSchema = { - type: 'object', - properties: { - ioTPlatform: { - '$ref': '#/components/schemas/IoTPlatformTypeEnum' - }, - ioTPlatformProductId: { - type: 'string', - description: '物联网平台中对应的产品Id', - nullable: true - }, - filedType: { - type: 'string', - description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', - nullable: true - }, - ioTPlatformRawFieldName: { - type: 'string', - description: '物联网平台中对应的产品物模型属性或者事件名称', - nullable: true - }, - standardFieldName: { - type: 'string', - description: '管理后台产品标准的物模型属性或者事件名称', - nullable: true - }, - standardFieldValueType: { - type: 'string', - description: '标准物模型字段值类型', - nullable: true - }, - standardFieldDisplayName: { - type: 'string', - description: '标准物模型字段显示名称', - nullable: true - }, - isValueNeedConvert: { - type: 'boolean', - description: '是否需要值类型转换' - }, - id: { - type: 'string', - format: 'uuid' - } - }, - additionalProperties: false -} as const; - export const UpdateUserInputSchema = { type: 'object', properties: { diff --git a/apps/web-antd/src/api-client/services.gen.ts b/apps/web-antd/src/api-client/services.gen.ts index 1cb60e9..8413cbb 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, PostThingModelInfoCreateAsyncData, PostThingModelInfoCreateAsyncError, PostThingModelInfoCreateAsyncResponse, PostThingModelInfoUpdateAsyncData, PostThingModelInfoUpdateAsyncError, PostThingModelInfoUpdateAsyncResponse, PostThingModelInfoDeleteAsyncData, PostThingModelInfoDeleteAsyncError, PostThingModelInfoDeleteAsyncResponse, PostThingModelInfoFindByIdAsyncData, PostThingModelInfoFindByIdAsyncError, PostThingModelInfoFindByIdAsyncResponse, PostThingModelInfoFindByPlatformProductIdAsyncData, PostThingModelInfoFindByPlatformProductIdAsyncError, PostThingModelInfoFindByPlatformProductIdAsyncResponse, PostThingModelInfoCopyAnotherThingModelAsyncData, PostThingModelInfoCopyAnotherThingModelAsyncError, PostThingModelInfoCopyAnotherThingModelAsyncResponse, PostThingModelInfoCopyStandardThingModelData, PostThingModelInfoCopyStandardThingModelError, PostThingModelInfoCopyStandardThingModelResponse, PostThingModelInfoPageAsyncData, PostThingModelInfoPageAsyncError, PostThingModelInfoPageAsyncResponse, PostThingModelInfoStandardThingModelPageAsyncError, PostThingModelInfoStandardThingModelPageAsyncResponse, 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, 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, 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, PostFeaturesListData, PostFeaturesListError, PostFeaturesListResponse, PostFeaturesUpdateData, PostFeaturesUpdateError, PostFeaturesUpdateResponse, PostFeaturesDeleteData, PostFeaturesDeleteError, PostFeaturesDeleteResponse, PostFilesPageData, PostFilesPageError, PostFilesPageResponse, PostFilesUploadData, PostFilesUploadError, PostFilesUploadResponse, PostFilesDeleteData, PostFilesDeleteError, PostFilesDeleteResponse, PostFilesDownloadData, PostFilesDownloadError, PostFilesDownloadResponse, PostIdentitySecurityLogsPageData, PostIdentitySecurityLogsPageError, PostIdentitySecurityLogsPageResponse, 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, 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()); @@ -466,96 +466,6 @@ export const postDeviceInfoCacheDeviceDataToRedis = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/CreateAsync' - }); -}; - -/** - * 更新物模型信息 - */ -export const postThingModelInfoUpdateAsync = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/UpdateAsync' - }); -}; - -/** - * 删除物模型信息 - */ -export const postThingModelInfoDeleteAsync = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/DeleteAsync' - }); -}; - -/** - * 根据物模型ID查询物模型信息 - */ -export const postThingModelInfoFindByIdAsync = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/FindByIdAsync' - }); -}; - -/** - * 根据平台产品ID查询物模型信息 - */ -export const postThingModelInfoFindByPlatformProductIdAsync = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/FindByPlatformProductIdAsync' - }); -}; - -/** - * 复制已存在产品设备物模型信息 - */ -export const postThingModelInfoCopyAnotherThingModelAsync = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/CopyAnotherThingModelAsync' - }); -}; - -/** - * 复制创建标准物模型信息 - */ -export const postThingModelInfoCopyStandardThingModel = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/CopyStandardThingModel' - }); -}; - -/** - * 分页查询物模型信息 - */ -export const postThingModelInfoPageAsync = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/PageAsync' - }); -}; - -/** - * 获取所有的标准物模型信息 - */ -export const postThingModelInfoStandardThingModelPageAsync = (options?: Options) => { - return (options?.client ?? client).post({ - ...options, - url: '/ThingModelInfo/StandardThingModelPageAsync' - }); -}; - export const postFeaturesList = (options?: Options) => { return (options?.client ?? client).post({ ...options, @@ -617,6 +527,96 @@ export const postIdentitySecurityLogsPage = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/CreateAsync' + }); +}; + +/** + * 更新物模型信息 + */ +export const postIoTplatformThingModelInfoUpdateAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/UpdateAsync' + }); +}; + +/** + * 删除物模型信息 + */ +export const postIoTplatformThingModelInfoDeleteAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/DeleteAsync' + }); +}; + +/** + * 根据物模型ID查询物模型信息 + */ +export const postIoTplatformThingModelInfoFindByIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/FindByIdAsync' + }); +}; + +/** + * 根据平台产品ID查询物模型信息 + */ +export const postIoTplatformThingModelInfoFindByPlatformProductIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/FindByPlatformProductIdAsync' + }); +}; + +/** + * 复制已存在产品设备物模型信息 + */ +export const postIoTplatformThingModelInfoCopyAnotherThingModelAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/CopyAnotherThingModelAsync' + }); +}; + +/** + * 复制创建标准物模型信息 + */ +export const postIoTplatformThingModelInfoCopyStandardThingModel = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/CopyStandardThingModel' + }); +}; + +/** + * 分页查询物模型信息 + */ +export const postIoTplatformThingModelInfoPageAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/PageAsync' + }); +}; + +/** + * 获取所有的标准物模型信息 + */ +export const postIoTplatformThingModelInfoStandardThingModelPageAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/IoTPlatformThingModelInfo/StandardThingModelPageAsync' + }); +}; + export const postLanguagesAll = (options?: Options) => { return (options?.client ?? client).post({ ...options, @@ -955,6 +955,16 @@ export const getOneNetServiceReceiveCiphertextDataChange = (options?: Options) => { + return (options?.client ?? client).get({ + ...options, + url: '/OneNETService/CheckLocalMemroy' + }); +}; + export const postOrganizationUnitsTree = (options?: Options) => { return (options?.client ?? client).post({ ...options, diff --git a/apps/web-antd/src/api-client/types.gen.ts b/apps/web-antd/src/api-client/types.gen.ts index ad33023..ad1477f 100644 --- a/apps/web-antd/src/api-client/types.gen.ts +++ b/apps/web-antd/src/api-client/types.gen.ts @@ -400,38 +400,6 @@ export type CreateTextTemplateInput = { cultureName: string; }; -export type CreateThingModelInput = { - ioTPlatform?: IoTPlatformTypeEnum; - /** - * 物联网平台中对应的产品Id - */ - ioTPlatformProductId?: (string) | null; - /** - * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst - */ - filedType?: (string) | null; - /** - * 物联网平台中对应的产品物模型属性或者事件名称 - */ - ioTPlatformRawFieldName?: (string) | null; - /** - * 管理后台产品标准的物模型属性或者事件名称 - */ - standardFieldName?: (string) | null; - /** - * 标准物模型字段值类型 - */ - standardFieldValueType?: (string) | null; - /** - * 标准物模型字段显示名称 - */ - standardFieldDisplayName?: (string) | null; - /** - * 是否需要值类型转换 - */ - isValueNeedConvert?: boolean; -}; - /** * CTWing账号信息 */ @@ -1122,6 +1090,15 @@ export type DeviceManagementInfoDto = { * 设备来源类型 */ readonly deviceSourceTypeName?: (string) | null; + deviceType?: DeviceTypeEnum; + /** + * 设备类型,与业务系统无关 + */ + readonly deviceTypeName?: (string) | null; + /** + * 设备物模型数据Id + */ + deviceThingModelDataId?: string; }; export type DeviceManagementInfoDtoPagedResultDto = { @@ -1163,12 +1140,13 @@ export type DeviceTableModelDataInfoPageInput = { */ sorting?: (string) | null; /** - * 数据类型 + * 数据类型,用于构建存储路径 + * JiShe.ServicePro.Consts.IoTDBDataTypeConst */ ioTDataType?: (string) | null; deviceType?: DeviceTypeEnum; /** - * 设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; /** @@ -1198,13 +1176,18 @@ export type DeviceTableModelDataInfoPageOutput = { */ ioTDataType?: (string) | null; /** - * 设备类型集中器、电表、水表、流量计、传感器等 + * 设备类型 + * JiShe.ServicePro.Enums.DeviceTypeEnum */ deviceType?: (string) | null; /** - * 设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等 + * 通信设备地址、用于构建存储路径 */ - deviceId?: (string) | null; + deviceAddress?: (string) | null; + /** + * 子设备 + */ + subDevice?: (string) | null; /** * 时标 */ @@ -1229,77 +1212,6 @@ export type DeviceTableModelDataInfoPageOutputPagedResultDto = { */ export type DeviceTelemetryCommandTypeEnum = 1 | 2; -export type DeviceThingModelInfoDto = { - id?: string; - creationTime?: string; - creatorId?: (string) | null; - lastModificationTime?: (string) | null; - lastModifierId?: (string) | null; - isDeleted?: boolean; - deleterId?: (string) | null; - deletionTime?: (string) | null; - /** - * 租户Id - */ - tenantId?: (string) | null; - /** - * 备注 - */ - remark?: (string) | null; - /** - * 旧系统授权创建者Id - */ - osaCreatorId?: (number) | null; - /** - * 旧系统授权最后修改者Id - */ - osaLastModifierId?: (number) | null; - /** - * 旧系统授权最后删除者Id - */ - osaDeleterId?: (number) | null; - /** - * 扩展属性,用于存储自定义字段,JSON格式 - */ - extraProperties?: { - [key: string]: unknown; - } | null; - ioTPlatform?: IoTPlatformTypeEnum; - /** - * 物联网平台中对应的产品Id - */ - ioTPlatformProductId?: (string) | null; - /** - * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst - */ - filedType?: (string) | null; - /** - * 物联网平台中对应的产品物模型属性或者事件名称 - */ - ioTPlatformRawFieldName?: (string) | null; - /** - * 管理后台产品标准的物模型属性或者事件名称 - */ - standardFieldName?: (string) | null; - /** - * 标准物模型字段值类型 - */ - standardFieldValueType?: (string) | null; - /** - * 标准物模型字段显示名称 - */ - standardFieldDisplayName?: (string) | null; - /** - * 是否需要值类型转换 - */ - isValueNeedConvert?: boolean; -}; - -export type DeviceThingModelInfoDtoPagedResultDto = { - items?: Array | null; - totalCount?: number; -}; - /** * 设备树模型数据信息查询入参 */ @@ -1324,12 +1236,13 @@ export type DeviceTreeModelDataInfoInput = { */ sorting?: (string) | null; /** - * 数据类型 + * 数据类型,用于构建存储路径 + * JiShe.ServicePro.Consts.IoTDBDataTypeConst */ ioTDataType?: (string) | null; deviceType?: DeviceTypeEnum; /** - * 设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; /** @@ -1347,10 +1260,9 @@ export type DeviceTreeModelDataInfoInput = { }; /** - * 表计类型 - * 电表= 1,水表= 2,燃气表= 3,热能表= 4,水表流量计=5,燃气表流量计=6 + * 设备类型,与业务系统无关 */ -export type DeviceTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11; +export type DeviceTypeEnum = 0 | 1 | 2 | 3; export type DisabledTwoFactorInput = { /** @@ -2062,6 +1974,184 @@ export type IoTDBDynamicObjectPagedResultDto = { totalCount?: number; }; +export type IoTPlatformThingModelCreateInput = { + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 物联网平台中对应的产品物模型属性或者事件名称 + */ + ioTPlatformRawFieldName?: (string) | null; + /** + * 管理后台产品标准的物模型属性或者事件名称 + */ + standardFieldName?: (string) | null; + /** + * 标准物模型字段值类型 + */ + standardFieldValueType?: (string) | null; + /** + * 标准物模型字段显示名称 + */ + standardFieldDisplayName?: (string) | null; + /** + * 是否需要值类型转换 + */ + isValueNeedConvert?: boolean; +}; + +/** + * 平台端物模型信息 + */ +export type IoTPlatformThingModelInfoDto = { + id?: string; + creationTime?: string; + creatorId?: (string) | null; + lastModificationTime?: (string) | null; + lastModifierId?: (string) | null; + isDeleted?: boolean; + deleterId?: (string) | null; + deletionTime?: (string) | null; + /** + * 租户Id + */ + tenantId?: (string) | null; + /** + * 备注 + */ + remark?: (string) | null; + /** + * 旧系统授权创建者Id + */ + osaCreatorId?: (number) | null; + /** + * 旧系统授权最后修改者Id + */ + osaLastModifierId?: (number) | null; + /** + * 旧系统授权最后删除者Id + */ + osaDeleterId?: (number) | null; + /** + * 扩展属性,用于存储自定义字段,JSON格式 + */ + extraProperties?: { + [key: string]: unknown; + } | null; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 物联网平台中对应的产品物模型属性或者事件名称 + */ + ioTPlatformRawFieldName?: (string) | null; + /** + * 管理后台产品标准的物模型属性或者事件名称 + */ + standardFieldName?: (string) | null; + /** + * 标准物模型字段值类型 + */ + standardFieldValueType?: (string) | null; + /** + * 标准物模型字段显示名称 + */ + standardFieldDisplayName?: (string) | null; + /** + * 是否需要值类型转换 + */ + isValueNeedConvert?: boolean; + /** + * 是否是特殊物模型标识符 + */ + isSpecialIdentifier?: boolean; +}; + +export type IoTPlatformThingModelInfoDtoPagedResultDto = { + items?: Array | null; + totalCount?: number; +}; + +export type IoTPlatformThingModelPageInput = { + /** + * 当前页面.默认从1开始 + */ + pageIndex?: number; + /** + * 每页多少条.每页显示多少记录 + */ + pageSize?: number; + /** + * 跳过多少条 + */ + readonly skipCount?: number; + /** + * 排序 + * + * name desc + * + */ + sorting?: (string) | null; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 搜索关键字 + */ + searchKeyWords?: (string) | null; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; +}; + +export type IoTPlatformThingModelUpdateInput = { + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 物联网平台中对应的产品物模型属性或者事件名称 + */ + ioTPlatformRawFieldName?: (string) | null; + /** + * 管理后台产品标准的物模型属性或者事件名称 + */ + standardFieldName?: (string) | null; + /** + * 标准物模型字段值类型 + */ + standardFieldValueType?: (string) | null; + /** + * 标准物模型字段显示名称 + */ + standardFieldDisplayName?: (string) | null; + /** + * 是否需要值类型转换 + */ + isValueNeedConvert?: boolean; + id?: string; +}; + /** * 物联网平台类型枚举 */ @@ -2195,12 +2285,13 @@ export type MeterReadingPacketInfoPageInput = { */ sorting?: (string) | null; /** - * 数据类型 + * 数据类型,用于构建存储路径 + * JiShe.ServicePro.Consts.IoTDBDataTypeConst */ ioTDataType?: (string) | null; deviceType?: DeviceTypeEnum; /** - * 设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; /** @@ -2235,14 +2326,18 @@ export type MeterReadingPacketInfoPageOutput = { */ ioTDataType?: (string) | null; /** - * 设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 + * 设备类型,用于构建存储路径 * JiShe.ServicePro.Enums.DeviceTypeEnum */ deviceType?: (string) | null; /** - * 设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; + /** + * 子设备 + */ + subDevice?: (string) | null; /** * 时标,也就是业务时间戳,单位毫秒,必须通过DateTimeOffset获取 */ @@ -2676,6 +2771,10 @@ export type OneNETProductInfoDto = { * TLS通讯服务地址 */ communicationAddressTLS?: (string) | null; + /** + * 物模型信息 + */ + thingModelInfos?: (string) | null; }; export type OneNETProductInfoDtoPagedResultDto = { @@ -3308,45 +3407,6 @@ export type PageTextTemplateOutputPagedResultDto = { totalCount?: number; }; -export type PageThingModelInput = { - /** - * 当前页面.默认从1开始 - */ - pageIndex?: number; - /** - * 每页多少条.每页显示多少记录 - */ - pageSize?: number; - /** - * 跳过多少条 - */ - readonly skipCount?: number; - /** - * 排序 - * - * name desc - * - */ - sorting?: (string) | null; - ioTPlatform?: IoTPlatformTypeEnum; - /** - * 搜索关键字 - */ - searchKeyword?: (string) | null; - /** - * 物联网平台中对应的产品Id - */ - ioTPlatformProductId?: (string) | null; - /** - * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst - */ - filedType?: (string) | null; - /** - * 搜索关键词 - */ - searchKeyWords?: (string) | null; -}; - export type PagingAuditLogActionOutput = { id?: string; tenantId?: (string) | null; @@ -4019,12 +4079,13 @@ export type QueryCTWingAepReceiveMessageInput = { */ sorting?: (string) | null; /** - * 数据类型 + * 数据类型,用于构建存储路径 + * JiShe.ServicePro.Consts.IoTDBDataTypeConst */ ioTDataType?: (string) | null; deviceType?: DeviceTypeEnum; /** - * 设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; /** @@ -4059,14 +4120,18 @@ export type QueryCTWingAepReceiveMessageOutput = { */ ioTDataType?: (string) | null; /** - * 设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 + * 设备类型,用于构建存储路径 * JiShe.ServicePro.Enums.DeviceTypeEnum */ deviceType?: (string) | null; /** - * 设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; + /** + * 子设备 + */ + subDevice?: (string) | null; /** * 时标,也就是业务时间戳,单位毫秒,必须通过DateTimeOffset获取 */ @@ -4170,12 +4235,13 @@ export type QueryOneNETReceiveMessageInput = { */ sorting?: (string) | null; /** - * 数据类型 + * 数据类型,用于构建存储路径 + * JiShe.ServicePro.Consts.IoTDBDataTypeConst */ ioTDataType?: (string) | null; deviceType?: DeviceTypeEnum; /** - * 设备ID,数据生成者,例如集中器ID,电表ID、水表ID、流量计ID、传感器ID等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; /** @@ -4210,14 +4276,18 @@ export type QueryOneNETReceiveMessageOutput = { */ ioTDataType?: (string) | null; /** - * 设备类型集中器、电表、水表、流量计、传感器等,用于构建存储路径 + * 设备类型,用于构建存储路径 * JiShe.ServicePro.Enums.DeviceTypeEnum */ deviceType?: (string) | null; /** - * 设备地址,数据生成者,例如集中器地址,电表地址、水表地址、流量计地址、传感器地址等 + * 通信设备地址、用于构建存储路径 */ deviceAddress?: (string) | null; + /** + * 子设备 + */ + subDevice?: (string) | null; /** * 时标,也就是业务时间戳,单位毫秒,必须通过DateTimeOffset获取 */ @@ -4762,39 +4832,6 @@ export type UpdateTextTemplateInput = { cultureName: string; }; -export type UpdateThingModelInput = { - ioTPlatform?: IoTPlatformTypeEnum; - /** - * 物联网平台中对应的产品Id - */ - ioTPlatformProductId?: (string) | null; - /** - * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst - */ - filedType?: (string) | null; - /** - * 物联网平台中对应的产品物模型属性或者事件名称 - */ - ioTPlatformRawFieldName?: (string) | null; - /** - * 管理后台产品标准的物模型属性或者事件名称 - */ - standardFieldName?: (string) | null; - /** - * 标准物模型字段值类型 - */ - standardFieldValueType?: (string) | null; - /** - * 标准物模型字段显示名称 - */ - standardFieldDisplayName?: (string) | null; - /** - * 是否需要值类型转换 - */ - isValueNeedConvert?: boolean; - id?: string; -}; - export type UpdateUserInput = { userId?: string; userInfo?: IdentityUserUpdateDto; @@ -5217,90 +5254,6 @@ export type PostDeviceInfoCacheDeviceDataToRedisResponse = (boolean); export type PostDeviceInfoCacheDeviceDataToRedisError = unknown; -export type PostThingModelInfoCreateAsyncData = { - query?: { - input?: CreateThingModelInput; - }; -}; - -export type PostThingModelInfoCreateAsyncResponse = (DeviceThingModelInfoDto); - -export type PostThingModelInfoCreateAsyncError = unknown; - -export type PostThingModelInfoUpdateAsyncData = { - query?: { - input?: UpdateThingModelInput; - }; -}; - -export type PostThingModelInfoUpdateAsyncResponse = (DeviceThingModelInfoDto); - -export type PostThingModelInfoUpdateAsyncError = unknown; - -export type PostThingModelInfoDeleteAsyncData = { - query?: { - input?: IdInput; - }; -}; - -export type PostThingModelInfoDeleteAsyncResponse = (boolean); - -export type PostThingModelInfoDeleteAsyncError = unknown; - -export type PostThingModelInfoFindByIdAsyncData = { - query?: { - input?: IdInput; - }; -}; - -export type PostThingModelInfoFindByIdAsyncResponse = (DeviceThingModelInfoDto); - -export type PostThingModelInfoFindByIdAsyncError = unknown; - -export type PostThingModelInfoFindByPlatformProductIdAsyncData = { - query?: { - input?: StringIdInput; - }; -}; - -export type PostThingModelInfoFindByPlatformProductIdAsyncResponse = (Array); - -export type PostThingModelInfoFindByPlatformProductIdAsyncError = unknown; - -export type PostThingModelInfoCopyAnotherThingModelAsyncData = { - query?: { - input?: CopyAnotherProductInput; - }; -}; - -export type PostThingModelInfoCopyAnotherThingModelAsyncResponse = (boolean); - -export type PostThingModelInfoCopyAnotherThingModelAsyncError = unknown; - -export type PostThingModelInfoCopyStandardThingModelData = { - query?: { - input?: CopyStandardThingModelInput; - }; -}; - -export type PostThingModelInfoCopyStandardThingModelResponse = (boolean); - -export type PostThingModelInfoCopyStandardThingModelError = unknown; - -export type PostThingModelInfoPageAsyncData = { - query?: { - input?: PageThingModelInput; - }; -}; - -export type PostThingModelInfoPageAsyncResponse = (DeviceThingModelInfoDtoPagedResultDto); - -export type PostThingModelInfoPageAsyncError = unknown; - -export type PostThingModelInfoStandardThingModelPageAsyncResponse = (Array); - -export type PostThingModelInfoStandardThingModelPageAsyncError = unknown; - export type PostFeaturesListData = { body?: GetFeatureListResultInput; }; @@ -5367,6 +5320,90 @@ export type PostIdentitySecurityLogsPageResponse = (PagingIdentitySecurityLogOut export type PostIdentitySecurityLogsPageError = (RemoteServiceErrorResponse); +export type PostIoTplatformThingModelInfoCreateAsyncData = { + query?: { + input?: IoTPlatformThingModelCreateInput; + }; +}; + +export type PostIoTplatformThingModelInfoCreateAsyncResponse = (IoTPlatformThingModelInfoDto); + +export type PostIoTplatformThingModelInfoCreateAsyncError = unknown; + +export type PostIoTplatformThingModelInfoUpdateAsyncData = { + query?: { + input?: IoTPlatformThingModelUpdateInput; + }; +}; + +export type PostIoTplatformThingModelInfoUpdateAsyncResponse = (IoTPlatformThingModelInfoDto); + +export type PostIoTplatformThingModelInfoUpdateAsyncError = unknown; + +export type PostIoTplatformThingModelInfoDeleteAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostIoTplatformThingModelInfoDeleteAsyncResponse = (boolean); + +export type PostIoTplatformThingModelInfoDeleteAsyncError = unknown; + +export type PostIoTplatformThingModelInfoFindByIdAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostIoTplatformThingModelInfoFindByIdAsyncResponse = (IoTPlatformThingModelInfoDto); + +export type PostIoTplatformThingModelInfoFindByIdAsyncError = unknown; + +export type PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncData = { + query?: { + input?: StringIdInput; + }; +}; + +export type PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncResponse = (Array); + +export type PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncError = unknown; + +export type PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncData = { + query?: { + input?: CopyAnotherProductInput; + }; +}; + +export type PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncResponse = (boolean); + +export type PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncError = unknown; + +export type PostIoTplatformThingModelInfoCopyStandardThingModelData = { + query?: { + input?: CopyStandardThingModelInput; + }; +}; + +export type PostIoTplatformThingModelInfoCopyStandardThingModelResponse = (boolean); + +export type PostIoTplatformThingModelInfoCopyStandardThingModelError = unknown; + +export type PostIoTplatformThingModelInfoPageAsyncData = { + query?: { + input?: IoTPlatformThingModelPageInput; + }; +}; + +export type PostIoTplatformThingModelInfoPageAsyncResponse = (IoTPlatformThingModelInfoDtoPagedResultDto); + +export type PostIoTplatformThingModelInfoPageAsyncError = unknown; + +export type PostIoTplatformThingModelInfoStandardThingModelPageAsyncResponse = (Array); + +export type PostIoTplatformThingModelInfoStandardThingModelPageAsyncError = unknown; + export type PostLanguagesAllResponse = (Array); export type PostLanguagesAllError = (RemoteServiceErrorResponse); @@ -5715,6 +5752,16 @@ export type GetOneNetServiceReceiveCiphertextDataChangeResponse = (unknown); export type GetOneNetServiceReceiveCiphertextDataChangeError = unknown; +export type GetOneNetServiceCheckLocalMemroyData = { + query?: { + key?: string; + }; +}; + +export type GetOneNetServiceCheckLocalMemroyResponse = (unknown); + +export type GetOneNetServiceCheckLocalMemroyError = unknown; + export type PostOrganizationUnitsTreeResponse = (Array); export type PostOrganizationUnitsTreeError = (RemoteServiceErrorResponse); diff --git a/apps/web-antd/src/router/routes/modules/system.ts b/apps/web-antd/src/router/routes/modules/system.ts index d9229d4..3fc0110 100644 --- a/apps/web-antd/src/router/routes/modules/system.ts +++ b/apps/web-antd/src/router/routes/modules/system.ts @@ -124,7 +124,7 @@ const routes: RouteRecordRaw[] = [ meta: { title: $t('abp.menu.notification'), authority: ['AbpIdentity.NotificationSubscriptionManagement'], - icon: 'ant-design:comment-outlined', + icon: 'ant-design:medium-square-filled', }, }, { diff --git a/apps/web-antd/src/views/devicemanagement/thingmodelinfo/StandardThingModelCodeSelect.vue b/apps/web-antd/src/views/thingmodelinfo/deviceThingModelManagement/StandardThingModelCodeSelect.vue similarity index 100% rename from apps/web-antd/src/views/devicemanagement/thingmodelinfo/StandardThingModelCodeSelect.vue rename to apps/web-antd/src/views/thingmodelinfo/deviceThingModelManagement/StandardThingModelCodeSelect.vue diff --git a/apps/web-antd/src/views/devicemanagement/thingmodelinfo/index.vue b/apps/web-antd/src/views/thingmodelinfo/deviceThingModelManagement/index.vue similarity index 84% rename from apps/web-antd/src/views/devicemanagement/thingmodelinfo/index.vue rename to apps/web-antd/src/views/thingmodelinfo/deviceThingModelManagement/index.vue index fe20eb2..f9c975a 100644 --- a/apps/web-antd/src/views/devicemanagement/thingmodelinfo/index.vue +++ b/apps/web-antd/src/views/thingmodelinfo/deviceThingModelManagement/index.vue @@ -11,12 +11,12 @@ import { message as Message, Modal, Tag } from 'ant-design-vue'; import { useVbenForm } from '#/adapter/form'; import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { - postThingModelInfoCopyAnotherThingModelAsync, - postThingModelInfoCopyStandardThingModel, - postThingModelInfoCreateAsync, - postThingModelInfoDeleteAsync, - postThingModelInfoPageAsync, - postThingModelInfoUpdateAsync, + postIoTplatformThingModelInfoCopyAnotherThingModelAsync, + postIoTplatformThingModelInfoCopyStandardThingModel, + postIoTplatformThingModelInfoCreateAsync, + postIoTplatformThingModelInfoDeleteAsync, + postIoTplatformThingModelInfoPageAsync, + postIoTplatformThingModelInfoUpdateAsync, } from '#/api-client'; import { TableAction } from '#/components/table-action'; import { $t } from '#/locales'; @@ -76,13 +76,15 @@ const gridOptions: VxeGridProps = { proxyConfig: { ajax: { query: async ({ page }, formValues) => { - const { data } = await postThingModelInfoPageAsync({ + const { data } = await postIoTplatformThingModelInfoPageAsync({ query: { - pageIndex: page.currentPage, - pageSize: page.pageSize, - ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, - ioTPlatformProductId: props.productId, - ...formValues, + input: { + pageIndex: page.currentPage, + pageSize: page.pageSize, + ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, + ioTPlatformProductId: props.productId, + ...(formValues?.SearchKeyWords && { searchKeyWords: formValues.SearchKeyWords }), + }, }, }); // 更新数据状态,检查是否有数据 @@ -191,25 +193,20 @@ watch( // 延迟执行,确保组件完全初始化 setTimeout(async () => { try { - // 设置表单筛选条件 + // 设置表单筛选条件(如果有搜索关键词等筛选字段) const filterValues: any = {}; - if (ioTPlatform) { - filterValues.ioTPlatform = ioTPlatform; - } - - if (productId) { - filterValues.oneNETProductId = productId; - } + // 注意:ioTPlatformProductId 已经在 API 调用中通过 props.productId 传递 + // 这里只需要设置查询表单中存在的字段(如 SearchKeyWords) console.log('设置筛选条件:', filterValues); // 设置筛选表单的值 if (Object.keys(filterValues).length > 0) { await gridApi.formApi.setValues(filterValues); - // 重新加载数据 - await gridApi.reload(); } + // 重新加载数据(即使没有筛选条件也要重新加载,因为 productId 可能已变化) + await gridApi.reload(); } catch (error) { console.error('设置筛选条件时出错:', error); } @@ -224,8 +221,8 @@ async function submit() { const isEdit = !!editRow.value.id; const formApi = isEdit ? editFormApi : addFormApi; const api = isEdit - ? postThingModelInfoUpdateAsync - : postThingModelInfoCreateAsync; + ? postIoTplatformThingModelInfoUpdateAsync + : postIoTplatformThingModelInfoCreateAsync; const { valid } = await formApi.validate(); if (!valid) return; @@ -240,7 +237,7 @@ async function submit() { }; try { - const resp = await api({ body: fetchParams }); + const resp = await api({ query: { input: fetchParams } }); if (resp.data) { Message.success( editRow.value.id ? $t('common.editSuccess') : $t('common.addSuccess'), @@ -298,11 +295,13 @@ async function submitCopy() { }); try { - const resp = await postThingModelInfoCopyAnotherThingModelAsync({ - body: { - ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, - ioTPlatformProductId: props.productId, - sourceProductId: formValues.ioTPlatformProductId, + const resp = await postIoTplatformThingModelInfoCopyAnotherThingModelAsync({ + query: { + input: { + ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, + ioTPlatformProductId: props.productId, + sourceProductId: formValues.ioTPlatformProductId, + }, }, }); @@ -322,8 +321,10 @@ async function submitCopy() { // 删除函数 async function onDel(record: any) { try { - const resp = await postThingModelInfoDeleteAsync({ - body: { id: record.id }, + const resp = await postIoTplatformThingModelInfoDeleteAsync({ + query: { + input: { id: record.id }, + }, }); if (resp.data) { Message.success($t('common.deleteSuccess')); @@ -340,10 +341,12 @@ async function onDel(record: any) { // 复制标准模型函数 async function copyStandardThingModel() { try { - const resp = await postThingModelInfoCopyStandardThingModel({ - body: { - ioTPlatform: props.ioTPlatform, - ioTPlatformProductId: props.productId, + const resp = await postIoTplatformThingModelInfoCopyStandardThingModel({ + query: { + input: { + ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, + ioTPlatformProductId: props.productId, + }, }, }); if (resp.data) { diff --git a/apps/web-antd/src/views/devicemanagement/thingmodelinfo/schema.ts b/apps/web-antd/src/views/thingmodelinfo/deviceThingModelManagement/schema.ts similarity index 100% rename from apps/web-antd/src/views/devicemanagement/thingmodelinfo/schema.ts rename to apps/web-antd/src/views/thingmodelinfo/deviceThingModelManagement/schema.ts diff --git a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/StandardThingModelCodeSelect.vue b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/StandardThingModelCodeSelect.vue new file mode 100644 index 0000000..de4d207 --- /dev/null +++ b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/StandardThingModelCodeSelect.vue @@ -0,0 +1,188 @@ + + + + + + + + e.preventDefault()"> + + + {{ `${query.pageIndex}/${maxPage}` }} + + + + + + + + + + diff --git a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue new file mode 100644 index 0000000..f9c975a --- /dev/null +++ b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts new file mode 100644 index 0000000..b69b148 --- /dev/null +++ b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/schema.ts @@ -0,0 +1,416 @@ +import { computed } from 'vue'; + +import { z } from '@vben/common-ui'; + +import dayjs from 'dayjs'; + +import { + getCommonGetSelectList, + postOneNetProductListAsync, +} from '#/api-client'; +import { $t } from '#/locales'; + +export const querySchema = computed(() => [ + { + component: 'Input', + fieldName: 'SearchKeyWords', + label: $t('common.SearchKeyWords'), + }, +]); + +export const tableSchema = computed(() => [ + { + field: 'filedType', + title: $t('abp.thingModelInfos.FiledType'), + minWidth: 120, + showOverflow: 'tooltip', + formatter: ({ cellValue }: { cellValue: any }) => { + const typeMap: Record = { + Property: '属性', + Service: '服务', + Event: '事件', + }; + return typeMap[cellValue] || cellValue; + }, + }, + { + field: 'ioTPlatformRawFieldName', + title: $t('abp.thingModelInfos.IoTPlatformRawFieldName'), + minWidth: 150, + showOverflow: 'tooltip', + }, + { + field: 'standardFieldName', + title: $t('abp.thingModelInfos.StandardFieldName'), + minWidth: 150, + showOverflow: 'tooltip', + }, + { + field: 'standardFieldDisplayName', + title: $t('abp.thingModelInfos.StandardFieldDisplayName'), + minWidth: 150, + showOverflow: 'tooltip', + }, + { + field: 'standardFieldValueType', + title: $t('abp.thingModelInfos.StandardFieldValueType'), + minWidth: 120, + showOverflow: 'tooltip', + formatter: ({ cellValue }: { cellValue: any }) => { + const typeMap: Record = { + String: '字符串', + Int32: '整数', + Int64: '长整数', + Float: '浮点数', + Double: '双精度', + Boolean: '布尔值', + DateTime: '日期时间', + Object: 'JSON对象', + Array: '数组', + }; + return typeMap[cellValue] || cellValue; + }, + }, + { + field: 'isValueNeedConvert', + title: $t('abp.thingModelInfos.IsValueNeedConvert'), + minWidth: 120, + slots: { default: 'isValueNeedConvert' }, + }, + { + field: 'creationTime', + title: $t('common.creationTime'), + minWidth: 180, + formatter: ({ cellValue }: { cellValue: any }) => { + return cellValue ? dayjs(cellValue).format('YYYY-MM-DD HH:mm:ss') : '-'; + }, + }, + { + field: 'action', + title: $t('common.action'), + width: 200, + fixed: 'right', + slots: { default: 'action' }, + }, +]); + +// 添加物模型表单schema +export const addThingModelFormSchema = computed(() => [ + { + component: 'ApiSelect', + fieldName: 'filedType', + label: $t('abp.thingModelInfos.FiledType'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'DataDictionaryTypeConst', + }, + }, + labelField: 'value', + valueField: 'key', + optionsPropName: 'options', + immediate: true, + allowClear: true, + placeholder: + $t('common.pleaseSelect') + $t('abp.thingModelInfos.FiledType'), + 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: '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', + label: $t('abp.thingModelInfos.StandardFieldValueType'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'StandardThingModelDataTypeEnum', + }, + }, + labelField: 'value', + valueField: 'secondValue', + optionsPropName: 'options', + immediate: true, + allowClear: true, + placeholder: + $t('common.pleaseSelect') + + $t('abp.thingModelInfos.StandardFieldValueType'), + 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: 'isValueNeedConvert', + label: $t('abp.thingModelInfos.IsValueNeedConvert'), + defaultValue: false, + componentProps: { + style: { width: 'auto' }, + }, + }, +]); + +// 编辑物模型表单schema +export const editThingModelFormSchema = computed(() => [ + { + component: 'ApiSelect', + fieldName: 'filedType', + label: $t('abp.thingModelInfos.FiledType'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'DataDictionaryTypeConst', + }, + }, + labelField: 'value', + valueField: 'key', + optionsPropName: 'options', + immediate: true, + disabled: true, // 编辑时禁用 + placeholder: + $t('common.pleaseSelect') + $t('abp.thingModelInfos.FiledType'), + 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: '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', + label: $t('abp.thingModelInfos.StandardFieldValueType'), + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, $t('common.required')), + ), + componentProps: { + api: getCommonGetSelectList, + params: { + query: { + typeName: 'StandardThingModelDataTypeEnum', + }, + }, + optionsPropName: 'options', + immediate: true, + allowClear: true, + disabled: true, // 编辑时禁用 + placeholder: + $t('common.pleaseSelect') + + $t('abp.thingModelInfos.StandardFieldValueType'), + afterFetch: (res: any) => { + let items = []; + if (Array.isArray(res)) { + items = res; + } else if (res && Array.isArray(res.items)) { + items = res.items; + } else if (res && Array.isArray(res.data)) { + items = res.data; + } + // 转换选项值以匹配列表中的小写值 + return items.map((item: any) => ({ + ...item, + // 使用secondValue的小写版本作为value,保持label为原始value + value: item.secondValue || item.value, + label: item.value, // 显示文本 + })); + }, + }, + }, + { + component: 'Switch', + fieldName: 'isValueNeedConvert', + label: $t('abp.thingModelInfos.IsValueNeedConvert'), + componentProps: { + style: { width: 'auto' }, + }, + }, +]); + +// 复制已有模型表单schema +export const copyThingModelFormSchema = computed(() => [ + { + component: 'ApiSelect', + fieldName: 'ioTPlatformProductId', + label: '选择要复制的产品', + rules: z.preprocess( + (v) => (v == null ? '' : v), + z.string().min(1, '请选择要复制的产品'), + ), + componentProps: { + api: postOneNetProductListAsync, + params: { + query: { + pageIndex: 1, + pageSize: 1000, + }, + }, + labelField: 'productName', + valueField: 'ioTPlatformProductId', + 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; + } + if (res && Array.isArray(res.data.items)) { + return res.data.items; + } + return []; + }, + }, + }, +]);