| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2024-06-17 19:19:07 |
| 4 | * @LastEditTime: 2024-09-05 15:18:26 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: 发布模块 |
| 7 | */ |
| 8 | import { Module } from '@nestjs/common'; |
| 9 | import { PublishService } from './publish.service'; |
| 10 | import { PublishController } from './publish.controller'; |
| 11 | import { MongooseModule } from '@nestjs/mongoose'; |
| 12 | import { PubRecord, PubRecordSchema } from 'src/db/schema/pubRecord.schema'; |
| 13 | import { VideoService } from './video/video.service'; |
| 14 | import { VideoController } from './video/video.controller'; |
| 15 | import { Video, VideoSchema } from 'src/db/schema/video.schema'; |
| 16 | |
| 17 | @Module({ |
| 18 | imports: [ |
| 19 | MongooseModule.forFeature([ |
| 20 | { name: PubRecord.name, schema: PubRecordSchema }, |
| 21 | { name: Video.name, schema: VideoSchema }, |
| 22 | ]), |
| 23 | ], |
| 24 | providers: [PublishService, VideoService], |
| 25 | controllers: [PublishController, VideoController], |
| 26 | }) |
| 27 | export class PublishModule {} |
| 28 |