import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { IntegrationModule } from '../integration/integration.module'; import { AttendanceModule } from '../attendance/attendance.module'; import { SyncLog, SyncState, UserDingMapping, ClassSchedule, Department, UserDepartment, ClassTeacher, User, Student, Role, Class, ClassStudent, } from '../entities'; import { SyncService } from './sync.service'; import { SyncController } from './sync.controller'; import { ScheduleSyncService } from './schedule-sync.service'; @Module({ imports: [ TypeOrmModule.forFeature([ SyncLog, SyncState, UserDingMapping, ClassSchedule, Department, UserDepartment, ClassTeacher, User, Student, Role, Class, ClassStudent, ]), IntegrationModule, AttendanceModule, ], controllers: [SyncController], providers: [SyncService, ScheduleSyncService], exports: [SyncService], }) export class SyncModule {}