fix(identity-service): 添加 TotpService 到 ApplicationModule

This commit is contained in:
hailin 2025-12-19 19:27:43 -08:00
parent fd5768f8c5
commit e153e2144d
1 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import { TotpController } from '@/api/controllers/totp.controller';
// Application Services // Application Services
import { UserApplicationService } from '@/application/services/user-application.service'; import { UserApplicationService } from '@/application/services/user-application.service';
import { TokenService } from '@/application/services/token.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 { BlockchainWalletHandler } from '@/application/event-handlers/blockchain-wallet.handler';
import { MpcKeygenCompletedHandler } from '@/application/event-handlers/mpc-keygen-completed.handler'; import { MpcKeygenCompletedHandler } from '@/application/event-handlers/mpc-keygen-completed.handler';
@ -105,11 +106,12 @@ export class DomainModule {}
providers: [ providers: [
UserApplicationService, UserApplicationService,
TokenService, TokenService,
TotpService,
// Event Handlers - 通过注入到 UserApplicationService 来确保它们被初始化 // Event Handlers - 通过注入到 UserApplicationService 来确保它们被初始化
BlockchainWalletHandler, BlockchainWalletHandler,
MpcKeygenCompletedHandler, MpcKeygenCompletedHandler,
], ],
exports: [UserApplicationService, TokenService], exports: [UserApplicationService, TokenService, TotpService],
}) })
export class ApplicationModule {} export class ApplicationModule {}