scene.module.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { Module, OnModuleInit } from '@nestjs/common';
  2. import { SceneService } from './scene.service';
  3. import { CacheModule } from '../cache/cache.module';
  4. import { CacheService } from '../cache/cache.service';
  5. // import { RedisService } from '../redis/redis.service';
  6. import { StreamService } from './stream/stream.service';
  7. // import { BullModule } from '@nestjs/bull';
  8. // import { RotateConsumer } from './rotate-consumer';
  9. // import { WalkingConsumer } from './walking-consumer';
  10. import { RotateService } from '../rotate/rotate.service';
  11. import { MoveService } from '../move/move.service';
  12. import { GetRouterService } from 'src/get-router/get-router.service';
  13. import { StreamWorkerService } from './stream-worker/stream-worker.service';
  14. @Module({
  15. imports: [
  16. CacheModule,
  17. // BullModule.registerQueue({
  18. // name: 'rotate',
  19. // }),
  20. // BullModule.registerQueue({
  21. // name: 'walking',
  22. // }),
  23. ],
  24. controllers: [],
  25. providers: [
  26. SceneService,
  27. CacheService,
  28. StreamService,
  29. RotateService,
  30. // RotateConsumer,
  31. // WalkingConsumer,
  32. MoveService,
  33. GetRouterService,
  34. StreamWorkerService,
  35. ],
  36. exports: [
  37. SceneService,
  38. CacheService,
  39. RotateService,
  40. MoveService,
  41. StreamWorkerService,
  42. ],
  43. })
  44. export class SceneModule implements OnModuleInit {
  45. onModuleInit() {
  46. //
  47. }
  48. }