<?php
|
|
namespace app\operations\model\plus\vip;
|
|
use app\common\model\plus\vip\User as UserModel;
|
|
/**
|
* VIP专区用户模型
|
*/
|
class User extends UserModel
|
{
|
/**
|
* 获取VIP用户列表
|
*/
|
public function getList($search)
|
{
|
$model = $this->with(['user', 'referee', 'grade'])
|
->order(['create_time' => 'desc']);
|
|
if (!empty($search['nick_name'])) {
|
$model = $model->where('user.nickName', 'like', '%' . $search['nick_name'] . '%');
|
}
|
|
return $model->paginate($search['list_rows']);
|
}
|
}
|