From e83b3d420c0073c78a90e933a0ccdfbb42f60a41 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 11 Jan 2026 19:25:49 -0800 Subject: [PATCH] =?UTF-8?q?chore(mining-admin-service):=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80API=E7=89=88=E6=9C=AC=E4=B8=BAv2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将globalPrefix从api/v1改为api/v2 - 更新Swagger文档版本为2.0 Co-Authored-By: Claude Opus 4.5 --- backend/services/mining-admin-service/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/mining-admin-service/src/main.ts b/backend/services/mining-admin-service/src/main.ts index 7e0373a3..6ff257af 100644 --- a/backend/services/mining-admin-service/src/main.ts +++ b/backend/services/mining-admin-service/src/main.ts @@ -8,12 +8,12 @@ async function bootstrap() { app.useGlobalPipes(new ValidationPipe({ whitelist: true, transform: true, forbidNonWhitelisted: true })); app.enableCors({ origin: process.env.CORS_ORIGIN || '*', credentials: true }); - app.setGlobalPrefix('api/v1'); + app.setGlobalPrefix('api/v2'); const config = new DocumentBuilder() .setTitle('Mining Admin Service API') .setDescription('挖矿管理后台 API 文档') - .setVersion('1.0') + .setVersion('2.0') .addBearerAuth() .addTag('Auth', '认证') .addTag('Config', '配置管理')