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`);
|
};
|