feat: add payment module and factory
This commit is contained in:
@@ -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 {}
|
||||
Reference in New Issue
Block a user