Commit 398e497e by xmy

佣金接口

parent 99f09097
...@@ -11,6 +11,10 @@ use Swoft\Core\ResultInterface; ...@@ -11,6 +11,10 @@ use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferSaveBill($orderId, $sellerId, $money) * @method ResultInterface deferSaveBill($orderId, $sellerId, $money)
* @method ResultInterface deferGetCommission($sellerId) * @method ResultInterface deferGetCommission($sellerId)
* method ResultInterface deferAddBalance($sellerId, $money)
* method ResultInterface deferReduceBalance($sellerId, $money)
* method ResultInterface deferAddTotal($sellerId, $money)
* method ResultInterface deferReduceTotal($sellerId, $money)
* Interface SellerDistributionInterface * Interface SellerDistributionInterface
* @package App\Lib * @package App\Lib
*/ */
...@@ -39,4 +43,40 @@ interface SellerDistributionInterface{ ...@@ -39,4 +43,40 @@ interface SellerDistributionInterface{
* @author Administrator * @author Administrator
*/ */
public function getCommission($sellerId); public function getCommission($sellerId);
/**
* 增加佣金
* @param $sellerId
* @param $money
* @return mixed
* @author Administrator
*/
public function addBalance($sellerId, $money);
/**
* 减少佣金
* @param $sellerId
* @param $money
* @return mixed
* @author Administrator
*/
public function reduceBalance($sellerId, $money);
/**
* 增加累计佣金
* @param $sellerId
* @param $money
* @return mixed
* @author Administrator
*/
public function addTotal($sellerId, $money);
/**
* 减少累计佣金
* @param $sellerId
* @param $money
* @return mixed
* @author Administrator
*/
public function reduceTotal($sellerId, $money);
} }
\ 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