Commit ea531aed by zhangsong

Merge branch 'ft-store'

parents 92eea1a3 318ff9c3
......@@ -12,6 +12,7 @@ use Swoft\Core\ResultInterface;
/**
* @method ResultInterface deferGetInfo(int $id)
* @method ResultInterface deferGetBatch(array $ids)
* Interface VisitorInterface
* @package App\Lib
*/
......@@ -24,4 +25,16 @@ interface ActivityPlanInterface
*/
public function getInfo(int $id);
/**
* 根据ids批量获取活动方案信息
* @param array $ids
* @return mixed
* 返回示例:
* [
* "id" => ["id" => 1, "title" => "方案名称"], // 键值对返回,下标是方案id
* ... ...
* ]
*/
public function getBatch(array $ids);
}
\ No newline at end of file
......@@ -14,6 +14,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferAdd(int $storeId, array $data)
* @method ResultInterface deferBrowseAndShare(int $storeId, int $type, array $itemIds)
* @method ResultInterface deferNewVisitor(int $storeId, int $type, array $itemIds = null)
* @method ResultInterface deferVisitorCount(array $storeIds, int $beginDate, int $endDate)
* Interface VisitorInterface
* @package App\Lib
*/
......@@ -74,4 +75,14 @@ interface VisitorInterface
*/
public function newVisitor(int $storeId, int $type, array $itemIds = null);
/**
* 根据日期访问统计访客数
* @param array $storeIds 店铺id列表
* @param int $beginDate 开始日期,格式:20191212
* @param int $endDate 开始日期,格式:20191212
* @return mixed
* 响应参数:数字
*/
public function visitorCount(array $storeIds, int $beginDate, int $endDate);
}
\ 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