230 lines
6.8 KiB
TypeScript
230 lines
6.8 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import { request } from 'umi';
|
|
|
|
/** 此处后端没有提供注释 GET /order/${param0} */
|
|
export async function ordercontrollerGetorderdetail(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerGetorderdetailParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { orderId: param0, ...queryParams } = params;
|
|
return request<API.OrderDetailRes>(`/order/${param0}`, {
|
|
method: 'GET',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 DELETE /order/${param0} */
|
|
export async function ordercontrollerDelorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerDelorderParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/order/${param0}`, {
|
|
method: 'DELETE',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/createNote */
|
|
export async function ordercontrollerCreatenote(
|
|
body: API.CreateOrderNoteDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.BooleanRes>('/order/createNote', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/getOrderByNumber */
|
|
export async function ordercontrollerGetorderbynumber(
|
|
body: string,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/order/getOrderByNumber', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /order/getOrders */
|
|
export async function ordercontrollerGetorders(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerGetordersParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.OrderListRes>('/order/getOrders', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /order/getOrderSales */
|
|
export async function ordercontrollerGetordersales(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerGetordersalesParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.OrderSaleListRes>('/order/getOrderSales', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/order/cancel/${param0} */
|
|
export async function ordercontrollerCancelorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerCancelorderParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<any>(`/order/order/cancel/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/order/completed/${param0} */
|
|
export async function ordercontrollerCompletedorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerCompletedorderParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<any>(`/order/order/completed/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/order/create */
|
|
export async function ordercontrollerCreateorder(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/order/order/create', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/order/pengding/items */
|
|
export async function ordercontrollerPengdingitems(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/order/order/pengding/items', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/order/refund/${param0} */
|
|
export async function ordercontrollerRefundorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerRefundorderParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<any>(`/order/order/refund/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 PUT /order/order/status/${param0} */
|
|
export async function ordercontrollerChangestatus(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerChangestatusParams,
|
|
body: string,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<any>(`/order/order/status/${param0}`, {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
params: { ...queryParams },
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/syncOrder/${param0} */
|
|
export async function ordercontrollerSyncorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerSyncorderParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { siteId: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/order/syncOrder/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/syncOrder/${param1}/order/${param0} */
|
|
export async function ordercontrollerSyncorderbyid(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerSyncorderbyidParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { orderId: param0, siteId: param1, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/order/syncOrder/${param1}/order/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /order/updateOrderItems/${param0} */
|
|
export async function ordercontrollerUpdateorderitems(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.ordercontrollerUpdateorderitemsParams,
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { orderId: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/order/updateOrderItems/${param0}`, {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
params: { ...queryParams },
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|