初始化项目:添加后端代码、ThinkPHP框架、前端资源
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user