import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MerchantStatisticsController } from './statistics.controller';
import { MerchantStatisticsService } from './statistics.service';
import { Order } from '@/entities/order.entity';
import { MerchantModule } from '../merchant.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Order]),
    forwardRef(() => MerchantModule),
  ],
  controllers: [MerchantStatisticsController],
  providers: [MerchantStatisticsService],
  exports: [MerchantStatisticsService],
})
export class MerchantStatisticsModule {}
