| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.goods.api.domain.UserLotteryEventQuestionsAnswers; |
| | | import com.ruoyi.goods.api.domain.TUserLotteryEventQuestionsAnswers; |
| | | import com.ruoyi.goods.domain.vo.MgtUserAnswersPageVO; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | * @author zhibing.pu |
| | | * @Date 2025/5/19 16:07 |
| | | */ |
| | | public interface IUserLotteryEventQuestionsAnswersService extends IService<UserLotteryEventQuestionsAnswers> { |
| | | public interface IUserLotteryEventQuestionsAnswersService extends IService<TUserLotteryEventQuestionsAnswers> { |
| | | |
| | | |
| | | /** |
| | | * 获取用户答题正确率 |
| | | * |
| | | * @param userId |
| | | * @param lotteryEventId |
| | | * @return |
| | | */ |
| | | BigDecimal getCorrectAnswerRate(Long userId, String lotteryEventId); |
| | | |
| | | List<MgtUserAnswersPageVO> getUserAnswersPage(Page<MgtUserAnswersPageVO> page, String lotteryEventId, Long userId); |
| | | |
| | | List<MgtUserAnswersPageVO> getUserAnswersPage(Page<MgtUserAnswersPageVO> page, String lotteryEventId, Long userId); |
| | | } |