Commit 4f4ee311 by 王召彬

优惠券rpc接口调整参数

parent 7dcfaa9c
......@@ -16,7 +16,7 @@ use Swoft\Core\ResultInterface;
/**
* The interface of coupon service
*
* @method ResultInterface deferCheckCoupon(int $buyerId, int $storeId, int $couponId, int $itemId)
* @method ResultInterface deferCheckCoupon(int $buyerId, int $storeId, int $couponId, array $itemIds)
* @method ResultInterface deferGetCouponRecvdList(int $buyerId, int $storeId, int $subStoreId = 0, int $itemId = 0)
* @method ResultInterface deferGetDataByCouponId(int $buyerId, int $storeId, int $couponId)
*/
......@@ -40,10 +40,10 @@ interface CouponInterface
* @param integer $buyerId
* @param integer $storeId
* @param integer $couponId
* @param integer $itemId
* @param array $itemIds
* @return int|boolen 如果可用返回优惠券的面值,不可用返回false
*/
public function checkCoupon(int $buyerId, int $storeId, int $couponId, int $itemId);
public function checkCoupon(int $buyerId, int $storeId, int $couponId, array $itemIds);
/**
* 更新优惠券状态
......
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