src/ApiBundle/Api/Resource/SearchKeyword/SearchKeyword.php

(开头部分) 789B

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

namespace ApiBundle\Api\Resource\SearchKeyword;

use ApiBundle\Api\ApiRequest;
use ApiBundle\Api\Resource\AbstractResource;

class SearchKeyword extends AbstractResource
{
    public function search(ApiRequest $request)
    {
        $title = $request->query->get('title');
        $type = $request->query->get('type');
        $limit = $request->query->get('limit');

        $keywords = $this->getSearchKeywordService()->searchSearchKeywords(array('likeName' => $title, 'type' => $type), array('times' => 'DESC'), 0, $limit);

        return $keywords;
    }

    /**
     * @return \Biz\SearchKeyword\Service\Impl\SearchKeywordServiceImpl
     */
    protected function getSearchKeywordService()
    {
        return $this->service('SearchKeyword:SearchKeywordService');
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。