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
a3bf4f07
Commit
a3bf4f07
authored
May 05, 2019
by
zhangsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加访问量和转发量rpc
parent
2c0f99f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
src/FlowCount/Lib/VisitorInterface.php
+24
-3
No files found.
src/FlowCount/Lib/VisitorInterface.php
View file @
a3bf4f07
...
...
@@ -11,7 +11,9 @@ namespace Hdll\Services\FlowCount\Lib;
use
Swoft\Core\ResultInterface
;
/**
* @method ResultInterface deferAdd($storeId, array $data)
* @method ResultInterface deferAdd(int $storeId, array $data)
* @method ResultInterface deferBrowse(int $storeId, array $itemIds)
* @method ResultInterface deferShare(int $storeId, array $itemIds)
* Interface VisitorInterface
* @package App\Lib
*/
...
...
@@ -19,7 +21,6 @@ interface VisitorInterface
{
/**
*
* 添加访客
* @param int $storeId
* @param array $data
...
...
@@ -30,6 +31,25 @@ interface VisitorInterface
* string $data['headImgUrl']=>'访客头像URL'
* @return mixed
*/
public
function
add
(
$storeId
,
array
$data
);
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]
*/
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
);
}
\ 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