33 lines
632 B
PHP
33 lines
632 B
PHP
<?php
|
|
namespace app\controller\middle;
|
|
|
|
use crmeb\basic\BaseController;
|
|
use think\App;
|
|
use app\common\repositories\user\UserGroupRepository;
|
|
|
|
/**
|
|
* Class Auth
|
|
* @package app\controller\api
|
|
* @author xaboy
|
|
* @day 2020-05-06
|
|
*/
|
|
class UserGroup extends BaseController
|
|
{
|
|
|
|
protected $repository;
|
|
|
|
public function __construct(App $app, UserGroupRepository $repository)
|
|
{
|
|
parent::__construct($app);
|
|
$this->repository = $repository;
|
|
}
|
|
|
|
public function lst()
|
|
{
|
|
$page = 1;
|
|
$limit = 9999;
|
|
return app('json')->success($this->repository->getList([], $page, $limit));
|
|
}
|
|
|
|
}
|