package com.ruoyi.common.constant;

/**
 * 用户常量信息
 * 
 * @author ruoyi
 */
public class UserConstants
{
    /**
     * 平台内系统用户的唯一标志
     */
    public static final String SYS_USER = "SYS_USER";

    /** 正常状态 */
    public static final String NORMAL = "0";

    /** 异常状态 */
    public static final String EXCEPTION = "1";

    /** 用户封禁状态 */
    public static final String USER_DISABLE = "1";

    /** 角色封禁状态 */
    public static final String ROLE_DISABLE = "1";

    /** 部门正常状态 */
    public static final String DEPT_NORMAL = "0";

    /** 部门停用状态 */
    public static final String DEPT_DISABLE = "1";

    /** 字典正常状态 */
    public static final String DICT_NORMAL = "0";

    /** 是否为系统默认（是） */
    public static final String YES = "Y";

    /** 是否菜单外链（是） */
    public static final String YES_FRAME = "0";

    /** 是否菜单外链（否） */
    public static final String NO_FRAME = "1";

    /** 菜单类型（目录） */
    public static final String TYPE_DIR = "M";

    /** 菜单类型（菜单） */
    public static final String TYPE_MENU = "C";

    /** 菜单类型（按钮） */
    public static final String TYPE_BUTTON = "F";

    /** Layout组件标识 */
    public final static String LAYOUT = "Layout";
    
    /** ParentView组件标识 */
    public final static String PARENT_VIEW = "ParentView";

    /** InnerLink组件标识 */
    public final static String INNER_LINK = "InnerLink";

    /** 校验返回结果码 */
    public final static String UNIQUE = "0";
    public final static String NOT_UNIQUE = "1";

    /**
     * 用户名长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;


    /**
     * 门户查询主体 个人
     */
    public static final String QUERY_TYPE_PEOPLE = "0";
    /**
     * 门户查询主体 单位
     */
    public static final String QUERY_TYPE_UNIT = "1";

    /**
     * 门户查询方式二维码查询
     */
    public static final String QUERY_MODE_QR = "0";

    /**
     * 门户查询方式粗略查询
     */
    public static final String QUERY_MODE_ROUGH = "1";
    /**
     * 门户查询方式详情查询
     */
    public static final String QUERY_MODE_DETAIL = "2";

    /**
     * 门户查询验证码 redis key
     */
    public static final String QUERY_CODE_KEY = "query_codes:";


    /**
     * 门户查询查询码 redis key
     */
    public static final String QUERY_NUM_KEY = "query_num:";
    /**
     * 二维码
     */
    public static final String QR_IMAGE = "qr_image:";

    /**
     * 门户中用户档案拥有者回复短信的key,value存储申请查询人的手机号码
     */
    public static final String QUERY_NUM_CREATE = "query_num_create:";

    /**
     * 门户查询次数
     */
    public static final String QUERY_CODE_NUMBER = "query_number:";

    /**
     * 查询通过表示
     */
    public static final String QUERY_SUCCESS = "success";

}
