Commit d322dae0 by xmy

增加减少库存

parent 54068342
...@@ -12,6 +12,8 @@ use Swoft\Core\ResultInterface; ...@@ -12,6 +12,8 @@ use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferGet($storeId, $id) * @method ResultInterface deferGet($storeId, $id)
* @method ResultInterface deferIncSales($storeId, $goodsId)
* @method ResultInterface deferDecSales($storeId, $goodsId)
* Interface GoodsInterface * Interface GoodsInterface
* @package Hdll\Services\Goods\Lib * @package Hdll\Services\Goods\Lib
*/ */
...@@ -39,4 +41,25 @@ interface GoodsInterface ...@@ -39,4 +41,25 @@ interface GoodsInterface
*/ */
public function get($storeId, $id); public function get($storeId, $id);
/**
* 增加商品销量
* 减少商品库存
* @param $storeId
* @param $goodsId
* @return mixed
* @author Administrator
*/
public function incSales($storeId, $goodsId);
/**
* 减少商品销量
* 增加商品库存
* @param $storeId
* @param $goodsId
* @return mixed
* @author Administrator
*/
public function decSales($storeId, $goodsId);
} }
\ No newline at end of file
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