feat(api): generate and update API client modules
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.
This commit is contained in:
23
src/api/userOrderDetail.ts
Normal file
23
src/api/userOrderDetail.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/* 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 || {}),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user