月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-11 fee67ca8a0760315047a52fc4101a8f4f80b7a7f
src/main/java/com/moon/server/entity/all/RedisCacheKey.java
@@ -1,76 +1,59 @@
package com.moon.server.entity.all;
/**
 * Redis缓存键
 * @author WWW
 */
@SuppressWarnings("ALL")
public class RedisCacheKey {
    /**
     * 登录令牌键
     */
    public static String signTokenKey(String key) {
        return "sign:token:" + key;
    }
    /**
     * 登录用户键
     */
    public static String signUserKey(String key) {
        return "sign:user:" + key;
    }
    /**
     * 密码错误键
     */
    public static String signPwdError(String key) {
        return "sign:pwdError:" + key;
    }
    /**
     * 授权根键
     */
    public static String permsRootKey() {
        return "perms:";
    }
    /**
     * 资源授权键
     */
    public static String permsResKey(String key) {
        return "perms:res:" + key;
    }
    /**
     * 菜单授权键
     */
    public static String permsGeoTabKey(String key) {
        return "perms:geo:tab:" + key;
    }
    public static String permsLayerKey(String key) {
        return "perms:layer:" + key;
    }
    public static String permsProjectLayerKey(String key) {
        return "perms:projectLayer:" + key;
    }
    public static String permsMenusKey(String key) {
        return "perms:menus:" + key;
    }
    /**
     * 权限授权键
     */
    public static String permsPermsKey(String key) {
        return "perms:perms:" + key;
    }
    /**
     * 权限授权实体键
     */
    public static String permsPermsEntityKey(String key) {
        return "perms:permsEntity:" + key;
    }
    /**
     * 黑/白名单键
     */
    public static String permsProxy(String key) {
        return "perms:proxy:" + key;
    }
    public static String blacklistKey(String key) {
        return "blacklist:" + key;
    }
    /**
     * 几何对象的空间参考键
     */
    public static String sridKey(String key) {
        return "geom:srid:" + key;
    }