Commit 148ecce8 by zhangsong

流量统计中添加访客统计

parent 0242d795
#1.0.82
- 添加流量统计-访客统计
# 1.0.81 # 1.0.81
- 添加订单服务店主核销枚举 - 添加订单服务店主核销枚举
......
...@@ -18,16 +18,16 @@ use Swoft\Pool\PoolProperties; ...@@ -18,16 +18,16 @@ use Swoft\Pool\PoolProperties;
* *
* @Bean() * @Bean()
*/ */
class SellerPoolConfig extends PoolProperties class FlowCountPoolConfig extends PoolProperties
{ {
public function __construct() public function __construct()
{ {
// 区别本地和线上的RPC服务地址 // 区别本地和线上的RPC服务地址
$this->uri = explode(',', env('RPC_SELLER_URI', 'seller:8099')); $this->uri = explode(',', env('RPC_FLOWCOUNT_URI', 'flowcount:8099'));
} }
protected $name = 'seller'; protected $name = 'flowcount';
/** /**
* Minimum active number of connections * Minimum active number of connections
......
...@@ -11,86 +11,24 @@ namespace Hdll\Services\Seller\Lib; ...@@ -11,86 +11,24 @@ namespace Hdll\Services\Seller\Lib;
use Swoft\Core\ResultInterface; use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferSave($referId, $unionId, $openId, $nickName, $headImgUrl) * @method ResultInterface deferAdd(array $data)
* @method ResultInterface deferGet($id, $fields = ['*']) * Interface VisitorInterface
* @method ResultInterface deferGetByUnionId($unionId, $fields = ['*'])
* @method ResultInterface deferGetByStoreId($storeId, $fields = ['*'])
* @method ResultInterface deferUpdate($id, $data)
* @method ResultInterface deferCountDistributionNum($sellerId)
* @method ResultInterface deferGetByIds(array $ids, $fields = ['*'])
* @method ResultInterface deferGetAndUpdateOpenId($unionId, $openId)
* @method ResultInterface deferSaveRelation($sellerId)
* @method ResultInterface deferUpdateRelationVip($sellerId, $isVip)
* @method ResultInterface deferCountVip($sellerId, $isVip)
* Interface SellerInterface
* @package App\Lib * @package App\Lib
*/ */
interface VisitorInterface interface VisitorInterface
{ {
/** /**
* @param $referId * 添加访客
* @param $unionId * @param array $data
* @param $openId * int $data['storeId']=> 商家id
* @param $nickName * int $data['visitorId']=>访客id
* @param $headImgUrl * int $data['date']=>访问时间
* @param string $realName * int $data['appType']=>访问的app类型 默认传值:1前台小程序,2后台小程序
* @param string $phoneNumber * string $data['nickName']=>'访客昵称'
* string $data['headImgUrl']=>'访客头像URL'
* @return mixed * @return mixed
* @author Administrator
*/ */
public function save($referId, $unionId, $openId, $nickName, $headImgUrl); public function add(array $data);
/**
* @param $id
* @param array $fields
* @return mixed
* @author Administrator
*/
public function get($id, $fields = ['*']);
/**
* @param $unionId
* @param array $fields
* @return mixed
* @author Administrator
*/
public function getByUnionId($unionId, $fields = ['*']);
/**
* @param $condition
* @param $data
* $data['referId']=>'来源ID'
* $data['unionId']=>'unionId'
* $data['openId']=>'openId'
* $data['nickName']=>'昵称'
* $data['headImgUrl']=>'头像URL'
* $data['realName']=>'真实姓名'
* $data['phoneNumber']=>'手机号'
* @return mixed
* @author Administrator
*/
public function update($condition, $data);
/**
* @param $storeId
* @param array $fields
* @return mixed
* @author Administrator
*/
public function getByStoreId($storeId, $fields = ['*']);
public function countDistributionNum($sellerId);
public function getByIds(array $ids, $fields = ['*']);
public function getAndUpdateOpenId($unionId, $openId);
public function saveRelation($sellerId);
public function updateRelationVip($sellerId, $isVip);
public function countVip($sellerId);
} }
\ 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