Add new API client modules for various endpoints including authentication, orders, events, and configuration management. Update existing modules to use the standardized request utility. Add post-generation script to restore request.ts after openapi-ts generation to prevent file deletion issues. The API client generation now includes comprehensive TypeScript types and proper request handling for all endpoints. The request utility has been enhanced to handle query parameters and response parsing consistently across all API calls.
24 lines
533 B
TypeScript
24 lines
533 B
TypeScript
/* eslint-disable */
|
|
// @ts-ignore
|
|
import request from './request';
|
|
|
|
import * as API from './types';
|
|
|
|
/** 获取订单详情 获取订单详情 POST /order/userOrderDetail */
|
|
export function orderUserOrderDetailUsingPost({
|
|
body,
|
|
options,
|
|
}: {
|
|
body: API.UserOrderDetailSearchForm;
|
|
options?: { [key: string]: unknown };
|
|
}) {
|
|
return request<API.RUserOrderDetailDTO>('/order/userOrderDetail', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|