Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
28cfc5ad
Commit
28cfc5ad
authored
Aug 13, 2018
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
佣金接口
parent
f41a36c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
src/Common/Pool/Config/GoodsPoolConfig.php
+1
-2
src/SellerDistribution/Lib/SellerDistributionInterface.php
+41
-0
No files found.
src/Common/Pool/Config/GoodsPoolConfig.php
View file @
28cfc5ad
...
@@ -78,8 +78,7 @@ class GoodsPoolConfig extends PoolProperties
...
@@ -78,8 +78,7 @@ class GoodsPoolConfig extends PoolProperties
* @var array
* @var array
*/
*/
protected
$uri
=
[
protected
$uri
=
[
'172.21.0.9:8099'
,
'192.168.3.39:8400'
,
'172.16.255.13:8099'
,
];
];
/**
/**
...
...
src/SellerDistribution/Lib/SellerDistributionInterface.php
View file @
28cfc5ad
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment