package com.zzwtec.wechat.util;

public class SessionKeyUtil {

	public static String getUserRedisKey(String phone){
		return String.format("Mobile_%s",phone);
	}
	public static String getSMSRedisKey(String phone){
		return String.format("SMS_%s",phone);
	}
	public static String getVOICERedisKey(String phone){
		return String.format("VOICE_%s",phone);
	}

	/**
	 * 验证码的Session key
	 */
	public static final String S_VERIFYNUM = "verifyNum";
	/**
	 * 验证码时间的Session key
	 */
	public static final String S_VERIFYTIME = "verifyTime";
	/**
	 * 验证码token的Session key
	 */
	public static final String S_VERIFYTOKEN = "verifyToken";
	/**
	 * 用户或管理员 ID的Session key
	 */
	public static final String S_ID = "id";
	/**
	 * 用户或管理员 名称的Session key
	 */
	public static final String S_NAME = "name";
	/**
	 * 管理员 主管理员
	 */
	public static final String S_MAIN = "main";
	/**
	 * 管理员 区域ID的Session key
	 */
	public static final String S_AREAID = "areaId";
	/**
	 * 管理员 区域的Session key
	 */
	public static final String S_AREA = "area";
	/**
	 * 管理员 角色ID的Session key
	 */
	public static final String S_ROLEID = "roleId";
	/**
	 * 管理员 角色名称的Session key
	 */
	public static final String S_ROLENAME = "roleName";
	/**
	 * 管理员 等级的Session key
	 */
	public static final String S_LEVEL = "level";
	/**
	 * 管理员 权限ID的Session key
	 */
	public static final String S_RIGHTS = "rights";
	/**
	 * 用户token的Session key
	 */
	public static final String S_TOKEN = "token";
	/**
	 * 用户JPush ID的Session key
	 */
	public static final String S_JPUSHID = "jpushID";
	/**
	 * 管理员 管理小区id的Session key
	 */
	public static final String S_COMM = "adminComm";
	/**
	 * 物业商ID
	 */
	public static final String S_PROPERTY = "propertyId";
	/**
	 * 广告商ID
	 */
	public static final String S_ADVERTISERID = "advertiserId";
	/**
	 * 微信的token
	 */
	public static final String S_WX_TOKEN = "wxToken";
	/**
	 * 微信的access token
	 */
	public static final String S_WX_ACCESS_TOKEN = "wxAccessToken";
	/**
	 * 微信的Session ID
	 */
	public static final String S_WX_SID = "Session";
	/**
	 * SSO 用户手机
	 */
	public static final String S_SSO_MOBILE_PHONE = "phone";
	/**
	 * SSO 用户选择房间
	 */
	public static final String S_SSO_SELECT_CELL = "cellId";
	/**
	 * SSO ticket创建时间 key
	 */
	public static final String S_SSO_CREATE_TIME = "createTime";
	/**
	 * SSO 有效时长 key 单位是小时
	 */
	public static final String S_SSO_VALIDITY = "validity";
	/**
	 * ticket
	 */
	public static final String S_TICKET = "ticket";
	
}
