package com.ltgk.common.constant;

/**
 * 缓存的key 常量
 *
 * @author wankun
 */
public class CacheConstants {
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
    /**
     * 行政树 redis key
     */
    public static final String SYS_AREA_KEY = "sys_area:";
    /**
     * 部门树 redis key
     */
    public static final String SYS_DEPT_KEY = "sys_dept:";
    /**
     * 存放终端坐标点位set的 redis key
     */
    public static final String TERMINAL_KEY = "ltgk:dynamic:dsDynamicNew";// 在线的点位集合
    public final static String dsDynamicAllKey = "ltgk:dynamic:dsDynamicAll"; // 全部的点位集合
    public final static String dsDynamicOldKey = "ltgk:dynamic:dsDynamicOld"; // 离线的点位集合

    public final static String THREE_NO_BOAT_KEY = "ltgk:dynamic:threeNoBoat:threeNoBoat-"; // 意思三无船只集合

    public final static String dsDynamicWakeKey = "ltgk:dynamic:dsDynamicWake"; // 尾迹点位集合
    // solr key 集合
    public final static String ltgkPoint = "ltgk_point";
    public final static String radarPoint = "ltgk_radar";
    public final static String track = "track";

    // 渔船进港申报的 redis key
    public final static String DS_ENTER_PORT_KEY = "ltgk:report:enter:boatId:";

    // 渔船出港申报的 redis key
    public final static String DS_OUT_PORT_KEY = "ltgk:report:out:boatId:";
    public final static long EXPIRED_TIME_ONE_HOUR = 1 * 60 * 60;
    public final static long EXPIRED_TIME_TWO_HOUR = 2 * 60 * 60;
    public final static long EXPIRED_TIME_FIVE_MINUTE = 5 * 60;
    public final static long EXPIRED_TIME_TWO_MINUTE = 2 * 60;
    public final static long EXPIRED_TIME_FIFTEEN_MINUTE = 15 * 60;
    public final static long EXPIRED_TIME_THIRTY_MINUTE = 30 * 60;
    public final static long EXPIRED_TIME_THIRTY_DAY = 30 * 24 * 60 * 60;
}
