import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { MerchantReviewController } from './review.controller';
import { MerchantReviewService } from './review.service';
import { Review } from '@/entities/review.entity';
import { MerchantModule } from '../merchant.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Review]),
    forwardRef(() => MerchantModule),
  ],
  controllers: [MerchantReviewController],
  providers: [MerchantReviewService],
  exports: [MerchantReviewService],
})
export class MerchantReviewModule {}
