think/packages/server/src/modules/star.module.ts

22 lines
728 B
TypeScript
Raw Normal View History

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