import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { ScheduleModule } from '@nestjs/schedule';
import { ApiModule } from '@/api/api.module';
import { appConfig, databaseConfig, redisConfig, kafkaConfig, blockchainConfig } from '@/config';

@Module({
  imports: [
    ConfigModule.forRoot({
      isGlobal: true,
      load: [appConfig, databaseConfig, redisConfig, kafkaConfig, blockchainConfig],
    }),
    ScheduleModule.forRoot(),
    ApiModule,
  ],
})
export class AppModule {}
