mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 04:21:27 +08:00
27 lines
542 B
PHP
27 lines
542 B
PHP
<?php
|
|
/**
|
|
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
|
|
* @license https://opensource.org/licenses/GPL-2.0
|
|
* @link https://www.koogua.com
|
|
*/
|
|
|
|
namespace App\Services\Logic\Search;
|
|
|
|
use App\Services\Logic\Service as LogicService;
|
|
|
|
abstract class Handler extends LogicService
|
|
{
|
|
|
|
abstract function search();
|
|
|
|
abstract function getHotQuery($limit, $type);
|
|
|
|
abstract function getRelatedQuery($query, $limit);
|
|
|
|
protected function handleKeywords($str)
|
|
{
|
|
return kg_substr($str, 0, 50, '');
|
|
}
|
|
|
|
}
|