2022-05-16 09:23:59 +00:00
|
|
|
import { CollectorController } from '@controllers/collector.controller';
|
|
|
|
import { CollectorEntity } from '@entities/collector.entity';
|
|
|
|
import { DocumentModule } from '@modules/document.module';
|
2022-02-20 11:51:55 +00:00
|
|
|
import { UserModule } from '@modules/user.module';
|
|
|
|
import { WikiModule } from '@modules/wiki.module';
|
2022-05-16 09:23:59 +00:00
|
|
|
import { forwardRef, Module } from '@nestjs/common';
|
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
2022-02-20 11:51:55 +00:00
|
|
|
import { CollectorService } from '@services/collector.service';
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
TypeOrmModule.forFeature([CollectorEntity]),
|
|
|
|
forwardRef(() => UserModule),
|
|
|
|
forwardRef(() => WikiModule),
|
|
|
|
forwardRef(() => DocumentModule),
|
|
|
|
],
|
|
|
|
providers: [CollectorService],
|
|
|
|
exports: [CollectorService],
|
|
|
|
controllers: [CollectorController],
|
|
|
|
})
|
|
|
|
export class CollectorModule {}
|