import request from '/@/utils/request'; enum Api { AddMesSupplierType = '/api/mesSupplierType/add', DeleteMesSupplierType = '/api/mesSupplierType/delete', UpdateMesSupplierType = '/api/mesSupplierType/update', PageMesSupplierType = '/api/mesSupplierType/page', DetailMesSupplierType = '/api/mesSupplierType/detail', ListMesSupplierType = '/api/mesSupplierType/list', } export const getSupplierTypes = (params?: any) => request({ url: '/api/u8/getSupplierType', method: 'post', data: params, }); // 增加供应商类型 export const addMesSupplierType = (params?: any) => request({ url: Api.AddMesSupplierType, method: 'post', data: params, }); // 删除供应商类型 export const deleteMesSupplierType = (params?: any) => request({ url: Api.DeleteMesSupplierType, method: 'post', data: params, }); // 编辑供应商类型 export const updateMesSupplierType = (params?: any) => request({ url: Api.UpdateMesSupplierType, method: 'post', data: params, }); // 分页查询供应商类型 export const pageMesSupplierType = (params?: any) => request({ url: Api.PageMesSupplierType, method: 'post', data: params, }); // 详情供应商类型 export const detailMesSupplierType = (id: any) => request({ url: Api.DetailMesSupplierType, method: 'get', data: { id }, }); // 查询供应商类型列表 export const listMesSupplierType = (params?: any) => request({ url: Api.ListMesSupplierType, method: 'get', data: params, });