gcx/backend/services
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
..
admin-service perf(upload): replace MinIO presigned-URL flow with local-disk storage 2026-03-07 05:49:36 -08:00
ai-service fix(user/ai-service): fix GET /users/kyc route conflict + add passport-jwt to ai-service 2026-03-05 18:21:31 -08:00
auth-service fix(alipay): 适配 tobias 5.x 新 auth API,后端生成签名 authString 2026-03-04 09:26:30 -08:00
chain-indexer feat(health): 为全部12个微服务添加Docker健康检查 2026-02-20 05:39:25 -08:00
clearing-service fix(auth): JwtStrategy.validate() return id not sub 2026-03-04 23:52:53 -08:00
compliance-service fix(auth): JwtStrategy.validate() return id not sub 2026-03-04 23:52:53 -08:00
issuer-service fix: comprehensive API compatibility fixes across issuer/user/ai services and Flutter 2026-03-05 09:29:44 -08:00
notification-service fix(auth): JwtStrategy.validate() return id not sub 2026-03-04 23:52:53 -08:00
referral-service feat(referral): 推荐服务全链路实现 2026-03-04 00:58:28 -08:00
telemetry-service feat(telemetry): 完整实现 presence-service 迁移 + Flutter 遥测接入 2026-03-05 23:33:13 -08:00
trading-service feat: 全平台API对齐 — 4个前端应用55+页面接入真实后端API 2026-02-22 22:53:07 -08:00
translate-service feat(health): 为全部12个微服务添加Docker健康检查 2026-02-20 05:39:25 -08:00
user-service fix(user/ai-service): fix GET /users/kyc route conflict + add passport-jwt to ai-service 2026-03-05 18:21:31 -08:00