feat: 新增api自动生成配置
This commit is contained in:
13
openapi-ts-request.config.ts
Normal file
13
openapi-ts-request.config.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { GenerateServiceProps } from 'openapi-ts-request'
|
||||
|
||||
export default [
|
||||
{
|
||||
serversPath: './src/renderer/api',
|
||||
requestLibPath: '@utils/request',
|
||||
apifoxConfig: {
|
||||
projectId: process.env.APIFOX_PROJECT_ID || '6424418',
|
||||
apifoxToken: process.env.APIFOX_ACCESS_TOKEN || ''
|
||||
},
|
||||
},
|
||||
] as GenerateServiceProps[]
|
||||
|
||||
Reference in New Issue
Block a user