39 lines
696 B
PHP
39 lines
696 B
PHP
<?php
|
|
|
|
namespace app\admin\controller\app\agent;
|
|
|
|
use app\common\controller\Backend;
|
|
|
|
/**
|
|
* 分销等级
|
|
*
|
|
* @icon fa fa-circle-o
|
|
*/
|
|
class Level extends Backend
|
|
{
|
|
|
|
/**
|
|
* Goods模型对象
|
|
* @var \app\admin\model\app\agent\Goods
|
|
*/
|
|
protected $model = null;
|
|
|
|
public function _initialize()
|
|
{
|
|
parent::_initialize();
|
|
$this->model = new \app\common\model\app\agent\Level;
|
|
|
|
\app\common\model\fill\Handle::check('app_config','agent');
|
|
}
|
|
|
|
/**
|
|
* 获取等级列表
|
|
* @return mixed
|
|
*/
|
|
public function getLevel(){
|
|
|
|
$data = $this->model->getLevelList();
|
|
|
|
return $this->success("获取成功",$data);
|
|
}
|
|
} |