import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Note } from './note.entity';
import { NoteCategory } from './note-category.entity';
import { NoteService } from './note.service';
import { NoteController } from './note.controller';
import { NoteCategoryService } from './note-category.service';
import { NoteCategoryController } from './note-category.controller';
import { KnowledgeGroupModule } from '../knowledge-group/knowledge-group.module';
import { OcrModule } from '../ocr/ocr.module';
import { I18nModule } from '../i18n/i18n.module';

@Module({
    imports: [
        TypeOrmModule.forFeature([Note, NoteCategory]),
        forwardRef(() => KnowledgeGroupModule),
        OcrModule,
        I18nModule,
    ],
    providers: [NoteService, NoteCategoryService],
    controllers: [NoteController, NoteCategoryController],
    exports: [NoteService, NoteCategoryService],
})
export class NoteModule { }
