| 1 | import { Module } from '@nestjs/common' |
| 2 | import { config } from '../../../config' |
| 3 | import { BilibiliModule } from './bilibili/bilibili.module' |
| 4 | import { DouyinModule } from './douyin/douyin.module' |
| 5 | import { FacebookModule } from './facebook/facebook.module' |
| 6 | import { GoogleBusinessModule } from './google-business/google-business.module' |
| 7 | import { InstagramModule } from './instagram/instagram.module' |
| 8 | import { KwaiModule } from './kwai/kwai.module' |
| 9 | import { LinkedinModule } from './linkedin/linkedin.module' |
| 10 | import { PinterestModule } from './pinterest/pinterest.module' |
| 11 | import { PlatformRegistryModule } from './platforms.registry.module' |
| 12 | import { RedNoteModule } from './rednote/rednote.module' |
| 13 | import { ThreadsModule } from './threads/threads.module' |
| 14 | import { TiktokModule } from './tiktok/tiktok.module' |
| 15 | import { TwitterModule } from './twitter/twitter.module' |
| 16 | import { WechatModule } from './wechat/wechat.module' |
| 17 | import { YoutubeModule } from './youtube/youtube.module' |
| 18 | |
| 19 | const c = config.channel |
| 20 | |
| 21 | @Module({ |
| 22 | imports: [ |
| 23 | PlatformRegistryModule, |
| 24 | YoutubeModule.forRoot(c.youtube), |
| 25 | BilibiliModule.forRoot(c.bilibili), |
| 26 | DouyinModule.forRoot(c.douyin), |
| 27 | KwaiModule.forRoot(c.kwai), |
| 28 | PinterestModule.forRoot(c.pinterest), |
| 29 | GoogleBusinessModule.forRoot(c.googleBusiness), |
| 30 | TwitterModule.forRoot(c.twitter), |
| 31 | TiktokModule.forRoot(c.tiktok), |
| 32 | FacebookModule.forRoot(c.facebook), |
| 33 | InstagramModule.forRoot(c.instagram), |
| 34 | ThreadsModule.forRoot(c.threads), |
| 35 | LinkedinModule.forRoot(c.linkedin), |
| 36 | WechatModule.forRoot(c.wechat), |
| 37 | RedNoteModule.forRoot(c.rednote), |
| 38 | ], |
| 39 | exports: [ |
| 40 | PlatformRegistryModule, |
| 41 | YoutubeModule, |
| 42 | BilibiliModule, |
| 43 | DouyinModule, |
| 44 | KwaiModule, |
| 45 | PinterestModule, |
| 46 | GoogleBusinessModule, |
| 47 | TwitterModule, |
| 48 | TiktokModule, |
| 49 | FacebookModule, |
| 50 | InstagramModule, |
| 51 | ThreadsModule, |
| 52 | LinkedinModule, |
| 53 | WechatModule, |
| 54 | RedNoteModule, |
| 55 | ], |
| 56 | }) |
| 57 | export class PlatformsModule {} |
| 58 |