Commit Graph

258 Commits

Author SHA1 Message Date
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
zhonghua
bb3db79758 配置调整 2026-02-28 03:06:20 +08:00
zhonghua
05b5ee9117 数据库优化 2026-02-28 02:11:48 +08:00
zhonghua
6da007c2ce git优化 2026-02-28 01:50:49 +08:00
zhonghua
39b49bd808 系统完善 2026-02-28 01:48:21 +08:00
lesingle
54f6daea62 Initialize the Kindergarten platform source code. 2026-02-26 15:22:26 +08:00