www_fpvone_cn/application/shopro/user/Group.php

28 lines
534 B
PHP

<?php
namespace app\admin\controller\shopro\user;
use think\Db;
use app\admin\controller\shopro\Common;
use app\admin\model\UserGroup as GroupModel;
class Group extends Common
{
protected $noNeedRight = ['select'];
protected $model = null;
public function _initialize()
{
parent::_initialize();
$this->model = new GroupModel;
}
public function select()
{
$list = \app\admin\model\UserGroup::field('id,name,status')->select();
$this->success('', null, $list);
}
}