package com.ssm.manage.utils;

/**
 * @author zhuangcy
 * @date 2021/6/1
 * @description 自定义常量类
 */
public class CustomConstants {

    /**
     * 超管数组
     */
    public static final String[] SUPER_ADMIN = {"root", "super","admin"};

    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";

    /**
     * 访问令牌参数名
     */
    public static final String TOKEN_NAME = "ACCESS-TOKEN";

    /**
     * 访问令牌缓存名称
     */
    public static final String ACCESS_TOKEN_NAME = "ACCESS-TOKEN:";
    /**
     * shiro session 缓存名称
     */
    public static final String SHIRO_SESSION_NAME = "shiro:session:";

    /**
     * token有效期(3小时)
     */
    public static final long TOKEN_VALIDITY_PERIOD = 3 * 3600 * 1000L;

    /**
     * 启用状态
     */
    public static final String ENABLED_STATE = "0";
    /**
     * 禁用状态
     */
    public static final String DISABLED_STATE = "1";

}
