Commit 50720df9 by zhangsong

整合rpc接口访问量和转发量

parent a3bf4f07
...@@ -12,8 +12,7 @@ use Swoft\Core\ResultInterface; ...@@ -12,8 +12,7 @@ use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferAdd(int $storeId, array $data) * @method ResultInterface deferAdd(int $storeId, array $data)
* @method ResultInterface deferBrowse(int $storeId, array $itemIds) * @method ResultInterface deferBrowseAndShare(int $storeId, int $type, array $itemIds)
* @method ResultInterface deferShare(int $storeId, array $itemIds)
* Interface VisitorInterface * Interface VisitorInterface
* @package App\Lib * @package App\Lib
*/ */
...@@ -34,22 +33,18 @@ interface VisitorInterface ...@@ -34,22 +33,18 @@ interface VisitorInterface
public function add(int $storeId, array $data); public function add(int $storeId, array $data);
/** /**
* 访问量 * 访问量和转发量
* @param int $storeId 店铺id * @param int $storeId 店铺id
* @param int $type 类型:0普通商品 1砍价 2限时购 3拼团 * @param int $type 类型:0普通商品 1砍价 2限时购 3拼团
* @param array $itemIds 商品或活动(活动指:砍价、限时购 、拼团)的id列表 * @param array $itemIds 商品或活动(活动指:砍价、限时购 、拼团)的id列表
* 说明:$itemIds 格式[1,2,3] * 说明:$itemIds 格式[1,2,3]
* @return ;
* 响应参数:
* [
* 'browseNum' => 10,
* 'shareNum' => 10,
* ]
*/ */
public function browse(int $storeId, int $type, array $itemIds); public function browseAndShare(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