From 1d21ae8ff73b44da5ad56d52f536f0e62e0905b9 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 23 Dec 2025 03:04:57 -0800 Subject: [PATCH] =?UTF-8?q?fix(identity-service):=20=E4=BF=AE=E5=A4=8D=20I?= =?UTF-8?q?nternalController=20=E6=9C=AA=E6=B3=A8=E5=86=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 app.module.ts 的内联 ApiModule 中添加 InternalController - 添加 InfrastructureModule 导入和 UserAccountRepositoryImpl provider - 修正 authorization-service 的 identity-service URL 默认值 问题原因:app.module.ts 定义了内联 ApiModule,不是导入的 api.module.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../src/infrastructure/external/identity-service.client.ts | 2 +- backend/services/identity-service/src/app.module.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts b/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts index 039a6f9b..f6dc32fd 100644 --- a/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts +++ b/backend/services/authorization-service/src/infrastructure/external/identity-service.client.ts @@ -25,7 +25,7 @@ export class IdentityServiceClient implements OnModuleInit { private readonly enabled: boolean; constructor(private readonly configService: ConfigService) { - this.baseUrl = this.configService.get('IDENTITY_SERVICE_URL') || 'http://identity-service:3001'; + this.baseUrl = this.configService.get('IDENTITY_SERVICE_URL') || 'http://rwa-identity-service:3000'; this.enabled = this.configService.get('IDENTITY_SERVICE_ENABLED') !== false; } diff --git a/backend/services/identity-service/src/app.module.ts b/backend/services/identity-service/src/app.module.ts index e0a96362..04afe9bf 100644 --- a/backend/services/identity-service/src/app.module.ts +++ b/backend/services/identity-service/src/app.module.ts @@ -22,6 +22,7 @@ import { HealthController } from '@/api/controllers/health.controller'; import { ReferralsController } from '@/api/controllers/referrals.controller'; import { AuthController } from '@/api/controllers/auth.controller'; import { TotpController } from '@/api/controllers/totp.controller'; +import { InternalController } from '@/api/controllers/internal.controller'; // Application Services import { UserApplicationService } from '@/application/services/user-application.service'; @@ -136,14 +137,16 @@ export class ApplicationModule {} // ============ API Module ============ @Module({ - imports: [ApplicationModule], + imports: [ApplicationModule, InfrastructureModule], controllers: [ HealthController, UserAccountController, ReferralsController, AuthController, TotpController, + InternalController, ], + providers: [UserAccountRepositoryImpl], }) export class ApiModule {}