feat: 拆分记录上下文与内容归属并把报告改为结构化

This commit is contained in:
2026-10-09 19:12:04 +08:00
parent 9a86eadb52
commit c74f73ac3c
49 changed files with 1197 additions and 281 deletions
@@ -20,4 +20,19 @@ public interface StudyReportFragmentsService extends IService<StudyReportFragmen
void updateFragments(Integer id, UpdateFragmentsRequest request) throws NotFindEntitiesException;
List<StudyReportFragmentsEntity> getFragmentsBySession(String sessionNum);
/**
* 修改内容归属(归属-01)。传空表示清空归属、回到待归类。
* <p>归属变化会把原任务与新任务的导图标记为待更新。</p>
*/
void assignOwnership(Integer id, String ownerTaskNum) throws NotFindEntitiesException;
/** 删除知识碎片(软删除);所属任务的导图会被标记为待更新 */
void deleteFragment(Integer id) throws NotFindEntitiesException;
/** 待归类内容:没有内容归属的碎片,按时间倒序 */
List<StudyReportFragmentsEntity> getPendingOwnershipFragments();
/** 待归类内容的条数,用于复习总览的独立区块 */
long countPendingOwnershipFragments();
}