import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User, Student, StudentDingMapping, Class } from '../entities';
import { DingTalkService } from './dingtalk.service';
import { WeComService } from './wecom.service';
import { JinshujuService } from './jinshuju.service';
import { IntegrationConfigModule } from './config/config.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([User, Student, StudentDingMapping, Class]),
    IntegrationConfigModule,
  ],
  providers: [DingTalkService, WeComService, JinshujuService],
  exports: [DingTalkService, WeComService, JinshujuService],
})
export class IntegrationModule {}
