jsy-app/api/system/controlOtherInterface.js

26 lines
532 B
JavaScript
Raw Normal View History

2024-12-19 18:12:16 +08:00
import request from '@/utils/request'
//根据地块id获取首部设备
2025-01-16 09:46:32 +08:00
export function getOtherDeviceList(id) {
return request({
url: "/system/controlOthersInterface/list/" + id,
method: "get"
})
2024-12-19 18:12:16 +08:00
}
2025-01-16 09:46:32 +08:00
//根据设备id获取首部设备
export function getOtherDevice(id) {
return request({
url: '/system/controlOthersInterface/device/' + id,
method: 'get'
})
}
2024-12-19 18:12:16 +08:00
// 设备控制
export function controlHeadSwitch(obj) {
2025-01-16 09:46:32 +08:00
return request({
url: "/system/controlHeadInterface/control",
method: "post",
data: obj
})
2024-12-19 18:12:16 +08:00
}