Commit e59d5b1c by zhangsong

更新流量统计枚举

parent c9fec97d
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/7/26
* Time: 16:00
*/
namespace Hdll\Services\FlowCount\Enum;
/**
* 访问量和转发量 枚举
* Class BrowseShare
* @package Hdll\Services\FlowCount\Enum
*/
class BrowseShare
{
const GOODS = 0; // 普通商品
const BARGAIN = 1; // 砍价
const LIMIT = 2; // 限时购
const GROUP = 3; // 拼团
const RECHARGE = 4; // 储值卡
const TIMES_CARD = 5; // 次卡
const FRONT_MONEY = 6; // 定金
const AWARD = 7; // 抽奖
}
\ No newline at end of file
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
namespace Hdll\Services\FlowCount\Enum; namespace Hdll\Services\FlowCount\Enum;
/**
* 是否新访客 枚举
* Class FlowCategory
* @package Hdll\Services\FlowCount\Enum
*/
class FlowCategory class FlowCategory
{ {
const BARGAIN = 1; // 砍价 const BARGAIN = 1; // 砍价
......
...@@ -36,7 +36,7 @@ interface VisitorInterface ...@@ -36,7 +36,7 @@ interface VisitorInterface
/** /**
* 访问量和转发量 * 访问量和转发量
* @param int $storeId 店铺id * @param int $storeId 店铺id
* @param int $type 类型:0普通商品 1砍价 2限时购 3拼团 * @param int $type 类型(接口使用枚举:BrowseShare):0普通商品 1砍价 2限时购 3拼团 4储值卡 5次卡 6定金 7抽奖
* @param array $itemIds 商品或活动(活动指:砍价、限时购 、拼团)的id列表 * @param array $itemIds 商品或活动(活动指:砍价、限时购 、拼团)的id列表
* 说明:$itemIds 格式[1,2,3] * 说明:$itemIds 格式[1,2,3]
* @return ; * @return ;
...@@ -59,7 +59,7 @@ interface VisitorInterface ...@@ -59,7 +59,7 @@ interface VisitorInterface
/** /**
* 统计是否有新访客 * 统计是否有新访客
* @param int $storeId 店铺id * @param int $storeId 店铺id
* @param int $type 类型:FlowCategory::BARGAIN 砍价 FlowCategory::LIMIT 限时购 FlowCategory::GROUP 拼团 * @param int $type 类型(接口使用枚举:FlowCategory):1砍价 2限时购 3拼团 4定金 5抽奖
* @param array $itemIds 活动ids列表,格式:[1,2,3],默认:null * @param array $itemIds 活动ids列表,格式:[1,2,3],默认:null
* @return mixed * @return mixed
* 响应参数: * 响应参数:
......
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