Commit a3bf4f07 by zhangsong

添加访问量和转发量rpc

parent 2c0f99f4
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment