import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import DeviceModules from './modules/device.modules';
import SubjectModules from './modules/subject.modules';
import TrainModules from './modules/train-module.modules';
@Module({
  imports: [
    // 引入各部分Entity
    TypeOrmModule.forFeature([
      ...DeviceModules.entitis,
      ...SubjectModules.entitis,
      ...TrainModules.entitis,
    ]),
  ],
  // 引入所有controller
  controllers: [
    ...DeviceModules.controllers,
    ...SubjectModules.controllers,
    ...TrainModules.controllers,
  ],
  // 引入所有service
  providers: [
    ...DeviceModules.services,
    ...SubjectModules.services,
    ...TrainModules.services,
  ],
})
export class TrainModule {}
