| | |
| | | package com.ruoyi.study.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.study.domain.TGameRecord; |
| | | import com.ruoyi.study.domain.TIntegralRecord; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public interface ITIntegralRecordService extends IService<TIntegralRecord> { |
| | | |
| | | /** |
| | | * 用户积分明细 |
| | | * |
| | | * @param page 分页 |
| | | * @param userId 用户id |
| | | * @param time yyyy-mm格式时间 |
| | | * @return 分页列表 |
| | | */ |
| | | IPage<TIntegralRecord> integralDetail(Page<TIntegralRecord> page, Integer userId, String time); |
| | | |
| | | /** |
| | | * 生成积分明细 |
| | | * |
| | | * @param integral 积分 (增加积分+ 、减少积分-) |
| | | * @param method 积分来源 |
| | | * @param gameId 游戏id |
| | | * @param storyId 故事id |
| | | * @param difficulty 游戏难度 |
| | | * @param storyType 故事类型(0:看图配音;1:框架记忆) |
| | | * @return 操作结果 |
| | | */ |
| | | Boolean add(String integral, String method, Integer gameId, Integer storyId, Integer difficulty,Integer storyType); |
| | | } |