Commit b8db94ec by 王洁

秒杀砍价加接口:getNewOrderNum

parent 709eb83a
......@@ -16,9 +16,11 @@ use Swoft\Core\ResultInterface;
/**
* The interface of demo service
*
* @method ResultInterface deferGetgoodsinfo(int $limit_id)
* @method ResultInterface deferGetBargainInfo(int $limit_id)
* @method ResultInterface deferGetgoodsInfo(int $storeId, int $bargain_id)
* @method ResultInterface deferGetBargainInfo(int $storeId, int $goodsId)
* @method ResultInterface deferPayStatus(string $storeId,int $bargainbranchId,int $status, int $orderId)
* @method ResultInterface deferGetBargainCounts(int $storeId)
* @method ResultInterface deferGetNewOrderNum(int $storeId,int $lastTime)
*/
interface BargainInterface
{
......@@ -33,9 +35,7 @@ interface BargainInterface
* "activityName" 活动名称
* }
*/
public function getGoodsInfo(
int $stordId, int $bargain_id
);
public function getGoodsInfo(int $storeId, int $bargain_id);
/**
......@@ -45,9 +45,7 @@ interface BargainInterface
* @return bool
*
*/
public function getBargainInfo(
int $storeId, int $goodsId
);
public function getBargainInfo(int $storeId, int $goodsId);
/**
......@@ -57,18 +55,23 @@ interface BargainInterface
* @param int $status // BargainEnum::HAVE_PAY 成功支付 BargainEnum::PAY_EXCEPTION:未支付 (已经过期或者支付异常)
* @return mixed
*/
public function payStatus(
string $storeId,
int $bargainbranchId,
int $status , //
int $orderId);
public function payStatus(string $storeId,int $bargainbranchId,int $status, int $orderId);
/**
/**
* 获取砍价活动总个数 和正在进行的个数
*
* @return mixed
*/
public function getBargainCounts(int $storeId);
/**
*获取自上次时间以来产生的新订单数
*
* @param [int] $storeId
* @param [int] $lastTime
* @return int
*/
public function getNewOrderNum(int $storeId,int $lastTime);
}
......
......@@ -17,7 +17,11 @@ use Swoft\Core\ResultInterface;
* The interface of demo service
*
* @method ResultInterface deferBackNum(string $token, int $consignee_id, int $limit_id, int $selected_num, int $order_type, int $goods_id, string $reservation_time = '')
* @method ResultInterface deferGetLimitCounts(int $storeId)
* @method ResultInterface deferGetLimitGoods(int $storeId, int $limitId)
* @method ResultInterface deferGetLimitInfo(int $storeId, int $goodsId)
* @method ResultInterface deferPayStatus(string $store_id,int $limit_id, int $status, int $orderId)
* @method ResultInterface deferGetLimitCounts(int $storeId)
* @method ResultInterface deferGetNewOrderNum(int $storeId,int $lastTime)
*/
interface LimitTimeBuyInterface
{
......@@ -52,9 +56,7 @@ interface LimitTimeBuyInterface
* "activityName" 活动名称
* }
*/
public function getLimitGoods(
int $storeId, int $limitId
);
public function getLimitGoods(int $storeId, int $limitId);
/**
* 通过商品id 获取是否 有限时购活动
......@@ -63,9 +65,7 @@ interface LimitTimeBuyInterface
* @return bool
*
*/
public function getLimitInfo(
int $storeId, int $goodsId
);
public function getLimitInfo(int $storeId, int $goodsId);
/**
......@@ -77,11 +77,7 @@ interface LimitTimeBuyInterface
* @return bool|mixed
* @throws ConException
*/
public function payStatus(
string $store_id,
int $limit_id,
int $status,
int $orderId);
public function payStatus(string $store_id,int $limit_id,int $status, int $orderId);
/**
* 获取限时购活动总个数 和正在进行的个数
......@@ -89,4 +85,14 @@ interface LimitTimeBuyInterface
* @return mixed
*/
public function getLimitCounts(int $storeId);
/**
*获取自上次时间以来产生的新订单数
*
* @param [int] $storeId
* @param [int] $lastTime
* @return int
*/
public function getNewOrderNum(int $storeId,int $lastTime);
}
\ 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