diff --git a/apps/web-antd/src/api/iot/thingmodel/index.ts b/apps/web-antd/src/api/iot/thingmodel/index.ts index 354088704..9e89b869c 100644 --- a/apps/web-antd/src/api/iot/thingmodel/index.ts +++ b/apps/web-antd/src/api/iot/thingmodel/index.ts @@ -140,19 +140,11 @@ export function getThingModel(id: number) { /** 根据产品 ID 查询物模型列表 */ export function getThingModelListByProductId(productId: number) { return requestClient.get( - '/iot/thing-model/list-by-product-id', + '/iot/thing-model/list', { params: { productId } }, ); } -/** 根据产品标识查询物模型列表 */ -export function getThingModelListByProductKey(productKey: string) { - return requestClient.get( - '/iot/thing-model/list-by-product-key', - { params: { productKey } }, - ); -} - /** 新增物模型 */ export function createThingModel(data: ThingModelData) { return requestClient.post('/iot/thing-model/create', data); @@ -168,13 +160,6 @@ export function deleteThingModel(id: number) { return requestClient.delete(`/iot/thing-model/delete?id=${id}`); } -/** 批量删除物模型 */ -export function deleteThingModelList(ids: number[]) { - return requestClient.delete('/iot/thing-model/delete-list', { - params: { ids: ids.join(',') }, - }); -} - /** 获取物模型 TSL */ export function getThingModelTSL(productId: number) { return requestClient.get(