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:
DEV_DSW
2026-04-20 16:42:04 +08:00
parent 44dfe51eaf
commit 2eaa8951f6
16 changed files with 996 additions and 39 deletions

14
src/api/index.ts Normal file
View 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';