mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat(nestjs): migrate to NestJS
This commit is contained in:
44
packages/server/src/modules/Accounts/Accounts.module.ts
Normal file
44
packages/server/src/modules/Accounts/Accounts.module.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TenancyDatabaseModule } from '../Tenancy/TenancyDB/TenancyDB.module';
|
||||
import { AccountsController } from './Accounts.controller';
|
||||
import { AccountsApplication } from './AccountsApplication.service';
|
||||
import { CreateAccountService } from './CreateAccount.service';
|
||||
import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
||||
import { CommandAccountValidators } from './CommandAccountValidators.service';
|
||||
import { AccountRepository } from './repositories/Account.repository';
|
||||
import { EditAccount } from './EditAccount.service';
|
||||
import { DeleteAccount } from './DeleteAccount.service';
|
||||
import { GetAccount } from './GetAccount.service';
|
||||
import { TransformerInjectable } from '../Transformer/TransformerInjectable.service';
|
||||
import { ActivateAccount } from './ActivateAccount.service';
|
||||
import { GetAccountTypesService } from './GetAccountTypes.service';
|
||||
import { GetAccountTransactionsService } from './GetAccountTransactions.service';
|
||||
import { RegisterTenancyModel } from '../Tenancy/TenancyModels/Tenancy.module';
|
||||
import { BankAccount } from '../BankingTransactions/models/BankAccount';
|
||||
import { GetAccountsService } from './GetAccounts.service';
|
||||
import { DynamicListModule } from '../DynamicListing/DynamicList.module';
|
||||
// import { GetAccountsService } from './GetAccounts.service';
|
||||
|
||||
const models = [RegisterTenancyModel(BankAccount)];
|
||||
|
||||
@Module({
|
||||
imports: [TenancyDatabaseModule, DynamicListModule, ...models],
|
||||
controllers: [AccountsController],
|
||||
providers: [
|
||||
AccountsApplication,
|
||||
CreateAccountService,
|
||||
TenancyContext,
|
||||
CommandAccountValidators,
|
||||
AccountRepository,
|
||||
EditAccount,
|
||||
DeleteAccount,
|
||||
GetAccount,
|
||||
TransformerInjectable,
|
||||
ActivateAccount,
|
||||
GetAccountTypesService,
|
||||
GetAccountTransactionsService,
|
||||
GetAccountsService,
|
||||
],
|
||||
exports: [AccountRepository, CreateAccountService, ...models],
|
||||
})
|
||||
export class AccountsModule {}
|
||||
Reference in New Issue
Block a user