package com.fuyuanshen.common.core.constant;

/**
 * 全局的key常量 (业务无关的key)
 *
 * @author Lion Li
 */
public interface GlobalConstants {

    /**
     * 全局 redis key (业务无关的key)
     */
    String GLOBAL_REDIS_KEY = "global:";

    /**
     * 验证码 redis key
     */
    String CAPTCHA_CODE_KEY = GLOBAL_REDIS_KEY + "captcha_codes:";

    /**
     * 忘记密码验证码 redis key
     */
    String FORGET_PASSWORD_CODE_KEY = GLOBAL_REDIS_KEY + "forget_password_codes:";

    /**
     * 注册验证码 redis key
     */
    String REGISTER_CODE_KEY = GLOBAL_REDIS_KEY + "register_codes:";

    /**
     * 设备分享验证码 redis key
     */
    String DEVICE_SHARE_CODES_KEY = GLOBAL_REDIS_KEY + "device_share_codes:";

    /**
     * 防重提交 redis key
     */
    String REPEAT_SUBMIT_KEY = GLOBAL_REDIS_KEY + "repeat_submit:";

    /**
     * 限流 redis key
     */
    String RATE_LIMIT_KEY = GLOBAL_REDIS_KEY + "rate_limit:";

    /**
     * 三方认证 redis key
     */
    String SOCIAL_AUTH_CODE_KEY = GLOBAL_REDIS_KEY + "social_auth_codes:";


    String  FUNCTION_ACCESS_KEY =  GLOBAL_REDIS_KEY + "device:function_access:";

    String  FUNCTION_ACCESS_TIMEOUT_KEY =  GLOBAL_REDIS_KEY + "device:function_access_timeout:";
}
