mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-21 03:17:05 +08:00
45 lines
1.0 KiB
PHP
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);
|
|
}
|
|
|
|
} |