package com.storlead.framework.common.constant;

public interface CommonConstant {

	/**
	 * 正常状态
	 */
	Integer STATUS_NORMAL = 1;

	/**
	 * 审批未通过状态
	 */
	Integer STATUS_NOT_ADOPT = -1;

	/**
	 * 禁用状态
	 */
	Integer STATUS_DISABLE = 0;

	/**
	 * 真
	 */
	Integer DEL_FLAG_0 = 0;

    /**
     * 假
     */
    Integer DEL_FLAG_1 = 1;


	/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
    Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
    /** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
    Integer SC_OK_200 = 200;

    /**
     * 业务通用异常
     */
    Integer BUSSINESS_COMM_ERROR = 19000;

    /**访问权限认证未通过 510*/
    Integer SC_JEECG_NO_AUTHZ=510;

    /** 登录用户Shiro权限缓存KEY前缀 */
    public static String PREFIX_USER_SHIRO_CACHE  = "shiro:cache:com.storlead.sales.modules.shiro.authc.ShiroRealm.authorizationCache:";
    /** 登录用户Token令牌缓存KEY前缀 */
    String PREFIX_USER_TOKEN  = "prefix_user_token_";

    /**
     * 是否用户已被冻结 1(解冻)正常 2冻结
     */
    Integer USER_FREEZE = 2;

    /**字典翻译文本后缀*/
    String DICT_TEXT_SUFFIX = "_dictText";

    String USER_CACHE = "userCache";

    String CAPCHA_CACHE = "capchaCache";

    //长度超限
    String LENGTH_EXCEEDS_THE_LIMIT = "length exceeds the limit";

    /**
     * 撤回状态
     */
    Integer STATUS_WITH_DRAW = 2;

    /**
     * 待发放状态
     */
    Integer STATUS_NOT_ISSUED = 3;

    /**
     * 已发放状态
     */
    Integer STATUS_ISSUED = 4;
    /**
     * 已完成状态
     */
    Integer STATUS_COMPLETE = 5;
}
