feat(service): openapi 适配

This commit is contained in:
feige996
2025-09-23 18:09:45 +08:00
parent 563b23cf2a
commit fee5f23d37
13 changed files with 120 additions and 764 deletions

View File

@@ -2,7 +2,7 @@ import type { GenerateServiceProps } from 'openapi-ts-request'
export default [
{
schemaPath: 'http://petstore.swagger.io/v2/swagger.json',
schemaPath: 'https://ukw0y1.laf.run/unibest-opapi-test.json',
serversPath: './src/service',
requestLibPath: `import request from '@/http/vue-query';\n import { CustomRequestOptions } from '@/http/types';`,
requestOptionsType: 'CustomRequestOptions',