mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 20:00:27 +08:00
30 lines
601 B
PHP
30 lines
601 B
PHP
<?php
|
|
|
|
namespace App\Services\Frontend\Chapter;
|
|
|
|
use App\Services\Frontend\ChapterTrait;
|
|
use App\Services\Frontend\CourseTrait;
|
|
use App\Services\Frontend\Service as FrontendService;
|
|
|
|
class ChapterBasicInfo extends FrontendService
|
|
{
|
|
|
|
use CourseTrait;
|
|
use ChapterTrait;
|
|
use ChapterBasicInfoTrait;
|
|
|
|
public function handle($id)
|
|
{
|
|
$chapter = $this->checkChapter($id);
|
|
|
|
$course = $this->checkCourse($chapter->course_id);
|
|
|
|
$result = $this->handleBasicInfo($chapter);
|
|
|
|
$result['course'] = $this->handleCourseInfo($course);
|
|
|
|
return $result;
|
|
}
|
|
|
|
}
|