gcx/backend/services/admin-service
hailin 7933f3fe4a perf(upload): replace MinIO presigned-URL flow with local-disk storage
Previously the APK/IPA upload required two full public-internet transfers:
  1. POST /parse  → browser → gateway → admin-service (full file, for metadata)
  2. PUT presigned → browser → oss.gogenex.com / MinIO    (full file, to store)

Now follows the same pattern as RWADurian admin-service:
  - Single multipart POST /admin/versions/upload
  - admin-service parses buffer in-memory (yauzl / unzipper)
  - Saves to local disk (UPLOAD_DIR env, default ./uploads)
  - Download served via existing GET /app/version/download/:id (streams local file)

Changes:
  - file-storage.service.ts: drop minio dep, use fs/promises + crypto
  - admin-version.controller.ts: POST upload now accepts multipart file,
    removes GET presigned-url endpoint (no longer needed)
  - version.repository.ts (frontend): single FormData POST, removes
    three-step presigned-URL flow

Result: file crosses public internet once instead of twice.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 05:49:36 -08:00
..
src perf(upload): replace MinIO presigned-URL flow with local-disk storage 2026-03-07 05:49:36 -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