1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-21 11:18:10 +08:00
2021-05-20 18:50:50 +08:00

62 lines
1.2 KiB
PHP

<?php
namespace App\Http\Admin\Controllers;
use App\Http\Admin\Services\Report as ReportService;
/**
* @RoutePrefix("/admin/report")
*/
class ReportController extends Controller
{
/**
* @Get("/articles", name="admin.report.articles")
*/
public function articlesAction()
{
$reportService = new ReportService();
$pager = $reportService->getArticles();
$this->view->setVar('pager', $pager);
}
/**
* @Get("/questions", name="admin.report.questions")
*/
public function questionsAction()
{
$reportService = new ReportService();
$pager = $reportService->getQuestions();
$this->view->setVar('pager', $pager);
}
/**
* @Get("/answers", name="admin.report.answers")
*/
public function answersAction()
{
$reportService = new ReportService();
$pager = $reportService->getAnswers();
$this->view->setVar('pager', $pager);
}
/**
* @Get("/comments", name="admin.report.comments")
*/
public function commentsAction()
{
$reportService = new ReportService();
$pager = $reportService->getComments();
$this->view->setVar('pager', $pager);
}
}