From 0f4b5eed7d6cce03fe5cd91b7aa508de6144a898 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: Wed, 10 Apr 2024 23:09:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96apikey=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web_src/config/index.js | 2 +-
web_src/src/components/UserApiKeyManager.vue | 11 +++++++++--
数据库/2.7.1/更新-mysql-2.7.0.sql | 14 +++++++++++++-
数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql | 14 +++++++++++++-
4 files changed, 36 insertions(+), 5 deletions(-)
diff --git a/web_src/config/index.js b/web_src/config/index.js
index ad5f9409..9d24d1ba 100644
--- a/web_src/config/index.js
+++ b/web_src/config/index.js
@@ -12,7 +12,7 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/debug': {
- target: 'http://127.0.0.1:8080',
+ target: 'http://127.0.0.1:18082',
changeOrigin: true,
pathRewrite: {
'^/debug': '/'
diff --git a/web_src/src/components/UserApiKeyManager.vue b/web_src/src/components/UserApiKeyManager.vue
index b3eb80dd..3d6e5ebf 100644
--- a/web_src/src/components/UserApiKeyManager.vue
+++ b/web_src/src/components/UserApiKeyManager.vue
@@ -15,7 +15,14 @@
header-row-class-name="table-header">
-
+
+
+
+
+ {{scope.row.apiKey}}
+
+
+
@@ -28,7 +35,7 @@
-
+
diff --git a/数据库/2.7.1/更新-mysql-2.7.0.sql b/数据库/2.7.1/更新-mysql-2.7.0.sql
index 9a527cb3..b43774fb 100644
--- a/数据库/2.7.1/更新-mysql-2.7.0.sql
+++ b/数据库/2.7.1/更新-mysql-2.7.0.sql
@@ -8,4 +8,16 @@ alter table wvp_media_server
alter table wvp_media_server
add ws_flv_port integer;
alter table wvp_media_server
- add ws_flv_ssl_port integer;
\ No newline at end of file
+ add ws_flv_ssl_port integer;
+
+create table wvp_user_api_key (
+ id serial primary key ,
+ user_id bigint,
+ app character varying(255) ,
+ api_key text,
+ expired_at bigint,
+ remark character varying(255),
+ enable bool default true,
+ create_time character varying(50),
+ update_time character varying(50)
+);
\ No newline at end of file
diff --git a/数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql b/数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql
index 9a527cb3..b43774fb 100644
--- a/数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql
+++ b/数据库/2.7.1/更新-postgresql-kingbase-2.7.0.sql
@@ -8,4 +8,16 @@ alter table wvp_media_server
alter table wvp_media_server
add ws_flv_port integer;
alter table wvp_media_server
- add ws_flv_ssl_port integer;
\ No newline at end of file
+ add ws_flv_ssl_port integer;
+
+create table wvp_user_api_key (
+ id serial primary key ,
+ user_id bigint,
+ app character varying(255) ,
+ api_key text,
+ expired_at bigint,
+ remark character varying(255),
+ enable bool default true,
+ create_time character varying(50),
+ update_time character varying(50)
+);
\ No newline at end of file