iot产品管理问题修复接口

This commit is contained in:
Administrator
2025-10-17 00:19:43 +08:00
parent 54afd4555d
commit 1190121773

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 },
});
}
*/