Files
web-Iot/src/api/deviceAccess.ts

49 lines
653 B
TypeScript
Raw Normal View History

import request from './request';
2026-05-07 14:13:26 +08:00
//新增物模型
export function addDeviceModel(data) {
return request({
url: '/system/devicemodel/add',
method: 'post',
data
});
}
//物模型列表export function addDeviceModel(data) {
export function getDeviceModelList(params) {
return request({
2026-05-08 13:28:27 +08:00
url: '/system/devicemodel/list',
method: 'get',
params
});
}
//物模型修改
export function updateDeviceModel(data) {
return request({
url: '/system/devicemodel/update',
2026-05-07 14:13:26 +08:00
method: 'post',
data
});
}
2026-05-08 15:53:27 +08:00
//产品增加
export function addProduct(data) {
return request({
url: '/system/product/add',
method: 'post',
data
});
}
2026-05-07 14:13:26 +08:00