2022-06-23 09:55:22 +00:00
|
|
|
import { StarController } from '@controllers/star.controller';
|
|
|
|
import { StarEntity } from '@entities/star.entity';
|
2022-05-16 09:23:59 +00:00
|
|
|
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-06-23 09:55:22 +00:00
|
|
|
import { StarService } from '@services/star.service';
|
2022-02-20 11:51:55 +00:00
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
2022-06-23 09:55:22 +00:00
|
|
|
TypeOrmModule.forFeature([StarEntity]),
|
2022-02-20 11:51:55 +00:00
|
|
|
forwardRef(() => UserModule),
|
|
|
|
forwardRef(() => WikiModule),
|
|
|
|
forwardRef(() => DocumentModule),
|
|
|
|
],
|
2022-06-23 09:55:22 +00:00
|
|
|
providers: [StarService],
|
|
|
|
exports: [StarService],
|
|
|
|
controllers: [StarController],
|
2022-02-20 11:51:55 +00:00
|
|
|
})
|
2022-06-23 09:55:22 +00:00
|
|
|
export class StarModule {}
|