import request from '@/config/axios' export interface CarrierVO { code: string name: string shortName: string address: string country: string city: string phone: string fax: string postId: string contacts: string bank: string currency: string taxRate: number type: string activeTime: Date expireTime: Date remark: string available: string } // 查询承运商列表 export const getCarrierPage = async (params) => { return await request.get({ url: `/wms/carrier/page`, params }) } // 查询承运商详情 export const getCarrier = async (id: number) => { return await request.get({ url: `/wms/carrier/get?id=` + id }) } // 新增承运商 export const createCarrier = async (data: CarrierVO) => { return await request.post({ url: `/wms/carrier/create`, data }) } // 修改承运商 export const updateCarrier = async (data: CarrierVO) => { return await request.put({ url: `/wms/carrier/update`, data }) } // 删除承运商 export const deleteCarrier = async (id: number) => { return await request.delete({ url: `/wms/carrier/delete?id=` + id }) } // 导出承运商 Excel export const exportCarrier = async (params) => { return await request.download({ url: `/wms/carrier/export-excel`, params }) }