Commit 385f3cd6 by 14796

设备信息前端代码

parent 07042656
import request from '@/utils/request'
// 查询设备信息列表
export function listDevice(query) {
return request({
url: '/system/device/list',
method: 'get',
params: query
})
}
// 查询设备信息详细
export function getDevice(id) {
return request({
url: '/system/device/' + id,
method: 'get'
})
}
// 新增设备信息
export function addDevice(data) {
return request({
url: '/system/device',
method: 'post',
data: data
})
}
// 修改设备信息
export function updateDevice(data) {
return request({
url: '/system/device',
method: 'put',
data: data
})
}
// 删除设备信息
export function delDevice(id) {
return request({
url: '/system/device/' + id,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询设备网关信息列表
export function listGateway(query) {
return request({
url: '/system/gateway/list',
method: 'get',
params: query
})
}
// 查询设备网关信息详细
export function getGateway(id) {
return request({
url: '/system/gateway/' + id,
method: 'get'
})
}
// 新增设备网关信息
export function addGateway(data) {
return request({
url: '/system/gateway',
method: 'post',
data: data
})
}
// 修改设备网关信息
export function updateGateway(data) {
return request({
url: '/system/gateway',
method: 'put',
data: data
})
}
// 删除设备网关信息
export function delGateway(id) {
return request({
url: '/system/gateway/' + id,
method: 'delete'
})
}
import request from '@/utils/request'
// 查询设备操作日志列表
export function listLog(query) {
return request({
url: '/system/log/list',
method: 'get',
params: query
})
}
// 查询设备操作日志详细
export function getLog(id) {
return request({
url: '/system/log/' + id,
method: 'get'
})
}
// 新增设备操作日志
export function addLog(data) {
return request({
url: '/system/log',
method: 'post',
data: data
})
}
// 修改设备操作日志
export function updateLog(data) {
return request({
url: '/system/log',
method: 'put',
data: data
})
}
// 删除设备操作日志
export function delLog(id) {
return request({
url: '/system/log/' + id,
method: 'delete'
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment