// @ts-ignore /* eslint-disable */ import { request } from 'umi'; /** 此处后端没有提供注释 POST /logistics/createShipment/${param0} */ export async function logisticscontrollerCreateshipment( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.logisticscontrollerCreateshipmentParams, body: API.ShipmentBookDTO, options?: { [key: string]: any }, ) { const { orderId: param0, ...queryParams } = params; return request(`/logistics/createShipment/${param0}`, { method: 'POST', headers: { 'Content-Type': 'application/json', }, params: { ...queryParams }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 POST /logistics/getShipmentFee */ export async function logisticscontrollerGetShipmentFee( body: API.ShipmentBookDTO, options?: { [key: string]: any }, ) { return request(`/logistics/getShipmentFee`, { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 POST /logistics/getShipmentLabel/${param0} */ export async function logisticscontrollerGetShipmentLabel( shipmentId: number ) { return request(`/logistics/getShipmentLabel/${shipmentId}`, { method: 'POST', headers: { 'Content-Type': 'application/json', } }); } /** 此处后端没有提供注释 POST /logistics/updateState/${param0}**/ export async function logisticscontrollerGetShipmentState( shipmentId: number ) { return request(`/logistics/updateState/${shipmentId}`, { method: 'POST', headers: { 'Content-Type': 'application/json', } }) } /** 此处后端没有提供注释 DEL /logistics/deleteShipment/${param0} */ export async function logisticscontrollerDeleteShipment( shipmentId: number ) { return request(`/logistics/deleteShipment/${shipmentId}`, { method: 'POST', headers: { 'Content-Type': 'application/json', } }); } /** 此处后端没有提供注释 POST /logistics/createShippingAddress */ export async function logisticscontrollerCreateshippingaddress( body: API.ShippingAddress, options?: { [key: string]: any }, ) { return request('/logistics/createShippingAddress', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 DELETE /logistics/delShippingAddress/${param0} */ export async function logisticscontrollerDelshippingaddress( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.logisticscontrollerDelshippingaddressParams, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/logistics/delShippingAddress/${param0}`, { method: 'DELETE', params: { ...queryParams }, ...(options || {}), }); } /** 此处后端没有提供注释 POST /logistics/getListByTrackingId */ export async function logisticscontrollerGetlistbytrackingid( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.logisticscontrollerGetlistbytrackingidParams, options?: { [key: string]: any }, ) { return request('/logistics/getListByTrackingId', { method: 'POST', params: { ...params, }, ...(options || {}), }); } /** 此处后端没有提供注释 POST /logistics/getPaymentMethods */ export async function logisticscontrollerGetpaymentmethods(options?: { [key: string]: any; }) { return request('/logistics/getPaymentMethods', { method: 'POST', ...(options || {}), }); } /** 此处后端没有提供注释 POST /logistics/getRateList */ export async function logisticscontrollerGetratelist( body: API.ShippingDetailsDTO, options?: { [key: string]: any }, ) { return request('/logistics/getRateList', { method: 'POST', headers: { 'Content-Type': 'application/json', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 GET /logistics/getServiceList */ export async function logisticscontrollerGetservicelist( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.logisticscontrollerGetservicelistParams, options?: { [key: string]: any }, ) { return request('/logistics/getServiceList', { method: 'GET', params: { ...params, }, ...(options || {}), }); } /** 此处后端没有提供注释 GET /logistics/getShippingAddressList */ export async function logisticscontrollerGetshippingaddresslist(options?: { [key: string]: any; }) { return request( '/logistics/getShippingAddressList', { method: 'GET', ...(options || {}), }, ); } /** 此处后端没有提供注释 POST /logistics/getTrackingNumber */ export async function logisticscontrollerGettrackingnumber( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.logisticscontrollerGettrackingnumberParams, options?: { [key: string]: any }, ) { return request('/logistics/getTrackingNumber', { method: 'POST', params: { ...params, }, ...(options || {}), }); } /** 此处后端没有提供注释 GET /logistics/list */ export async function logisticscontrollerGetlist(options?: { [key: string]: any; }) { return request('/logistics/list', { method: 'GET', ...(options || {}), }); } /** 此处后端没有提供注释 DELETE /logistics/shipment/${param0} */ export async function logisticscontrollerDelshipment( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.logisticscontrollerDelshipmentParams, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/logistics/shipment/${param0}`, { method: 'DELETE', params: { ...queryParams }, ...(options || {}), }); } /** 此处后端没有提供注释 POST /logistics/syncServices */ export async function logisticscontrollerSyncservices(options?: { [key: string]: any; }) { return request('/logistics/syncServices', { method: 'POST', ...(options || {}), }); } /** 此处后端没有提供注释 POST /logistics/toggleActive */ export async function logisticscontrollerToggleactive( body: Record, options?: { [key: string]: any }, ) { return request('/logistics/toggleActive', { method: 'POST', headers: { 'Content-Type': 'text/plain', }, data: body, ...(options || {}), }); } /** 此处后端没有提供注释 PUT /logistics/updateShippingAddress/${param0} */ export async function logisticscontrollerUpdateshippingaddress( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.logisticscontrollerUpdateshippingaddressParams, body: API.ShippingAddress, options?: { [key: string]: any }, ) { const { id: param0, ...queryParams } = params; return request(`/logistics/updateShippingAddress/${param0}`, { method: 'PUT', headers: { 'Content-Type': 'application/json', }, params: { ...queryParams }, data: body, ...(options || {}), }); }