mqtt模块

This commit is contained in:
2026-04-07 14:39:01 +08:00
parent 9ed20d1c66
commit ba6396093e
11 changed files with 1880 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询指令管理列表
export function listMqttCommand(query) {
return request({
url: '/worn/mqttCommand/list',
method: 'get',
params: query
})
}
// 查询指令管理详细
export function getMqttCommand(id) {
return request({
url: '/worn/mqttCommand/' + id,
method: 'get'
})
}
// 新增指令管理
export function addMqttCommand(data) {
return request({
url: '/worn/mqttCommand',
method: 'post',
data: data
})
}
// 修改指令管理
export function updateMqttCommand(data) {
return request({
url: '/worn/mqttCommand',
method: 'put',
data: data
})
}
// 删除指令管理
export function delMqttCommand(id) {
return request({
url: '/worn/mqttCommand/' + id,
method: 'delete'
})
}