You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// 查询设备列表
|
|
|
|
export function getBoardList(query) {
|
|
|
|
return request({
|
|
|
|
url: '/business/device/query',
|
|
|
|
method: 'get',
|
|
|
|
params: {
|
|
|
|
...query,
|
|
|
|
deviceType:2
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询设备列表
|
|
|
|
export function getBoardDeviceInfo(deviceId) {
|
|
|
|
return request({
|
|
|
|
url: `/business/board/realtimeProperty/${deviceId}`,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
export function publishToBoard(data) {
|
|
|
|
return request({
|
|
|
|
url: '/dev-api/business/board/publish',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|