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 getFenceList = (params: User.ReqUserParams) => {
  return http.post<ResPage<User.ResUserList>>(`/Fence/FindFenceInfo`, params);
};
 
// 新增围栏
export const addFence = (params: { id: string }) => {
  return http.post(`/Fence/add`, params);
};
 
// 编辑围栏
export const editFence = (params: { id: string }) => {
  return http.post(`/Fence/update`, params);
};
 
// 删除围栏
export const deleteFence = (params: { id: string[] }) => {
  return http.post(`/Fence/delete`, params);
};
 
//首页平台展示围栏
export const FindScreenFence = () => {
  return http.post(`/Fence/FindScreenFence`);
};