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
1bde9dcc
Commit
1bde9dcc
authored
Oct 22, 2019
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加新分销接口
parent
fe59152c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
src/Store/Lib/CommsettingInterface.php
+34
-3
No files found.
src/Store/Lib/CommsettingInterface.php
View file @
1bde9dcc
...
@@ -16,18 +16,21 @@ use Swoft\Core\ResultInterface;
...
@@ -16,18 +16,21 @@ use Swoft\Core\ResultInterface;
* The interface of store-commission service
* The interface of store-commission service
*
*
* @method ResultInterface deferGetCommSetting(int $storeId)
* @method ResultInterface deferGetCommSetting(int $storeId)
* @method ResultInterface deferUpdateByStoreId(int $storeId)
* @method ResultInterface deferGetDistriRule(int $storeId)
* @method ResultInterface deferUpdateByStoreId(int $storeId, array $data)
* @method ResultInterface deferUpdateDistriRule(int $storeId, array $data)
*/
*/
interface
CommsettingInterface
interface
CommsettingInterface
{
{
/**
/**
* 获取
买家分销
佣金规则
* 获取
店铺代理
佣金规则
*
*
* @param int $storeId
* @param int $storeId
* @return array
* @return array
* 返回内容说明:
* 返回内容说明:
* ['state'] => 分销佣金规则是否启用,0不启用,1启用
* ['state'] => 分销佣金规则是否启用,0不启用,1启用
* ['rechargeState'] => 储值卡代理是否启用,0不启用,1启用
* ['rechargeState'] => 储值卡代理是否启用,0不启用,1启用
* ['activityState'] => 活动代理是否启用,0不启用,1启用
* ['rule'] => 分销佣金规则具体设置内容,json格式: {"1":35,"2":14.5}
* ['rule'] => 分销佣金规则具体设置内容,json格式: {"1":35,"2":14.5}
* ['minWithdraw'] => 最小提现金额,单位分
* ['minWithdraw'] => 最小提现金额,单位分
* ['memo'] => 规则备注说明
* ['memo'] => 规则备注说明
...
@@ -35,7 +38,20 @@ interface CommsettingInterface
...
@@ -35,7 +38,20 @@ interface CommsettingInterface
public
function
getCommSetting
(
int
$storeId
);
public
function
getCommSetting
(
int
$storeId
);
/**
/**
* 根据店铺ID修改买家分销的佣金规则
* 获取店铺分销规则
*
* @param int $storeId
* @return array
* 返回内容说明:
* ['state'] => 分销规则是否启用,0不启用,1启用
* ['rule'] => 分销规则具体设置内容,json格式: {"1":35,"2":14.5}
* ['minWithdraw'] => 最小提现金额,单位分
* ['memo'] => 规则备注说明
*/
public
function
getDistriRule
(
int
$storeId
);
/**
* 根据店铺ID修改店铺代理的佣金规则
*
*
* @param integer $storeId
* @param integer $storeId
* @param array $data
* @param array $data
...
@@ -48,5 +64,19 @@ interface CommsettingInterface
...
@@ -48,5 +64,19 @@ interface CommsettingInterface
*/
*/
public
function
updateByStoreId
(
int
$storeId
,
array
$data
);
public
function
updateByStoreId
(
int
$storeId
,
array
$data
);
/**
* 根据店铺ID修改店铺分销的规则
*
* @param integer $storeId
* @param array $data
* 参数$data 字段说明:
* ['state'] => 分销佣金规则是否启用,0不启用,1启用
* ['rule'] => 分销佣金规则具体设置内容,json格式: {"1":35,"2":14.5}
* ['minWithdraw'] => 最小提现金额,单位分
* ['memo'] => 规则备注说明
* @return array
*/
public
function
updateDistriRule
(
int
$storeId
,
array
$data
);
}
}
\ 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