22 lines
512 B
TypeScript
22 lines
512 B
TypeScript
import { request } from '@umijs/max';
|
|
|
|
export async function orderPage(bodys) {
|
|
return request('/api/orders/page', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: bodys || {},
|
|
});
|
|
}
|
|
|
|
export async function orderExport(body) {
|
|
return request('/api/orders/export', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
},
|
|
data: body || {},
|
|
});
|
|
}
|