feat: add payment module and factory

This commit is contained in:
mahyargdz
2025-02-03 15:41:53 +03:30
parent 8fb587f976
commit 31368610dd
48 changed files with 931 additions and 81 deletions
+18
View File
@@ -0,0 +1,18 @@
import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { WalletTransaction } from "./entities/transaction.entity";
import { Wallet } from "./entities/wallet.entity";
import { WalletsService } from "./providers/wallets.service";
import { WalletTransactionsRepository } from "./repositories/wallet-transactions.repository";
import { WalletsRepository } from "./repositories/wallets.repository";
import { WalletsController } from "./wallets.controller";
import { PaymentsModule } from "../payments/payments.module";
@Module({
imports: [TypeOrmModule.forFeature([Wallet, WalletTransaction]), PaymentsModule],
providers: [WalletsService, WalletsRepository, WalletTransactionsRepository],
controllers: [WalletsController],
exports: [WalletsService],
})
export class WalletsModule {}