| | |
| | | |
| | | 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 type 所属类型 |
| | | * @param quarter 季度 |
| | | * @param userId 用户id |
| | | * @return 列表 |
| | | */ |
| | | List<StudyWeekDTO> weekList(Integer type, Integer quarter); |
| | | List<StudyWeekDTO> weekList(Integer type, Integer quarter, Integer userId); |
| | | |
| | | /** |
| | | * 获取学习进度及学习时长等信息 |
| | | * |
| | | * @param userId 用户id |
| | | * @param studyRecord 学习进度 |
| | | * @param week 所属周目 |
| | | * @return 学习信息 |
| | | */ |
| | | TUserStudy studySchedule(String userId); |
| | | TUserStudy studySchedule(TUserStudy studyRecord, Integer week); |
| | | |
| | | /** |
| | | * 自主学习1-听音选图 |
| | |
| | | int computeTotalIntegral(List<String> studyIds, Integer type, Integer accuracy); |
| | | |
| | | /** |
| | | * 超级记忆正确率达到通关率标准,才能进入下一周目学习 |
| | | * 计算剩余学习周目 |
| | | * |
| | | * @param game 游戏信息 |
| | | * @param userid 用户id |
| | | * @param completeStudy 游戏完成信息 |
| | | * @param studyRecord 学习进度信息 |
| | | * @param studyList 学习配置列表 |
| | | * @return 剩余周目 |
| | | */ |
| | | void checkRate(TGame game, Integer userid, CompleteGameDTO completeStudy); |
| | | int residueWeek(TUserStudy studyRecord, List<TStudy> studyList); |
| | | |
| | | /** |
| | | * 校验超级听力是否通过 |
| | | * |
| | | * @param game 游戏信息 |
| | | * @param userid 用户信息 |
| | | */ |
| | | void checkClearance(TGame game, Integer userid); |
| | | |
| | | /** |
| | | * 获取当前周目游戏难度 |
| | | * |
| | | * @param studyRecord 学习进度 |
| | | * @param week 周目 |
| | | * @return 难度 |
| | | */ |
| | | Integer userGameDifficulty(TUserStudy studyRecord, Integer week); |
| | | } |