feat(service): 添加PetStore API服务层实现

实现PetStore API的所有服务接口,包括用户、宠物和商店相关操作
添加类型定义、基础API请求和Vue Query封装
配置openapi-ts-request生成器路径
This commit is contained in:
feige996
2025-08-05 17:52:54 +08:00
parent 46e59ee6f7
commit 96abac9c21
10 changed files with 953 additions and 1 deletions

View File

@@ -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,