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'
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
|
import qs from 'qs'
|
|
|
|
|
|
|
|
// 添加设备
|
|
|
|
export function createDevice(data) {
|
|
|
|
return request({ url: '/device/createDevice', method: 'post', params: data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取设备列表
|
|
|
|
export function getDevicePage(data) {
|
|
|
|
return request({ url: '/device/getDevicePage', method: 'GET', params: data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 更新设备信息
|
|
|
|
export function updateDevice(data) {
|
|
|
|
return request({ url: '/device/updateDevice', method: 'post', params: data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 根据ID获取单条
|
|
|
|
export function getInfoById(data) {
|
|
|
|
return request({ url: '/device/getInfoById', method: 'GET', params: data })
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 创建消息消费者
|
|
|
|
export function createCallConsumer() {
|
|
|
|
return request({ url: '/call/createCallConsumer', method: 'GET', })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取消息列表
|
|
|
|
export function getCallMessageList(data) {
|
|
|
|
return request({ url: '/call/getCallMessageList', method: 'GET', params: data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 提交消息偏移量
|
|
|
|
export function doCallMessageOffsets(data) {
|
|
|
|
return request({ url: '/call/doCallMessageOffsets', method: 'GET', params: data })
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取所有防区状态
|
|
|
|
export function getCallZoneStatusList(data) {
|
|
|
|
return request({ url: '/call/getCallZoneStatusList', method: 'GET' })
|
|
|
|
}
|