YZProjectCloud/yanzhu-ui-vue3/src/api/device/iotConfig.js

53 lines
980 B
JavaScript
Raw Normal View History

2025-04-05 01:14:18 +08:00
import request from '@/utils/request'
// 查询配电箱配置列表
export function listIotConfig(query) {
return request({
url: '/manage/iotConfig/list',
method: 'get',
params: query
})
}
// 查询配电箱配置详细
export function getIotConfig(id) {
return request({
url: '/manage/iotConfig/' + id,
method: 'get'
})
}
2025-04-05 12:44:01 +08:00
// 配电箱配的点位信息
export function findIotConfigPoint(id) {
return request({
url: '/manage/iotConfig/findIotConfigPoint/' + id,
method: 'get'
})
}
2025-04-05 01:14:18 +08:00
// 新增配电箱配置
export function addIotConfig(data) {
return request({
url: '/manage/iotConfig',
method: 'post',
data: data
})
}
// 修改配电箱配置
export function updateIotConfig(data) {
return request({
url: '/manage/iotConfig',
method: 'put',
data: data
})
}
// 删除配电箱配置
export function delIotConfig(id) {
return request({
url: '/manage/iotConfig/' + id,
method: 'delete'
})
}