无关风月
2024-06-18 610604ea8fbdc1f2b0f54e90a689b9ff449f092c
ruoyi-service/ruoyi-study/src/main/java/com/ruoyi/study/service/ITStudyService.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.study.domain.*;
import com.ruoyi.study.dto.CompleteGameDTO;
import com.ruoyi.study.dto.StudyWeekDTO;
import com.ruoyi.study.vo.*;
@@ -30,10 +31,9 @@
     * 获取学习进度及学习时长等信息
     *
     * @param userId 用户id
     * @param week   周目
     * @return 学习信息
     */
    TUserStudy studySchedule(String userId, Integer week);
    TUserStudy studySchedule(String userId);
    /**
     * 自主学习1-听音选图
@@ -51,8 +51,9 @@
     * @param difficulty 难度(0入门、1中级、2高级)
     * @param week       所属周目
     * @param game       游戏信息
     * @param userid     用户id
     */
    void checkDifficulty(Integer difficulty, Integer week, TGame game);
    void checkDifficulty(Integer difficulty, Integer week, TGame game, Integer userid);
    /**
     * 自主学习2-看图选音
@@ -112,4 +113,13 @@
     * @return 积分
     */
    int computeTotalIntegral(List<String> studyIds, Integer type, Integer accuracy);
    /**
     * 超级记忆正确率达到通关率标准,才能进入下一周目学习
     *
     * @param game          游戏信息
     * @param userid        用户id
     * @param completeStudy 游戏完成信息
     */
    void checkRate(TGame game, Integer userid, CompleteGameDTO completeStudy);
}