You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ymww_backend/application/admin/controller/shopro/user/Group.php

28 lines
561 B

1 year ago
<?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);
}
}