chenkPlan.ts
654 Bytes
import { defHttp } from '/@/utils/http/axios';
import {omit} from "lodash-es";
/**
* 获取列表
*/
export const getPlanList = (params) => {
const { page, pageSize } = params;
const otherParams = omit(params, ['page', 'pageSize']);
return defHttp.get<any>({
url: `/checkPlan?page=${page}&pageSize=${pageSize}`,
params: otherParams,
});
};
/**
* 新增
*/
export const equipmentPlanCategory = (params) => {
return defHttp.post<any>({
url: `/checkPlan/save`,
params,
});
};
/**
* 删除
*/
export const deleteEquipmentPlan = (params) => {
return defHttp.get<any>({
url: `/checkPlan/delete`,
params,
});
};