33 lines
1.6 KiB
TypeScript
33 lines
1.6 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { UserService } from './providers/user.service';
|
|
import { UsersController } from './controllers/users.controller';
|
|
import { MikroOrmModule } from '@mikro-orm/nestjs';
|
|
import { User } from './entities/user.entity';
|
|
import { UserAddress } from './entities/user-address.entity';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { UserRepository } from './repositories/user.repository';
|
|
import { WalletTransactionRepository } from './repositories/wallet-transaction.repository';
|
|
import { WalletService } from './providers/wallet.service';
|
|
import { WalletTransaction } from './entities/wallet-transaction.entity';
|
|
import { PointTransaction } from './entities/point-transaction.entity';
|
|
import { PointTransactionRepository } from './repositories/point-transaction.repository';
|
|
import { ShopsModule } from '../shops/shops.module';
|
|
import { AddressRepository } from './repositories/address.repository';
|
|
import { UserShop } from './entities/user-shop.entity';
|
|
import { UserShopRepository } from './repositories/user-shop.repository';
|
|
import { UserShopCrone } from './crone/user-shop.crone';
|
|
|
|
@Module({
|
|
providers: [UserService, WalletService, UserRepository,
|
|
WalletTransactionRepository, PointTransactionRepository, AddressRepository, UserShopRepository, UserShopCrone],
|
|
controllers: [UsersController],
|
|
imports: [
|
|
MikroOrmModule.forFeature([User, UserAddress, WalletTransaction, PointTransaction, UserShop]),
|
|
JwtModule,
|
|
ShopsModule
|
|
],
|
|
exports: [UserService, WalletService, UserRepository,
|
|
WalletTransactionRepository, PointTransactionRepository, AddressRepository, UserShopRepository],
|
|
})
|
|
export class UserModule { }
|