refactor(api)!: align client with canonical HTTP contract

Route all feature requests through business API modules, sync generated DTOs, and add communication tests and architecture documentation.

BREAKING CHANGE: migrate the client to plural resource paths, canonical snake_case fields, ISO timestamps, and explicit paginated responses.
This commit is contained in:
2026-09-30 12:04:58 +08:00
parent 00c6eccb63
commit 8ba0212eec
34 changed files with 1137 additions and 1623 deletions
+5 -2
View File
@@ -10,10 +10,13 @@
"format": "prettier --write .",
"format:check": "prettier --check .",
"typecheck": "vue-tsc -b",
"check": "npm run lint && npm run format:check && npm run check:styles && npm run typecheck",
"check": "npm run lint && npm run format:check && npm run check:styles && npm run typecheck && npm test",
"check:styles": "node scripts/check-style-system.mjs",
"build": "vue-tsc -b && vite build",
"preview": "vite preview"
"preview": "vite preview",
"api:sync": "node scripts/sync-api-contract.mjs",
"api:check": "node scripts/sync-api-contract.mjs --check",
"test": "node --import ./scripts/test-resolver.mjs --test tests/*.test.mjs"
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",