feat: implement QuestionBank CRUD with pagination and template query
- Add pagination support to findAll (page, limit query params) - Add findByTemplateId method to service - Add GET /by-template/:templateId endpoint to controller - Service already includes CRUD for QuestionBank and QuestionBankItem
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { Module, forwardRef } from '@nestjs/common';
|
||||
import { ChatController } from './chat.controller';
|
||||
import { ChatService } from './chat.service';
|
||||
import { ElasticsearchModule } from '../elasticsearch/elasticsearch.module';
|
||||
import { KnowledgeBaseModule } from '../knowledge-base/knowledge-base.module';
|
||||
import { ModelConfigModule } from '../model-config/model-config.module';
|
||||
import { KnowledgeGroupModule } from '../knowledge-group/knowledge-group.module';
|
||||
import { SearchHistoryModule } from '../search-history/search-history.module';
|
||||
import { RagModule } from '../rag/rag.module';
|
||||
import { TenantModule } from '../tenant/tenant.module';
|
||||
import { UserModule } from '../user/user.module';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
forwardRef(() => ElasticsearchModule),
|
||||
forwardRef(() => KnowledgeBaseModule),
|
||||
ModelConfigModule,
|
||||
forwardRef(() => KnowledgeGroupModule),
|
||||
SearchHistoryModule,
|
||||
RagModule,
|
||||
TenantModule,
|
||||
UserModule,
|
||||
],
|
||||
controllers: [ChatController],
|
||||
providers: [ChatService],
|
||||
exports: [ChatService],
|
||||
})
|
||||
export class ChatModule {}
|
||||
Reference in New Issue
Block a user