返回 AiToEarn
operate.module.ts
根目录 / project / aitoearn-electron / server / src / modules / operate / operate.module.ts
1 /*
2 * @Author: nevin
3 * @Date: 2024-06-17 19:19:07
4 * @LastEditTime: 2025-04-14 16:41:35
5 * @LastEditors: nevin
6 * @Description: 运营模块
7 */
8 import { Global, Module } from '@nestjs/common';
9 import { MongooseModule } from '@nestjs/mongoose';
10 import { BannerService } from './banner.service';
11 import { BannerController } from './banner.controller';
12 import { Banner, BannerSchema } from 'src/db/schema/banner.schema';
13 import { AdminBannerController } from './adminBanner.controller';
14 import { PlatAuthModule } from 'src/lib/platAuth/platAuth.module';
15 import { AdminGzhController } from './adminGzh.controller';
16 import { Cfg, CfgSchema } from 'src/db/schema/cfg.schema';
17 import { CfgController } from './cfg.controller';
18 import { CfgService } from './cfg.service';
19 import { AdminCfgController } from './cfgAdmin.controller';
20
21 @Global()
22 @Module({
23 imports: [
24 PlatAuthModule,
25 MongooseModule.forFeature([
26 { name: Banner.name, schema: BannerSchema },
27 { name: Cfg.name, schema: CfgSchema },
28 ]),
29 ],
30 providers: [BannerService, CfgService],
31 controllers: [
32 BannerController,
33 AdminBannerController,
34 AdminGzhController,
35 CfgController,
36 AdminCfgController,
37 ],
38 })
39 export class OperateModule {}
40
40 lines TYPESCRIPT