PointService.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.fuint.common.service;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.fuint.common.dto.PointDto;
  4. import com.fuint.framework.exception.BusinessCheckException;
  5. import com.fuint.framework.pagination.PaginationRequest;
  6. import com.fuint.framework.pagination.PaginationResponse;
  7. import com.fuint.repository.model.MtPoint;
  8. /**
  9. * 积分业务接口
  10. *
  11. * Created by FSQ
  12. * CopyRight https://www.fuint.cn
  13. */
  14. public interface PointService extends IService<MtPoint> {
  15. /**
  16. * 分页查询积分列表
  17. *
  18. * @param paginationRequest
  19. * @return
  20. */
  21. PaginationResponse<PointDto> queryPointListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;
  22. /**
  23. * 添加积分
  24. *
  25. * @param reqPointDto
  26. * @throws BusinessCheckException
  27. * @return
  28. */
  29. void addPoint(MtPoint reqPointDto) throws BusinessCheckException;
  30. /**
  31. * 转赠积分
  32. *
  33. * @param userId
  34. * @param mobile
  35. * @param amount
  36. * @param remark
  37. * @throws BusinessCheckException
  38. * @return
  39. */
  40. boolean doGift(Integer userId, String mobile, Integer amount, String remark) throws BusinessCheckException;
  41. }