import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { deviceQuery, deviceVO } from './types';
// 设备分组
export const devicegroupList = (params) => {
    return request({
        url: '/api/device/group/list',
        method: 'get',
        params: params
    });
};
// 设备列表
export const deviceControlCenterList = (params) => {
    return request({
        url: '/api/device/list',
        method: 'get',
        params: params
    });
};

// 设备详情
export const deviceDeatil = (id) => {
    return request({
        url: `/api/bjq/device/${id}`,
        method: 'get',
    });
};
// 人员信息发送
export const registerPersonInfo = (data: any) => {
    return request({
        url: `/api/bjq/device/registerPersonInfo`,
        method: 'post',
        data: data
    });
};
// 灯光亮度
export const lightBrightnessSettings = (data: any) => {
    return request({
        url: `/api/bjq/device/lightBrightnessSettings`,
        method: 'post',
        data: data
    });
};
// 灯光模式
export const lightModeSettings = (data: any) => {
    return request({
        url: `/api/bjq/device/lightModeSettings`,
        method: 'post',
        data: data
    });
};
// 激光模式
export const laserModeSettings = (data: any) => {
    return request({
        url: `/api/bjq/device/laserModeSettings`,
        method: 'post',
        data: data
    });
};
// 强制报警
export const sendAlarmMessage = (data: any) => {
    return request({
        url: `/api/bjq/device/sendAlarmMessage`,
        method: 'post',
        data: data
    });
};
// 获取设备实时状态
export const deviceRealTimeStatus = (params: any) => {
    return request({
        url: `/api/device/realTimeStatus`,
        method: 'get',
        params: params
    });
};
// 发送信息
export const deviceSendMessage = (data: any) => {
    return request({
        url: `/api/bjq/device/sendMessage`,
        method: 'post',
        data: data
    });
};


export default {
    devicegroupList,
    deviceControlCenterList,
    deviceDeatil,
    registerPersonInfo,
    lightBrightnessSettings,
    lightModeSettings,
    laserModeSettings,
    sendAlarmMessage,
    deviceRealTimeStatus,
    deviceSendMessage
};