forked from yoone/WEB
260 lines
7.8 KiB
TypeScript
260 lines
7.8 KiB
TypeScript
// @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<API.BooleanRes>(`/logistics/createShipment/${param0}`, {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
params: { ...queryParams },
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/createShippingAddress */
|
|
export async function logisticscontrollerCreateshippingaddress(
|
|
body: API.ShippingAddress,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.BooleanRes>('/logistics/createShippingAddress', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/deleteShipment/${param0} */
|
|
export async function logisticscontrollerDeleteshipment(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.logisticscontrollerDeleteshipmentParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/logistics/deleteShipment/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(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<API.BooleanRes>(`/logistics/delShippingAddress/${param0}`, {
|
|
method: 'DELETE',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/getListByOrderId */
|
|
export async function logisticscontrollerGetlistbyorderid(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.logisticscontrollerGetlistbyorderidParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/logistics/getListByOrderId', {
|
|
method: 'POST',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/getOrderList */
|
|
export async function logisticscontrollerGetorderlist(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.logisticscontrollerGetorderlistParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/logistics/getOrderList', {
|
|
method: 'POST',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/getPaymentMethods */
|
|
export async function logisticscontrollerGetpaymentmethods(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<any>('/logistics/getPaymentMethods', {
|
|
method: 'POST',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/getRateList */
|
|
export async function logisticscontrollerGetratelist(
|
|
body: API.ShippingDetailsDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.RateLitRes>('/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<API.ServiceListRes>('/logistics/getServiceList', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/getShipmentFee */
|
|
export async function logisticscontrollerGetshipmentfee(
|
|
body: API.ShipmentFeeBookDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.BooleanRes>('/logistics/getShipmentFee', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/getShipmentLabel/${param0} */
|
|
export async function logisticscontrollerGetshipmentlabel(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.logisticscontrollerGetshipmentlabelParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { shipmentId: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/logistics/getShipmentLabel/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /logistics/getShippingAddressList */
|
|
export async function logisticscontrollerGetshippingaddresslist(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<API.ShippingAddressListRes>(
|
|
'/logistics/getShippingAddressList',
|
|
{
|
|
method: 'GET',
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /logistics/list */
|
|
export async function logisticscontrollerGetlist(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<any>('/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<any>(`/logistics/shipment/${param0}`, {
|
|
method: 'DELETE',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/syncServices */
|
|
export async function logisticscontrollerSyncservices(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<API.BooleanRes>('/logistics/syncServices', {
|
|
method: 'POST',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/toggleActive */
|
|
export async function logisticscontrollerToggleactive(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/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<API.BooleanRes>(`/logistics/updateShippingAddress/${param0}`, {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
params: { ...queryParams },
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /logistics/updateState/${param0} */
|
|
export async function logisticscontrollerUpdateshipmentstate(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.logisticscontrollerUpdateshipmentstateParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { shipmentId: param0, ...queryParams } = params;
|
|
return request<any>(`/logistics/updateState/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|