-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser.module.ts
More file actions
78 lines (77 loc) · 3.43 KB
/
user.module.ts
File metadata and controls
78 lines (77 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { LnbitsWebhookModule } from 'src/integration/blockchain/lightning/lnbits-webhook.module';
import { IntegrationModule } from 'src/integration/integration.module';
import { SharedModule } from 'src/shared/shared.module';
import { AuthService } from 'src/subdomains/user/application/services/auth.service';
import { BoltzModule } from '../boltz/boltz.module';
import { LightningTransactionModule } from '../lightning/lightning-transaction.module';
import { AssetModule } from '../master-data/asset/asset.module';
import { MonitoringModule } from '../monitoring/monitoring.module';
import { PaymentRequestModule } from '../payment-request/payment-request.module';
import { AuthController } from './api/controllers/auth.controller';
import { UserController } from './api/controllers/user.controller';
import { LightningWalletSynchronizeController } from './application/controller/lightning-wallet-sync.controller';
import { LightningWalletRepository } from './application/repositories/lightning-wallet.repository';
import { UserBoltcardRepository } from './application/repositories/user-boltcard.repository';
import { UserTransactionRepository } from './application/repositories/user-transaction.repository';
import { UserRepository } from './application/repositories/user.repository';
import { WalletProviderRepository } from './application/repositories/wallet-provider.repository';
import { WalletRepository } from './application/repositories/wallet.repository';
import { LightningWalletService } from './application/services/lightning-wallet.service';
import { UserBoltcardService } from './application/services/user-boltcard.service';
import { UserTransactionService } from './application/services/user-transaction.service';
import { UserService } from './application/services/user.service';
import { WalletProviderService } from './application/services/wallet-provider.service';
import { WalletService } from './application/services/wallet.service';
import { LightningWalletEntity } from './domain/entities/lightning-wallet.entity';
import { UserBoltcardEntity } from './domain/entities/user-boltcard.entity';
import { UserTransactionEntity } from './domain/entities/user-transaction.entity';
import { UserEntity } from './domain/entities/user.entity';
import { WalletProviderEntity } from './domain/entities/wallet-provider.entity';
import { WalletEntity } from './domain/entities/wallet.entity';
@Module({
imports: [
TypeOrmModule.forFeature([
UserEntity,
WalletProviderEntity,
WalletEntity,
LightningWalletEntity,
UserTransactionEntity,
UserBoltcardEntity,
]),
SharedModule,
IntegrationModule,
MonitoringModule,
BoltzModule,
AssetModule,
LnbitsWebhookModule,
LightningTransactionModule,
PaymentRequestModule,
],
controllers: [UserController, AuthController, LightningWalletSynchronizeController],
providers: [
UserRepository,
WalletProviderRepository,
WalletRepository,
LightningWalletRepository,
UserTransactionRepository,
UserBoltcardRepository,
AuthService,
UserService,
WalletProviderService,
WalletService,
LightningWalletService,
UserTransactionService,
UserBoltcardService,
],
exports: [
UserService,
WalletProviderService,
WalletService,
LightningWalletService,
UserTransactionService,
UserBoltcardService,
],
})
export class UserModule {}