package com.youlai.boot.common.constant;

/**
 * 缓存常量
 *
 * @author haoxr
 * @since 2023/11/24
 */
public interface SecurityConstants {

    /**
     * 验证码缓存前缀
     */
    String CAPTCHA_CODE_PREFIX = "captcha_code:";

    /**
     * 角色和权限缓存前缀
     */
    String ROLE_PERMS_PREFIX = "role_perms:";

    /**
     * 黑名单Token缓存前缀
     */
    String BLACKLIST_TOKEN_PREFIX = "token:blacklist:";


    /**
     * 登录路径
     */
    String LOGIN_PATH = "/api/v1/auth/login";

    String TEST_PATH = "/api/v1/deploy/**";

    String DOWNLOAD_PATH = "/api/v1/demand-file/download/**";

    String DOWNLOAD_PATH_2 = "/api/v1/deploy/download/**";

    String SYNC_PATH = "/sync/**";

    /**
     * JWT Token 前缀
     */
    String JWT_TOKEN_PREFIX = "Bearer ";


}
