51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<?php
|
|
namespace app\controller\middle;
|
|
|
|
use crmeb\basic\BaseController;
|
|
use think\App;
|
|
use app\common\repositories\user\UserRepository;
|
|
|
|
/**
|
|
* Class Auth
|
|
* @package app\controller\api
|
|
* @author xaboy
|
|
* @day 2020-05-06
|
|
*/
|
|
class User extends BaseController
|
|
{
|
|
|
|
protected $repository;
|
|
|
|
public function __construct(App $app, UserRepository $repository)
|
|
{
|
|
parent::__construct($app);
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function lst()
|
|
{
|
|
$where = $this->request->params([
|
|
'label_id',
|
|
'user_type',
|
|
'sex',
|
|
'is_promoter',
|
|
'country',
|
|
'pay_count',
|
|
'user_time_type',
|
|
'user_time',
|
|
'nickname',
|
|
'province',
|
|
'city',
|
|
'group_id',
|
|
'phone',
|
|
'uid',
|
|
]);
|
|
[$page, $limit] = $this->getPage();
|
|
$data = $this->repository->getList($where, $page, $limit);
|
|
$data['lists'] = $data['list'];
|
|
unset($data['list']);
|
|
return app('json')->success($data);
|
|
}
|
|
|
|
}
|