Commit 2983e148 by 王洁

Merge branch 'coupon-membercard' into test

parents 8d606614 3ce9a2e6
...@@ -24,6 +24,7 @@ use Swoft\Core\ResultInterface; ...@@ -24,6 +24,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetUserCouponDetail(int $storeId ,int $couponId) * @method ResultInterface deferGetUserCouponDetail(int $storeId ,int $couponId)
* @method ResultInterface deferSetUserCouponStatus(int $storeId,int $couponId,int $status) * @method ResultInterface deferSetUserCouponStatus(int $storeId,int $couponId,int $status)
* @method ResultInterface deferGetUserValidCouponNum(int $storeId,int $escrow,int $userId) * @method ResultInterface deferGetUserValidCouponNum(int $storeId,int $escrow,int $userId)
* @method ResultInterface deferIfCouponSuitOrder(int $storeId,int $userId,int $couponId,array $goods)
*/ */
/** /**
* The interface of demo service * The interface of demo service
...@@ -107,4 +108,16 @@ interface MemberCardInterface ...@@ -107,4 +108,16 @@ interface MemberCardInterface
* @return int * @return int
*/ */
public function getUserValidCouponNum(int $storeId,int $escrow,int $userId); public function getUserValidCouponNum(int $storeId,int $escrow,int $userId);
/**
* 判断优惠券是否适用于订单(下单的时候调用)
*
* @param integer $storeId
* @param integer $userId
* @param integer $couponId
* @param array $goods [{goodsId:totalPrice},...]
* @return bool
*/
public function ifCouponSuitOrder(int $storeId,int $userId,int $couponId,array $goods);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment