mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 初始化文件
This commit is contained in:
parent
9a67fa453b
commit
140702ce50
@ -8,10 +8,102 @@
|
|||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
|
|
||||||
class ApiManager extends Base {
|
use app\admin\model\App;
|
||||||
|
|
||||||
|
class AppManager extends Base {
|
||||||
|
|
||||||
public function index(){
|
public function index(){
|
||||||
|
$data = [];
|
||||||
|
// $dataObj = App::all();
|
||||||
|
|
||||||
|
$table = [
|
||||||
|
'tempType' => 'table',
|
||||||
|
'header' => [
|
||||||
|
[
|
||||||
|
'field' => 'name',
|
||||||
|
'info' => '应用名称'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'field' => 'token',
|
||||||
|
'info' => '应用唯一标识'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'field' => 'baseUrl',
|
||||||
|
'info' => '基础URL'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'field' => 'keyGroup',
|
||||||
|
'info' => '关联秘钥组'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'field' => 'type',
|
||||||
|
'info' => '参与角色'
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'topButton' => [
|
||||||
|
[
|
||||||
|
'href' => 'Menu/add',
|
||||||
|
'class'=> 'btn-success',
|
||||||
|
'info'=> '新增',
|
||||||
|
'icon' => 'fa fa-plus',
|
||||||
|
'confirm' => 0,
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'href' => 'Menu/del',
|
||||||
|
'class'=> 'btn-danger ajax-delete',
|
||||||
|
'info'=> '删除',
|
||||||
|
'icon' => 'fa fa-trash',
|
||||||
|
'confirm' => 1,
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'rightButton' => [
|
||||||
|
[
|
||||||
|
'info' => '编辑',
|
||||||
|
'href' => 'Menu/edit',
|
||||||
|
'class'=> 'btn-warning',
|
||||||
|
'param'=> [$this->primaryKey],
|
||||||
|
'icon' => 'fa fa-pencil',
|
||||||
|
'confirm' => 0,
|
||||||
|
'show' => ''
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'info' => '删除',
|
||||||
|
'href' => 'Menu/del',
|
||||||
|
'class'=> 'btn-danger ajax-delete',
|
||||||
|
'param'=> [$this->primaryKey],
|
||||||
|
'icon' => 'fa fa-trash',
|
||||||
|
'confirm' => 1,
|
||||||
|
'show' => ''
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'typeRule' => [
|
||||||
|
'name' => [
|
||||||
|
'module' => 'a',
|
||||||
|
'rule' => [
|
||||||
|
'info' => '',
|
||||||
|
'href' => url('Menu/add'),
|
||||||
|
'param'=> [$this->primaryKey],
|
||||||
|
'class' => 'refresh'
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'hide' => [
|
||||||
|
'module' => 'label',
|
||||||
|
'rule' => [
|
||||||
|
[
|
||||||
|
'info' => '显示',
|
||||||
|
'class' => 'label label-success'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'info' => '隐藏',
|
||||||
|
'class' => 'label label-warning'
|
||||||
|
]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
],
|
||||||
|
'data' => $data
|
||||||
|
];
|
||||||
|
$table = $this->_prepareTemplate($table);
|
||||||
|
$this->result($table, ReturnCode::GET_TEMPLATE_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -8,7 +8,6 @@
|
|||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
|
|
||||||
class KeyManager
|
class KeyManager extends Base {
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
*
|
* 文档生成引擎
|
||||||
* @since 2016-02-18
|
* @since 2016-02-18
|
||||||
* @author zhaoxiang <zhaoxiang051405@outlook.com>
|
* @author zhaoxiang <zhaoxiang051405@outlook.com>
|
||||||
*/
|
*/
|
||||||
@ -8,7 +8,6 @@
|
|||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
|
|
||||||
class WikiManager
|
class WikiManager extends Base {
|
||||||
{
|
|
||||||
|
|
||||||
}
|
}
|
@ -8,7 +8,8 @@
|
|||||||
namespace app\admin\model;
|
namespace app\admin\model;
|
||||||
|
|
||||||
|
|
||||||
class Api
|
use think\Model;
|
||||||
{
|
|
||||||
|
class Api extends Model {
|
||||||
|
|
||||||
}
|
}
|
@ -8,7 +8,8 @@
|
|||||||
namespace app\admin\model;
|
namespace app\admin\model;
|
||||||
|
|
||||||
|
|
||||||
class App
|
use think\Model;
|
||||||
{
|
|
||||||
|
class App extends Model {
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user