This commit is contained in:
白菜
2025-11-07 10:59:34 +08:00
parent eb5abec9ff
commit 1772c7e0e5
3 changed files with 321 additions and 0 deletions

View File

@ -145,3 +145,39 @@ export function importPointList(data) {
data
})
}
//mqtt
export function getMqttList({pageSize,pageNum,mqttTopic,topicName}) {
return request({
url: `/ems/mqttConfig/list?pageSize=${pageSize}&pageNum=${pageNum}&mqttTopic=${mqttTopic}&topicName=${topicName}`,
method: 'get',
})
}
export function getMqttDetail(id) {
return request({
url: `/ems/mqttConfig/${id}`,
method: 'get',
})
}
export function addMqtt(data) {
return request({
url: `/ems/mqttConfig`,
method: 'post',
data
})
}
export function editMqtt(data) {
return request({
url: `/ems/mqttConfig`,
method: 'put',
data
})
}
export function deleteMqtt(id) {
return request({
url: `/ems/mqttConfig/${id}`,
method: 'delete',
})
}