feat: v0.3.3 - 清理代码结构,删除common层,保留core层企业级基础设施

- 删除common层业务代码(将通过real-business-logic-generator.js重新生成)
- 清理重复的core层生成工具
- 保留完整的企业级core层基础设施(Security/Cache/Tracing/Event/Queue/Health)
- 版本号升级到0.3.3
- 项目架构现已完整,接下来专注优化PHP到TypeScript语法转换
This commit is contained in:
wanwu
2025-09-27 03:28:46 +08:00
parent 2fb35eda53
commit 8da4047110
179 changed files with 19865 additions and 20861 deletions

View File

@@ -135,8 +135,8 @@ wwjcloud/
```
src/common/admin/
├── controllers/ # 控制器目录
│ ├── user.controller.ts
│ └── order.controller.ts
│ ├── userController.ts
│ └── orderController.ts
├── services/ # 服务目录
│ ├── user.service.ts
│ └── order.service.ts
@@ -144,14 +144,14 @@ src/common/admin/
│ ├── user.entity.ts
│ └── order.entity.ts
└── dto/ # DTO 目录
├── create-user.dto.ts
└── update-user.dto.ts
├── createUser.dto.ts
└── updateUser.dto.ts
```
#### 文件命名
**NestJS 特有的文件类型,按照 NestJS 规范命名:**
- **控制器**: `{模块名}.controller.ts` (NestJS 规范)
- **控制器**: `{模块名}Controller.ts` (NestJS 规范)
- **服务**: `{模块名}.service.ts` (NestJS 规范)
- **实体**: `{模块名}.entity.ts` (TypeORM 规范,对应 PHP 的模型)
- **DTO**: `{操作}-{模块名}.dto.ts` (NestJS 规范,对应 PHP 的验证器)