import { Module } from '@nestjs/common'; import { ArticleController } from './article.controller'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AccessoryService } from './accessory/accessory.service'; import { AccessoryCrudService } from './accessory-crud/accessory-crud.service'; import { AccessoryCrudController } from './accessory-crud/accessory-crud.controller'; import { TopicCrudService } from './topic-crud/topic-crud.service'; import { TopicCrudController } from './topic-crud/topic-crud.controller'; import { CategoryCrudService } from './category-crud/category-crud.service'; import { CategoryCrudController } from './category-crud/category-crud.controller'; import { ArticleCrudService } from './article-crud/article-crud.service'; import { ArticleCrudController } from './article-crud/article-crud.controller'; import { ArticleService } from './article/article.service'; import { ArticleListCrudController } from './article-list-crud/article-list-crud.controller'; import { TopicController } from './topic/topic.controller'; import { CategoryController } from './category/category.controller'; import { CategoryService } from './category/category.service'; import { TopicService } from './topic/topic.service'; import { CommentCrudService } from './comment-crud/comment-crud.service'; import { CommentCrudController } from './comment-crud/comment-crud.controller'; import { CommentService } from './comment/comment.service'; import { Accessory } from 'kkk-lib/article/entity/accessory.entity'; import { Topic } from 'kkk-lib/article/entity/topic.entity'; import { Category } from 'kkk-lib/article/entity/category.entity'; import { Article } from 'kkk-lib/article/entity/article.entity'; import { CommentEntity } from 'kkk-lib/article/entity/comment.entity'; @Module({ imports: [ TypeOrmModule.forFeature([ Accessory, Topic, Category, Article, CommentEntity, ]), ], controllers: [ ArticleController, AccessoryCrudController, TopicCrudController, CategoryCrudController, ArticleCrudController, ArticleListCrudController, TopicController, CategoryController, CommentCrudController, ], providers: [ ArticleService, AccessoryService, AccessoryCrudService, TopicCrudService, CategoryCrudService, ArticleCrudService, ArticleService, CategoryService, TopicService, CommentCrudService, CommentService, ], exports: [ArticleService], }) export class ArticleModule {}