Files
dth/openspec/changes/chg_0006_lms_bootstrap/proposal.md
T

44 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
change_id: chg_0006
status: proposed
owner: pm@dth
stakeholders: [pd, dev, qa]
priority: P1
target_release: v0.5
created: 2026-09-28
skip_coverage: false
---
# Change: LMS 起头(学员 + 课程 + 选课)
## Why
需求 §6.1 LMS 是数智安全人才平台的核心子系统之一。本 chg 落地 LMS 三个最小子系统:学员管理(学号/姓名/邮箱)、课程管理(代码/学分/教师)、选课(学员 ↔ 课程)。
## Who
高校教师 / 学员 / 教务管理员。
## Scope
- 学员管理:list / create / get / update / delete
- 课程管理:list / create / get / update / delete
- 选课:enroll / list-by-student / list-by-course
- 3 张 PGlite 表:lms_student / lms_course / lms_enrollment
- e2e:tests/e2e/dth_lms.test.sh(4 case 对应 S1-S4)
## Non-Goals
- 不做 LMS 前端(前端 chg_0004 已定,operator 列表的 UI 模式可直接复用)
- 不做作业 / 考试 / 题库 / 教师端(后续 chg)
- 不做权限分层(admin 端管所有 LMS 资源;非 admin 暂不允许)
- 不做学员能力图谱(5 模块雷达图)
## Impact
- 新 capability `lms`(独立元能力,S 编号从 1 起)
## Acceptance
- [ ] admin GET /api/ssw/dth/lms/students 返回 ≥ 2 学员(seed 后)
- [ ] admin POST /api/ssw/dth/lms/students 创建新学员,GET /api/ssw/dth/lms/students/:id 返回该学员
- [ ] admin GET /api/ssw/dth/lms/courses 返回 ≥ 2 课程(seed 后)
- [ ] admin POST /api/ssw/dth/lms/courses/:id/enroll 把学生加入课程,GET /api/ssw/dth/lms/students/:id/enrollments 列出该生所有课程
- [ ] check_spec_coverage.sh gap=0
## Rollout
合并 main;后端 :30000 重启即生效。PGlite 启动期创建 3 表 + seed 2 学员 2 课程。