Commit 717feef7 by dzhang

Merge branch 'test' of http://git.dev.2b3.cn/tencent/services into test

parents ec068fb1 1c927940
...@@ -209,4 +209,12 @@ interface GoodsInterface ...@@ -209,4 +209,12 @@ interface GoodsInterface
* ] * ]
*/ */
public function addStock($storeId, $goods); public function addStock($storeId, $goods);
/**
* 计算商品价格
* @param $storeId
* @param $goods ['goodsId'=>num]
* @return mixed
*/
public function sumGoodsPrice($storeId, $goods);
} }
...@@ -23,7 +23,7 @@ use Swoft\Core\ResultInterface; ...@@ -23,7 +23,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferIfUserGetCard(int $storeId,int $userId,int $escrow) * @method ResultInterface deferIfUserGetCard(int $storeId,int $userId,int $escrow)
* @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)
*/ */
/** /**
* The interface of demo service * The interface of demo service
...@@ -97,4 +97,14 @@ interface MemberCardInterface ...@@ -97,4 +97,14 @@ interface MemberCardInterface
* @return bool * @return bool
*/ */
public function setUserCouponStatus(int $storeId,int $couponId,int $status); public function setUserCouponStatus(int $storeId,int $couponId,int $status);
/**
* 获取用户未失效优惠券数量
*
* @param integer $storeId
* @param integer $escrow
* @param integer $userId
* @return int
*/
public function getUserValidCouponNum(int $storeId,int $escrow,int $userId);
} }
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