Commit 858f970c by xmy

卖家钱包

parent 5b2e77b0
...@@ -12,31 +12,24 @@ use Swoft\Core\ResultInterface; ...@@ -12,31 +12,24 @@ use Swoft\Core\ResultInterface;
/** /**
* *
* @method ResultInterface deferWithdraw($sellerId, $money) * @method ResultInterface deferGetFund($sellerId)
* @method ResultInterface deferWithdrawFail($sellerId, $money)
* Interface SellerInterface * Interface SellerInterface
* @package App\Lib * @package App\Lib
*/ */
interface SellerFundInterface interface SellerFundInterface
{ {
/**
* 提现
* @param $sellerId
* @param $money (分)
* @return mixed
* @author Administrator
*/
public function withdraw($sellerId, $money);
/** /**
* 提现失败 *
* @param $sellerId * @param $sellerId
* @param $money (分)
* @return mixed * @return mixed
* totalFund 累计资金
* balanceFund 可提现金额
* commissionFund 需要支付的佣金
* expectFund 冻结金额
* totalWithdraw 累计提现
* @author Administrator * @author Administrator
*/ */
public function withdrawFail($sellerId, $money); public function getFund($sellerId);
} }
\ No newline at end of file
...@@ -10,6 +10,7 @@ use Swoft\Core\ResultInterface; ...@@ -10,6 +10,7 @@ use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferSaveBill($orderId, $sellerId, $money) * @method ResultInterface deferSaveBill($orderId, $sellerId, $money)
* @method ResultInterface deferGetCommission($sellerId)
* Interface SellerDistributionInterface * Interface SellerDistributionInterface
* @package App\Lib * @package App\Lib
*/ */
...@@ -28,4 +29,14 @@ interface SellerDistributionInterface{ ...@@ -28,4 +29,14 @@ interface SellerDistributionInterface{
*/ */
public function saveBill($orderId, $sellerId, $money); public function saveBill($orderId, $sellerId, $money);
/**
* 获取佣金信息
* @param $sellerId
* @return mixed
* totalCommission 累计佣金
* balanceCommission 可提现佣金
* @author Administrator
*/
public function getCommission($sellerId);
} }
\ 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