feat: 完善多平台适配器架构和微信小程序集成功能

- 新增字节跳动和微信平台适配器实现
- 完善平台适配器基础架构和接口定义
- 添加平台用户管理和数据同步功能
- 实现完整的平台模块和控制器
- 更新所有实体类支持多平台数据结构
- 优化模板系统支持平台特定功能
This commit is contained in:
imeepos
2025-09-04 17:12:03 +08:00
parent 3b07e641db
commit 14f4c450b5
62 changed files with 3702 additions and 727 deletions

View File

@@ -15,6 +15,7 @@ import { UserSubscriptionEntity } from './entities/user-subscription.entity';
import { AdWatchEntity } from './entities/ad-watch.entity';
import { N8nTemplateFactoryService } from './services/n8n-template-factory.service';
import { TemplateController } from './controllers/template.controller';
import { PlatformModule } from './platform/platform.module';
@Module({
imports: [
@@ -24,7 +25,8 @@ import { TemplateController } from './controllers/template.controller';
}),
TypeOrmModule.forRootAsync({
inject: [ConfigService],
useFactory: (configService: ConfigService) => databaseConfig(configService),
useFactory: (configService: ConfigService) =>
databaseConfig(configService),
}),
TypeOrmModule.forFeature([
N8nTemplateEntity,
@@ -34,15 +36,12 @@ import { TemplateController } from './controllers/template.controller';
ExtensionDataEntity,
UserCreditEntity,
UserSubscriptionEntity,
AdWatchEntity
])
AdWatchEntity,
]),
PlatformModule,
],
controllers: [AppController, TemplateController],
providers: [
TemplateService,
TemplateManager,
N8nTemplateFactoryService,
],
exports: [N8nTemplateFactoryService]
providers: [TemplateService, TemplateManager, N8nTemplateFactoryService],
exports: [N8nTemplateFactoryService],
})
export class AppModule {}