From 00a2818c013d9d799f0da4214eb51bc850a150de Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 7 Apr 2023 23:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20swagger=E3=80=81druid?= =?UTF-8?q?=E3=80=81skywalking=E3=80=81admin=20=E7=9A=84=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/config/ConfigController.java | 2 +- yudao-ui-admin/src/api/infra/redis.js | 45 ------ .../src/views/infra/druid/index.vue | 17 ++- .../src/views/infra/redis/index.vue | 129 +----------------- .../src/views/infra/server/index.vue | 16 ++- .../src/views/infra/skywalking/index.vue | 16 ++- .../src/views/infra/swagger/index.vue | 18 ++- 7 files changed, 62 insertions(+), 181 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/ConfigController.java b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/ConfigController.java index afaee6fa4..f9a6a8e9e 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/ConfigController.java +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/ConfigController.java @@ -73,7 +73,7 @@ public class ConfigController { public CommonResult getConfigKey(@RequestParam("key") String key) { ConfigDO config = configService.getConfigByKey(key); if (config == null) { - return null; + return success(null); } if (!config.getVisible()) { throw exception(ErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_VISIBLE); diff --git a/yudao-ui-admin/src/api/infra/redis.js b/yudao-ui-admin/src/api/infra/redis.js index dadc221bf..fce187475 100644 --- a/yudao-ui-admin/src/api/infra/redis.js +++ b/yudao-ui-admin/src/api/infra/redis.js @@ -7,48 +7,3 @@ export function getCache() { method: 'get' }) } - -// 获取模块 -export function getKeyDefineList() { - return request({ - url: '/infra/redis/get-key-define-list', - method: 'get' - }) -} - -// 获取键名列表 -export function getKeyList(keyTemplate) { - return request({ - url: '/infra/redis/get-key-list', - method: 'get', - params: { - keyTemplate - } - }) -} - -// 获取缓存内容 -export function getKeyValue(key) { - return request({ - url: '/infra/redis/get-key-value?key=' + key, - method: 'get' - }) -} - -// 根据键名删除缓存 -export function deleteKey(key) { - return request({ - url: '/infra/redis/delete-key?key=' + key, - method: 'delete' - }) -} - -export function deleteKeys(keyTemplate) { - return request({ - url: '/infra/redis/delete-keys?', - method: 'delete', - params: { - keyTemplate - } - }) -} diff --git a/yudao-ui-admin/src/views/infra/druid/index.vue b/yudao-ui-admin/src/views/infra/druid/index.vue index 78751251a..88a70a5ba 100644 --- a/yudao-ui-admin/src/views/infra/druid/index.vue +++ b/yudao-ui-admin/src/views/infra/druid/index.vue @@ -2,18 +2,31 @@
- + +
diff --git a/yudao-ui-admin/src/views/infra/redis/index.vue b/yudao-ui-admin/src/views/infra/redis/index.vue index 63be640bc..38e1cf823 100644 --- a/yudao-ui-admin/src/views/infra/redis/index.vue +++ b/yudao-ui-admin/src/views/infra/redis/index.vue @@ -65,77 +65,11 @@ - - - - - - - - - - - - - - - - -
- 键名列表 - -
- - - - - - - - -
-
- - - -
- 缓存内容 - 清理全部 -
- - - - - - - - - - - - - - -
-
-
-
diff --git a/yudao-ui-admin/src/views/infra/server/index.vue b/yudao-ui-admin/src/views/infra/server/index.vue index 7a5570cc2..409bd7325 100644 --- a/yudao-ui-admin/src/views/infra/server/index.vue +++ b/yudao-ui-admin/src/views/infra/server/index.vue @@ -1,18 +1,30 @@ diff --git a/yudao-ui-admin/src/views/infra/skywalking/index.vue b/yudao-ui-admin/src/views/infra/skywalking/index.vue index 4628d619d..6f5e7dc7f 100644 --- a/yudao-ui-admin/src/views/infra/skywalking/index.vue +++ b/yudao-ui-admin/src/views/infra/skywalking/index.vue @@ -1,18 +1,30 @@ diff --git a/yudao-ui-admin/src/views/infra/swagger/index.vue b/yudao-ui-admin/src/views/infra/swagger/index.vue index 3cf0d8ab3..0558fa694 100644 --- a/yudao-ui-admin/src/views/infra/swagger/index.vue +++ b/yudao-ui-admin/src/views/infra/swagger/index.vue @@ -1,19 +1,31 @@