mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 20:00:27 +08:00
26 lines
448 B
PHP
26 lines
448 B
PHP
<?php
|
|
|
|
namespace App\Services\Frontend\Topic;
|
|
|
|
use App\Caches\TopicCourseList as TopicCourseListCache;
|
|
use App\Services\Frontend\Service;
|
|
use App\Services\Frontend\TopicTrait;
|
|
|
|
class CourseList extends Service
|
|
{
|
|
|
|
use TopicTrait;
|
|
|
|
public function handle($id)
|
|
{
|
|
$topic = $this->checkTopicCache($id);
|
|
|
|
$cache = new TopicCourseListCache();
|
|
|
|
$result = $cache->get($topic->id);
|
|
|
|
return $result ?: [];
|
|
}
|
|
|
|
}
|