package com.guo.learningprogresstracker.service; import com.guo.learningprogresstracker.entity.StudyExpectationsEntity; import com.guo.learningprogresstracker.exception.ErrorParameterException; /** * 学习预期服务 */ public interface StudyExpectationsService { /** * 为学习会话创建学习预期(每个会话最多一条,重复创建则覆盖) */ StudyExpectationsEntity upsertExpectation(String sessionNum, String description) throws ErrorParameterException; /** * 查询学习会话的学习预期,不存在时返回 null */ StudyExpectationsEntity getBySessionNum(String sessionNum); }