refactor(service): 重构服务层代码并更新API配置

移除旧的pet、store、user相关API代码
新增listAll和info接口
更新openapi配置指向新API地址
在about页面添加openapi请求示例组件
This commit is contained in:
feige996
2025-09-23 15:54:35 +08:00
parent 08a81e433b
commit 5b78b0ef63
12 changed files with 119 additions and 763 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',