Files
webman-buildadmin-mall/app/admin/controller/mall/PlayxUserAsset.php

59 lines
1.2 KiB
PHP

<?php
namespace app\admin\controller\mall;
use Throwable;
use app\common\controller\Backend;
use support\Response;
use Webman\Http\Request;
/**
* PlayX 用户资产(后台列表)
*/
class PlayxUserAsset extends Backend
{
/**
* @var object|null
* @phpstan-var \app\common\model\MallPlayxUserAsset|null
*/
protected ?object $model = null;
protected array|string $preExcludeFields = ['id', 'create_time', 'update_time'];
protected string|array $quickSearchField = ['user_id', 'username'];
protected string|array $indexField = [
'id',
'user_id',
'username',
'locked_points',
'available_points',
'today_limit',
'today_claimed',
'today_limit_date',
'create_time',
'update_time',
];
public function initialize(): void
{
parent::initialize();
$this->model = new \app\common\model\MallPlayxUserAsset();
}
/**
* 查看
* @throws Throwable
*/
public function index(Request $request): Response
{
$response = $this->initializeBackend($request);
if ($response !== null) {
return $response;
}
return $this->_index();
}
}