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 {}