import { Module } from '@nestjs/common';
import { ResourceService } from './service/resource.service';
import { ResourceController } from './controller/resource.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Resource } from './entities/resource.entity';
import { ResourceClassifyController } from './controller/resource-classify.controller';
import { ResourceClassifyService } from './service/resource-classify.service';
import { ResourceClassify } from './entities/resource-classify.entity';
import { ResourceDiscussion } from './entities/resource-discussion.entity';
import { ResourceDiscussionService } from './service/resource-discussion.service';

@Module({
  imports: [
    TypeOrmModule.forFeature([Resource, ResourceClassify, ResourceDiscussion]),
  ],
  controllers: [ResourceClassifyController, ResourceController],
  providers: [
    ResourceClassifyService,
    ResourceService,
    ResourceDiscussionService,
  ],
})
export class ResourceModule {}
