🔴 P0 | KnowledgeItem 新增 durationSeconds 字段 #59
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 知识点列表页新增「学习时长」展示,当前使用客户端伪数据(progressFor 函数估算),需要后端提供真实学习时长。
需求
KnowledgeItem 模型新增字段:
影响页面
前端占位代码
LibrarySubpages.swift—progressFor()/formatDuration()使用 status 做近似估算wangdl referenced this issue2026-06-05 19:34:38 +08:00
wangdl referenced this issue2026-06-05 19:34:41 +08:00
wangdl referenced this issue2026-06-05 19:36:03 +08:00
wangdl referenced this issue2026-06-05 19:36:06 +08:00
修复汇报 (2026-06-05)
实现
KnowledgeItem新增durationSeconds Int @default(0)字段create()DTO 新增durationSeconds?,默认值 0后续
LearningSession完成时回写KnowledgeItem.durationSeconds(累积学习时长)progressFor()做伪数据,字段就绪后可切真实数据状态
✅ 代码完成,文件和 schema 已传服务器。需执行
npx prisma migrate deploy+ 重启 NestJS。