Commit 90826b31 by 王召彬

保赚服务rpc

parent 817655bd
......@@ -17,7 +17,8 @@ use Swoft\Core\ResultInterface;
* The interface of insurance service
*
* @method ResultInterface deferGetOrderInfo(int $storeId, int $orderId)
* @method ResultInterface deferPaySuccess(int $storeId, int $sellerId, $unionId, int $orderId)
* @method ResultInterface deferGetOrderBySn(int $storeId, $orderSn)
* @method ResultInterface deferPaySuccess(int $storeId, $orderSn)
*/
interface InsuranceInterface
{
......@@ -31,11 +32,22 @@ interface InsuranceInterface
public function getOrderInfo(int $storeId, int $orderId);
/**
* 获取指定订单数据
*
* @param integer $storeId
* @param integer $orderSn
* @return array
*/
public function getOrderBySn(int $storeId, $orderSn);
/**
* 支付成功回调
*
* @param integer $orderId
* @param integer $storeId
* @param string $orderSn
* @Number(name="storeId")
* @return void
*/
public function paySuccess(int $storeId, int $sellerId, $unionId, int $orderId);
public function paySuccess(int $storeId, $orderSn);
}
\ 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