import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MerchantRoomController } from './room.controller';
import { MerchantRoomService } from './room.service';
import { Room } from '@/entities/room.entity';
import { RoomCalendar } from '@/entities/room-calendar.entity';
import { MerchantModule } from '../merchant.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Room, RoomCalendar]),
    forwardRef(() => MerchantModule),
  ],
  controllers: [MerchantRoomController],
  providers: [MerchantRoomService],
  exports: [MerchantRoomService],
})
export class MerchantRoomModule {}
