【功能新增】IoT: 获取产品物模型 TSL

This commit is contained in:
puhui999
2025-03-21 17:06:12 +08:00
parent a410fb40f6
commit 0743d372c2
3 changed files with 50 additions and 18 deletions

View File

@@ -58,11 +58,10 @@ export const ThingModelApi = {
return await request.get({ url: `/iot/thing-model/list`, params })
},
// 获得产品物模型
getThingModelListByProductId: async (params: any) => {
// 获得产品物模型 TSL
getThingModelTSLByProductId: async (productId: number) => {
return await request.get({
url: `/iot/thing-model/list-by-product-id`,
params
url: `/iot/thing-model/tsl-by-product-id?productId=${productId}`
})
},