import request from '@/utils/request/index.js'
/**
 * 可视监控模块
 */

// 可视监控数据请求父类函数
const cameraRequest =async (url, data) => {
	const res = await request.post(`api/api_gateway?method=camera.camera_manage.${url}`, data);
	return res?.data;
}
// 监控列表
export const getCameraList = (data) => cameraRequest('list_camera', data);

// 播放地址
export const getCameraAddress = (data) => cameraRequest('addr_camera_list', data);

// 监控控制
export const controlCamera = (data) => cameraRequest('ctrl_camera', data);
