PromoteDiscountServiceInterface.php 991 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Yxy\Service;
  3. interface PromoteDiscountServiceInterface
  4. {
  5. /**
  6. * 根据渠道ID和游戏ID获取基础折扣以及加点折扣信息
  7. * @param int $promote_id
  8. * @param int $game_id
  9. * @param int $amount
  10. * @return array
  11. */
  12. public function discountInfo(int $promote_id, int $game_id, int $amount = 1): array;
  13. /**
  14. * 查询渠道用户折扣信息
  15. * @param $promote_id
  16. * @param $game_id
  17. * @param $user_id
  18. * @param int $amount
  19. * @param mixed $default_discount
  20. * @return array
  21. */
  22. public function rechargeDiscount($promote_id, $game_id, $user_id, int $amount = 1, $default_discount = false): array;
  23. /**
  24. * 查询用户明折充值折扣
  25. * @param $game_id
  26. * @param $user_id
  27. * @param int $amount
  28. * @param mixed $default_discount
  29. * @return array
  30. */
  31. public function userSpendDiscount($game_id, $user_id, int $amount = 1, $default_discount = false): array;
  32. }