diff --git a/.vscode/settings.json b/.vscode/settings.json index 1cfc017..3ec5507 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -237,5 +237,15 @@ "nolebase", "rollup", "vitest" - ] + ], + "editor.gotoLocation.alternativeDeclarationCommand": "editor.action.revealDefinition", + "editor.gotoLocation.alternativeDefinitionCommand": "editor.action.revealDefinition", + "editor.gotoLocation.alternativeTypeDefinitionCommand": "editor.action.revealDefinition", + "editor.selectionHighlight": false, + "files.autoSave": "onFocusChange", + "editor.quickSuggestions": { + "other": "on", + "comments": "off", + "strings": "on" + } } diff --git a/apps/web-antd/src/api-client/schemas.gen.ts b/apps/web-antd/src/api-client/schemas.gen.ts index 3e89c77..8732ef8 100644 --- a/apps/web-antd/src/api-client/schemas.gen.ts +++ b/apps/web-antd/src/api-client/schemas.gen.ts @@ -464,6 +464,47 @@ export const BatchCreateDeviceAggregationInputSchema = { description: '批量创建设备信息' } as const; +export const BuildAnalysisScriptInputSchema = { + type: 'object', + properties: { + id: { + type: 'string', + description: '物模型数据Id', + format: 'uuid' + }, + scriptName: { + type: 'string', + description: '脚本函数名称', + nullable: true + }, + functionScript: { + type: 'string', + description: '脚本函数体', + nullable: true + } + }, + additionalProperties: false, + description: '构建物模型脚本输入' +} as const; + +export const BuildAnalysisScriptOutputSchema = { + type: 'object', + properties: { + functionName: { + type: 'string', + description: '函数名称', + nullable: true + }, + functionCode: { + type: 'string', + description: '函数代码', + nullable: true + } + }, + additionalProperties: false, + description: '构建物模型脚本输出' +} as const; + export const CTWingAccountInfoDtoSchema = { type: 'object', properties: { @@ -1180,6 +1221,27 @@ export const ControllerInterfaceApiDescriptionModelSchema = { additionalProperties: false } as const; +export const CopyAnotherDeviceInputSchema = { + type: 'object', + properties: { + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + deviceThingModelId: { + type: 'string', + description: '当前设备端物模型数据Id', + format: 'uuid' + }, + sourceProductId: { + type: 'string', + description: '源设备模型数据ID', + format: 'uuid' + } + }, + additionalProperties: false, + description: '复制已存在设备物模型信息' +} as const; + export const CopyAnotherProductInputSchema = { type: 'object', properties: { @@ -1835,7 +1897,7 @@ export const DeleteTextTemplateInputSchema = { } as const; export const DeviceCommandForApiInputSchema = { - required: ['commandContent'], + required: ['commandContent', 'id'], type: 'object', properties: { id: { @@ -1843,15 +1905,11 @@ export const DeviceCommandForApiInputSchema = { format: 'uuid' }, commandContent: { - minLength: 1, - type: 'string', - description: '设备在物联网平台中发送的命令内容,JSON格式' - }, - deviceType: { - '$ref': '#/components/schemas/DeviceTypeEnum' - }, - telemetryType: { - '$ref': '#/components/schemas/DeviceTelemetryCommandTypeEnum' + type: 'object', + additionalProperties: { + nullable: true + }, + description: '设备在物联网平台中属性设置的参数键值对' } }, additionalProperties: false, @@ -2029,10 +2087,15 @@ export const DeviceManagementInfoDtoSchema = { nullable: true, readOnly: true }, + isNeedConfigDevicMdoel: { + type: 'boolean', + description: '是否需要配置设备模型,默认false' + }, deviceThingModelDataId: { type: 'string', description: '设备物模型数据Id', - format: 'uuid' + format: 'uuid', + nullable: true } }, additionalProperties: false @@ -2202,12 +2265,852 @@ export const DeviceTableModelDataInfoPageOutputPagedResultDtoSchema = { additionalProperties: false } as const; -export const DeviceTelemetryCommandTypeEnumSchema = { - enum: [1, 2], - type: 'integer', - description: '设备数据包命令类型枚举', - format: 'int32', - '说明:': '阀控=1,抄读=2' +export const DeviceThingModelCommandInfoCreateInputSchema = { + required: ['commandName', 'deviceThingModelId', 'issueCommand', 'propertyArray'], + type: 'object', + properties: { + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + commandName: { + minLength: 1, + type: 'string', + description: '指令名称' + }, + issueCommand: { + minLength: 1, + type: 'string', + description: '完整的单个下发指令' + }, + propertyArray: { + type: 'array', + items: { + type: 'string' + }, + description: '指令设备端物模型的属性名称集合,JSON格式字符串数组,一个指令的返回报文包含多个属性标识的数据' + } + }, + additionalProperties: false, + description: '设备物模型指令详情创建输入' +} as const; + +export const DeviceThingModelCommandInfoDtoSchema = { + 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 + }, + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + commandName: { + type: 'string', + description: '指令名称', + nullable: true + }, + issueCommand: { + type: 'string', + description: '完整的单个下发指令', + nullable: true + }, + propertyArray: { + type: 'array', + items: { + type: 'string' + }, + description: '指令设备端物模型的属性名称集合,JSON格式字符串数组,一个指令的返回报文包含多个属性标识的数据', + nullable: true + } + }, + additionalProperties: false, + description: '设备端透传指令详情,如果透抄的地址不连续,则会有多个指令记录' +} as const; + +export const DeviceThingModelCommandInfoDtoPagedResultDtoSchema = { + type: 'object', + properties: { + items: { + type: 'array', + items: { + '$ref': '#/components/schemas/DeviceThingModelCommandInfoDto' + }, + nullable: true + }, + totalCount: { + type: 'integer', + format: 'int64' + } + }, + additionalProperties: false +} as const; + +export const DeviceThingModelCommandInfoPageInputSchema = { + required: ['deviceThingModelId'], + 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 + }, + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + 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 + }, + isPage: { + type: 'boolean', + description: '是否分页' + } + }, + additionalProperties: false, + description: '设备物模型指令详情分页' +} as const; + +export const DeviceThingModelCommandInfoUpdateInputSchema = { + required: ['commandName', 'deviceThingModelId', 'id', 'issueCommand', 'propertyArray'], + type: 'object', + properties: { + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + commandName: { + minLength: 1, + type: 'string', + description: '指令名称' + }, + issueCommand: { + minLength: 1, + type: 'string', + description: '完整的单个下发指令' + }, + propertyArray: { + type: 'array', + items: { + type: 'string' + }, + description: '指令设备端物模型的属性名称集合,JSON格式字符串数组,一个指令的返回报文包含多个属性标识的数据' + }, + id: { + type: 'string', + format: 'uuid' + } + }, + additionalProperties: false, + description: '设备物模型指令详情更新输入' +} as const; + +export const DeviceThingModelCreateInputSchema = { + type: 'object', + properties: { + deviceModelName: { + type: 'string', + description: '设备端物模型名称', + nullable: true + }, + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + scriptName: { + type: 'string', + description: '脚本函数名称', + nullable: true + }, + functionScript: { + type: 'string', + description: '脚本函数体', + nullable: true + } + }, + additionalProperties: false +} as const; + +export const DeviceThingModelManagementDtoSchema = { + 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 + }, + deviceModelName: { + type: 'string', + description: '设备端物模型名称', + nullable: true + }, + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + scriptName: { + type: 'string', + description: '脚本函数名称', + nullable: true + }, + functionScript: { + type: 'string', + description: '脚本函数体', + nullable: true + }, + parsingSequence: { + '$ref': '#/components/schemas/ParsingSequenceTypeEnum' + }, + functionAnalysisFlag: { + type: 'boolean', + description: '函数解析标记,默认为false, 不能解析' + }, + propertyInfos: { + type: 'array', + items: { + '$ref': '#/components/schemas/DeviceThingModelPropertyInfoDto' + }, + description: '属性信息', + nullable: true + }, + commandInfos: { + type: 'array', + items: { + '$ref': '#/components/schemas/DeviceThingModelCommandInfoDto' + }, + description: '指令信息', + nullable: true + } + }, + additionalProperties: false, + description: '设备端物模型管理' +} as const; + +export const DeviceThingModelManagementDtoPagedResultDtoSchema = { + type: 'object', + properties: { + items: { + type: 'array', + items: { + '$ref': '#/components/schemas/DeviceThingModelManagementDto' + }, + nullable: true + }, + totalCount: { + type: 'integer', + format: 'int64' + } + }, + additionalProperties: false +} as const; + +export const DeviceThingModelPageInputSchema = { + 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 + }, + isPage: { + type: 'boolean', + description: '是否分页' + } + }, + additionalProperties: false +} as const; + +export const DeviceThingModelPropertyCreateInputSchema = { + required: ['deviceThingModelId', 'ioTPlatformRawFieldDataType', 'ioTPlatformRawFieldName', 'standardFieldDisplayName', 'standardFieldName', 'standardFieldValueType'], + type: 'object', + properties: { + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + filedType: { + type: 'string', + description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', + nullable: true + }, + ioTPlatformRawFieldName: { + minLength: 1, + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件名称' + }, + ioTPlatformRawFieldDataType: { + minLength: 1, + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件数据类型,JiShe.ServicePro.Core.OneNETAllThingModel' + }, + standardFieldName: { + minLength: 1, + type: 'string', + description: '管理后台产品标准的物模型属性或者事件名称' + }, + standardFieldValueType: { + minLength: 1, + type: 'string', + description: '标准物模型字段值类型' + }, + standardFieldDisplayName: { + minLength: 1, + type: 'string', + description: '标准物模型字段显示名称' + }, + isValueNeedConvert: { + type: 'boolean', + description: '是否需要值类型转换' + }, + skipNumber: { + type: 'integer', + description: '跳过数量', + format: 'int32' + }, + takeNumber: { + type: 'integer', + description: '获取数量', + format: 'int32' + } + }, + additionalProperties: false, + description: '设备物模型属性创建输入' +} as const; + +export const DeviceThingModelPropertyInfoDtoSchema = { + 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 + }, + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + 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 + }, + ioTPlatformRawFieldDataType: { + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件数据类型,JiShe.ServicePro.Core.OneNETAllThingModel', + nullable: true + }, + standardFieldName: { + type: 'string', + description: '管理后台产品标准的物模型属性或者事件名称', + nullable: true + }, + standardFieldValueType: { + type: 'string', + description: '标准物模型字段值类型', + nullable: true + }, + standardFieldDisplayName: { + type: 'string', + description: '标准物模型字段显示名称', + nullable: true + }, + isValueNeedConvert: { + type: 'boolean', + description: '是否需要值类型转换' + }, + skipNumber: { + type: 'integer', + description: '跳过数量', + format: 'int32' + }, + takeNumber: { + type: 'integer', + description: '获取数量', + format: 'int32' + } + }, + additionalProperties: false, + description: '设备端物模型属性信息,是指设备端支持的属性或者事件' +} as const; + +export const DeviceThingModelPropertyInfoDtoPagedResultDtoSchema = { + type: 'object', + properties: { + items: { + type: 'array', + items: { + '$ref': '#/components/schemas/DeviceThingModelPropertyInfoDto' + }, + nullable: true + }, + totalCount: { + type: 'integer', + format: 'int64' + } + }, + additionalProperties: false +} as const; + +export const DeviceThingModelPropertyPageInputSchema = { + required: ['deviceThingModelId'], + 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 + }, + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + 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 + }, + isPage: { + type: 'boolean', + description: '是否分页' + } + }, + additionalProperties: false, + description: '设备物模型属性分页' +} as const; + +export const DeviceThingModelPropertyUpdateInputSchema = { + required: ['deviceThingModelId', 'id', 'ioTPlatformRawFieldDataType', 'ioTPlatformRawFieldName', 'standardFieldDisplayName', 'standardFieldName', 'standardFieldValueType'], + type: 'object', + properties: { + deviceThingModelId: { + type: 'string', + description: '设备端物模型Id', + format: 'uuid' + }, + filedType: { + type: 'string', + description: '物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst', + nullable: true + }, + ioTPlatformRawFieldName: { + minLength: 1, + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件名称' + }, + ioTPlatformRawFieldDataType: { + minLength: 1, + type: 'string', + description: '物联网平台中对应的产品物模型属性或者事件数据类型,JiShe.ServicePro.Core.OneNETAllThingModel' + }, + standardFieldName: { + minLength: 1, + type: 'string', + description: '管理后台产品标准的物模型属性或者事件名称' + }, + standardFieldValueType: { + minLength: 1, + type: 'string', + description: '标准物模型字段值类型' + }, + standardFieldDisplayName: { + minLength: 1, + type: 'string', + description: '标准物模型字段显示名称' + }, + isValueNeedConvert: { + type: 'boolean', + description: '是否需要值类型转换' + }, + skipNumber: { + type: 'integer', + description: '跳过数量', + format: 'int32' + }, + takeNumber: { + type: 'integer', + description: '获取数量', + format: 'int32' + }, + id: { + type: 'string', + format: 'uuid' + } + }, + additionalProperties: false, + description: '设备物模型属性更新输入' +} as const; + +export const DeviceThingModelUpdateInputSchema = { + type: 'object', + properties: { + deviceModelName: { + type: 'string', + description: '设备端物模型名称', + nullable: true + }, + ioTPlatform: { + '$ref': '#/components/schemas/IoTPlatformTypeEnum' + }, + ioTPlatformProductId: { + type: 'string', + description: '物联网平台中对应的产品Id', + nullable: true + }, + scriptName: { + type: 'string', + description: '脚本函数名称', + nullable: true + }, + functionScript: { + type: 'string', + description: '脚本函数体', + nullable: true + }, + id: { + type: 'string', + format: 'uuid' + } + }, + additionalProperties: false } as const; export const DeviceTreeModelDataInfoInputSchema = { @@ -3840,6 +4743,7 @@ export const IanaTimeZoneSchema = { } as const; export const IdInputSchema = { + required: ['id'], type: 'object', properties: { id: { @@ -4408,6 +5312,11 @@ export const IoTPlatformThingModelInfoDtoSchema = { isSpecialIdentifier: { type: 'boolean', description: '是否是特殊物模型标识符' + }, + ioTPlatformRawFieldExtension: { + type: 'string', + description: '物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型', + nullable: true } }, additionalProperties: false, @@ -4699,6 +5608,32 @@ export const MenuTypeSchema = { '说明:': '目录=10,菜单=20' } as const; +export const MessageAnalysisTestInputSchema = { + type: 'object', + properties: { + functionName: { + type: 'string', + description: '函数名称', + nullable: true + }, + functionCode: { + type: 'string', + description: '函数代码', + nullable: true + }, + parameters: { + type: 'object', + additionalProperties: { + nullable: true + }, + description: '函数参数', + nullable: true + } + }, + additionalProperties: false, + description: '测试消息解析' +} as const; + export const MessageLevelSchema = { enum: [10, 20, 30], type: 'integer', @@ -5466,7 +6401,7 @@ export const OneNETProductInfoDtoSchema = { }, thingModelInfos: { type: 'string', - description: '物模型信息', + description: '平台物模型信息', nullable: true } }, @@ -6642,7 +7577,10 @@ export const PagingAuditLogInputSchema = { }, sorting: { type: 'string', - description: '排序', + description: `排序 + + name desc +`, nullable: true }, startTime: { @@ -7760,6 +8698,14 @@ export const ParameterApiDescriptionModelSchema = { additionalProperties: false } as const; +export const ParsingSequenceTypeEnumSchema = { + enum: [1, 2], + type: 'integer', + description: '解析顺序枚举', + format: 'int32', + '说明:': '正序=1,高低位反转=2' +} as const; + export const PermissionOutputSchema = { type: 'object', properties: { @@ -8744,11 +9690,12 @@ export const SettingOutputSchema = { } as const; export const StringIdInputSchema = { + required: ['id'], type: 'object', properties: { id: { - type: 'string', - nullable: true + minLength: 1, + type: 'string' } }, additionalProperties: false diff --git a/apps/web-antd/src/api-client/services.gen.ts b/apps/web-antd/src/api-client/services.gen.ts index 8413cbb..1c64c03 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, 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'; +import type { GetApiAbpApiDefinitionData, GetApiAbpApiDefinitionError, GetApiAbpApiDefinitionResponse, GetApiAbpApplicationConfigurationData, GetApiAbpApplicationConfigurationError, GetApiAbpApplicationConfigurationResponse, GetApiAbpApplicationLocalizationData, GetApiAbpApplicationLocalizationError, GetApiAbpApplicationLocalizationResponse, PostApiAppAccountLoginData, PostApiAppAccountLoginError, PostApiAppAccountLoginResponse, PostApiAppAccountLogin2FaData, PostApiAppAccountLogin2FaError, PostApiAppAccountLogin2FaResponse, PostApiAppAccountLoginOidcData, PostApiAppAccountLoginOidcError, PostApiAppAccountLoginOidcResponse, PostApiAppAccountRefreshTokenData, PostApiAppAccountRefreshTokenError, PostApiAppAccountRefreshTokenResponse, PostApiAppAccountLogoutError, PostApiAppAccountLogoutResponse, PostAuditLogsPageData, PostAuditLogsPageError, PostAuditLogsPageResponse, PostAggregationBusinessReceiveCommandInfoAsyncData, PostAggregationBusinessReceiveCommandInfoAsyncError, PostAggregationBusinessReceiveCommandInfoAsyncResponse, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncData, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncError, PostAggregationBusinessBatchQueryDeviceDataInfoAsyncResponse, PostAggregationBusinessBatchCreateDeviceInfoAsyncData, PostAggregationBusinessBatchCreateDeviceInfoAsyncError, PostAggregationBusinessBatchCreateDeviceInfoAsyncResponse, GetCommonGetSelectListData, GetCommonGetSelectListError, GetCommonGetSelectListResponse, PostCtWingAccountInsertAsyncData, PostCtWingAccountInsertAsyncError, PostCtWingAccountInsertAsyncResponse, PostCtWingAccountModifyAsyncData, PostCtWingAccountModifyAsyncError, PostCtWingAccountModifyAsyncResponse, PostCtWingAccountDeleteAsyncData, PostCtWingAccountDeleteAsyncError, PostCtWingAccountDeleteAsyncResponse, PostCtWingAccountListAsyncData, PostCtWingAccountListAsyncError, PostCtWingAccountListAsyncResponse, PostCtWingProductInsertAsyncData, PostCtWingProductInsertAsyncError, PostCtWingProductInsertAsyncResponse, PostCtWingProductModifyAsyncData, PostCtWingProductModifyAsyncError, PostCtWingProductModifyAsyncResponse, PostCtWingProductDeleteAsyncData, PostCtWingProductDeleteAsyncError, PostCtWingProductDeleteAsyncResponse, PostCtWingProductGetAsyncData, PostCtWingProductGetAsyncError, PostCtWingProductGetAsyncResponse, PostCtWingProductProductStatusChangeAsyncData, PostCtWingProductProductStatusChangeAsyncError, PostCtWingProductProductStatusChangeAsyncResponse, PostCtWingProductListAsyncData, PostCtWingProductListAsyncError, PostCtWingProductListAsyncResponse, PostCtWingServiceReceiveStatusChangeError, PostCtWingServiceReceiveStatusChangeResponse, PostCtWingServiceReceiveDataChangeError, PostCtWingServiceReceiveDataChangeResponse, PostCtWingServiceReceiveCommandChangeError, PostCtWingServiceReceiveCommandChangeResponse, PostCtWingServiceReceiveEventChangeError, PostCtWingServiceReceiveEventChangeResponse, PostCtWingServiceReceiveDeviceChangeError, PostCtWingServiceReceiveDeviceChangeResponse, PostDataDictionaryPageData, PostDataDictionaryPageError, PostDataDictionaryPageResponse, PostDataDictionaryPageDetailData, PostDataDictionaryPageDetailError, PostDataDictionaryPageDetailResponse, PostDataDictionarySelectDetailData, PostDataDictionarySelectDetailError, PostDataDictionarySelectDetailResponse, PostDataDictionaryCreateData, PostDataDictionaryCreateError, PostDataDictionaryCreateResponse, PostDataDictionaryCreateDetailData, PostDataDictionaryCreateDetailError, PostDataDictionaryCreateDetailResponse, PostDataDictionaryStatusData, PostDataDictionaryStatusError, PostDataDictionaryStatusResponse, PostDataDictionaryUpdateDetailData, PostDataDictionaryUpdateDetailError, PostDataDictionaryUpdateDetailResponse, PostDataDictionaryDeleteData, PostDataDictionaryDeleteError, PostDataDictionaryDeleteResponse, PostDataDictionaryDeleteDataDictionaryTypeData, PostDataDictionaryDeleteDataDictionaryTypeError, PostDataDictionaryDeleteDataDictionaryTypeResponse, PostDataDictionaryUpdateData, PostDataDictionaryUpdateError, PostDataDictionaryUpdateResponse, PostAggregationDeviceCreateAsyncData, PostAggregationDeviceCreateAsyncError, PostAggregationDeviceCreateAsyncResponse, PostAggregationDeviceBatchCreateAsyncData, PostAggregationDeviceBatchCreateAsyncError, PostAggregationDeviceBatchCreateAsyncResponse, PostAggregationDeviceDeleteAsyncData, PostAggregationDeviceDeleteAsyncError, PostAggregationDeviceDeleteAsyncResponse, PostAggregationDeviceFindByIdAsyncData, PostAggregationDeviceFindByIdAsyncError, PostAggregationDeviceFindByIdAsyncResponse, PostAggregationDeviceRepushDeviceInfoToIoTplatformData, PostAggregationDeviceRepushDeviceInfoToIoTplatformError, PostAggregationDeviceRepushDeviceInfoToIoTplatformResponse, PostAggregationDeviceDeviceCommandForApiAsyncData, PostAggregationDeviceDeviceCommandForApiAsyncError, PostAggregationDeviceDeviceCommandForApiAsyncResponse, PostDeviceInfoFindByDeviceAddressData, PostDeviceInfoFindByDeviceAddressError, PostDeviceInfoFindByDeviceAddressResponse, PostDeviceInfoPageData, PostDeviceInfoPageError, PostDeviceInfoPageResponse, PostDeviceInfoCacheDeviceDataToRedisError, PostDeviceInfoCacheDeviceDataToRedisResponse, PostDeviceThingModelManagementCreateAsyncData, PostDeviceThingModelManagementCreateAsyncError, PostDeviceThingModelManagementCreateAsyncResponse, PostDeviceThingModelManagementUpdateAsyncData, PostDeviceThingModelManagementUpdateAsyncError, PostDeviceThingModelManagementUpdateAsyncResponse, PostDeviceThingModelManagementDeleteAsyncData, PostDeviceThingModelManagementDeleteAsyncError, PostDeviceThingModelManagementDeleteAsyncResponse, PostDeviceThingModelManagementFindByIdAsyncData, PostDeviceThingModelManagementFindByIdAsyncError, PostDeviceThingModelManagementFindByIdAsyncResponse, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncData, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncError, PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncResponse, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncData, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncError, PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncResponse, PostDeviceThingModelManagementBuildAnalysisScriptAsyncData, PostDeviceThingModelManagementBuildAnalysisScriptAsyncError, PostDeviceThingModelManagementBuildAnalysisScriptAsyncResponse, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncData, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncError, PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncResponse, PostDeviceThingModelManagementMessageAnalysisTestAsyncData, PostDeviceThingModelManagementMessageAnalysisTestAsyncError, PostDeviceThingModelManagementMessageAnalysisTestAsyncResponse, PostDeviceThingModelManagementFindByPlatformProductIdAsyncData, PostDeviceThingModelManagementFindByPlatformProductIdAsyncError, PostDeviceThingModelManagementFindByPlatformProductIdAsyncResponse, PostDeviceThingModelManagementCopyAnotherThingModelAsyncData, PostDeviceThingModelManagementCopyAnotherThingModelAsyncError, PostDeviceThingModelManagementCopyAnotherThingModelAsyncResponse, PostDeviceThingModelManagementPageAsyncData, PostDeviceThingModelManagementPageAsyncError, PostDeviceThingModelManagementPageAsyncResponse, PostDeviceThingModelManagementPropertyCreateAsyncData, PostDeviceThingModelManagementPropertyCreateAsyncError, PostDeviceThingModelManagementPropertyCreateAsyncResponse, PostDeviceThingModelManagementPropertyUpdateAsyncData, PostDeviceThingModelManagementPropertyUpdateAsyncError, PostDeviceThingModelManagementPropertyUpdateAsyncResponse, PostDeviceThingModelManagementPropertyDeleteAsyncData, PostDeviceThingModelManagementPropertyDeleteAsyncError, PostDeviceThingModelManagementPropertyDeleteAsyncResponse, PostDeviceThingModelManagementPropertyFindByIdAsyncData, PostDeviceThingModelManagementPropertyFindByIdAsyncError, PostDeviceThingModelManagementPropertyFindByIdAsyncResponse, PostDeviceThingModelManagementPropertyPageAsyncData, PostDeviceThingModelManagementPropertyPageAsyncError, PostDeviceThingModelManagementPropertyPageAsyncResponse, PostDeviceThingModelManagementCommandCreateAsyncData, PostDeviceThingModelManagementCommandCreateAsyncError, PostDeviceThingModelManagementCommandCreateAsyncResponse, PostDeviceThingModelManagementCommandUpdateAsyncData, PostDeviceThingModelManagementCommandUpdateAsyncError, PostDeviceThingModelManagementCommandUpdateAsyncResponse, PostDeviceThingModelManagementCommandDeleteAsyncData, PostDeviceThingModelManagementCommandDeleteAsyncError, PostDeviceThingModelManagementCommandDeleteAsyncResponse, PostDeviceThingModelManagementCommandFindByIdAsyncData, PostDeviceThingModelManagementCommandFindByIdAsyncError, PostDeviceThingModelManagementCommandFindByIdAsyncResponse, PostDeviceThingModelManagementCommandPageAsyncData, PostDeviceThingModelManagementCommandPageAsyncError, PostDeviceThingModelManagementCommandPageAsyncResponse, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncData, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncResponse, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncError, PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncResponse, PostFeaturesListData, PostFeaturesListError, PostFeaturesListResponse, PostFeaturesUpdateData, PostFeaturesUpdateError, PostFeaturesUpdateResponse, PostFeaturesDeleteData, PostFeaturesDeleteError, PostFeaturesDeleteResponse, PostFilesPageData, PostFilesPageError, PostFilesPageResponse, PostFilesUploadData, PostFilesUploadError, PostFilesUploadResponse, PostFilesDeleteData, PostFilesDeleteError, PostFilesDeleteResponse, PostFilesDownloadData, PostFilesDownloadError, PostFilesDownloadResponse, PostIdentitySecurityLogsPageData, PostIdentitySecurityLogsPageError, PostIdentitySecurityLogsPageResponse, PostIoTplatformThingModelInfoCreateAsyncData, PostIoTplatformThingModelInfoCreateAsyncError, PostIoTplatformThingModelInfoCreateAsyncResponse, PostIoTplatformThingModelInfoUpdateAsyncData, PostIoTplatformThingModelInfoUpdateAsyncError, PostIoTplatformThingModelInfoUpdateAsyncResponse, PostIoTplatformThingModelInfoDeleteAsyncData, PostIoTplatformThingModelInfoDeleteAsyncError, PostIoTplatformThingModelInfoDeleteAsyncResponse, PostIoTplatformThingModelInfoFindByIdAsyncData, PostIoTplatformThingModelInfoFindByIdAsyncError, PostIoTplatformThingModelInfoFindByIdAsyncResponse, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncData, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncError, PostIoTplatformThingModelInfoFindByPlatformProductIdAsyncResponse, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncData, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncError, PostIoTplatformThingModelInfoCopyAnotherThingModelAsyncResponse, PostIoTplatformThingModelInfoCopyStandardThingModelData, PostIoTplatformThingModelInfoCopyStandardThingModelError, PostIoTplatformThingModelInfoCopyStandardThingModelResponse, PostIoTplatformThingModelInfoPageAsyncData, PostIoTplatformThingModelInfoPageAsyncError, PostIoTplatformThingModelInfoPageAsyncResponse, PostIoTplatformThingModelInfoStandardThingModelPageAsyncError, PostIoTplatformThingModelInfoStandardThingModelPageAsyncResponse, PostLanguagesAllError, PostLanguagesAllResponse, PostLanguagesPageData, PostLanguagesPageError, PostLanguagesPageResponse, PostLanguagesCreateData, PostLanguagesCreateError, PostLanguagesCreateResponse, PostLanguagesUpdateData, PostLanguagesUpdateError, PostLanguagesUpdateResponse, PostLanguagesDeleteData, PostLanguagesDeleteError, PostLanguagesDeleteResponse, PostLanguagesSetDefaultData, PostLanguagesSetDefaultError, PostLanguagesSetDefaultResponse, PostLanguageTextsAllResourceError, PostLanguageTextsAllResourceResponse, PostLanguageTextsPageData, PostLanguageTextsPageError, PostLanguageTextsPageResponse, PostLanguageTextsCreateData, PostLanguageTextsCreateError, PostLanguageTextsCreateResponse, PostLanguageTextsUpdateData, PostLanguageTextsUpdateError, PostLanguageTextsUpdateResponse, PostMenusUserMenuError, PostMenusUserMenuResponse, PostMenusPageData, PostMenusPageError, PostMenusPageResponse, PostMenusCreateData, PostMenusCreateError, PostMenusCreateResponse, PostMenusUpdateData, PostMenusUpdateError, PostMenusUpdateResponse, PostMenusDeleteData, PostMenusDeleteError, PostMenusDeleteResponse, PostMenusTreeError, PostMenusTreeResponse, PostNotificationNotificationPageData, PostNotificationNotificationPageError, PostNotificationNotificationPageResponse, PostNotificationNotificationSubscriptionPageData, PostNotificationNotificationSubscriptionPageError, PostNotificationNotificationSubscriptionPageResponse, PostNotificationDeleteData, PostNotificationDeleteError, PostNotificationDeleteResponse, PostNotificationSendCommonWarningMessageData, PostNotificationSendCommonWarningMessageError, PostNotificationSendCommonWarningMessageResponse, PostNotificationSendCommonInformationMessageData, PostNotificationSendCommonInformationMessageError, PostNotificationSendCommonInformationMessageResponse, PostNotificationSendCommonErrorMessageData, PostNotificationSendCommonErrorMessageError, PostNotificationSendCommonErrorMessageResponse, PostNotificationSendBroadCastWarningMessageData, PostNotificationSendBroadCastWarningMessageError, PostNotificationSendBroadCastWarningMessageResponse, PostNotificationSendBroadCastInformationMessageData, PostNotificationSendBroadCastInformationMessageError, PostNotificationSendBroadCastInformationMessageResponse, PostNotificationSendBroadCastErrorMessageData, PostNotificationSendBroadCastErrorMessageError, PostNotificationSendBroadCastErrorMessageResponse, PostNotificationReadData, PostNotificationReadError, PostNotificationReadResponse, PostNotificationBatchReadData, PostNotificationBatchReadError, PostNotificationBatchReadResponse, PostOneNetAccountInsertAsyncData, PostOneNetAccountInsertAsyncError, PostOneNetAccountInsertAsyncResponse, PostOneNetAccountModifyAsyncData, PostOneNetAccountModifyAsyncError, PostOneNetAccountModifyAsyncResponse, PostOneNetAccountDeleteAsyncData, PostOneNetAccountDeleteAsyncError, PostOneNetAccountDeleteAsyncResponse, PostOneNetAccountListAsyncData, PostOneNetAccountListAsyncError, PostOneNetAccountListAsyncResponse, PostOneNetProductInsertAsyncData, PostOneNetProductInsertAsyncError, PostOneNetProductInsertAsyncResponse, PostOneNetProductModifyAsyncData, PostOneNetProductModifyAsyncError, PostOneNetProductModifyAsyncResponse, PostOneNetProductDeleteAsyncData, PostOneNetProductDeleteAsyncError, PostOneNetProductDeleteAsyncResponse, PostOneNetProductGetAsyncData, PostOneNetProductGetAsyncError, PostOneNetProductGetAsyncResponse, PostOneNetProductProductStatusChangeAsyncData, PostOneNetProductProductStatusChangeAsyncError, PostOneNetProductProductStatusChangeAsyncResponse, PostOneNetProductUpdateThingModelAsyncData, PostOneNetProductUpdateThingModelAsyncError, PostOneNetProductUpdateThingModelAsyncResponse, PostOneNetProductListAsyncData, PostOneNetProductListAsyncError, PostOneNetProductListAsyncResponse, PostOneNetServiceReceivePlaintextDataChangeData, PostOneNetServiceReceivePlaintextDataChangeError, PostOneNetServiceReceivePlaintextDataChangeResponse, GetOneNetServiceReceivePlaintextDataChangeData, GetOneNetServiceReceivePlaintextDataChangeError, GetOneNetServiceReceivePlaintextDataChangeResponse, PostOneNetServiceReceiveCiphertextDataChangeData, PostOneNetServiceReceiveCiphertextDataChangeError, PostOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceReceiveCiphertextDataChangeData, GetOneNetServiceReceiveCiphertextDataChangeError, GetOneNetServiceReceiveCiphertextDataChangeResponse, GetOneNetServiceCheckLocalMemroyData, GetOneNetServiceCheckLocalMemroyError, GetOneNetServiceCheckLocalMemroyResponse, PostOrganizationUnitsTreeError, PostOrganizationUnitsTreeResponse, PostOrganizationUnitsCreateData, PostOrganizationUnitsCreateError, PostOrganizationUnitsCreateResponse, PostOrganizationUnitsDeleteData, PostOrganizationUnitsDeleteError, PostOrganizationUnitsDeleteResponse, PostOrganizationUnitsUpdateData, PostOrganizationUnitsUpdateError, PostOrganizationUnitsUpdateResponse, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncData, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncError, PostOrganizationUnitsAddRoleToOrganizationUnitAsyncResponse, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncData, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncError, PostOrganizationUnitsRemoveRoleFromOrganizationUnitAsyncResponse, PostOrganizationUnitsAddUserToOrganizationUnitData, PostOrganizationUnitsAddUserToOrganizationUnitError, PostOrganizationUnitsAddUserToOrganizationUnitResponse, PostOrganizationUnitsRemoveUserFromOrganizationUnitData, PostOrganizationUnitsRemoveUserFromOrganizationUnitError, PostOrganizationUnitsRemoveUserFromOrganizationUnitResponse, PostOrganizationUnitsGetUsersData, PostOrganizationUnitsGetUsersError, PostOrganizationUnitsGetUsersResponse, PostOrganizationUnitsGetRolesData, PostOrganizationUnitsGetRolesError, PostOrganizationUnitsGetRolesResponse, PostOrganizationUnitsGetUnAddUsersData, PostOrganizationUnitsGetUnAddUsersError, PostOrganizationUnitsGetUnAddUsersResponse, PostOrganizationUnitsGetUnAddRolesData, PostOrganizationUnitsGetUnAddRolesError, PostOrganizationUnitsGetUnAddRolesResponse, PostPermissionsTreeData, PostPermissionsTreeError, PostPermissionsTreeResponse, PostPermissionsUpdateData, PostPermissionsUpdateError, PostPermissionsUpdateResponse, PostRolesAllError, PostRolesAllResponse, PostRolesPageData, PostRolesPageError, PostRolesPageResponse, PostRolesCreateData, PostRolesCreateError, PostRolesCreateResponse, PostRolesUpdateData, PostRolesUpdateError, PostRolesUpdateResponse, PostRolesDeleteData, PostRolesDeleteError, PostRolesDeleteResponse, GetApiAppAbpProBasicApplicationConfigurationError, GetApiAppAbpProBasicApplicationConfigurationResponse, PostSettingsAllError, PostSettingsAllResponse, PostSettingsUpdateData, PostSettingsUpdateError, PostSettingsUpdateResponse, PostTableModelPacketInfoPageData, PostTableModelPacketInfoPageError, PostTableModelPacketInfoPageResponse, PostTableModelDeviceDataInfoPageData, PostTableModelDeviceDataInfoPageError, PostTableModelDeviceDataInfoPageResponse, PostTableModelCtWingLogInfoData, PostTableModelCtWingLogInfoError, PostTableModelCtWingLogInfoResponse, PostTableModelOneNetLogInfoData, PostTableModelOneNetLogInfoError, PostTableModelOneNetLogInfoResponse, PostTenantsFindData, PostTenantsFindError, PostTenantsFindResponse, PostTenantsPageData, PostTenantsPageError, PostTenantsPageResponse, PostTenantsCreateData, PostTenantsCreateError, PostTenantsCreateResponse, PostTenantsUpdateData, PostTenantsUpdateError, PostTenantsUpdateResponse, PostTenantsDeleteData, PostTenantsDeleteError, PostTenantsDeleteResponse, PostTenantsPageConnectionStringData, PostTenantsPageConnectionStringError, PostTenantsPageConnectionStringResponse, PostTenantsAddOrUpdateConnectionStringData, PostTenantsAddOrUpdateConnectionStringError, PostTenantsAddOrUpdateConnectionStringResponse, PostTenantsDeleteConnectionStringData, PostTenantsDeleteConnectionStringError, PostTenantsDeleteConnectionStringResponse, PostTextTemplatesPageData, PostTextTemplatesPageError, PostTextTemplatesPageResponse, PostTextTemplatesCreateData, PostTextTemplatesCreateError, PostTextTemplatesCreateResponse, PostTextTemplatesUpdateData, PostTextTemplatesUpdateError, PostTextTemplatesUpdateResponse, PostTextTemplatesDeleteData, PostTextTemplatesDeleteError, PostTextTemplatesDeleteResponse, PostTextTemplatesExportData, PostTextTemplatesExportError, PostTextTemplatesExportResponse, PostTreeModelDeviceDataInfoPageData, PostTreeModelDeviceDataInfoPageError, PostTreeModelDeviceDataInfoPageResponse, PostUsersPageData, PostUsersPageError, PostUsersPageResponse, PostUsersListData, PostUsersListError, PostUsersListResponse, PostUsersExportData, PostUsersExportError, PostUsersExportResponse, PostUsersCreateData, PostUsersCreateError, PostUsersCreateResponse, PostUsersUpdateData, PostUsersUpdateError, PostUsersUpdateResponse, PostUsersDeleteData, PostUsersDeleteError, PostUsersDeleteResponse, PostUsersRoleData, PostUsersRoleError, PostUsersRoleResponse, PostUsersChangePasswordData, PostUsersChangePasswordError, PostUsersChangePasswordResponse, PostUsersResetPasswordData, PostUsersResetPasswordError, PostUsersResetPasswordResponse, PostUsersLockData, PostUsersLockError, PostUsersLockResponse, PostUsersFindByUserNameData, PostUsersFindByUserNameError, PostUsersFindByUserNameResponse, PostUsersMyProfileError, PostUsersMyProfileResponse, PostUsersCanUseTwoFactorError, PostUsersCanUseTwoFactorResponse, PostUsersGetQrCodeError, PostUsersGetQrCodeResponse, PostUsersEnabledTwoFactorData, PostUsersEnabledTwoFactorError, PostUsersEnabledTwoFactorResponse, PostUsersDisabledTwoFactorData, PostUsersDisabledTwoFactorError, PostUsersDisabledTwoFactorResponse, PostUsersResetTwoFactorData, PostUsersResetTwoFactorError, PostUsersResetTwoFactorResponse, PostUsersNeedChangePasswordError, PostUsersNeedChangePasswordResponse, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncData, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncError, PostAggregationWorkshopReceiveWorkshopProductionInfoAsyncResponse, PostAggregationWorkshopGetProductListAsyncData, PostAggregationWorkshopGetProductListAsyncError, PostAggregationWorkshopGetProductListAsyncResponse } from './types.gen'; export const client = createClient(createConfig()); @@ -466,6 +466,246 @@ export const postDeviceInfoCacheDeviceDataToRedis = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CreateAsync' + }); +}; + +/** + * 更新物模型信息 + */ +export const postDeviceThingModelManagementUpdateAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/UpdateAsync' + }); +}; + +/** + * 删除物模型信息 + */ +export const postDeviceThingModelManagementDeleteAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/DeleteAsync' + }); +}; + +/** + * 根据物模型ID查询物模型信息 + */ +export const postDeviceThingModelManagementFindByIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/FindByIdAsync' + }); +}; + +/** + * 根据物模型ID查询物模型所有信息 + */ +export const postDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/GetDeviceThingModelAllInfoByIdAsync' + }); +}; + +/** + * 根据物模型ID构建解析脚本并编译解析脚本 + */ +export const postDeviceThingModelManagementBuildAnalysisScriptByIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/BuildAnalysisScriptByIdAsync' + }); +}; + +/** + * 根据物模型ID更新解析脚本信息并编译解析脚本,用于手写脚本更新 + */ +export const postDeviceThingModelManagementBuildAnalysisScriptAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/BuildAnalysisScriptAsync' + }); +}; + +/** + * 根据物模型ID将解析脚本更新Redis并发布订阅 + */ +export const postDeviceThingModelManagementUpdateAnalysisScriptByIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/UpdateAnalysisScriptByIdAsync' + }); +}; + +/** + * 解析脚本测试 + */ +export const postDeviceThingModelManagementMessageAnalysisTestAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/MessageAnalysisTestAsync' + }); +}; + +/** + * 根据平台产品ID查询物模型信息 + */ +export const postDeviceThingModelManagementFindByPlatformProductIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/FindByPlatformProductIdAsync' + }); +}; + +/** + * 复制已存在产品设备物模型信息 + */ +export const postDeviceThingModelManagementCopyAnotherThingModelAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CopyAnotherThingModelAsync' + }); +}; + +/** + * 分页查询物模型信息 + */ +export const postDeviceThingModelManagementPageAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/PageAsync' + }); +}; + +/** + * 创建设备物模型属性 + */ +export const postDeviceThingModelManagementPropertyCreateAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/PropertyCreateAsync' + }); +}; + +/** + * 更新设备物模型属性 + */ +export const postDeviceThingModelManagementPropertyUpdateAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/PropertyUpdateAsync' + }); +}; + +/** + * 删除设备物模型属性 + */ +export const postDeviceThingModelManagementPropertyDeleteAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/PropertyDeleteAsync' + }); +}; + +/** + * 根据设备物模型属性ID查询设备物模型属性信息 + */ +export const postDeviceThingModelManagementPropertyFindByIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/PropertyFindByIdAsync' + }); +}; + +/** + * 分页查询设备物模型属性信息 + */ +export const postDeviceThingModelManagementPropertyPageAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/PropertyPageAsync' + }); +}; + +/** + * 创建设备物模型指令 + */ +export const postDeviceThingModelManagementCommandCreateAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CommandCreateAsync' + }); +}; + +/** + * 更新设备物模型指令 + */ +export const postDeviceThingModelManagementCommandUpdateAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CommandUpdateAsync' + }); +}; + +/** + * 删除设备物模型指令 + */ +export const postDeviceThingModelManagementCommandDeleteAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CommandDeleteAsync' + }); +}; + +/** + * 根据设备物模型指令ID查询设备物模型指令信息 + */ +export const postDeviceThingModelManagementCommandFindByIdAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CommandFindByIdAsync' + }); +}; + +/** + * 分页查询设备物模型指令信息 + */ +export const postDeviceThingModelManagementCommandPageAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CommandPageAsync' + }); +}; + +/** + * 缓存指定设备端物模型信息到Redis + */ +export const postDeviceThingModelManagementCacheDeviceThingModelToRedisAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CacheDeviceThingModelToRedisAsync' + }); +}; + +/** + * 缓存所有设备端物模型信息到Redis + */ +export const postDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/DeviceThingModelManagement/CacheAllDeviceThingModelToRedisAsync' + }); +}; + export const postFeaturesList = (options?: Options) => { return (options?.client ?? client).post({ ...options, @@ -905,6 +1145,16 @@ export const postOneNetProductProductStatusChangeAsync = (options?: Options) => { + return (options?.client ?? client).post({ + ...options, + url: '/OneNETProduct/UpdateThingModelAsync' + }); +}; + /** * 获取OneNET产品列表 */ diff --git a/apps/web-antd/src/api-client/types.gen.ts b/apps/web-antd/src/api-client/types.gen.ts index ad1477f..123496e 100644 --- a/apps/web-antd/src/api-client/types.gen.ts +++ b/apps/web-antd/src/api-client/types.gen.ts @@ -172,6 +172,38 @@ export type BatchCreateDeviceAggregationInput = { deviceSourceTypeEnum?: DeviceSourceTypeEnum; }; +/** + * 构建物模型脚本输入 + */ +export type BuildAnalysisScriptInput = { + /** + * 物模型数据Id + */ + id?: string; + /** + * 脚本函数名称 + */ + scriptName?: (string) | null; + /** + * 脚本函数体 + */ + functionScript?: (string) | null; +}; + +/** + * 构建物模型脚本输出 + */ +export type BuildAnalysisScriptOutput = { + /** + * 函数名称 + */ + functionName?: (string) | null; + /** + * 函数代码 + */ + functionCode?: (string) | null; +}; + export type ChangePasswordInput = { currentPassword?: (string) | null; newPassword: string; @@ -200,6 +232,21 @@ export type ControllerInterfaceApiDescriptionModel = { methods?: Array | null; }; +/** + * 复制已存在设备物模型信息 + */ +export type CopyAnotherDeviceInput = { + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 当前设备端物模型数据Id + */ + deviceThingModelId?: string; + /** + * 源设备模型数据ID + */ + sourceProductId?: string; +}; + /** * 复制已存在产品设备物模型信息 */ @@ -983,13 +1030,13 @@ export type DeleteTextTemplateInput = { * 设备命令 */ export type DeviceCommandForApiInput = { - id?: string; + id: string; /** - * 设备在物联网平台中发送的命令内容,JSON格式 + * 设备在物联网平台中属性设置的参数键值对 */ - commandContent: string; - deviceType?: DeviceTypeEnum; - telemetryType?: DeviceTelemetryCommandTypeEnum; + commandContent: { + [key: string]: unknown; + }; }; export type DeviceManagementInfoDto = { @@ -1095,10 +1142,14 @@ export type DeviceManagementInfoDto = { * 设备类型,与业务系统无关 */ readonly deviceTypeName?: (string) | null; + /** + * 是否需要配置设备模型,默认false + */ + isNeedConfigDevicMdoel?: boolean; /** * 设备物模型数据Id */ - deviceThingModelDataId?: string; + deviceThingModelDataId?: (string) | null; }; export type DeviceManagementInfoDtoPagedResultDto = { @@ -1208,9 +1259,545 @@ export type DeviceTableModelDataInfoPageOutputPagedResultDto = { }; /** - * 设备数据包命令类型枚举 + * 设备物模型指令详情创建输入 */ -export type DeviceTelemetryCommandTypeEnum = 1 | 2; +export type DeviceThingModelCommandInfoCreateInput = { + /** + * 设备端物模型Id + */ + deviceThingModelId: string; + /** + * 指令名称 + */ + commandName: string; + /** + * 完整的单个下发指令 + */ + issueCommand: string; + /** + * 指令设备端物模型的属性名称集合,JSON格式字符串数组,一个指令的返回报文包含多个属性标识的数据 + */ + propertyArray: Array<(string)>; +}; + +/** + * 设备端透传指令详情,如果透抄的地址不连续,则会有多个指令记录 + */ +export type DeviceThingModelCommandInfoDto = { + 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; + /** + * 设备端物模型Id + */ + deviceThingModelId?: string; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 指令名称 + */ + commandName?: (string) | null; + /** + * 完整的单个下发指令 + */ + issueCommand?: (string) | null; + /** + * 指令设备端物模型的属性名称集合,JSON格式字符串数组,一个指令的返回报文包含多个属性标识的数据 + */ + propertyArray?: Array<(string)> | null; +}; + +export type DeviceThingModelCommandInfoDtoPagedResultDto = { + items?: Array | null; + totalCount?: number; +}; + +/** + * 设备物模型指令详情分页 + */ +export type DeviceThingModelCommandInfoPageInput = { + /** + * 当前页面.默认从1开始 + */ + pageIndex?: number; + /** + * 每页多少条.每页显示多少记录 + */ + pageSize?: number; + /** + * 跳过多少条 + */ + readonly skipCount?: number; + /** + * 排序 + * + * name desc + * + */ + sorting?: (string) | null; + /** + * 设备端物模型Id + */ + deviceThingModelId: string; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 搜索关键字 + */ + searchKeyWords?: (string) | null; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 是否分页 + */ + isPage?: boolean; +}; + +/** + * 设备物模型指令详情更新输入 + */ +export type DeviceThingModelCommandInfoUpdateInput = { + /** + * 设备端物模型Id + */ + deviceThingModelId: string; + /** + * 指令名称 + */ + commandName: string; + /** + * 完整的单个下发指令 + */ + issueCommand: string; + /** + * 指令设备端物模型的属性名称集合,JSON格式字符串数组,一个指令的返回报文包含多个属性标识的数据 + */ + propertyArray: Array<(string)>; + id: string; +}; + +export type DeviceThingModelCreateInput = { + /** + * 设备端物模型名称 + */ + deviceModelName?: (string) | null; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 脚本函数名称 + */ + scriptName?: (string) | null; + /** + * 脚本函数体 + */ + functionScript?: (string) | null; +}; + +/** + * 设备端物模型管理 + */ +export type DeviceThingModelManagementDto = { + 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; + /** + * 设备端物模型名称 + */ + deviceModelName?: (string) | null; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 脚本函数名称 + */ + scriptName?: (string) | null; + /** + * 脚本函数体 + */ + functionScript?: (string) | null; + parsingSequence?: ParsingSequenceTypeEnum; + /** + * 函数解析标记,默认为false, 不能解析 + */ + functionAnalysisFlag?: boolean; + /** + * 属性信息 + */ + propertyInfos?: Array | null; + /** + * 指令信息 + */ + commandInfos?: Array | null; +}; + +export type DeviceThingModelManagementDtoPagedResultDto = { + items?: Array | null; + totalCount?: number; +}; + +export type DeviceThingModelPageInput = { + /** + * 当前页面.默认从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; + /** + * 是否分页 + */ + isPage?: boolean; +}; + +/** + * 设备物模型属性创建输入 + */ +export type DeviceThingModelPropertyCreateInput = { + /** + * 设备端物模型Id + */ + deviceThingModelId: string; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 物联网平台中对应的产品物模型属性或者事件名称 + */ + ioTPlatformRawFieldName: string; + /** + * 物联网平台中对应的产品物模型属性或者事件数据类型,JiShe.ServicePro.Core.OneNETAllThingModel + */ + ioTPlatformRawFieldDataType: string; + /** + * 管理后台产品标准的物模型属性或者事件名称 + */ + standardFieldName: string; + /** + * 标准物模型字段值类型 + */ + standardFieldValueType: string; + /** + * 标准物模型字段显示名称 + */ + standardFieldDisplayName: string; + /** + * 是否需要值类型转换 + */ + isValueNeedConvert?: boolean; + /** + * 跳过数量 + */ + skipNumber?: number; + /** + * 获取数量 + */ + takeNumber?: number; +}; + +/** + * 设备端物模型属性信息,是指设备端支持的属性或者事件 + */ +export type DeviceThingModelPropertyInfoDto = { + 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; + /** + * 设备端物模型Id + */ + deviceThingModelId?: string; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 物联网平台中对应的产品物模型属性或者事件名称 + */ + ioTPlatformRawFieldName?: (string) | null; + /** + * 物联网平台中对应的产品物模型属性或者事件数据类型,JiShe.ServicePro.Core.OneNETAllThingModel + */ + ioTPlatformRawFieldDataType?: (string) | null; + /** + * 管理后台产品标准的物模型属性或者事件名称 + */ + standardFieldName?: (string) | null; + /** + * 标准物模型字段值类型 + */ + standardFieldValueType?: (string) | null; + /** + * 标准物模型字段显示名称 + */ + standardFieldDisplayName?: (string) | null; + /** + * 是否需要值类型转换 + */ + isValueNeedConvert?: boolean; + /** + * 跳过数量 + */ + skipNumber?: number; + /** + * 获取数量 + */ + takeNumber?: number; +}; + +export type DeviceThingModelPropertyInfoDtoPagedResultDto = { + items?: Array | null; + totalCount?: number; +}; + +/** + * 设备物模型属性分页 + */ +export type DeviceThingModelPropertyPageInput = { + /** + * 当前页面.默认从1开始 + */ + pageIndex?: number; + /** + * 每页多少条.每页显示多少记录 + */ + pageSize?: number; + /** + * 跳过多少条 + */ + readonly skipCount?: number; + /** + * 排序 + * + * name desc + * + */ + sorting?: (string) | null; + /** + * 设备端物模型Id + */ + deviceThingModelId: string; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 搜索关键字 + */ + searchKeyWords?: (string) | null; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 是否分页 + */ + isPage?: boolean; +}; + +/** + * 设备物模型属性更新输入 + */ +export type DeviceThingModelPropertyUpdateInput = { + /** + * 设备端物模型Id + */ + deviceThingModelId: string; + /** + * 物联网平台中对应产品物模型属性或者事件类型 JiShe.ServicePro.Core.DataDictionaryTypeConst + */ + filedType?: (string) | null; + /** + * 物联网平台中对应的产品物模型属性或者事件名称 + */ + ioTPlatformRawFieldName: string; + /** + * 物联网平台中对应的产品物模型属性或者事件数据类型,JiShe.ServicePro.Core.OneNETAllThingModel + */ + ioTPlatformRawFieldDataType: string; + /** + * 管理后台产品标准的物模型属性或者事件名称 + */ + standardFieldName: string; + /** + * 标准物模型字段值类型 + */ + standardFieldValueType: string; + /** + * 标准物模型字段显示名称 + */ + standardFieldDisplayName: string; + /** + * 是否需要值类型转换 + */ + isValueNeedConvert?: boolean; + /** + * 跳过数量 + */ + skipNumber?: number; + /** + * 获取数量 + */ + takeNumber?: number; + id: string; +}; + +export type DeviceThingModelUpdateInput = { + /** + * 设备端物模型名称 + */ + deviceModelName?: (string) | null; + ioTPlatform?: IoTPlatformTypeEnum; + /** + * 物联网平台中对应的产品Id + */ + ioTPlatformProductId?: (string) | null; + /** + * 脚本函数名称 + */ + scriptName?: (string) | null; + /** + * 脚本函数体 + */ + functionScript?: (string) | null; + id?: string; +}; /** * 设备树模型数据信息查询入参 @@ -1958,7 +2545,7 @@ export type IdentityUserUpdateDto = { }; export type IdInput = { - id?: string; + id: string; }; export type InterfaceMethodApiDescriptionModel = { @@ -2077,6 +2664,10 @@ export type IoTPlatformThingModelInfoDto = { * 是否是特殊物模型标识符 */ isSpecialIdentifier?: boolean; + /** + * 物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型 + */ + ioTPlatformRawFieldExtension?: (string) | null; }; export type IoTPlatformThingModelInfoDtoPagedResultDto = { @@ -2251,6 +2842,26 @@ export type LoginResultType = 1 | 2 | 3 | 4 | 5; */ export type MenuType = 10 | 20; +/** + * 测试消息解析 + */ +export type MessageAnalysisTestInput = { + /** + * 函数名称 + */ + functionName?: (string) | null; + /** + * 函数代码 + */ + functionCode?: (string) | null; + /** + * 函数参数 + */ + parameters?: { + [key: string]: unknown; + } | null; +}; + /** * 消息等级 */ @@ -2772,7 +3383,7 @@ export type OneNETProductInfoDto = { */ communicationAddressTLS?: (string) | null; /** - * 物模型信息 + * 平台物模型信息 */ thingModelInfos?: (string) | null; }; @@ -3436,6 +4047,9 @@ export type PagingAuditLogInput = { readonly skipCount?: number; /** * 排序 + * + * name desc + * */ sorting?: (string) | null; /** @@ -4015,6 +4629,11 @@ export type ParameterApiDescriptionModel = { descriptorName?: (string) | null; }; +/** + * 解析顺序枚举 + */ +export type ParsingSequenceTypeEnum = 1 | 2; + export type PermissionOutput = { grants?: Array<(string)> | null; allGrants?: Array<(string)> | null; @@ -4571,7 +5190,7 @@ export type SettingOutput = { }; export type StringIdInput = { - id?: (string) | null; + id: string; }; export type StringStringFromSelector = { @@ -5254,6 +5873,242 @@ export type PostDeviceInfoCacheDeviceDataToRedisResponse = (boolean); export type PostDeviceInfoCacheDeviceDataToRedisError = unknown; +export type PostDeviceThingModelManagementCreateAsyncData = { + query?: { + input?: DeviceThingModelCreateInput; + }; +}; + +export type PostDeviceThingModelManagementCreateAsyncResponse = (DeviceThingModelManagementDto); + +export type PostDeviceThingModelManagementCreateAsyncError = unknown; + +export type PostDeviceThingModelManagementUpdateAsyncData = { + query?: { + input?: DeviceThingModelUpdateInput; + }; +}; + +export type PostDeviceThingModelManagementUpdateAsyncResponse = (DeviceThingModelManagementDto); + +export type PostDeviceThingModelManagementUpdateAsyncError = unknown; + +export type PostDeviceThingModelManagementDeleteAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementDeleteAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementDeleteAsyncError = unknown; + +export type PostDeviceThingModelManagementFindByIdAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementFindByIdAsyncResponse = (DeviceThingModelManagementDto); + +export type PostDeviceThingModelManagementFindByIdAsyncError = unknown; + +export type PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncResponse = (DeviceThingModelManagementDto); + +export type PostDeviceThingModelManagementGetDeviceThingModelAllInfoByIdAsyncError = unknown; + +export type PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncResponse = (BuildAnalysisScriptOutput); + +export type PostDeviceThingModelManagementBuildAnalysisScriptByIdAsyncError = unknown; + +export type PostDeviceThingModelManagementBuildAnalysisScriptAsyncData = { + query?: { + input?: BuildAnalysisScriptInput; + }; +}; + +export type PostDeviceThingModelManagementBuildAnalysisScriptAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementBuildAnalysisScriptAsyncError = unknown; + +export type PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementUpdateAnalysisScriptByIdAsyncError = unknown; + +export type PostDeviceThingModelManagementMessageAnalysisTestAsyncData = { + query?: { + input?: MessageAnalysisTestInput; + }; +}; + +export type PostDeviceThingModelManagementMessageAnalysisTestAsyncResponse = ({ + [key: string]: unknown; +}); + +export type PostDeviceThingModelManagementMessageAnalysisTestAsyncError = unknown; + +export type PostDeviceThingModelManagementFindByPlatformProductIdAsyncData = { + query?: { + input?: StringIdInput; + }; +}; + +export type PostDeviceThingModelManagementFindByPlatformProductIdAsyncResponse = (Array); + +export type PostDeviceThingModelManagementFindByPlatformProductIdAsyncError = unknown; + +export type PostDeviceThingModelManagementCopyAnotherThingModelAsyncData = { + query?: { + input?: CopyAnotherDeviceInput; + }; +}; + +export type PostDeviceThingModelManagementCopyAnotherThingModelAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementCopyAnotherThingModelAsyncError = unknown; + +export type PostDeviceThingModelManagementPageAsyncData = { + query?: { + input?: DeviceThingModelPageInput; + }; +}; + +export type PostDeviceThingModelManagementPageAsyncResponse = (DeviceThingModelManagementDtoPagedResultDto); + +export type PostDeviceThingModelManagementPageAsyncError = unknown; + +export type PostDeviceThingModelManagementPropertyCreateAsyncData = { + query?: { + input?: DeviceThingModelPropertyCreateInput; + }; +}; + +export type PostDeviceThingModelManagementPropertyCreateAsyncResponse = (DeviceThingModelPropertyInfoDto); + +export type PostDeviceThingModelManagementPropertyCreateAsyncError = unknown; + +export type PostDeviceThingModelManagementPropertyUpdateAsyncData = { + query?: { + input?: DeviceThingModelPropertyUpdateInput; + }; +}; + +export type PostDeviceThingModelManagementPropertyUpdateAsyncResponse = (DeviceThingModelPropertyInfoDto); + +export type PostDeviceThingModelManagementPropertyUpdateAsyncError = unknown; + +export type PostDeviceThingModelManagementPropertyDeleteAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementPropertyDeleteAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementPropertyDeleteAsyncError = unknown; + +export type PostDeviceThingModelManagementPropertyFindByIdAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementPropertyFindByIdAsyncResponse = (DeviceThingModelPropertyInfoDto); + +export type PostDeviceThingModelManagementPropertyFindByIdAsyncError = unknown; + +export type PostDeviceThingModelManagementPropertyPageAsyncData = { + query?: { + input?: DeviceThingModelPropertyPageInput; + }; +}; + +export type PostDeviceThingModelManagementPropertyPageAsyncResponse = (DeviceThingModelPropertyInfoDtoPagedResultDto); + +export type PostDeviceThingModelManagementPropertyPageAsyncError = unknown; + +export type PostDeviceThingModelManagementCommandCreateAsyncData = { + query?: { + input?: DeviceThingModelCommandInfoCreateInput; + }; +}; + +export type PostDeviceThingModelManagementCommandCreateAsyncResponse = (DeviceThingModelCommandInfoDto); + +export type PostDeviceThingModelManagementCommandCreateAsyncError = unknown; + +export type PostDeviceThingModelManagementCommandUpdateAsyncData = { + query?: { + input?: DeviceThingModelCommandInfoUpdateInput; + }; +}; + +export type PostDeviceThingModelManagementCommandUpdateAsyncResponse = (DeviceThingModelCommandInfoDto); + +export type PostDeviceThingModelManagementCommandUpdateAsyncError = unknown; + +export type PostDeviceThingModelManagementCommandDeleteAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementCommandDeleteAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementCommandDeleteAsyncError = unknown; + +export type PostDeviceThingModelManagementCommandFindByIdAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementCommandFindByIdAsyncResponse = (DeviceThingModelCommandInfoDto); + +export type PostDeviceThingModelManagementCommandFindByIdAsyncError = unknown; + +export type PostDeviceThingModelManagementCommandPageAsyncData = { + query?: { + input?: DeviceThingModelCommandInfoPageInput; + }; +}; + +export type PostDeviceThingModelManagementCommandPageAsyncResponse = (DeviceThingModelCommandInfoDtoPagedResultDto); + +export type PostDeviceThingModelManagementCommandPageAsyncError = unknown; + +export type PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementCacheDeviceThingModelToRedisAsyncError = unknown; + +export type PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncResponse = (boolean); + +export type PostDeviceThingModelManagementCacheAllDeviceThingModelToRedisAsyncError = unknown; + export type PostFeaturesListData = { body?: GetFeatureListResultInput; }; @@ -5694,6 +6549,16 @@ export type PostOneNetProductProductStatusChangeAsyncResponse = (OneNETProductIn export type PostOneNetProductProductStatusChangeAsyncError = unknown; +export type PostOneNetProductUpdateThingModelAsyncData = { + query?: { + input?: IdInput; + }; +}; + +export type PostOneNetProductUpdateThingModelAsyncResponse = (OneNETProductInfoDto); + +export type PostOneNetProductUpdateThingModelAsyncError = unknown; + export type PostOneNetProductListAsyncData = { query?: { input?: OneNetProductInfoListInput; diff --git a/apps/web-antd/src/views/onenetmanagement/privateProduct/index.vue b/apps/web-antd/src/views/onenetmanagement/privateProduct/index.vue index 87b62a9..e9f9b51 100644 --- a/apps/web-antd/src/views/onenetmanagement/privateProduct/index.vue +++ b/apps/web-antd/src/views/onenetmanagement/privateProduct/index.vue @@ -23,8 +23,6 @@ import { import { TableAction } from '#/components/table-action'; import { $t } from '#/locales'; -import ThingModelInfoModal from '#/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue'; - import { addProductFormSchema, editProductFormSchemaEdit, @@ -78,10 +76,6 @@ const editRow: Record = ref({}); // 声明文件变量,用于存储选择的文件 let selectedFile: File | null = null; -// 物模型模态框相关状态 -const thingModelModalVisible = ref(false); -const currentProductInfo = ref({}); - // 设置文件选择回调 setFileSelectedCallback((file) => { selectedFile = file; @@ -330,22 +324,15 @@ function onDeviceManagement(record: any) { // 物模型管理函数 function onThingModelManagement(record: any) { console.log('物模型管理按钮被点击', record); - // 设置当前产品信息 - currentProductInfo.value = { - productId: record.ioTPlatformProductId, - productName: record.productName, - ioTPlatform: '2', // OneNET平台类型为2 - }; - console.log('设置产品信息:', currentProductInfo.value); - // 打开物模型模态框 - thingModelModalVisible.value = true; - console.log('模态框状态设置为:', thingModelModalVisible.value); -} - -// 关闭物模型模态框 -function closeThingModelModal() { - thingModelModalVisible.value = false; - currentProductInfo.value = {}; + // 跳转到物模型管理页面,传递平台类型和平台产品ID作为参数 + router.push({ + path: '/thingmodelinfo/ioTPlatformThingModelInfo', + query: { + productId: record.ioTPlatformProductId, // 平台产品ID + productName: record.productName, + ioTPlatform: '2', // OneNET平台类型为2 + }, + }); } @@ -428,14 +415,5 @@ function closeThingModelModal() { - - - diff --git a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue index f9c975a..8383d5c 100644 --- a/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue +++ b/apps/web-antd/src/views/thingmodelinfo/ioTPlatformThingModelInfo/index.vue @@ -2,11 +2,12 @@ import type { VbenFormProps } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; -import { h, nextTick, ref, watch } from 'vue'; +import { h, nextTick, onMounted, ref, watch } from 'vue'; +import { useRoute } from 'vue-router'; -import { useVbenModal } from '@vben/common-ui'; +import { Page, useVbenModal } from '@vben/common-ui'; -import { message as Message, Modal, Tag } from 'ant-design-vue'; +import { message as Message, Tag } from 'ant-design-vue'; import { useVbenForm } from '#/adapter/form'; import { useVbenVxeGrid } from '#/adapter/vxe-table'; @@ -30,29 +31,15 @@ import { } from './schema'; defineOptions({ - name: 'ThingModelInfoModal', + name: 'IoTPlatformThingModelInfo', }); -const props = withDefaults(defineProps(), { - visible: false, - productId: '', - productName: '', - ioTPlatform: '2', -}); +const route = useRoute(); -// 定义emits -const emit = defineEmits<{ - close: []; - 'update:visible': [value: boolean]; -}>(); - -// 定义props -interface Props { - visible?: boolean; - productId?: string; - productName?: string; - ioTPlatform?: string; -} +// 从路由参数获取产品信息 +const productId = ref((route.query.productId as string) || ''); +const productName = ref((route.query.productName as string) || ''); +const ioTPlatform = ref((route.query.ioTPlatform as string) || '2'); const formOptions: VbenFormProps = { schema: querySchema.value, @@ -76,20 +63,38 @@ const gridOptions: VxeGridProps = { proxyConfig: { ajax: { query: async ({ page }, formValues) => { - const { data } = await postIoTplatformThingModelInfoPageAsync({ - query: { - input: { - pageIndex: page.currentPage, - pageSize: page.pageSize, - ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, - ioTPlatformProductId: props.productId, - ...(formValues?.SearchKeyWords && { searchKeyWords: formValues.SearchKeyWords }), + // 如果没有产品ID,直接返回空数据,让表格正常显示空白状态 + if (!productId.value) { + hasData.value = false; + return { + items: [], + totalCount: 0, + }; + } + + try { + const { data } = await postIoTplatformThingModelInfoPageAsync({ + query: { + input: { + pageIndex: page.currentPage, + pageSize: page.pageSize, + ioTPlatform: Number.parseInt(ioTPlatform.value) as 1 | 2, + ioTPlatformProductId: productId.value, + ...(formValues?.SearchKeyWords && { searchKeyWords: formValues.SearchKeyWords }), + }, }, - }, - }); - // 更新数据状态,检查是否有数据 - hasData.value = data?.items && data.items.length > 0; - return data; + }); + // 更新数据状态,检查是否有数据 + hasData.value = data?.items && data.items.length > 0; + return data || { items: [], totalCount: 0 }; + } catch (error) { + console.error('查询物模型信息失败:', error); + hasData.value = false; + return { + items: [], + totalCount: 0, + }; + } }, }, }, @@ -183,41 +188,69 @@ const [CopyForm, copyFormApi] = useVbenForm({ wrapperClass: 'grid-cols-2', }); -// 监听props变化,自动设置筛选条件 +// 监听路由参数变化,自动加载数据 watch( - () => [props.visible, props.productId, props.ioTPlatform], - async ([visible, productId, ioTPlatform]) => { - console.log('物模型模态框props变化:', { visible, productId, ioTPlatform }); - console.log('所有props:', props); - if (visible && productId) { - // 延迟执行,确保组件完全初始化 + () => [route.query.productId, route.query.ioTPlatform], + async ([newProductId, newIoTPlatform]) => { + if (newProductId) { + productId.value = newProductId as string; + } + if (newIoTPlatform) { + ioTPlatform.value = newIoTPlatform as string; + } + if (route.query.productName) { + productName.value = route.query.productName as string; + } + + // 延迟执行,确保组件完全初始化 + if (gridApi) { setTimeout(async () => { try { - // 设置表单筛选条件(如果有搜索关键词等筛选字段) - const filterValues: any = {}; - - // 注意:ioTPlatformProductId 已经在 API 调用中通过 props.productId 传递 - // 这里只需要设置查询表单中存在的字段(如 SearchKeyWords) - - console.log('设置筛选条件:', filterValues); - - // 设置筛选表单的值 - if (Object.keys(filterValues).length > 0) { - await gridApi.formApi.setValues(filterValues); - } - // 重新加载数据(即使没有筛选条件也要重新加载,因为 productId 可能已变化) await gridApi.reload(); } catch (error) { - console.error('设置筛选条件时出错:', error); + console.error('加载数据时出错:', error); } }, 100); } }, - { immediate: true }, + { immediate: false }, ); +// 页面初始化时加载数据 +onMounted(async () => { + // 从路由参数初始化 + if (route.query.productId) { + productId.value = route.query.productId as string; + } + if (route.query.productName) { + productName.value = route.query.productName as string; + } + if (route.query.ioTPlatform) { + ioTPlatform.value = route.query.ioTPlatform as string; + } + + // 延迟加载数据,确保表格已初始化 + // 即使没有 productId,也要触发一次查询,让表格显示空白状态 + await nextTick(); + setTimeout(async () => { + if (gridApi && gridApi.reload) { + try { + await gridApi.reload(); + } catch (error) { + console.error('初始化加载数据时出错:', error); + } + } + }, 300); +}); + // 新增和编辑提交的逻辑 async function submit() { + // 检查是否有产品ID + if (!productId.value) { + Message.error('产品ID不存在,无法保存物模型信息'); + return; + } + const isEdit = !!editRow.value.id; const formApi = isEdit ? editFormApi : addFormApi; const api = isEdit @@ -230,8 +263,8 @@ async function submit() { const fetchParams: any = { ...formValues, // 自动添加平台和产品信息 - ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, - ioTPlatformProductId: props.productId, + ioTPlatform: Number.parseInt(ioTPlatform.value) as 1 | 2, + ioTPlatformProductId: productId.value, // 编辑时需要添加ID ...(isEdit && { id: editRow.value.id }), }; @@ -270,16 +303,22 @@ const openAddModal = async () => { // 打开复制已有模型模态框 const openCopyAnotherThingModelModal = async () => { - console.log('打开复制模态框,当前props:', { - productId: props.productId, - productName: props.productName, - ioTPlatform: props.ioTPlatform, + console.log('打开复制模态框,当前参数:', { + productId: productId.value, + productName: productName.value, + ioTPlatform: ioTPlatform.value, }); copyModalApi.open(); }; // 复制提交逻辑 async function submitCopy() { + // 检查是否有产品ID + if (!productId.value) { + Message.error('产品ID不存在,无法复制物模型信息'); + return; + } + const { valid } = await copyFormApi.validate(); if (!valid) return; @@ -287,10 +326,10 @@ async function submitCopy() { console.log('复制提交参数:', { formValues, - props: { - productId: props.productId, - productName: props.productName, - ioTPlatform: props.ioTPlatform, + params: { + productId: productId.value, + productName: productName.value, + ioTPlatform: ioTPlatform.value, }, }); @@ -298,8 +337,8 @@ async function submitCopy() { const resp = await postIoTplatformThingModelInfoCopyAnotherThingModelAsync({ query: { input: { - ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, - ioTPlatformProductId: props.productId, + ioTPlatform: Number.parseInt(ioTPlatform.value) as 1 | 2, + ioTPlatformProductId: productId.value, sourceProductId: formValues.ioTPlatformProductId, }, }, @@ -340,12 +379,18 @@ async function onDel(record: any) { // 复制标准模型函数 async function copyStandardThingModel() { + // 检查是否有产品ID + if (!productId.value) { + Message.error('产品ID不存在,无法复制标准模型'); + return; + } + try { const resp = await postIoTplatformThingModelInfoCopyStandardThingModel({ query: { input: { - ioTPlatform: Number.parseInt(props.ioTPlatform) as 1 | 2, - ioTPlatformProductId: props.productId, + ioTPlatform: Number.parseInt(ioTPlatform.value) as 1 | 2, + ioTPlatformProductId: productId.value, }, }, }); @@ -360,80 +405,73 @@ async function copyStandardThingModel() { Message.error('复制标准模型失败'); } } - -// 关闭模态框 -function closeModal() { - emit('update:visible', false); - emit('close'); -} + @@ -442,5 +480,5 @@ function closeModal() { - +