jsy-app/api/controlHeadInterface.js
2024-12-18 16:26:40 +08:00

19 lines
420 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
//根据地块id获取首部设备
export function getHeadDeviceList(id){
    return request({
        url: "/system/controlHeadInterface/list/"+id,
        method: "get"
    })
}
// 首部设备控制
export function controlHeadSwitch(obj) {
return request({
url: "/system/controlHeadInterface/control",
method: "post",
data: obj
})
}