| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-03-01 19:27:26 |
| 4 | * @LastEditTime: 2025-04-27 17:36:19 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: google google B站模块 |
| 7 | */ |
| 8 | import { Module } from '@nestjs/common'; |
| 9 | // import { MongooseModule } from '@nestjs/mongoose'; |
| 10 | // import { User, UserSchema } from 'src/db/schema/user.schema'; |
| 11 | import { GoogleController } from './google.controller'; |
| 12 | import { GoogleService } from './google.service'; |
| 13 | import { UserModule } from 'src/user/user.module'; |
| 14 | import { ConfigModule } from '@nestjs/config'; |
| 15 | import { RedisModule } from 'src/lib/redis/redis.module'; |
| 16 | import googleConfig from 'config/google.config'; |
| 17 | // import { UserService } from 'src/user/user.service'; |
| 18 | |
| 19 | @Module({ |
| 20 | imports: [ |
| 21 | ConfigModule.forRoot({ |
| 22 | load: [googleConfig], |
| 23 | }), |
| 24 | // MongooseModule.forFeature([{ name: User.name, schema: UserSchema }]), |
| 25 | UserModule, |
| 26 | RedisModule, |
| 27 | ], |
| 28 | controllers: [GoogleController], |
| 29 | providers: [GoogleService], |
| 30 | exports: [GoogleService], |
| 31 | }) |
| 32 | export class GoogleModule {} |
| 33 |