🔴 P0 | GET /learning-sessions 支持筛选未完成会话 #62
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
iOS 首页主行动「继续上次学习」需要获取用户最近一条未完成的学习会话。
需求
方案 A(推荐):GET /learning-sessions 新增查询参数:
?status=in_progress&limit=1&sort=startedAt:desc
方案 B:新增 GET /learning-sessions/current 返回最近一条未完成会话。
影响页面
当前前端方案
客户端调用 list() 后手动过滤 status != completed,效率低且无法排序
修复汇报 (2026-06-05)
实现
GET /learning-sessions新增?status=active|completed和?sort=startedAt:desc|durationSeconds:desc查询参数GET /learning-sessions?status=active&limit=1&sort=startedAt:desc获取最近一条未完成会话状态
✅ 完成。