Commit 09cda03a by xmy

feat:数量

parent 352fd835
...@@ -22,6 +22,7 @@ use Swoft\Core\ResultInterface; ...@@ -22,6 +22,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetSkuByGoodsId($goodsId, $storeId) * @method ResultInterface deferGetSkuByGoodsId($goodsId, $storeId)
* @method ResultInterface deferGetSpecAttributeByGoodsId($goodsId, $storeId) * @method ResultInterface deferGetSpecAttributeByGoodsId($goodsId, $storeId)
* @method ResultInterface deferAfterServiceTmp($storeId) * @method ResultInterface deferAfterServiceTmp($storeId)
* @method ResultInterface deferAdminCountActivity($storeId)
* Interface GoodsInterface * Interface GoodsInterface
* @package Hdll\Services\Goods\Lib * @package Hdll\Services\Goods\Lib
*/ */
...@@ -142,4 +143,16 @@ interface GoodsInterface ...@@ -142,4 +143,16 @@ interface GoodsInterface
* @author work * @author work
*/ */
public function afterServiceTmp($storeId); public function afterServiceTmp($storeId);
/**
* 获取商品数量
* [
* 'total'=>1,
* 'online'=>1
* ]
* @param $storeId
* @return mixed
* @author work
*/
public function adminCountGoods($storeId);
} }
...@@ -13,6 +13,7 @@ use Swoft\Core\ResultInterface; ...@@ -13,6 +13,7 @@ use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferPaySuccess($orderId) * @method ResultInterface deferPaySuccess($orderId)
* @method ResultInterface deferHasActivity($storeId,$goodsId) * @method ResultInterface deferHasActivity($storeId,$goodsId)
* @method ResultInterface deferAdminCountActivity($storeId)
* Interface GoodsInterface * Interface GoodsInterface
* @package Hdll\Services\Goods\Lib * @package Hdll\Services\Goods\Lib
*/ */
...@@ -33,4 +34,16 @@ interface GroupBookingInterface{ ...@@ -33,4 +34,16 @@ interface GroupBookingInterface{
* @author Administrator * @author Administrator
*/ */
public function closeRecord($storeId, $buyerId, $orderId); public function closeRecord($storeId, $buyerId, $orderId);
/**
* 获取所有活动数量
* [
* 'total'=>1,
* 'online'=>1
* ]
* @param $storeId
* @return mixed
* @author work
*/
public function adminCountActivity($storeId);
} }
\ 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