import request from "@/utils/request"; // 查询储气罐预警列表 export const getStockWarningPage = (params) => { return request({ url: "/gasTankWarning/listPage", method: "get", params, }); }; // 新增储气罐预警规则 export const addStockWarning = (data) => { return request({ url: "/gasTankWarning/add", method: "post", data, }); }; // 修改储气罐预警规则 export const updateStockWarning = (data) => { return request({ url: "/gasTankWarning/update", method: "put", data, }); }; // 删除储气罐预警规则 export const deleteStockWarning = (ids) => { return request({ url: "/gasTankWarning/delete", method: "delete", data: { ids }, }); }; // 批量处理储气罐预警 export const batchProcessStockWarning = (data) => { return request({ url: "/gasTankWarning/batchProcess", method: "post", data, }); }; // 导出储气罐预警数据 export const exportStockWarning = (params) => { return request({ url: "/gasTankWarning/export", method: "get", params, responseType: "blob", }); }; // 根据ID获取储气罐预警详情 export const getStockWarningById = (id) => { return request({ url: `/gasTankWarning/${id}`, method: "get", }); }; // 启用/禁用预警规则 export const toggleStockWarningStatus = (data) => { return request({ url: "/gasTankWarning/toggleStatus", method: "put", data, }); }; // 获取预警统计信息 export const getStockWarningStatistics = () => { return request({ url: "/gasTankWarning/statistics", method: "get", }); };