新增热搜契约:记录搜索行为与获取热搜列表
This commit is contained in:
@@ -10,6 +10,7 @@ interface DataService extends
|
||||
DataServiceInterface,
|
||||
AgreementInterface,
|
||||
ConfigInterface,
|
||||
HotSearchInterface,
|
||||
AppVersionInterface,
|
||||
RecruitUnitInterface,
|
||||
CampusRelationInterface,
|
||||
|
||||
19
src/DataService/HotSearchInterface.php
Normal file
19
src/DataService/HotSearchInterface.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Dhd\Micro\Interface\DataService;
|
||||
|
||||
interface HotSearchInterface
|
||||
{
|
||||
/**
|
||||
* 记录搜索行为(热搜统计数据源,仅记录不返回榜单)
|
||||
* @param array $params 包含:platform 平台、keyword 关键词、user_id 用户ID(未登录0)、result_count 聚合搜索结果数
|
||||
*/
|
||||
public function recordSearchKeyword(array $params): array;
|
||||
|
||||
/**
|
||||
* 获取热搜词列表:运营置顶词优先,其后为近7天真实搜索热度词
|
||||
* @param string $platform 平台
|
||||
* @param int $limit 获取数量
|
||||
*/
|
||||
public function getHotSearchList(string $platform = 'app', int $limit = 10): array;
|
||||
}
|
||||
Reference in New Issue
Block a user