2025-12-10 16:08:34 +09:00
|
|
|
import { Module, forwardRef } from "@nestjs/common";
|
|
|
|
|
import { CatalogController } from "./catalog.controller.js";
|
|
|
|
|
import { CatalogHealthController } from "./catalog-health.controller.js";
|
2025-12-17 17:59:55 +09:00
|
|
|
import { InternetEligibilityController } from "./internet-eligibility.controller.js";
|
2025-12-10 16:08:34 +09:00
|
|
|
import { IntegrationsModule } from "@bff/integrations/integrations.module.js";
|
|
|
|
|
import { MappingsModule } from "@bff/modules/id-mappings/mappings.module.js";
|
|
|
|
|
import { CoreConfigModule } from "@bff/core/config/config.module.js";
|
|
|
|
|
import { CacheModule } from "@bff/infra/cache/cache.module.js";
|
|
|
|
|
import { QueueModule } from "@bff/core/queue/queue.module.js";
|
2025-08-20 18:02:50 +09:00
|
|
|
|
2025-12-10 16:08:34 +09:00
|
|
|
import { BaseCatalogService } from "./services/base-catalog.service.js";
|
|
|
|
|
import { InternetCatalogService } from "./services/internet-catalog.service.js";
|
|
|
|
|
import { SimCatalogService } from "./services/sim-catalog.service.js";
|
|
|
|
|
import { VpnCatalogService } from "./services/vpn-catalog.service.js";
|
|
|
|
|
import { CatalogCacheService } from "./services/catalog-cache.service.js";
|
2025-08-27 20:01:46 +09:00
|
|
|
|
2025-08-20 18:02:50 +09:00
|
|
|
@Module({
|
2025-12-10 16:08:34 +09:00
|
|
|
imports: [
|
|
|
|
|
forwardRef(() => IntegrationsModule),
|
|
|
|
|
MappingsModule,
|
|
|
|
|
CoreConfigModule,
|
|
|
|
|
CacheModule,
|
|
|
|
|
QueueModule,
|
|
|
|
|
],
|
2025-12-17 17:59:55 +09:00
|
|
|
controllers: [CatalogController, CatalogHealthController, InternetEligibilityController],
|
2025-10-27 17:24:53 +09:00
|
|
|
providers: [
|
|
|
|
|
BaseCatalogService,
|
|
|
|
|
InternetCatalogService,
|
|
|
|
|
SimCatalogService,
|
|
|
|
|
VpnCatalogService,
|
|
|
|
|
CatalogCacheService,
|
|
|
|
|
],
|
2025-11-17 11:49:58 +09:00
|
|
|
exports: [InternetCatalogService, SimCatalogService, VpnCatalogService, CatalogCacheService],
|
2025-08-20 18:02:50 +09:00
|
|
|
})
|
2025-08-28 16:57:57 +09:00
|
|
|
export class CatalogModule {}
|