Files
intc-iot-web/src/api/light/screenMonitor.js
2025-04-24 17:33:21 +08:00

44 lines
1.0 KiB
JavaScript

import request from '@/utils/request'
// 查询照明信息屏列表
export function listScreen(query) {
return request({
url: '/smartlight/infoScreen/list',
method: 'get',
params: query
})
}
// 控制信息屏开关、调光、调音量信息
export function updateInfoScreen(data) {
return request({
url: `/smartlight/light/deviceControl/infoScreen/${data.ids}/${data.controlType}/${data.controlValue}`,
method: 'put',
data
})
}
// 查询照明信息屏详情--基本信息
export function getScreenBasic(id) {
return request({
url: '/smartlight/infoScreen/getInfo/' + id,
method: 'get'
})
}
// 查询照明信息屏详情--上传信息
export function getScreenUpload(id) {
return request({
url: '/smartlight/infoScreen/getInfoScreenData/' + id,
method: 'get'
})
}
// 查询照明信息屏详情--当前策略
// 历史数据
export function getScreenHis(query) {
return request({
url: '/smartlight/infoScreen/history',
method: 'get',
params: query
})
}