!232 iot产品管理问题修复接口

Merge pull request !232 from huppygo/dev
This commit is contained in:
xingyu
2025-10-20 01:59:37 +00:00
committed by Gitee
33 changed files with 926 additions and 679 deletions

View File

@@ -175,17 +175,27 @@ export function deleteThingModelList(ids: number[]) {
});
}
/** 导入物模型 TSL */
/** 获取物模型 TSL */
export function getThingModelTSL(productId: number) {
return requestClient.get<ThingModelApi.ThingModel[]>(
'/iot/thing-model/get-tsl',
{ params: { productId } },
);
}
/** 导入物模型 TSL
export function importThingModelTSL(productId: number, tslData: any) {
return requestClient.post('/iot/thing-model/import-tsl', {
productId,
tslData,
});
}
*/
/** 导出物模型 TSL */
/** 导出物模型 TSL
export function exportThingModelTSL(productId: number) {
return requestClient.get<any>('/iot/thing-model/export-tsl', {
params: { productId },
});
}
*/