Commit 597b1c0f by 王洁

Merge branch 'frontmoney' into test

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