feat: WWJCloud 企业级全栈框架 v0.3.5 完整更新
🚀 核心更新: - ✅ 完善 NestJS 企业级架构设计 - ✅ 优化配置中心和基础设施层 - ✅ 增强第三方服务集成能力 - ✅ 完善多租户架构支持 - 🎯 对标 Java Spring Boot 和 PHP ThinkPHP 📦 新增文件: - wwjcloud-nest 完整框架结构 - Docker 容器化配置 - 管理后台界面 - 数据库迁移脚本 🔑 Key: ebb38b43ec39f355f071294fd1cf9c42
This commit is contained in:
33
wwjcloud-nest/src/app.module.ts
Normal file
33
wwjcloud-nest/src/app.module.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Module, MiddlewareConsumer, NestModule } from '@nestjs/common';
|
||||
import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
import { ConfigModule } from '@wwjConfig/config.module';
|
||||
import { CommonModule } from '@wwjCommon/common.module';
|
||||
import { VendorModule } from '@wwjVendor/vendor.module';
|
||||
import { CoreModule } from '@wwjCore/core.module';
|
||||
|
||||
/**
|
||||
* 应用根模块
|
||||
* 基于 NestJS 官方示例实现
|
||||
* 参考: https://docs.nestjs.cn/fundamentals/module-ref
|
||||
*
|
||||
* 模块结构:
|
||||
* - ConfigModule: 配置中心(静态+动态配置)
|
||||
* - CommonModule: 基础设施层
|
||||
* - VendorModule: 第三方服务集成层
|
||||
* - CoreModule: 核心业务模块层
|
||||
*/
|
||||
@Module({
|
||||
imports: [ConfigModule, CommonModule, VendorModule, CoreModule],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
})
|
||||
export class AppModule implements NestModule {
|
||||
configure(consumer: MiddlewareConsumer) {
|
||||
// 这里可以配置全局中间件
|
||||
// 例如:日志中间件、CORS 中间件等
|
||||
// consumer
|
||||
// .apply(LoggerMiddleware)
|
||||
// .forRoutes('*');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user