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:
14
src/api/index.ts
Normal file
14
src/api/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/* eslint-disable */
|
||||
// @ts-ignore
|
||||
export * from './types';
|
||||
|
||||
export * from './code';
|
||||
export * from './oauth2';
|
||||
export * from './pcUser';
|
||||
export * from './configChannel';
|
||||
export * from './typeMapping';
|
||||
export * from './writeOff';
|
||||
export * from './commodityOrderList';
|
||||
export * from './userOrderDetail';
|
||||
export * from './createEvent';
|
||||
export * from './eventList';
|
||||
Reference in New Issue
Block a user