Commit 6f878089 by 王洁

修改

parent ee5bac3c
......@@ -5,7 +5,7 @@ namespace Hdll\Services\FrontMoney\Enum;
class FrontCmqEnum
{
const TOPIC = 'timeLimitBuy';
const TOPIC = 'frontMoney';
const UP_ORDER_STATUS = 'upOrderStatus'; //更新订单状态
}
\ No newline at end of file
......@@ -8,29 +8,29 @@
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace Hdll\Services\LimitTimeBuy\Lib;
namespace Hdll\Services\FrontMoney\Lib;
use Hdll\Services\LimitTimeBuy\Enum\LimitTimeOrderEnum;
use Hdll\Services\FrontMoney\Enum\FrontOrderEnum;
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 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 deferBackNum(string $token, int $consignee_id, int $front_id, int $selected_num, int $order_type, int $goods_id, string $reservation_time = '')
* @method ResultInterface deferGetFrontGoods(int $storeId, int $frontId)
* @method ResultInterface deferGetFrontInfo(int $storeId, int $goodsId)
* @method ResultInterface deferPayStatus(string $store_id,int $front_id, int $status, int $orderId)
* @method ResultInterface deferGetFrontCounts(int $storeId)
* @method ResultInterface deferGetNewOrderNum(int $storeId,int $lastTime)
*/
interface LimitTimeBuyInterface
interface FrontMoneyInterface
{
/**
*
* 补回 未支付 限购活动 库存
* 补回 未支付 定金活动 库存
* @param string $token
* @param int $consignee_id
* @param int $limit_id
* @param int $front_id
* @param int $selected_num
* @param int $order_type
* @param int $goods_id
......@@ -40,7 +40,7 @@ interface LimitTimeBuyInterface
public function backNum(
string $token,
int $consignee_id,
int $limit_id,
int $front_id,
int $selected_num,
int $order_type,
int $goods_id,
......@@ -48,7 +48,7 @@ interface LimitTimeBuyInterface
/**
* 获取限时购商品的 商品信息
* @param int $limit_id
* @param int $front_id
* @return {
* "name" 名称
* "image" 图片
......@@ -56,7 +56,7 @@ interface LimitTimeBuyInterface
* "activityName" 活动名称
* }
*/
public function getLimitGoods(int $storeId, int $limitId);
public function getFrontGoods(int $storeId, int $frontId);
/**
* 通过商品id 获取是否 有限时购活动
......@@ -65,26 +65,26 @@ interface LimitTimeBuyInterface
* @return bool
*
*/
public function getLimitInfo(int $storeId, int $goodsId);
public function getFrontInfo(int $storeId, int $goodsId);
/**
* 支付 状态 回馈接口
* @param string $store_id
* @param int $limit_id
* @param int $status // 2.LimitTimeOrderEnum::STATUS_HAVE_PAY 成功支付 3:LimitTimeOrderEnum::STATUS_PAY_EXCEPTION 未支付 (已经过期或者支付异常)4 LimitTimeOrderEnum::STATUS_PAY_REFUND 退款
* @param int $front_id
* @param int $status // 2.FrontOrderEnum::STATUS_HAVE_PAY 成功支付 3:FrontOrderEnum::STATUS_PAY_EXCEPTION 未支付 (已经过期或者支付异常)4 FrontOrderEnum::STATUS_PAY_REFUND 退款
* @param int $orderId
* @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 $front_id,int $status, int $orderId);
/**
* 获取限时购活动总个数 和正在进行的个数
*
* @return mixed
*/
public function getLimitCounts(int $storeId);
public function getFrontCounts(int $storeId);
/**
......
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