119 lines
3.0 KiB
TypeScript
119 lines
3.0 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import { request } from 'umi';
|
|
|
|
/** 此处后端没有提供注释 POST /statistics/getCustomerOrders */
|
|
export async function statisticscontrollerGetcustomerorders(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/statistics/getCustomerOrders', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /statistics/inactiveUsersByMonth */
|
|
export async function statisticscontrollerGetinativeusersbymonth(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.statisticscontrollerGetinativeusersbymonthParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/statistics/inactiveUsersByMonth', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /statistics/order */
|
|
export async function statisticscontrollerGetorderstatistics(
|
|
body: API.OrderStatisticsParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/statistics/order', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /statistics/orderByDate */
|
|
export async function statisticscontrollerGetorderbydate(
|
|
body: string,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/statistics/orderByDate', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /statistics/orderByEmail */
|
|
export async function statisticscontrollerGetorderbyemail(
|
|
body: string,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/statistics/orderByEmail', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /statistics/orderSource */
|
|
export async function statisticscontrollerGetordersorce(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<any>('/statistics/orderSource', {
|
|
method: 'GET',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /statistics/restocking */
|
|
export async function statisticscontrollerRestocking(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/statistics/restocking', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /statistics/stockForecast */
|
|
export async function statisticscontrollerStockforecast(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/statistics/stockForecast', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|