feat(service): 添加PetStore API服务层实现
实现PetStore API的所有服务接口,包括用户、宠物和商店相关操作 添加类型定义、基础API请求和Vue Query封装 配置openapi-ts-request生成器路径
This commit is contained in:
@@ -3,7 +3,7 @@ import type { GenerateServiceProps } from 'openapi-ts-request'
|
||||
export default [
|
||||
{
|
||||
schemaPath: 'http://petstore.swagger.io/v2/swagger.json',
|
||||
serversPath: './src/service/app',
|
||||
serversPath: './src/service',
|
||||
requestLibPath: `import request from '@/http/vue-query';\n import { CustomRequestOptions } from '@/http/interceptor';`,
|
||||
requestOptionsType: 'CustomRequestOptions',
|
||||
isGenReactQuery: true,
|
||||
|
||||
Reference in New Issue
Block a user