1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-21 03:17:05 +08:00
course-tencent-cloud/app/Http/Admin/Controllers/PointHistoryController.php
koogua 0336a54911 1.源文件增加版权信息
2.群组状态和课程协同
2021-06-13 15:49:47 +08:00

45 lines
1.0 KiB
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->pick('point/history/search');
$this->view->setVar('event_types', $eventTypes);
}
/**
* @Get("/list", name="admin.point_history.list")
*/
public function listAction()
{
$historyService = new PointHistoryService();
$pager = $historyService->getHistories();
$this->view->pick('point/history/list');
$this->view->setVar('pager', $pager);
}
}