Skip to content

Commit 11f9750

Browse files
author
puhui999
committed
【代码优化】IOT: 产品物模型代码评审问题优化
1 parent 9f819db commit 11f9750

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/api/iot/thinkmodel/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,34 +55,34 @@ export enum ProductFunctionAccessModeEnum {
5555
export const ThinkModelApi = {
5656
// 查询产品物模型分页
5757
getThinkModelPage: async (params: any) => {
58-
return await request.get({ url: `/iot/product-thing-model/page`, params })
58+
return await request.get({ url: `/iot/product-think-model/page`, params })
5959
},
6060

6161
// 获得产品物模型
6262
getThinkModelListByProductId: async (params: any) => {
6363
return await request.get({
64-
url: `/iot/product-thing-model/list-by-product-id`,
64+
url: `/iot/product-think-model/list-by-product-id`,
6565
params
6666
})
6767
},
6868

6969
// 查询产品物模型详情
7070
getThinkModel: async (id: number) => {
71-
return await request.get({ url: `/iot/product-thing-model/get?id=` + id })
71+
return await request.get({ url: `/iot/product-think-model/get?id=` + id })
7272
},
7373

7474
// 新增产品物模型
7575
createThinkModel: async (data: ThinkModelData) => {
76-
return await request.post({ url: `/iot/product-thing-model/create`, data })
76+
return await request.post({ url: `/iot/product-think-model/create`, data })
7777
},
7878

7979
// 修改产品物模型
8080
updateThinkModel: async (data: ThinkModelData) => {
81-
return await request.put({ url: `/iot/product-thing-model/update`, data })
81+
return await request.put({ url: `/iot/product-think-model/update`, data })
8282
},
8383

8484
// 删除产品物模型
8585
deleteThinkModel: async (id: number) => {
86-
return await request.delete({ url: `/iot/product-thing-model/delete?id=` + id })
86+
return await request.delete({ url: `/iot/product-think-model/delete?id=` + id })
8787
}
8888
}

0 commit comments

Comments
 (0)