Ver Fonte

remove 删除无用工具

疯狂的狮子Li há 7 meses atrás
pai
commit
5a62c58fe3

+ 0 - 51
ruoyi-common/ruoyi-common-service-impl/src/main/java/org/dromara/common/core/utils/DictUtils.java

@@ -1,51 +0,0 @@
-package org.dromara.common.core.utils;
-
-import org.dromara.common.core.constant.CacheNames;
-import org.dromara.common.redis.utils.CacheUtils;
-import org.dromara.system.api.domain.vo.RemoteDictDataVo;
-
-import java.util.List;
-
-/**
- * 字典工具类
- *
- * @author ruoyi
- */
-public class DictUtils {
-    /**
-     * 设置字典缓存
-     *
-     * @param key       参数键
-     * @param dictDatas 字典数据列表
-     */
-    public static void setDictCache(String key, List<RemoteDictDataVo> dictDatas) {
-        CacheUtils.put(CacheNames.SYS_DICT, key, dictDatas);
-    }
-
-    /**
-     * 获取字典缓存
-     *
-     * @param key 参数键
-     * @return dictDatas 字典数据列表
-     */
-    public static List<RemoteDictDataVo> getDictCache(String key) {
-        return CacheUtils.get(CacheNames.SYS_DICT, key);
-    }
-
-    /**
-     * 删除指定字典缓存
-     *
-     * @param key 字典键
-     */
-    public static void removeDictCache(String key) {
-        CacheUtils.evict(CacheNames.SYS_DICT, key);
-    }
-
-    /**
-     * 清空字典缓存
-     */
-    public static void clearDictCache() {
-        CacheUtils.clear(CacheNames.SYS_DICT);
-    }
-
-}