package com.fkzy.warn.common.constants;

/**
 *
 *  用户常量
 * @param
 * @return
 * @author zhangjing
 * @create 2024/12/4
 **/
public class UserConstants {

    /**
     * 登录类型
     * PASSWORD_LOGIN:账户密码登录
     * SMS_CAPTCHA_LOGIN：短信验证码登录
     */
    public final static Integer PASSWORD_LOGIN = 1;
    public final static Integer SMS_CAPTCHA_LOGIN = 2;


    /**
     * 用户是否被锁定
     * LOCKED:是
     * UN_LOCK：否
     */
    public final static Integer LOCKED = 1;
    public final static Integer UN_LOCK = 0;

    /**
     * 用户密码错误默认次数
     */
    public final static Integer PASSWORD_WRONG_DEF = 0;
    /**
     * 用户密码错误上限次数
     */
    public final static Integer PASSWORD_WRONG_LIMIT = 5;
    /**
     * 锁定时间5分钟
     */
    public final static Integer LOCK_TIME = 300;


    /**
     * 登录验证码类型
     */
    public final static Integer RANDOM_CAPTCHA = 1;

    /**
     * 测试账号
     */
    public final static Integer IS_TRIAL = 0;


    /**
     * 试用账号状态
     */
    // 未启用
    public static final int ACCOUNT_STATUS_UNENABLED = 0;
    // 试用中
    public static final int ACCOUNT_STATUS_TRIAL = 1;
    // 冻结
    public static final int ACCOUNT_STATUS_FROZEN = 2;


}
