<?php

namespace App\Http\Controllers\Api;

use App\Command\Log;
use App\Handlers\FileUploadHandler;
use App\Models\CommentTpl;
use Illuminate\Http\Request;

class CommentTplController extends BaseController
{
    public function getList()
    {
        $list = (new CommentTpl())->select("id", "title", "content")
            ->orderBy("id", "desc")
            ->limit(30)
            ->get();

        return  $this->JsonResponse($list);
    }
}