Commit bd516b47 by xmy

feat:获取正在进行的活动

parent 92eea1a3
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
namespace Hdll\Services\GroupBooking\Lib; namespace Hdll\Services\GroupBooking\Lib;
use App\Exception\ServiceException;
use Swoft\Core\ResultInterface; use Swoft\Core\ResultInterface;
/** /**
...@@ -15,6 +16,7 @@ use Swoft\Core\ResultInterface; ...@@ -15,6 +16,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferHasActivity($storeId, $goodsId) * @method ResultInterface deferHasActivity($storeId, $goodsId)
* @method ResultInterface deferAdminCountActivity($storeId) * @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetNewOrderNum($storeId, $time) * @method ResultInterface deferGetNewOrderNum($storeId, $time)
* @method ResultInterface deferGetOnGoing($storeId, $fields = ['*'])
* Interface GoodsInterface * Interface GoodsInterface
* @package Hdll\Services\Goods\Lib * @package Hdll\Services\Goods\Lib
*/ */
...@@ -59,4 +61,13 @@ interface GroupBookingInterface ...@@ -59,4 +61,13 @@ interface GroupBookingInterface
* @return number * @return number
*/ */
public function getNewOrderNum($storeId, $time); public function getNewOrderNum($storeId, $time);
/**
* 获取进行中的活动
* @param $storeId
* @param array $fields
* @return mixed
*/
public function getOnGoing($storeId, $fields = ['*']);
} }
\ No newline at end of file
...@@ -7,6 +7,7 @@ use Swoft\Core\ResultInterface; ...@@ -7,6 +7,7 @@ use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferAdminCountActivity($storeId) * @method ResultInterface deferAdminCountActivity($storeId)
* @method ResultInterface deferGetNewOrderNum($storeId, $time) * @method ResultInterface deferGetNewOrderNum($storeId, $time)
* @method ResultInterface deferGetOnGoing($storeId, $fields = ['*'])
* Class LotteryInterface * Class LotteryInterface
* @package Hdll\Services\Lottery\Lib * @package Hdll\Services\Lottery\Lib
*/ */
...@@ -35,4 +36,12 @@ interface LotteryInterface ...@@ -35,4 +36,12 @@ interface LotteryInterface
* @author work * @author work
*/ */
public function getNewOrderNum($storeId, $time); public function getNewOrderNum($storeId, $time);
/**
* 获取正在进行的活动
* @param $storeId
* @param array $fields
* @return mixed
*/
public function getOnGoing($storeId, $fields = ['*']);
} }
\ 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