package com.codvision.auth.support;

/**
 * 缓存常量类，用于定义key值，要求同类型的key值前缀保持一致，如用户 USER:XXX、USER:YYY
 * @author hxl
 */
@SuppressWarnings("all")
public final class CacheContants {

    // 系统用户登录次数前缀
    public static final String USER_LOGIN_COUNT = "USER:LOGIN:COUNT:";
    // 系统用户登陆锁定标志
    public static final String USER_LOGIN_LOCK = "USER:LOGIN:LOCK:";
    // 系统用户手机号登陆验证码
    public static final String USER_LOGIN_MOBILE_CODE = "USER:LOGIN:MOBILE:CODE:";
    // 普通钉钉ACCESS_TOKEN
    public static final String DING_TALK_TOKEN = "DING:TALK:TOKEN";
    // 普通钉钉JSAPI ACCESS_TOKEN
    public static final String DING_TALK_JSAPI_TICKET = "DING:TALK:JSAPI:TICKET";
    // 专有钉钉（浙政钉）ACCESS_TOKEN
    public static final String GOV_DING_TOKEN = "GOV:DING:TOKEN";
    // 专有钉钉（浙政钉扫码）ACCESS_TOKEN
    public static final String GOV_DING_SCAN_TOKEN = "GOV:DING:SCAN:TOKEN";
    // 专有钉钉（浙政钉）JSAPI ACCESS_TOKEN
    public static final String GOV_DING_TICKET_TOKEN = "GOV:DING:TICKET:TOKEN";
    // 自定义验证码
    public static final String CUSTOM_CAPTCHA_CODE = "CUSTOM:CAPTCHA:CODE:";
    // 流程状态
    public static final String WORK_FLOW_STATUS = "WORK:FLOW:STATUS:";
    // 同步钉钉用户分布式锁
    public static final String SYNC_DING_LOCK = "SYNC-DING-LOCK";
}
