StoreCouponUserCouponServices.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\services\activity\coupon;
  12. use app\dao\activity\coupon\StoreCouponUserCouponDao;
  13. use app\services\BaseServices;
  14. /**
  15. * 根据下单金额获取用户能使用的优惠卷
  16. * Class StoreCouponUserCouponServices
  17. * @package app\services\coupon
  18. * @method getUidCouponList(int $uid, string $truePrice, int $productId)
  19. * @method getUidCouponMinList($uid, $price, $value = '', int $type = 1) 获取购买金额最小使用范围内的优惠卷
  20. */
  21. class StoreCouponUserCouponServices extends BaseServices
  22. {
  23. /**
  24. * StoreCouponUserCouponServices constructor.
  25. * @param StoreCouponUserCouponDao $dao
  26. */
  27. public function __construct(StoreCouponUserCouponDao $dao)
  28. {
  29. $this->dao = $dao;
  30. }
  31. }