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
e5f28d04
Commit
e5f28d04
authored
Nov 30, 2018
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.23
cmq seller 枚举
parent
bd752f8c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
+30
-12
UPGRADE.md
+2
-0
src/Seller/Enum/SellerCmqEnum.php
+5
-2
src/SellerDistribution/Enum/SellerDistributionCmqEnum.php
+13
-0
src/SellerDistribution/Lib/SellerDistributionInterface.php
+10
-10
No files found.
UPGRADE.md
View file @
e5f28d04
# 1.0.23
-
卖家分销,卖家钱包 消息队列枚举
# 1.0.22
-
卖家钱包消息队列枚举
# 1.0.21
...
...
src/Seller/Enum/SellerCmqEnum.php
View file @
e5f28d04
...
...
@@ -6,7 +6,11 @@ class SellerCmqEnum{
const
TOPIC
=
'seller'
;
const
ADD_BALANCE
=
'addBalance'
;
const
REDUCE_BALANCE
=
'reduceBalance'
;
const
REDUCE_TOTAL
=
'reduceTotal'
;
const
ADD_FUND
=
'addFund'
;
const
ADD_EXPECT_FUND
=
'addExpectFund'
;
const
REDUCE_EXPECT_FUND
=
'reduceExpectFund'
;
const
ADD_ACTUAL_COMMISSION_FUND
=
'addActualCommissionFund'
;
const
ADD_TOTAL
=
'addTotal'
;
const
REFUND_ADD_BALANCE
=
'refundAddBalance'
;
}
\ No newline at end of file
src/SellerDistribution/Enum/SellerDistributionCmqEnum.php
0 → 100644
View file @
e5f28d04
<?php
namespace
Hdll\Services\Seller\Enum
;
class
SellerDistributionCmqEnum
{
const
TOPIC
=
'sellerDistribution'
;
const
ADD_BALANCE
=
'addBalance'
;
const
REDUCE_BALANCE
=
'reduceBalance'
;
const
ADD_TOTAL
=
'addTotal'
;
const
REFUND_ADD_BALANCE
=
'refundAddBalance'
;
}
\ No newline at end of file
src/SellerDistribution/Lib/SellerDistributionInterface.php
View file @
e5f28d04
...
...
@@ -11,12 +11,12 @@ use Swoft\Core\ResultInterface;
/**
* @method ResultInterface deferSaveBill($orderId, $sellerId, $money)
* @method ResultInterface deferGetCommission($sellerId)
*
method ResultInterface deferAddBalance($sellerId, $money
)
*
method ResultInterface deferReduceBalance($sellerId, $money
)
* method ResultInterface deferListByOrderId($storeId, $orderId,$sellerId)
*
method ResultInterface deferAddTotal($sellerId, $money
)
*
method ResultInterface deferRefundAddBalance($sellerId, $money
)
* method ResultInterface deferCountVip($storeId, $sellerId)
*
@method ResultInterface deferAddBalance($sellerId, $money, $orderSn
)
*
@method ResultInterface deferReduceBalance($sellerId, $money, $orderSn
)
*
@
method ResultInterface deferListByOrderId($storeId, $orderId,$sellerId)
*
@method ResultInterface deferAddTotal($sellerId, $money, $orderSn
)
*
@method ResultInterface deferRefundAddBalance($sellerId, $money, $orderSn
)
*
@
method ResultInterface deferCountVip($storeId, $sellerId)
* Interface SellerDistributionInterface
* @package App\Lib
*/
...
...
@@ -53,7 +53,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public
function
addBalance
(
$sellerId
,
$money
);
public
function
addBalance
(
$sellerId
,
$money
,
$orderSn
);
/**
* 减少佣金
...
...
@@ -62,7 +62,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public
function
reduceBalance
(
$sellerId
,
$money
);
public
function
reduceBalance
(
$sellerId
,
$money
,
$orderSn
);
/**
...
...
@@ -92,7 +92,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public
function
addTotal
(
$sellerId
,
$money
);
public
function
addTotal
(
$sellerId
,
$money
,
$orderSn
);
/**
...
...
@@ -102,7 +102,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public
function
refundAddBalance
(
$sellerId
,
$money
);
public
function
refundAddBalance
(
$sellerId
,
$money
,
$orderSn
);
/**
...
...
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