mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 新增Api的管理
This commit is contained in:
parent
1b10ab9e6b
commit
75c9bda162
application/admin/controller
43
application/admin/controller/ApiFieldsManager.php
Normal file
43
application/admin/controller/ApiFieldsManager.php
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @since 2016-12-13
|
||||||
|
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace app\admin\controller;
|
||||||
|
|
||||||
|
|
||||||
|
class ApiFieldsManager extends Base {
|
||||||
|
|
||||||
|
public function index(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function back(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function add(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function backAdd(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function edit(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function backEdit(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function del(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function backDel(){
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -39,14 +39,14 @@ class ApiManager extends Base {
|
|||||||
],
|
],
|
||||||
'topButton' => [
|
'topButton' => [
|
||||||
[
|
[
|
||||||
'href' => 'AppManager/add',
|
'href' => 'ApiManager/add',
|
||||||
'class'=> 'btn-success',
|
'class'=> 'btn-success',
|
||||||
'info'=> '新增',
|
'info'=> '新增',
|
||||||
'icon' => 'fa fa-plus',
|
'icon' => 'fa fa-plus',
|
||||||
'confirm' => 0,
|
'confirm' => 0,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'href' => 'AppManager/del',
|
'href' => 'ApiManager/del',
|
||||||
'class'=> 'btn-danger ajax-delete',
|
'class'=> 'btn-danger ajax-delete',
|
||||||
'info'=> '删除',
|
'info'=> '删除',
|
||||||
'icon' => 'fa fa-trash',
|
'icon' => 'fa fa-trash',
|
||||||
@ -56,7 +56,7 @@ class ApiManager extends Base {
|
|||||||
'rightButton' => [
|
'rightButton' => [
|
||||||
[
|
[
|
||||||
'info' => '启用',
|
'info' => '启用',
|
||||||
'href' => 'AppManager/open',
|
'href' => 'ApiManager/open',
|
||||||
'class'=> 'btn-success ajax-put-url',
|
'class'=> 'btn-success ajax-put-url',
|
||||||
'param'=> [$this->primaryKey],
|
'param'=> [$this->primaryKey],
|
||||||
'icon' => 'fa fa-check',
|
'icon' => 'fa fa-check',
|
||||||
@ -65,7 +65,7 @@ class ApiManager extends Base {
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'info' => '禁用',
|
'info' => '禁用',
|
||||||
'href' => 'AppManager/close',
|
'href' => 'ApiManager/close',
|
||||||
'class'=> 'btn-warning ajax-put-url',
|
'class'=> 'btn-warning ajax-put-url',
|
||||||
'param'=> [$this->primaryKey],
|
'param'=> [$this->primaryKey],
|
||||||
'icon' => 'fa fa-close',
|
'icon' => 'fa fa-close',
|
||||||
@ -74,7 +74,25 @@ class ApiManager extends Base {
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'info' => '编辑',
|
'info' => '编辑',
|
||||||
'href' => 'AppManager/edit',
|
'href' => 'ApiManager/edit',
|
||||||
|
'class'=> 'btn-primary',
|
||||||
|
'param'=> [$this->primaryKey],
|
||||||
|
'icon' => 'fa fa-pencil',
|
||||||
|
'confirm' => 0,
|
||||||
|
'show' => ''
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'info' => '请求参数',
|
||||||
|
'href' => 'ApiFieldsManager/index',
|
||||||
|
'class'=> 'btn-primary',
|
||||||
|
'param'=> [$this->primaryKey],
|
||||||
|
'icon' => 'fa fa-pencil',
|
||||||
|
'confirm' => 0,
|
||||||
|
'show' => ''
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'info' => '返回参数',
|
||||||
|
'href' => 'ApiFieldsManager/back',
|
||||||
'class'=> 'btn-primary',
|
'class'=> 'btn-primary',
|
||||||
'param'=> [$this->primaryKey],
|
'param'=> [$this->primaryKey],
|
||||||
'icon' => 'fa fa-pencil',
|
'icon' => 'fa fa-pencil',
|
||||||
@ -83,7 +101,7 @@ class ApiManager extends Base {
|
|||||||
],
|
],
|
||||||
[
|
[
|
||||||
'info' => '删除',
|
'info' => '删除',
|
||||||
'href' => 'AppManager/del',
|
'href' => 'ApiManager/del',
|
||||||
'class'=> 'btn-danger ajax-delete',
|
'class'=> 'btn-danger ajax-delete',
|
||||||
'param'=> [$this->primaryKey],
|
'param'=> [$this->primaryKey],
|
||||||
'icon' => 'fa fa-trash',
|
'icon' => 'fa fa-trash',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user