import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { OrderController } from './order.controller';
import { OrderService } from './order.service';
import { Order } from '@/entities/order.entity';
import { Room } from '@/entities/room.entity';
import { RoomCalendar } from '@/entities/room-calendar.entity';
import { Review } from '@/entities/review.entity';
import { UserActivityModule } from '@/modules/app/activity/activity.module';
import { ConfigModule } from '@/modules/shared/config/config.module';
import { FinanceModule } from '@/modules/shared/finance/finance.module';
import { UserCouponModule } from '@/modules/app/coupon/coupon.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Order, Room, RoomCalendar, Review]),
    UserActivityModule,
    ConfigModule,
    FinanceModule,
    UserCouponModule,
  ],
  controllers: [OrderController],
  providers: [OrderService],
  exports: [OrderService],
})
export class UserOrderModule {}
