mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 03:50:56 +08:00
26 lines
475 B
PHP
26 lines
475 B
PHP
<?php
|
|
|
|
namespace App\Services\Frontend\Course;
|
|
|
|
use App\Caches\CourseTopicList as CourseTopicListCache;
|
|
use App\Services\Frontend\CourseTrait;
|
|
use App\Services\Frontend\Service as FrontendService;
|
|
|
|
class TopicList extends FrontendService
|
|
{
|
|
|
|
use CourseTrait;
|
|
|
|
public function handle($id)
|
|
{
|
|
$course = $this->checkCourse($id);
|
|
|
|
$cache = new CourseTopicListCache();
|
|
|
|
$result = $cache->get($course->id);
|
|
|
|
return $result ?: [];
|
|
}
|
|
|
|
}
|