Commit 6ea0cb81 by xmy

feat:外卖

parent 07099eb5
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
namespace Hdll\Services\Logistics\Lib; namespace Hdll\Services\Logistics\Lib;
use App\Exception\BaseException;
use App\Exception\RpcException;
use Swoft\Core\ResultInterface; use Swoft\Core\ResultInterface;
/** /**
...@@ -34,4 +36,28 @@ interface LogisticsInterface ...@@ -34,4 +36,28 @@ interface LogisticsInterface
* @return mixed * @return mixed
*/ */
public function getReceiver($id, $storeId); public function getReceiver($id, $storeId);
/**
* 获取即时配送收货人地址
* @param $id
* @param $storeId
* @return array
*/
public function getImReceiver($id, $storeId);
/**
* @param $storeId
* @param $buyerId
* @param $orderSn 订单号
* @param $items 商品信息
* [
* ['name'=>'商品名称','image'=>'shang_pin_tu_pian'],
* ['name'=>'商品名称','image'=>'shang_pin_tu_pian'],
* ]
* @param $price 商品总价
* @param $poiSeq 流水号
* @param $deliveryCode 配送服务代码 不同配送公司自定义, 顺丰和达达不填
* @return mixed
*/
public function preOrder($storeId, $buyerId, $orderSn, $items, $price, $poiSeq, $deliveryCode = null);
} }
\ 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