| 123456789101112131415161718192021222324252627 |
- <?php
- namespace Modules\Api\Controllers;
- use App\Repositories\KeywordsHotRepository;
- class KeywordsController extends BaseController
- {
- use \Hyperf\Di\Aop\ProxyTrait;
- use \Hyperf\Di\Aop\PropertyHandlerTrait;
- function __construct()
- {
- if (method_exists(parent::class, '__construct')) {
- parent::__construct(...func_get_args());
- }
- $this->__handlePropertyHandler(__CLASS__);
- }
- /**
- * 关键词热度排行10
- * @return mixed
- */
- public function hotTop()
- {
- $hotRepo = make(KeywordsHotRepository::class);
- $items = $hotRepo->hotTop();
- return json_success($items);
- }
- }
|