import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MerchantOrderController } from './order.controller';
import { MerchantOrderService } from './order.service';
import { Order } from '@/entities/order.entity';
import { Room } from '@/entities/room.entity';
import { RoomCalendar } from '@/entities/room-calendar.entity';
import { MerchantModule } from '../merchant.module';
import { UserActivityModule } from '@/modules/app/activity/activity.module';
import { FinanceModule } from '@/modules/shared/finance/finance.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Order, Room, RoomCalendar]),
    forwardRef(() => MerchantModule),
    forwardRef(() => UserActivityModule),
    forwardRef(() => FinanceModule),
  ],
  controllers: [MerchantOrderController],
  providers: [MerchantOrderService],
  exports: [MerchantOrderService],
})
export class MerchantOrderModule {}
