refactor: 全面清理项目结构,优化代码组织
主要改进:
1. 清理Core层空壳目录
- 删除traits, transformers, query等空目录
- 删除security, http, queue等空模块
- 删除logger, context, exception等空壳
2. 清理Common层冗余模块
- 删除utils, cache, queue等空壳模块
- 删除dictionary, dict等重复字典模块
- 删除重复的MemberModule.ts文件
3. 优化模块结构
- 移动config到config/common目录
- 统一模块命名规范为{模块名}.module.ts
- 保留业务逻辑模块:auth, member, rbac, admin, settings, upload, notification
4. 代码质量提升
- 更符合NestJS最佳实践
- 项目结构更清晰
- 删除所有空壳和重复代码
- 打包测试通过
技术改进:
- 使用TypeScript枚举替代PHP风格的Dict类
- 优化导入路径和模块引用
- 清理无用的空壳目录和文件
2025-08-24 02:55:13 +08:00
|
|
|
{
|
2025-09-21 21:29:28 +08:00
|
|
|
"scripts": {
|
|
|
|
|
"contracts:extract": "node tools/extract-admin-routes.js",
|
|
|
|
|
"contracts:compare": "node tools/compare-admin-routes.js",
|
|
|
|
|
"check:routes": "node tools/check-routes.js",
|
|
|
|
|
"gen:controllers": "node tools/gen-controllers.js"
|
|
|
|
|
},
|
refactor: 全面清理项目结构,优化代码组织
主要改进:
1. 清理Core层空壳目录
- 删除traits, transformers, query等空目录
- 删除security, http, queue等空模块
- 删除logger, context, exception等空壳
2. 清理Common层冗余模块
- 删除utils, cache, queue等空壳模块
- 删除dictionary, dict等重复字典模块
- 删除重复的MemberModule.ts文件
3. 优化模块结构
- 移动config到config/common目录
- 统一模块命名规范为{模块名}.module.ts
- 保留业务逻辑模块:auth, member, rbac, admin, settings, upload, notification
4. 代码质量提升
- 更符合NestJS最佳实践
- 项目结构更清晰
- 删除所有空壳和重复代码
- 打包测试通过
技术改进:
- 使用TypeScript枚举替代PHP风格的Dict类
- 优化导入路径和模块引用
- 清理无用的空壳目录和文件
2025-08-24 02:55:13 +08:00
|
|
|
"dependencies": {
|
2025-08-31 19:51:31 +08:00
|
|
|
"@nestjs/terminus": "^11.0.0",
|
2025-09-10 08:04:28 +08:00
|
|
|
"alipay-sdk": "^4.14.0",
|
|
|
|
|
"axios": "^1.11.0",
|
|
|
|
|
"wechatpay-node-v3": "^2.2.1"
|
2025-10-06 10:56:59 +08:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"typescript": "^5.9.2"
|
refactor: 全面清理项目结构,优化代码组织
主要改进:
1. 清理Core层空壳目录
- 删除traits, transformers, query等空目录
- 删除security, http, queue等空模块
- 删除logger, context, exception等空壳
2. 清理Common层冗余模块
- 删除utils, cache, queue等空壳模块
- 删除dictionary, dict等重复字典模块
- 删除重复的MemberModule.ts文件
3. 优化模块结构
- 移动config到config/common目录
- 统一模块命名规范为{模块名}.module.ts
- 保留业务逻辑模块:auth, member, rbac, admin, settings, upload, notification
4. 代码质量提升
- 更符合NestJS最佳实践
- 项目结构更清晰
- 删除所有空壳和重复代码
- 打包测试通过
技术改进:
- 使用TypeScript枚举替代PHP风格的Dict类
- 优化导入路径和模块引用
- 清理无用的空壳目录和文件
2025-08-24 02:55:13 +08:00
|
|
|
}
|
|
|
|
|
}
|