refactor(api): 升级 mining-service 和 mining-wallet-service API 前缀至 v2

将以下服务的 API 版本从 v1 升级到 v2,统一 2.0 系统架构:

**mining-service:**
- main.ts: 全局前缀 api/v1 → api/v2
- Dockerfile: 健康检查路径 /api/v1/health → /api/v2/health

**mining-wallet-service:**
- main.ts: 全局前缀 api/v1 → api/v2
- Dockerfile: 健康检查路径 /api/v1/health → /api/v2/health

此变更使 mining-service 和 mining-wallet-service 正式成为 2.0 系统的一部分,
与 auth-service、contribution-service、mining-admin-service 保持一致。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-11 22:31:06 -08:00
parent 05f98def6d
commit 6d619c0a02
4 changed files with 4 additions and 4 deletions

View File

@ -45,6 +45,6 @@ ENV TZ=Asia/Shanghai
EXPOSE 3021
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -f http://localhost:3021/api/v1/health || exit 1
CMD curl -f http://localhost:3021/api/v2/health || exit 1
CMD ["/app/start.sh"]

View File

@ -23,7 +23,7 @@ async function bootstrap() {
});
// 全局前缀
app.setGlobalPrefix('api/v1');
app.setGlobalPrefix('api/v2');
// Swagger 文档
const config = new DocumentBuilder()

View File

@ -45,6 +45,6 @@ ENV TZ=Asia/Shanghai
EXPOSE 3025
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -f http://localhost:3025/api/v1/health || exit 1
CMD curl -f http://localhost:3025/api/v2/health || exit 1
CMD ["/app/start.sh"]

View File

@ -23,7 +23,7 @@ async function bootstrap() {
});
// Global prefix
app.setGlobalPrefix('api/v1');
app.setGlobalPrefix('api/v2');
// Swagger documentation
if (process.env.SWAGGER_ENABLED !== 'false') {