diff --git a/application/admin/controller/auth/api/Key.php b/application/admin/controller/auth/api/Key.php
new file mode 100644
index 0000000..66d167b
--- /dev/null
+++ b/application/admin/controller/auth/api/Key.php
@@ -0,0 +1,37 @@
+model = new \app\admin\model\auth\api\Key;
+
+ }
+
+
+
+ /**
+ * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
+ * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
+ * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
+ */
+
+
+}
diff --git a/application/admin/lang/zh-cn/auth/api/key.php b/application/admin/lang/zh-cn/auth/api/key.php
new file mode 100644
index 0000000..bed635b
--- /dev/null
+++ b/application/admin/lang/zh-cn/auth/api/key.php
@@ -0,0 +1,6 @@
+ '分配的key',
+ 'Public_key' => '对方调用公钥'
+];
diff --git a/application/admin/model/auth/api/Key.php b/application/admin/model/auth/api/Key.php
new file mode 100644
index 0000000..a0df0bc
--- /dev/null
+++ b/application/admin/model/auth/api/Key.php
@@ -0,0 +1,40 @@
+ [],
+ 'edit' => [],
+ ];
+
+}
diff --git a/application/admin/view/auth/api/key/add.html b/application/admin/view/auth/api/key/add.html
new file mode 100644
index 0000000..8184de4
--- /dev/null
+++ b/application/admin/view/auth/api/key/add.html
@@ -0,0 +1,21 @@
+
diff --git a/application/admin/view/auth/api/key/edit.html b/application/admin/view/auth/api/key/edit.html
new file mode 100644
index 0000000..2e47a7c
--- /dev/null
+++ b/application/admin/view/auth/api/key/edit.html
@@ -0,0 +1,21 @@
+
diff --git a/application/admin/view/auth/api/key/index.html b/application/admin/view/auth/api/key/index.html
new file mode 100644
index 0000000..1306e0b
--- /dev/null
+++ b/application/admin/view/auth/api/key/index.html
@@ -0,0 +1,29 @@
+
+ {:build_heading()}
+
+
+
diff --git a/public/assets/js/backend/auth/api/key.js b/public/assets/js/backend/auth/api/key.js
new file mode 100644
index 0000000..82eee22
--- /dev/null
+++ b/public/assets/js/backend/auth/api/key.js
@@ -0,0 +1,53 @@
+define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
+
+ var Controller = {
+ index: function () {
+ // 初始化表格参数配置
+ Table.api.init({
+ extend: {
+ index_url: 'auth/api/key/index' + location.search,
+ add_url: 'auth/api/key/add',
+ edit_url: 'auth/api/key/edit',
+ del_url: 'auth/api/key/del',
+ multi_url: 'auth/api/key/multi',
+ import_url: 'auth/api/key/import',
+ table: 'api_key',
+ }
+ });
+
+ var table = $("#table");
+
+ // 初始化表格
+ table.bootstrapTable({
+ url: $.fn.bootstrapTable.defaults.extend.index_url,
+ pk: 'id',
+ sortName: 'id',
+ columns: [
+ [
+ {checkbox: true},
+ {field: 'id', title: __('Id')},
+ {field: 'name', title: __('Name'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
+ {field: 'key', title: __('Key'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
+ {field: 'public_key', title: __('Public_key'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
+ {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
+ ]
+ ]
+ });
+
+ // 为表格绑定事件
+ Table.api.bindevent(table);
+ },
+ add: function () {
+ Controller.api.bindevent();
+ },
+ edit: function () {
+ Controller.api.bindevent();
+ },
+ api: {
+ bindevent: function () {
+ Form.api.bindevent($("form[role=form]"));
+ }
+ }
+ };
+ return Controller;
+});