import { ResPage, User } from "@/api/interface/index";
|
import http from "@/api";
|
|
/**
|
* @name 监控配置管理模块
|
*/
|
// 获取监控配置信息
|
export const getVideoList = (params: User.ReqUserParams) => {
|
return http.post<ResPage<User.ResUserList>>(`/Video/FindVideoInfo`, params);
|
};
|
|
// 添加监控到地图
|
export const AddVideoMap = () => {
|
return http.post(`/Video/AddVideoMap`);
|
};
|
|
// 新增监控
|
export const addVideo = (params: { id: string }) => {
|
return http.post(`/Video/add`, params);
|
};
|
|
// 编辑监控
|
export const editVideo = (params: { id: string }) => {
|
return http.post(`/Video/update`, params);
|
};
|
|
// 删除监控
|
export const deleteVideo = (params: { id: string[] }) => {
|
return http.post(`/Video/delete`, params);
|
};
|