返回 AiToEarn
channels.module.ts
根目录 / project / aitoearn-backend / apps / aitoearn-server / src / core / channels / channels.module.ts
1 import { Module } from '@nestjs/common'
2 import { AccountGroupService } from './accounts/account-group.service'
3 import { AccountGroupsController } from './accounts/account-groups.controller'
4 import { AccountService } from './accounts/account.service'
5 import { AccountsController } from './accounts/accounts.controller'
6 import { CredentialHealthScheduler } from './accounts/credential-health.scheduler'
7 import { CredentialService } from './accounts/credential.service'
8 import { AnalyticsService } from './analytics/analytics.service'
9 import { AuthController } from './auth/auth.controller'
10 import { AuthService } from './auth/auth.service'
11 import { LinkedInAuthCallbackController } from './auth/linkedin-auth-callback.controller'
12 import { EngagementController } from './engagement/engagement.controller'
13 import { EngagementService } from './engagement/engagement.service'
14 import { MediaModule } from './media/media.module'
15 import { PlatformsController } from './platforms/platforms.controller'
16 import { PlatformsModule } from './platforms/platforms.module'
17 import { PlatformsService } from './platforms/platforms.service'
18 import { TikTokLegacyController } from './platforms/tiktok/tiktok-legacy.controller'
19 import { MediaFinalizeConsumer } from './publish/consumers/media-finalize.consumer'
20 import { PublishConsumer } from './publish/consumers/publish.consumer'
21 import { UpdatePublishedConsumer } from './publish/consumers/update-published.consumer'
22 import { PublishFlowController } from './publish/flows/publish-flow.controller'
23 import { PublishFlowService } from './publish/flows/publish-flow.service'
24 import { PublishRecordReadService } from './publish/records/publish-record-read.service'
25 import { PublishRecordController } from './publish/records/publish-record.controller'
26 import { PublishScheduler } from './publish/scheduler/publish.scheduler'
27 import { PublishQueueService } from './publish/tasks/publish-queue.service'
28 import { PublishStateService } from './publish/tasks/publish-state.service'
29 import { PublishTaskController } from './publish/tasks/publish-task.controller'
30 import { PublishTaskService } from './publish/tasks/publish-task.service'
31 import { RelayCallbackController } from './relay/relay-callback.controller'
32 import { RelayClientService } from './relay/relay-client.service'
33 import { WorkService } from './works/work.service'
34 import { WorksController } from './works/works.controller'
35
36 @Module({
37 imports: [PlatformsModule, MediaModule],
38 controllers: [
39 AccountsController,
40 AccountGroupsController,
41 AuthController,
42 LinkedInAuthCallbackController,
43 PublishFlowController,
44 PublishTaskController,
45 PublishRecordController,
46 PlatformsController,
47 TikTokLegacyController,
48 EngagementController,
49 WorksController,
50 RelayCallbackController,
51 ],
52 providers: [
53 // Accounts
54 RelayClientService,
55 AccountService,
56 AccountGroupService,
57 CredentialService,
58 AuthService,
59 CredentialHealthScheduler,
60 // Publish orchestration
61 PublishFlowService,
62 PublishTaskService,
63 PublishStateService,
64 PublishQueueService,
65 PublishRecordReadService,
66 PlatformsService,
67 PublishConsumer,
68 MediaFinalizeConsumer,
69 UpdatePublishedConsumer,
70 PublishScheduler,
71 // Analytics
72 AnalyticsService,
73 // Engagement
74 EngagementService,
75 // Works
76 WorkService,
77 ],
78 exports: [
79 CredentialService,
80 RelayClientService,
81 AccountService,
82 AccountGroupService,
83 AuthService,
84 PublishFlowService,
85 PublishTaskService,
86 PublishStateService,
87 PublishQueueService,
88 PublishRecordReadService,
89 PlatformsService,
90 MediaModule,
91 AnalyticsService,
92 EngagementService,
93 WorkService,
94 PlatformsModule,
95 ],
96 })
97 export class ChannelsModule {}
98
98 lines TYPESCRIPT