import { DynamicModule, Module } from '@nestjs/common';
import { OperationLogService } from './operation-log.service';
import { OperationLogController } from './operation-log.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { OperationLog } from './entities/operation-log.entity';
@Module({
  imports: [TypeOrmModule.forFeature([OperationLog])],
  controllers: [OperationLogController],
  providers: [OperationLogService],
})
export class OperationLogModule {
  static forRoot(): DynamicModule {
    return {
      module: OperationLogModule,
      providers: [OperationLogService],
      exports: [OperationLogService],
    };
  }
}
