1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-25 12:09:09 +08:00
2020-07-07 20:44:26 +08:00

31 lines
568 B
PHP

<?php
namespace App\Services\Frontend\Help;
use App\Models\Help as HelpModel;
use App\Services\Frontend\HelpTrait;
use App\Services\Frontend\Service as FrontendService;
class HelpInfo extends FrontendService
{
use HelpTrait;
public function handle($id)
{
$help = $this->checkHelpCache($id);
return $this->handleHelp($help);
}
protected function handleHelp(HelpModel $help)
{
return [
'id' => $help->id,
'title' => $help->title,
'content' => $help->content,
];
}
}