import { defHttp } from '/@/utils/http/axios';
enum Api {
    list = '/zcgl/gzdjsydaylyhsjcxxtz/list', // 政策法规类型
    listHis = '/zcgl/gzdjsydaylyhsjcxxtz/listHis', // 政策法规类型
    Add = '/zcgl/gzdjsydaylyhsjcxxtz/add',
    Edit = '/zcgl/gzdjsydaylyhsjcxxtz/edit',
    Del = '/zcgl/gzdjsydaylyhsjcxxtz/delete',
    ExportUrl = '/zcgl/gzdjsydaylyhsjcxxtz/exportXls',
    ImportUrl = '/zcgl/gzdjsydaylyhsjcxxtz/importExcel',
    searDkbm = '/qdml/likeWrdkbm',
    aqlyltj = '/zcgl/gzdjsydaylyhsjcxxtz/aqlyltj'
}

export const list = (params) => defHttp.get({ url: Api.list, params });
export const listHis = (params) => defHttp.get({ url: Api.listHis, params });
export const aqlyltj = (params) => defHttp.get({ url: Api.aqlyltj, params });
export const saveAdd = (params) => defHttp.post({ url: Api.Add, params });
export const saveEdit = (params) => defHttp.post({ url: Api.Edit, params });
export const del = (params) => defHttp.post({ url: Api.Del, params });
export const getExportUrl = Api.ExportUrl;
export const getImportUrl = Api.ImportUrl;
export const searDkbm = (params) => defHttp.get({ url: Api.searDkbm, params });
