1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-24 04:01:31 +08:00
2020-07-21 20:12:33 +08:00

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;
}
}