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 @@