import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PaymentController } from './payment.controller';
import { PaymentService } from './payment.service';
import { Order } from '@/entities/order.entity';
import { RoomCalendar } from '@/entities/room-calendar.entity';
import { PaymentModule as SharedPaymentModule } from '@/modules/shared/payment/payment.module';
import { FinanceModule } from '@/modules/shared/finance/finance.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Order, RoomCalendar]),
    SharedPaymentModule,
    FinanceModule,
  ],
  controllers: [PaymentController],
  providers: [PaymentService],
  exports: [PaymentService],
})
export class PaymentModule {}
