fix(authorization-service): register SystemAccountApplicationService in AppModule
Add missing dependency injection for SystemAccountApplicationService which is required by InternalAuthorizationController for system account report statistics API. - Import SystemAccountRepositoryImpl and SYSTEM_ACCOUNT_REPOSITORY - Register SystemAccountApplicationService as provider - Register SYSTEM_ACCOUNT_REPOSITORY with SystemAccountRepositoryImpl 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6e395ce58c
commit
e95316c5f4
|
|
@ -17,13 +17,24 @@ import {
|
|||
MonthlyAssessmentRepositoryImpl,
|
||||
MONTHLY_ASSESSMENT_REPOSITORY,
|
||||
} from '@/infrastructure/persistence/repositories/monthly-assessment.repository.impl'
|
||||
// [2026-01-04] 新增:系统账户仓储,用于系统账户报表统计
|
||||
// 回滚方式:删除此 import 及下方 providers 中的 SYSTEM_ACCOUNT_REPOSITORY 和 SystemAccountApplicationService
|
||||
import {
|
||||
SystemAccountRepositoryImpl,
|
||||
SYSTEM_ACCOUNT_REPOSITORY,
|
||||
} from '@/infrastructure/persistence/repositories/system-account.repository.impl'
|
||||
import { RedisModule } from '@/infrastructure/redis/redis.module'
|
||||
import { KafkaModule } from '@/infrastructure/kafka/kafka.module'
|
||||
import { EventConsumerController } from '@/infrastructure/kafka/event-consumer.controller'
|
||||
import { ReferralServiceClient, IdentityServiceClient, RewardServiceClient } from '@/infrastructure/external'
|
||||
|
||||
// Application
|
||||
import { AuthorizationApplicationService, REFERRAL_REPOSITORY, TEAM_STATISTICS_REPOSITORY } from '@/application/services'
|
||||
import {
|
||||
AuthorizationApplicationService,
|
||||
SystemAccountApplicationService,
|
||||
REFERRAL_REPOSITORY,
|
||||
TEAM_STATISTICS_REPOSITORY,
|
||||
} from '@/application/services'
|
||||
import { MonthlyAssessmentScheduler } from '@/application/schedulers'
|
||||
|
||||
// API
|
||||
|
|
@ -84,6 +95,11 @@ const MockReferralRepository = {
|
|||
provide: MONTHLY_ASSESSMENT_REPOSITORY,
|
||||
useClass: MonthlyAssessmentRepositoryImpl,
|
||||
},
|
||||
// [2026-01-04] 新增:系统账户仓储
|
||||
{
|
||||
provide: SYSTEM_ACCOUNT_REPOSITORY,
|
||||
useClass: SystemAccountRepositoryImpl,
|
||||
},
|
||||
MockReferralRepository,
|
||||
|
||||
// External Service Clients (replaces mock)
|
||||
|
|
@ -97,6 +113,8 @@ const MockReferralRepository = {
|
|||
|
||||
// Application Services
|
||||
AuthorizationApplicationService,
|
||||
// [2026-01-04] 新增:系统账户应用服务,用于系统账户报表统计
|
||||
SystemAccountApplicationService,
|
||||
MonthlyAssessmentScheduler,
|
||||
|
||||
// Strategies
|
||||
|
|
|
|||
Loading…
Reference in New Issue