package com.nbclass.util;
/**
 * @version V1.0
 * @date 2018年7月11日
 * @author superzheng
 */
public class CoreConst {
	
	/**
	 * 用户状态：1有效; 2删除
	 */
    public static final Integer STATUS_VALID	= 1;
    public static final Integer STATUS_INVALID	= 0;
    
    public static Integer TOP_MENU_ID         = 0;
    public static String TOP_MENU_NAME       = "顶层菜单";
    
    
	/** 响应状态码 key **/
	public static final String STATUS = "ret";
	
	/** 成功状态码 **/
	public static final int STATUS_SUCCESS = 0;
	
	/** 失败状态码 **/
	public static final int STATUS_ERROR = -1;
	
	/** 响应消息 key **/
	public static final String MSG = "msg";
	
	/** 响应内容 key **/
	public static final String DATA = "data";
	
	/**
	 * 用户个人权限在session中的key
	 */
	public static final String SESSION_USER = "user";
	
	public static final String SESSION_USER_ID = "userId";
	
	public static final String SESSION_USER_NAME = "userName";
	
	public static final String SESSION_USER_ISADMIN = "userIsAdmin";
	
	/**
	 * dwz 状态
	 * 值：statusCode
	 */
	public static final String STATUSCODE="statusCode";
	
	/**
	 * 操作失败 响应码
	 * 值：300
	 */
	public static final Integer CODE_FAIL=300;
	
	/**
	 * dwz信息
	 * 值：message
	 */
	public static final String MESSAGE="message";
	/**
	 * 操作成功 响应码
	 * 值：200
	 */
	public static final Integer CODE_SUCCESS=200;
	/**
	 * 登录超时 响应码
	 * 值：301
	 */
	public static final Integer CODE_OVERTIME=301;
	/**
	 * messages_zh.properties 配置文件key  操作成功
	 * 值：msg.operation.success
	 */
	public static final String MSG_KEY_SUCCESS="msg.operation.success";
	
	/**
	 * messages_zh.properties 配置文件key  操作失败
	 * 值：msg.operation.failure
	 */
	public static final String MSG_KEY_FAIL="msg.operation.failure";
	
	/**
	 * ajaxMessage 页面路径
	 * 值：ajaxMessage
	 */
	public static final String PAGE_AJAXMESSAGE="ajaxMessage";
	
}
