zhitong.yu
8 天以前 378d781e6f35f89652aa36e079a8b7fc44cea77e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
};