import { Module } from '@nestjs/common';
import { PrismaService } from '../../prisma/prisma.service';
import { JobsModule } from '../jobs/jobs.module';
import { XiaobaoAiModule } from '../xiaobao-ai/xiaobao-ai.module';
import { XiaobaoRiskController } from './xiaobao-risk.controller';
import { XiaobaoRiskService } from './xiaobao-risk.service';
import { XiaobaoRiskWorker } from './xiaobao-risk.worker';
import { XIAOBAO_PRISMA } from './xiaobao-risk.types';

@Module({
  imports: [JobsModule, XiaobaoAiModule],
  controllers: [XiaobaoRiskController],
  providers: [
    { provide: XIAOBAO_PRISMA, useExisting: PrismaService },
    XiaobaoRiskService,
    XiaobaoRiskWorker,
  ],
  exports: [XiaobaoRiskService, XiaobaoRiskWorker],
})
export class XiaobaoModule {}
