| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.study.domain.TGame; |
| | | import com.ruoyi.study.domain.TIntegralRecord; |
| | | import com.ruoyi.study.dto.CompleteGameDTO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface ITGameService extends IService<TGame> { |
| | | |
| | | /** |
| | | * 根据正确率计算用户本次游戏可获得的积分数量 |
| | | * |
| | | * @param userid 用户id |
| | | * @param game 游戏信息 |
| | | * @param integralRecordList 积分明细信息 |
| | | * @param completeStudy 游戏测试信息 |
| | | * @return 可获得积分数量 |
| | | */ |
| | | Integer countIntegral(Integer userid ,TGame game, CompleteGameDTO completeStudy, List<TIntegralRecord> integralRecordList); |
| | | } |