From e153e2144da2c2ad7b7961542630c922c964f8ee Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 19 Dec 2025 19:27:43 -0800 Subject: [PATCH] =?UTF-8?q?fix(identity-service):=20=E6=B7=BB=E5=8A=A0=20T?= =?UTF-8?q?otpService=20=E5=88=B0=20ApplicationModule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/services/identity-service/src/app.module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/services/identity-service/src/app.module.ts b/backend/services/identity-service/src/app.module.ts index 29bb385c..597494a4 100644 --- a/backend/services/identity-service/src/app.module.ts +++ b/backend/services/identity-service/src/app.module.ts @@ -17,6 +17,7 @@ import { TotpController } from '@/api/controllers/totp.controller'; // Application Services import { UserApplicationService } from '@/application/services/user-application.service'; import { TokenService } from '@/application/services/token.service'; +import { TotpService } from '@/application/services/totp.service'; import { BlockchainWalletHandler } from '@/application/event-handlers/blockchain-wallet.handler'; import { MpcKeygenCompletedHandler } from '@/application/event-handlers/mpc-keygen-completed.handler'; @@ -105,11 +106,12 @@ export class DomainModule {} providers: [ UserApplicationService, TokenService, + TotpService, // Event Handlers - 通过注入到 UserApplicationService 来确保它们被初始化 BlockchainWalletHandler, MpcKeygenCompletedHandler, ], - exports: [UserApplicationService, TokenService], + exports: [UserApplicationService, TokenService, TotpService], }) export class ApplicationModule {}