feat: 有效学习时间不足10分钟不计入总学习时间

- StudySessionsEntity: 新增 MIN_EFFECTIVE_TIME_SECONDS 常量,
  endedStudySession() 中检查 effectiveTime,不足则清零
- StudySessionsService: endedStudySession 返回类型从 void 改为 String
This commit is contained in:
2026-05-30 17:36:50 +08:00
parent c7eb448e33
commit 591dc89e53
2 changed files with 12 additions and 2 deletions
@@ -20,7 +20,7 @@ public interface StudySessionsService extends IService<StudySessionsEntity> {
ArrayList<String> getAllFragments(String sessionNum) throws ErrorParameterException;
void endedStudySession(String sessionNum, String content) throws ErrorParameterException;
String endedStudySession(String sessionNum, String content) throws ErrorParameterException;
void pauseStudySession(String sessionNum, LocalDateTime endTime) throws ErrorParameterException, ServiceException;