import { Module } from '@nestjs/common'; import { CategoryController } from './controller/category.controller'; import { CategoryService } from './service/category.service'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Category } from './entity/category.entity'; import { ArticleService } from './service/article.service'; import { Article } from './entity/article.entity'; import { ArticleController } from './controller/article.controller'; import { CarousalController } from './controller/carousal.controller'; import { CarousalService } from './service/carousal.service'; import { Carousal } from './entity/carousal.entity'; import { ArticleSearchRecord } from './entity/article-search-record.entity'; import { ArticleSearchRecommend } from './entity/article-search-recommend.entity'; import { ArticleSearchRecommendMapper } from './mapper/article-search-recommend.mapper'; @Module({ controllers: [CategoryController, ArticleController, CarousalController], imports: [ TypeOrmModule.forFeature([ Category, Article, Carousal, ArticleSearchRecord, ArticleSearchRecommend, ]), ], providers: [ CategoryService, ArticleService, CarousalService, ArticleSearchRecommendMapper, ], }) export class ArticleModule {}