LuckDrawCountService.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.ym.mec.biz.service;
  2. import com.ym.mec.biz.dal.entity.LuckDrawCount;
  3. import com.ym.mec.common.service.BaseService;
  4. public interface LuckDrawCountService extends BaseService<Long, LuckDrawCount> {
  5. public LuckDrawCount getLock(Long userId);
  6. /**
  7. * 免费赠送次数
  8. * @param userId
  9. * @param times
  10. * @return
  11. */
  12. public boolean freeGive(Long userId, int times,Integer groupId);
  13. /**
  14. * 更新抽奖次数
  15. * @param userId
  16. * @param times
  17. * @return
  18. */
  19. public boolean updateTimes(Long userId, int times);
  20. /**
  21. * 更新抽奖金额
  22. * @param userId
  23. * @param amount 以分为单位
  24. * @return
  25. */
  26. public boolean updateAmount(Long userId, Long amount);
  27. /**
  28. * @description:
  29. * @param userId
  30. * @param groupId
  31. * @return com.ym.mec.biz.dal.entity.LuckDrawCount
  32. * @author zx
  33. * @date 2021/10/19 16:16
  34. */
  35. LuckDrawCount findByIdAndGroupId(Integer userId, int groupId);
  36. /**
  37. * @description:
  38. * @param userId
  39. * @param groupId
  40. * @return com.ym.mec.biz.dal.entity.LuckDrawCount
  41. * @author zx
  42. * @date 2021/10/19 16:16
  43. */
  44. LuckDrawCount findLockByIdAndGroupId(Integer userId, int groupId);
  45. }