You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.2 KiB
64 lines
1.2 KiB
<?php
|
|
|
|
namespace App\Service;
|
|
|
|
interface OrderServiceInterface
|
|
{
|
|
/**
|
|
* 线上订单下单
|
|
* 外卖
|
|
* @param $data
|
|
* @return mixed
|
|
*/
|
|
public function addOnlineOrder($data);
|
|
|
|
/**
|
|
* 线下订单下单
|
|
* 扫码支付
|
|
* @param $data
|
|
* @return mixed
|
|
*/
|
|
public function addOfflineOrder($data);
|
|
|
|
/**
|
|
* 订单是否已经存在
|
|
* @param $global_order_id
|
|
* @return mixed
|
|
*/
|
|
public function existsByGlobalOrderId($global_order_id);
|
|
|
|
/**
|
|
* 订单完成
|
|
* @param $global_order_id
|
|
* @return mixed
|
|
*/
|
|
public function onlineCompleted($global_order_id);
|
|
|
|
/**
|
|
* 线上订单支付完成
|
|
* @param $global_order_id
|
|
* @return mixed
|
|
*/
|
|
public function onlinePaid($global_order_id);
|
|
|
|
/**
|
|
* 线下订单支付完成
|
|
* @param $global_order_id
|
|
* @return mixed
|
|
*/
|
|
public function offlinePaid($global_order_id);
|
|
|
|
/**
|
|
* 线上订单取消
|
|
* @param $global_order_id
|
|
* @return mixed
|
|
*/
|
|
public function onlineCancel($order_id);
|
|
|
|
/**
|
|
* 线上订单退款
|
|
* @param $global_order_id
|
|
* @return mixed
|
|
*/
|
|
public function onlineRefund($global_order_id);
|
|
}
|