Files
aiot-uniapp/openapi-ts-request.config.ts
feige996 3b14ab942f Revert "Merge branch 'openapi'"
This reverts commit 9a6f0acdf0, reversing
changes made to 08a81e433b.
2025-09-23 18:01:20 +08:00

14 lines
463 B
TypeScript

import type { GenerateServiceProps } from 'openapi-ts-request'
export default [
{
schemaPath: 'http://petstore.swagger.io/v2/swagger.json',
serversPath: './src/service',
requestLibPath: `import request from '@/http/vue-query';\n import { CustomRequestOptions } from '@/http/types';`,
requestOptionsType: 'CustomRequestOptions',
isGenReactQuery: false,
reactQueryMode: 'vue',
isGenJavaScript: false,
},
] as GenerateServiceProps[]