Files
PDV/apps/api/src/modules/payment/payment.module.ts
T
2026-09-30 14:45:10 -05:00

17 lines
634 B
TypeScript

import { Module } from "@nestjs/common";
import { PAYMENT_REPOSITORY } from "./interfaces/payment-repository.interface.js";
import { PAYMENT_SERVICE } from "./interfaces/payment-service.interface.js";
import { PaymentController } from "./payment.controller.js";
import { PaymentRepository } from "./payment.repository.js";
import { PaymentService } from "./payment.service.js";
@Module({
controllers: [PaymentController],
providers: [
{ provide: PAYMENT_REPOSITORY, useClass: PaymentRepository },
{ provide: PAYMENT_SERVICE, useClass: PaymentService },
],
exports: [PAYMENT_SERVICE],
})
export class PaymentModule {}