2025-08-24 02:31:42 +08:00
|
|
|
// 导出所有通用模块
|
|
|
|
|
export * from './admin/admin.module';
|
|
|
|
|
export * from './member/member.module';
|
|
|
|
|
export * from './rbac/rbac.module';
|
|
|
|
|
export * from './auth/auth.module';
|
|
|
|
|
export * from './upload/upload.module';
|
2025-08-23 13:20:01 +08:00
|
|
|
|
2025-08-24 02:31:42 +08:00
|
|
|
// 导出认证相关
|
|
|
|
|
export * from './auth/guards/JwtAuthGuard';
|
|
|
|
|
export * from './auth/guards/RolesGuard';
|
|
|
|
|
export * from './auth/guards/GlobalAuthGuard';
|
|
|
|
|
export * from './auth/decorators/RolesDecorator';
|
2025-08-23 13:20:01 +08:00
|
|
|
|
2025-08-24 02:31:42 +08:00
|
|
|
// 导出设置相关模块
|
|
|
|
|
export * from './settings';
|
|
|
|
|
|
|
|
|
|
// 导出常量
|
refactor: 全面清理项目结构,优化代码组织
主要变更:
1. 清理Core层空壳目录
- 删除traits, transformers, query, entities等空目录
- 删除security, http, queue, logger, context, exception, cache, utils, interceptor等空模块
- 修复core/index.ts中的模块引用
2. 清理Common层冗余模块
- 删除utils, cache, queue, health, openapi等空壳模块
- 删除dictionary, dict等重复字典模块
- 删除重复的MemberModule.ts文件
- 移动config到config/common目录
3. 优化项目结构
- 保留业务逻辑模块:auth, member, rbac, admin, settings, upload, notification
- 统一命名规范:所有模块使用{模块名}.module.ts格式
- 修复导入路径和模块引用
4. 代码质量提升
- 删除所有空壳和重复代码
- 项目结构更清晰,符合NestJS最佳实践
- 打包测试通过,代码更干净整洁
清理后项目结构:
- config/: 配置层(基础设施)
- core/: 核心层(数据库、枚举、验证)
- common/: 业务逻辑层
- vendor/: 第三方服务
2025-08-24 02:54:27 +08:00
|
|
|
export * from '../config/common/constants';
|