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
50720df9
Commit
50720df9
authored
May 07, 2019
by
zhangsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整合rpc接口访问量和转发量
parent
a3bf4f07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
src/FlowCount/Lib/VisitorInterface.php
+10
-14
No files found.
src/FlowCount/Lib/VisitorInterface.php
View file @
50720df9
...
...
@@ -12,8 +12,7 @@ use Swoft\Core\ResultInterface;
/**
* @method ResultInterface deferAdd(int $storeId, array $data)
* @method ResultInterface deferBrowse(int $storeId, array $itemIds)
* @method ResultInterface deferShare(int $storeId, array $itemIds)
* @method ResultInterface deferBrowseAndShare(int $storeId, int $type, array $itemIds)
* Interface VisitorInterface
* @package App\Lib
*/
...
...
@@ -34,22 +33,18 @@ interface VisitorInterface
public
function
add
(
int
$storeId
,
array
$data
);
/**
* 访问量
* 访问量
和转发量
* @param int $storeId 店铺id
* @param int $type 类型:0普通商品 1砍价 2限时购 3拼团
* @param array $itemIds 商品或活动(活动指:砍价、限时购 、拼团)的id列表
* 说明:$itemIds 格式[1,2,3]
* @return ;
* 响应参数:
* [
* 'browseNum' => 10,
* 'shareNum' => 10,
* ]
*/
public
function
browse
(
int
$storeId
,
int
$type
,
array
$itemIds
);
/**
* 转发量
* @param int $storeId 店铺id
* @param int $type 类型:0普通商品 1砍价 2限时购 3拼团
* @param array $itemIds 商品或活动(活动指:砍价、限时购 、拼团)的id列表
* 说明:$itemIds 格式[1,2,3]
* @return mixed
*/
public
function
share
(
int
$storeId
,
int
$type
,
array
$iteamIds
);
public
function
browseAndShare
(
int
$storeId
,
int
$type
,
array
$itemIds
);
}
\ 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