zhxy-jsd/src/api/base/xcXmApi.ts
2025-07-31 23:42:12 +08:00

44 lines
856 B
TypeScript

import { get, post } from "@/utils/request";
/**
* 分页查询
*/
export const xcXmFindPageApi = async (params: any) => {
return await get("/api/xcXm/findPage", params);
};
/**
* 新增/修改
*/
export const xcXmSaveApi = async (params: any) => {
return await post("/api/xcXm/save", params);
};
/**
* 删除
*/
export const xcXmLogicDeleteApi = async (params: any) => {
return await post("/api/xcXm/logicDelete", params);
};
/**
* 根据id查询
*/
export const xcXmFindByIdApi = async (params: any) => {
return await get("/api/xcXm/findById", params);
};
/**
* 查询全部
*/
export const xcXmFindAllApi = async () => {
return await get("/api/xcXm/findAll");
};
/**
* 根据巡查类型查询项目列表
*/
export const xcXmFindByXcLxApi = async (xcLx: string) => {
return await get("/api/xcXm/findByXcLx", { xcLx });
};