| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-03-01 19:27:26 |
| 4 | * @LastEditTime: 2025-03-25 09:43:22 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: 用户财产模块 |
| 7 | */ |
| 8 | import { Module } from '@nestjs/common'; |
| 9 | import { MongooseModule } from '@nestjs/mongoose'; |
| 10 | import { FinanceService } from './finance.service'; |
| 11 | import { FinanceController } from './finance.controller'; |
| 12 | import { |
| 13 | UserWalletAccount, |
| 14 | UserWalletAccountSchema, |
| 15 | } from 'src/db/schema/userWalletAccount.shema'; |
| 16 | import { |
| 17 | UserWalletRecord, |
| 18 | UserWalletRecordSchema, |
| 19 | } from 'src/db/schema/userWalletRecord.shema'; |
| 20 | import { AdminFinanceController } from './adminFinance.controller'; |
| 21 | import { UserWallet, UserWalletSchema } from 'src/db/schema/userWallet.shema'; |
| 22 | |
| 23 | @Module({ |
| 24 | imports: [ |
| 25 | MongooseModule.forFeature([ |
| 26 | { name: UserWalletAccount.name, schema: UserWalletAccountSchema }, |
| 27 | { name: UserWalletRecord.name, schema: UserWalletRecordSchema }, |
| 28 | { name: UserWallet.name, schema: UserWalletSchema }, |
| 29 | ]), |
| 30 | ], |
| 31 | controllers: [FinanceController, AdminFinanceController], |
| 32 | providers: [FinanceService], |
| 33 | exports: [FinanceService], |
| 34 | }) |
| 35 | export class FinanceModule {} |
| 36 |