| | |
| | | |
| | | 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.*; |
| | | |
| | |
| | | * 获取学习进度及学习时长等信息 |
| | | * |
| | | * @param userId 用户id |
| | | * @param week 周目 |
| | | * @return 学习信息 |
| | | */ |
| | | TUserStudy studySchedule(String userId, Integer week); |
| | | TUserStudy studySchedule(String userId); |
| | | |
| | | /** |
| | | * 自主学习1-听音选图 |
| | |
| | | * @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-看图选音 |
| | |
| | | * @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); |
| | | } |