feat(GOV-009): 建立前端 OpenAPI 客户端边界

This commit is contained in:
2026-08-13 17:36:55 +08:00
parent 420aa22342
commit 4665336a63
11 changed files with 691 additions and 27 deletions
+3
View File
@@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite --host 127.0.0.1",
"api:generate": "openapi-typescript ../server/openapi/openapi.json -o src/api/generated/schema.ts",
"lint": "eslint .",
"typecheck": "vue-tsc --noEmit && tsc --noEmit -p tsconfig.node.json",
"test": "vitest run",
@@ -14,6 +15,7 @@
},
"dependencies": {
"naive-ui": "2.44.1",
"openapi-fetch": "0.17.0",
"pinia": "3.0.4",
"vue": "3.5.41",
"vue-router": "4.6.4"
@@ -26,6 +28,7 @@
"dotenv": "16.6.1",
"jsdom": "26.1.0",
"katex": "0.18.4",
"openapi-typescript": "7.13.0",
"sass": "1.102.0",
"typescript": "5.9.3",
"vite": "6.4.3",