DBSD_ZJPT/jeecgboot-vue3/src/views/bl/lwkhcl/LwKhcl.api.ts

30 lines
836 B
TypeScript
Raw Normal View History

2024-09-06 13:59:57 +08:00
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/lwKhcl/lwKhcl/list',
cjList = '/lwKhcl/lwKhcl/cjList',
xqList = '/lwKhcl/lwKhcl/xqList',
exportXls = '/lwKhcl/lwKhcl/exportXls',
cjExportXls = '/lwKhcl/lwKhcl/cjExportXls',
xqExportXls = '/lwKhcl/lwKhcl/xqExportXls',
}
/**
* api
* @param params
*/
export const getExportUrl = Api.exportXls;
export const getCjExportUrl = Api.cjExportXls;
export const getXqExportUrl = Api.xqExportXls;
/**
*
* @param params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
export const cjList = (params) => defHttp.get({ url: Api.cjList, params });
export const xqList = (params) => defHttp.get({ url: Api.xqList, params });