feat(api): restore and update api-request module structure

This commit is contained in:
DEV_DSW
2026-04-20 16:51:09 +08:00
parent 2eaa8951f6
commit 25102c2ae4
3 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ import { fileURLToPath } from 'url';
const __dirname = dirname(fileURLToPath(import.meta.url)); const __dirname = dirname(fileURLToPath(import.meta.url));
const rootDir = resolve(__dirname, '..'); const rootDir = resolve(__dirname, '..');
const templatePath = resolve(rootDir, 'src/utils/api-request.ts'); const templatePath = resolve(rootDir, 'src/lib/api-request.ts');
const targetPath = resolve(rootDir, 'src/api/request.ts'); const targetPath = resolve(rootDir, 'src/api/request.ts');
console.log('🔄 Restoring request.ts after openapi generation...'); console.log('🔄 Restoring request.ts after openapi generation...');

View File

@@ -1,4 +1,4 @@
import { hostApiFetch } from '@/lib/host-api'; import { hostApiFetch } from '@src/lib/host-api';
interface RequestOptions { interface RequestOptions {
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';

View File

@@ -1,4 +1,4 @@
import { hostApiFetch } from '@/lib/host-api'; import { hostApiFetch } from '@src/lib/host-api';
interface RequestOptions { interface RequestOptions {
method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';