import { Module } from '@nestjs/common';
import { AssessmentEvaluationService } from './service/assessment-evaluation.service';
import { AssessmentEvaluationController } from 'src/assessment-evaluation/controller/assessment-evaluation.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import QuestionModules from 'src/assessment-evaluation/modules/question-manager.modules';
import ExamPaperModules from 'src/assessment-evaluation/modules/exam-paper-manager.modules';
import ExamModules from 'src/assessment-evaluation/modules/exam-manager.modules';
@Module({
  imports: [
    // 引入各部分Entity
    TypeOrmModule.forFeature([
      ...QuestionModules.entitis,
      ...ExamPaperModules.entitis,
      ...ExamModules.entitis,
    ]),
  ],
  // 引入所有controller
  controllers: [
    AssessmentEvaluationController,
    ...QuestionModules.controllers,
    ...ExamPaperModules.controllers,
    ...ExamModules.controllers,
  ],
  // 引入所有service
  providers: [
    AssessmentEvaluationService,
    ...QuestionModules.services,
    ...ExamPaperModules.services,
    ...ExamModules.services,
  ],
})
export class AssessmentEvaluationModule {}
