You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
744 B
44 lines
744 B
import request from '@/utils/request'
|
|
|
|
// 查询设备指令列表
|
|
export function listDevcmd(query) {
|
|
return request({
|
|
url: '/devCmd/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询设备指令详细
|
|
export function getDevcmd(codeId) {
|
|
return request({
|
|
url: '/devCmd/' + codeId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增设备指令
|
|
export function addDevcmd(data) {
|
|
return request({
|
|
url: '/devCmd',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改设备指令
|
|
export function updateDevcmd(data) {
|
|
return request({
|
|
url: '/devCmd',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除设备指令
|
|
export function delDevcmd(codeId) {
|
|
return request({
|
|
url: '/devCmd/' + codeId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|