1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-21 11:18:10 +08:00
course-tencent-cloud/app/Http/Admin/Controllers/PointHistoryController.php
2022-01-18 18:03:48 +08:00

42 lines
928 B
PHP

<?php
/**
* @copyright Copyright (c) 2021 深圳市酷瓜软件有限公司
* @license https://opensource.org/licenses/GPL-2.0
* @link https://www.koogua.com
*/
namespace App\Http\Admin\Controllers;
use App\Http\Admin\Services\PointHistory as PointHistoryService;
/**
* @RoutePrefix("/admin/point/history")
*/
class PointHistoryController extends Controller
{
/**
* @Get("/search", name="admin.point_history.search")
*/
public function searchAction()
{
$historyService = new PointHistoryService();
$eventTypes = $historyService->getEventTypes();
$this->view->setVar('event_types', $eventTypes);
}
/**
* @Get("/list", name="admin.point_history.list")
*/
public function listAction()
{
$historyService = new PointHistoryService();
$pager = $historyService->getHistories();
$this->view->setVar('pager', $pager);
}
}