import request from "@/utils/request"; // 查询巡查案件分页 export function pagepatrolCase(query) { return request({ url: "/business/patrolCase/page", method: "get", params: query, }); } // 分页查询我的巡查案件 export function pagepatrolMyCase(query) { return request({ url: "/business/patrolCase/page_my", method: "get", params: query, }); } // 查询巡查案件列表 export function listpatrolCase(query) { return request({ url: "/business/patrolCase/list", method: "get", params: query, }); } // 查询巡查案件详细 export function getpatrolCase(id) { return request({ url: "/business/patrolCase/" + id, method: "get", }); } // 新增巡查案件 export function addpatrolCase(data) { return request({ url: "/business/patrolCase/add", method: "post", data: data, }); } // 修改巡查案件 export function updatepatrolCase(data) { return request({ url: "/business/patrolCase/edit", method: "put", data: data, }); } // 删除巡查案件 export function delpatrolCase(id) { return request({ url: "/business/patrolCase/" + id, method: "delete", }); } // 列表查询与我相关的巡查案件 export function myCase(data) { return request({ url: "/business/patrolCase/myCase", method: "get", params: data, }); } // 提交巡查案件 export function submitCase(data) { return request({ url: "/business/patrolCase/submit", method: "put", data: data, }); } // 作废巡查案件 export function deprecate(data) { return request({ url: "/business/patrolCase/deprecate", method: "put", data: data, }); }