mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-23 03:50:56 +08:00
31 lines
527 B
PHP
31 lines
527 B
PHP
<?php
|
|
|
|
namespace App\Services\Logic\Help;
|
|
|
|
use App\Models\Help as HelpModel;
|
|
use App\Services\Logic\HelpTrait;
|
|
use App\Services\Logic\Service;
|
|
|
|
class HelpInfo extends Service
|
|
{
|
|
|
|
use HelpTrait;
|
|
|
|
public function handle($id)
|
|
{
|
|
$help = $this->checkHelp($id);
|
|
|
|
return $this->handleHelp($help);
|
|
}
|
|
|
|
protected function handleHelp(HelpModel $help)
|
|
{
|
|
return [
|
|
'id' => $help->id,
|
|
'title' => $help->title,
|
|
'content' => $help->content,
|
|
];
|
|
}
|
|
|
|
}
|