gcx/backend/services/admin-service
hailin 7c8b79161a feat(upload): parse=upload+save+metadata, register=JSON only — no double upload
Previously the flow uploaded the 53MB file twice:
  1. POST /parse  → parse metadata (file discarded)
  2. POST /upload → parse again + save (file sent again)

New flow — file sent exactly once:
  1. POST /parse  → upload file, save to disk, parse metadata
                    returns {versionName, versionCode, minSdkVersion, storageKey, fileSize, fileSha256}
  2. POST /register → JSON only (no file), creates DB record using storageKey

Frontend:
- handleFileChange: async, immediately uploads to /parse with progress bar (0-100%)
- handleSubmit: calls /register with storageKey + form metadata (instant)
- Upload modal: real-time progress bar, "confirm" button disabled until parse complete
- Console logs at every step for debugging

Backend:
- POST /parse: saves file after parsing, returns storageKey in response
- POST /register: new endpoint, accepts JSON + storageKey, creates version record

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 07:19:28 -08:00
..
src feat(upload): parse=upload+save+metadata, register=JSON only — no double upload 2026-03-07 07:19:28 -08:00
Dockerfile fix(health): 修正NestJS服务健康检查URL路径 /health → /api/v1/health 2026-02-20 05:50:26 -08:00
deploy.sh feat: 新增 deploy.sh 部署管理脚本体系 — 后端主控+12服务独立+区块链 2026-02-19 17:13:09 -08:00
nest-cli.json refactor: 遥测与版本管理拆分为独立微服务 (telemetry-service + admin-service) 2026-02-12 18:30:39 -08:00
package.json fix(deploy): 服务器部署修复 — 全栈编译运行通过 2026-02-20 05:29:33 -08:00
tsconfig.json fix(backend): 修复所有服务编译问题 — tsconfig宽松化 + 补全缺失依赖 2026-02-19 19:20:48 -08:00