feat: 完成PHP到NestJS迁移工具和代码生成

-  成功运行迁移工具,生成28个模块的完整NestJS代码
-  生成所有实体、服务、控制器、验证器等组件
-  修复npm依赖冲突,更新package-lock.json
-  添加Docker测试脚本和配置文件
-  完善迁移工具的调试日志和错误处理
- 🔧 包含增量更新工具和质量检查工具
- 📊 迁移统计:28个模块,数千个文件,耗时26.47秒

主要变更:
- wwjcloud-nest/src/core/* - 生成的业务模块代码
- tools/* - 迁移工具和辅助脚本
- wwjcloud-nest/package.json - 依赖更新
- docker/* - 容器化配置和测试脚本
This commit is contained in:
wanwujie
2025-10-20 18:43:52 +08:00
parent 5fafaa9135
commit c4e588a2fe
565 changed files with 36188 additions and 4897 deletions

View File

@@ -155,8 +155,8 @@ class BusinessLogicConverter {
// 替换PHP基础类为NestJS Common层
const infrastructureReplacements = [
// 按 v1 boot 实现进行映射
{ from: /core\\cache\\RedisCacheService/g, to: '@wwjCommon/infra/cache/cache.service' },
{ from: /CoreRequestService/g, to: '@wwjCommon/infra/http/request-context.service' },
{ from: /core\\cache\\RedisCacheService/g, to: '@wwjCommon/cache/cache.service' },
{ from: /CoreRequestService/g, to: '@wwjCommon/http/request-context.service' },
// 旧的 BaseService/BaseController/BaseApiService 在 v1 中不再使用,避免误替换
// 日志统一使用 Nest Logger 或拦截器,不再映射到自定义 LoggingService
];