You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
807 B

  1. <?php
  2. namespace App\Service\v3\Interfaces;
  3. interface CouponServiceInterface
  4. {
  5. /**
  6. * 领取
  7. * @return mixed
  8. */
  9. public function do();
  10. /**
  11. * 是否已经领取
  12. * @return mixed
  13. */
  14. public function check();
  15. /**
  16. * 退还优惠券
  17. * @return mixed
  18. */
  19. public function undo();
  20. public function cacheTodayCouponUsed($userId, $couponId, $couponRecId);
  21. public function allTodayCouponUsed($userId);
  22. /**
  23. * 订单使用优惠券
  24. * @param $globalOrderId
  25. * @param $couponRecs
  26. * @return mixed
  27. */
  28. public function orderUseCoupons($globalOrderId, $couponRecs);
  29. /**
  30. * 订单退还优惠券
  31. * @param $globalOrderId
  32. * @return mixed
  33. */
  34. public function orderRefundCoupons($globalOrderId);
  35. }