package com.vetti.common.constant;

/**
 * ClassName:    LoginConstant
 * Description:
 * Datetime:    2025/08/30   14:05
 * Author:   wangxiangshun
 */
public class LoginConstant {
    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    public final static String LOGIN_IN_LOCK = "login:lock:";

    public final static String LOGIN_IN_CODE = "login:code:";

    public final static Integer LOGIN_IN_ATTEMPTS = 10;

    public final static Integer SEND_CODE_ATTEMPTS = 15;

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


    /**
     * 验证码 redis key
     */
    public static final String ONEKEY_KEY = "hamkke_onekey:";

    /**
     * 取手机验证码的key值的前缀
     */
    public static final String VER_CODE_PREFIX = "ver_:";

    /**
     * 短信 验证码有效期（分钟）
     */
    public static final Long SMS_CAPTCHA_EXPIRATION = 5L;

    public final static String IOS = "IOS";

    public final static String ANDROID = "Android";

    public final static String APP = "App";

    public final static String MINIAPP = "miniApp";

    public static final String WX = "wx";

    public static final String CODE = "code";

    public static final String PHONE = "phone";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY_MINIAPP = "login_user:mini:";

    public static final String LOGIN_USER_KEY_APP = "login_user:app:";
}
