Claude Opus 4.6
|
e07e21f430
|
Merge design branch - 代码重构规范化完成
合并内容:
- 后端 Swagger/OpenAPI 配置
- 后端 DTO 规范化
- 前端 Orval API 客户端自动生成
- 前端文件路由配置
- 所有测试文件和配置
冲突解决:
- main.ts: 保留 Swagger 和 TransformInterceptor
- package.json: 合并 orval 相关脚本和依赖
- playwright.config.ts: 使用 design 分支配置
- .env: 保留 design 分支配置
- 启动脚本: 保留 design 分支版本
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-12 17:27:48 +08:00 |
|
Claude Opus 4.6
|
2f5ad32820
|
refactor: 代码重构 - API规范化和文件路由配置
## 后端重构
### 新增基础设施
- src/common/dto/ - 统一响应格式和分页查询DTO基类
- src/common/interceptors/ - 响应转换拦截器
- src/common/utils/ - JSON解析和分页计算工具函数
### DTO规范化
- Course、Lesson、TeacherCourse、SchoolCourse、Tenant控制器添加Swagger装饰器
- 添加@ApiQuery、@ApiBody、@ApiOperation完善API文档
- 修复CourseLesson控制器路径参数问题
## 前端重构
### Orval API客户端生成
- 添加orval配置和生成脚本
- 生成完整的类型安全API客户端 (src/api/generated/)
- 导入56个参数类型文件
### API模块迁移
- src/api/course.ts - 迁移使用Orval生成API
- src/api/school-course.ts - 修复类型错误(number vs string)
- src/api/teacher.ts - 完整迁移教师端API
- src/api/client.ts - 重构API客户端统一入口
- src/api/lesson.ts - 修复未使用参数
### 文件路由配置
- 配置unplugin-vue-router插件
- 创建动态路由配置支持自动路由和传统路由切换
- 添加路由守卫保留原有权限逻辑
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-12 13:05:20 +08:00 |
|
张逸遥
|
ad0204a59a
|
提交说明
|
2026-02-28 16:41:39 +08:00 |
|
zhonghua
|
0d4d9f5768
|
菜单顶部栏优化
|
2026-02-28 06:44:56 +08:00 |
|
lesingle
|
54f6daea62
|
Initialize the Kindergarten platform source code.
|
2026-02-26 15:22:26 +08:00 |
|