- 删除 template-migration.service.ts 文件 - 移除控制器中的迁移相关API接口 (/migrate, /sync, /admin/migration-report) - 清理文档中的迁移服务相关内容 - 添加 data-source.ts 配置文件用于运行数据库迁移 - 模板迁移功能完全通过数据库migration脚本处理
25 lines
865 B
TypeScript
25 lines
865 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { AppController } from './app.controller';
|
|
import { TemplateService } from './templates/index';
|
|
import { TemplateManager } from './templates/types';
|
|
import { typeOrmConfig } from './config/database.config';
|
|
import { N8nTemplateEntity } from './entities/n8n-template.entity';
|
|
import { N8nTemplateFactoryService } from './services/n8n-template-factory.service';
|
|
import { TemplateController } from './controllers/template.controller';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forRoot(typeOrmConfig),
|
|
TypeOrmModule.forFeature([N8nTemplateEntity])
|
|
],
|
|
controllers: [AppController, TemplateController],
|
|
providers: [
|
|
TemplateService,
|
|
TemplateManager,
|
|
N8nTemplateFactoryService,
|
|
],
|
|
exports: [N8nTemplateFactoryService]
|
|
})
|
|
export class AppModule {}
|