rerfactor user wallet ans user points

This commit is contained in:
2025-12-29 21:31:01 +03:30
parent cfc0366eca
commit 0f1f472adb
17 changed files with 193 additions and 116 deletions
+10 -6
View File
@@ -7,17 +7,21 @@ import { UserAddress } from './entities/user-address.entity';
import { JwtModule } from '@nestjs/jwt';
import { UserRepository } from './repositories/user.repository';
import { RestaurantsModule } from '../restaurants/restaurants.module';
import { UserWalletRepository } from './repositories/user-wallet.repository';
import { WalletTransactionRepository } from './repositories/wallet-transaction.repository';
import { WalletService } from './providers/wallet.service';
import { UserWallet } from './entities/user-wallet.entity';
import { WalletTransaction } from './entities/wallet-transaction.entity';
import { PointTransaction } from './entities/point-transaction.entity';
@Module({
providers: [UserService, WalletService, UserRepository, UserWalletRepository, WalletTransactionRepository],
providers: [UserService, WalletService, UserRepository, WalletTransactionRepository],
controllers: [UsersController],
imports: [MikroOrmModule.forFeature([User, UserAddress, UserWallet,
WalletTransaction]), JwtModule, RestaurantsModule],
exports: [UserService, WalletService, UserRepository, UserWalletRepository, WalletTransactionRepository],
imports: [MikroOrmModule.forFeature([
User,
UserAddress,
WalletTransaction,
PointTransaction
]),
JwtModule, RestaurantsModule, WalletTransactionRepository],
exports: [UserService, WalletService, UserRepository, WalletTransactionRepository],
})
export class UserModule { }