返回 AiToEarn
other.module.ts
根目录 / project / aitoearn-electron / server / src / modules / other / other.module.ts
1 /*
2 * @Author: nevin
3 * @Date: 2024-06-17 19:19:07
4 * @LastEditTime: 2025-04-14 19:22:41
5 * @LastEditors: nevin
6 * @Description: 其他模块
7 */
8 import { Global, Module } from '@nestjs/common';
9 import { FeedbackService } from './feedback.service';
10 import { FeedbackController } from './feedback.controller';
11 import { MongooseModule } from '@nestjs/mongoose';
12 import { Feedback, FeedbackSchema } from 'src/db/schema/feedback.schema';
13 import { QaService } from './qa.service';
14 import { QaRecord, QaRecordSchema } from 'src/db/schema/qaRecord.schema';
15 import { QaController } from './qa.controller';
16 import { FeedbackAdminController } from './feedbackAdmin.controller';
17
18 @Global()
19 @Module({
20 imports: [
21 MongooseModule.forFeature([
22 { name: Feedback.name, schema: FeedbackSchema },
23 { name: QaRecord.name, schema: QaRecordSchema },
24 ]),
25 ],
26 providers: [FeedbackService, QaService],
27 controllers: [FeedbackController, QaController, FeedbackAdminController],
28 })
29 export class OtherModule {}
30
30 lines TYPESCRIPT