39 lines
903 B
PHP
39 lines
903 B
PHP
<?php
|
|
namespace Yunshop\CollectionRoom\admin;
|
|
|
|
|
|
use app\common\components\BaseController;
|
|
use app\common\helpers\PaginationHelper;
|
|
use Yunshop\CollectionRoom\models\CollectionRoomIdentifierModel;
|
|
|
|
class IdentifierController extends BaseController{
|
|
/**
|
|
* Common: 进入列表
|
|
* Author: wu-hui
|
|
* Time: 2023/10/27 10:21
|
|
* @return array|string
|
|
* @throws \Throwable
|
|
*/
|
|
public function index(){
|
|
//参数获取
|
|
$search = request()->input('search');
|
|
// 获取列表信息
|
|
$result = CollectionRoomIdentifierModel::getList($search);
|
|
$data = [
|
|
'list' => $result['data'],
|
|
'pager' => PaginationHelper::show($result['total'],$result['current_page'],$result['per_page']),
|
|
'search' => $search
|
|
];
|
|
|
|
return view('Yunshop\CollectionRoom::identifier.index',$data)->render();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|