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

44
src/api/worn/mqttEvent.js Normal file
View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询设备事件列表
export function listMqttEvent(query) {
return request({
url: '/worn/mqttEvent/list',
method: 'get',
params: query
})
}
// 查询设备事件详细
export function getMqttEvent(id) {
return request({
url: '/worn/mqttEvent/' + id,
method: 'get'
})
}
// 新增设备事件
export function addMqttEvent(data) {
return request({
url: '/worn/mqttEvent',
method: 'post',
data: data
})
}
// 修改设备事件
export function updateMqttEvent(data) {
return request({
url: '/worn/mqttEvent',
method: 'put',
data: data
})
}
// 删除设备事件
export function delMqttEvent(id) {
return request({
url: '/worn/mqttEvent/' + id,
method: 'delete'
})
}