From 9129b1eb416d67c01451dacae774d388e790a860 Mon Sep 17 00:00:00 2001 From: haohao <1036606149@qq.com> Date: Mon, 10 Nov 2025 15:11:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E3=80=90antd=E3=80=91=E3=80=90iot=E3=80=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B9=E6=8D=AE=E4=BA=A7=E5=93=81=20ID=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=89=A9=E6=A8=A1=E5=9E=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/iot/thingmodel/index.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) 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(