|
|
c7737ea490
|
fix(db): 本地开发配置改用远程开发服务器数据库 8.148.151.56
|
2026-03-09 18:19:58 +08:00 |
|
|
|
32d2364c77
|
refactor(i18n): 全面翻译Swagger注解和实体注释为中文
- 翻译41个控制器的所有@Tag和@Operation注解为中文
- Admin系列控制器:9个
- School系列控制器:13个
- Teacher系列控制器:9个
- Parent系列控制器:4个
- AuthController和FileUploadController:2个
- 翻译41个实体类的类注释为中文
- 管理员/教师/学生/家长/租户等核心实体
- 课程/课时/任务/成长档案等业务实体
- 各类关系映射实体
- 翻译21个DTO的@Schema注解为中文
- Request DTOs: 19个(创建/更新请求)
- Response DTOs: 4个(登录/用户信息/课程/租户响应)
- 新增CLAUDE.md项目文档
所有翻译确保符合上下文语义,保持代码功能不变。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-06 12:23:10 +08:00 |
|
lesingle
|
bbddb57104
|
fix(backend): 修复管理员创建系统课程时 isSystem 未持久化的 bug
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-03 15:05:53 +08:00 |
|
lesingle
|
e700029ee7
|
fix(backend): 修复课程套餐路径和新增状态变更接口
- AdminCoursePackageController: 路径从 /admin/course-packages 改为 /admin/packages
- AdminCoursePackageController: 分页参数 pageNum → page,新增 submit/review/publish/offline
- CoursePackageService: 新增 submit/review/publish/offline 方法
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-03 15:04:43 +08:00 |
|
lesingle
|
01897a7ecc
|
Merge branch 'main' of http://8.148.151.56:3000/tonytech/kindergarten_java
|
2026-03-03 14:50:42 +08:00 |
|
lesingle
|
18170609d9
|
fix: 修复前端API路径和后端课程管理接口
- 前端 course.ts: /courses → /admin/courses (匹配Java后端路径)
- 路由守卫: 修复token存在但role缺失时的无限循环404问题
- AdminCourseController: 新增审核相关接口 (submit/withdraw/approve/reject/unpublish/republish/direct-publish)
- AdminCourseController: 课程列表支持status过滤,显示所有状态课程
- CourseService/Impl: 新增提交审核、审批、拒绝等方法
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-03 14:49:16 +08:00 |
|
|
|
30677a7c02
|
fix(auth): 登录接口同时接受 account 和 username 字段
|
2026-03-03 14:21:21 +08:00 |
|
|
|
e9dff31242
|
feat(backend): 补全所有未提交的 Java 源码文件
新增 44 个此前仅在本地存在、从未提交到 git 的源码文件:
- Controllers: FileUpload, AdminStats, AdminTheme, AdminCoursePackage,
AdminCourseLesson, AdminResource, AdminOperationLog,
School(Course/Schedule/Settings/Stats/Export/OperationLog/CoursePackage),
Teacher(Dashboard/Schedule/SchoolCourse/CourseLesson)
- Entities: CourseLesson, CoursePackage, SchoolCourse, Theme
- Mappers: CourseLesson, CoursePackage, SchoolCourse, Theme
- Services: All 13 service classes
- Config: WebMvcConfig
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-03 13:51:33 +08:00 |
|
|
|
8b7615bcf1
|
fix(auth): 修复学校账号登录角色返回错误问题
loginWithRole()中SCHOOL/TEACHER分支改为返回请求中指定的role(school或teacher),
而非硬编码"teacher"。同步修复getCurrentUserInfo()和changePassword()支持"school"角色。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-02 15:41:58 +08:00 |
|
|
|
859c71db09
|
fix(backend): 修复租户创建、接口字段和500错误
Bug 1: 创建租户时同步创建学校登录账号(teachers表)
- TenantCreateRequest支持loginAccount/contactPerson/studentQuota/teacherQuota字段
- TenantServiceImpl.createTenant()后自动插入Teacher记录,包含BCrypt加密密码
- 返回tempPassword字段供前端展示
Bug 2: 修复多个接口500错误
- 新增POST /auth/logout端点(JWT无状态,直接返回成功)
- 新增GET /admin/stats/trend端点(最近6个月统计趋势)
- 完善getStats()返回activeTenantCount/publishedCourseCount/monthlyLessons字段
- 新增AdminSettingsController(GET/PUT /admin/settings)
- 新增租户操作端点:/status、/reset-password、/quota
Bug 3: 统一前后端接口字段名
- Tenant实体用@JsonProperty重命名:code→loginAccount, contactName→contactPerson
maxStudents→studentQuota, maxTeachers→teacherQuota, expireAt→expireDate
- status字段用UpperCaseSerializer返回大写值(前端期望ACTIVE/SUSPENDED)
- TenantCreateRequest/UpdateRequest用@JsonAlias接受前端字段名
- PageResult用@JsonProperty重命名:list→items, pageNum→page, pages→totalPages
- 所有分页控制器将pageNum参数改为page(与前端对齐)
- 新增TenantService.resetSchoolAccountPassword()方法
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-02 15:20:37 +08:00 |
|
|
|
7f757b6a63
|
初始提交:幼儿园阅读平台三端代码
- reading-platform-backend:NestJS 后端
- reading-platform-frontend:Vue3 前端
- reading-platform-java:Spring Boot 服务端
|
2026-02-28 17:51:15 +08:00 |
|