package com.seer.teach.teacher.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.seer.teach.teacher.module.entity.LessonRecordsEntity;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Wang
 * @since 2025-12-02 21:29:37
 */
public interface LessonRecordsService extends IService<LessonRecordsEntity> {

    /**
     * 保存课程记录
     *
     * @param lessonId 课程ID
     * @param goalId 目标ID
     * @param textId 文本ID
     * @return 保存的课程记录实体
     */
    LessonRecordsEntity saveLessonRecord(Integer lessonId,Integer goalId,Integer textId);

    /**
     * 更新课程记录结束时间
     *
     * @param recordId 记录ID
     */
    void updateEndTime(Integer recordId);
}

