import { defHttp } from '/@/utils/http/axios';
enum Api {
    list = '/wjml/list', // 政策法规类型
    typeAdd = '/wjml/add',
    typeDel = '/wjml/delete',
    typeEdit = '/wjml/edit',
    fileList = '/wjmx/list',
    fileAdd = '/wjmx/add',
    fileEdit = '/wjmx/edit',
    fileDel = '/wjmx/delete',
}

export const typeList = (params) => defHttp.get({ url: Api.list, params });

export const typeAdd = (params) => defHttp.post({ url: Api.typeAdd, params });
export const typeDel = (params) => defHttp.post({ url: Api.typeDel, params });
export const typeEdit = (params) => defHttp.post({ url: Api.typeEdit, params });

export const fileList = (params) => defHttp.get({ url: Api.fileList, params });
export const fileAdd = (params) => defHttp.post({ url: Api.fileAdd, params });
export const fileEdit = (params) => defHttp.post({ url: Api.fileEdit, params });
export const fileDel = (params) => defHttp.post({ url: Api.fileDel, params });