import request from '/@/utils/request'; enum Api { AddMesProductionLineType = '/api/mesProductionLineType/add', DeleteMesProductionLineType = '/api/mesProductionLineType/delete', UpdateMesProductionLineType = '/api/mesProductionLineType/update', PageMesProductionLineType = '/api/mesProductionLineType/page', DetailMesProductionLineType = '/api/mesProductionLineType/detail', } // 增加产线类别 export const addMesProductionLineType = (params?: any) => request({ url: Api.AddMesProductionLineType, method: 'post', data: params, }); // 删除产线类别 export const deleteMesProductionLineType = (params?: any) => request({ url: Api.DeleteMesProductionLineType, method: 'post', data: params, }); // 编辑产线类别 export const updateMesProductionLineType = (params?: any) => request({ url: Api.UpdateMesProductionLineType, method: 'post', data: params, }); // 分页查询产线类别 export const pageMesProductionLineType = (params?: any) => request({ url: Api.PageMesProductionLineType, method: 'post', data: params, }); // 详情产线类别 export const detailMesProductionLineType = (id: any) => request({ url: Api.DetailMesProductionLineType, method: 'get', data: { id }, });