package com.jsowell.common.constant;

/**
 * 缓存的key 常量
 *
 * @author jsowell
 */
public class CacheConstants {
	/**
	 *
	 */


	public static final int cache_expire_time_1m = 60;

	public static final int cache_expire_time_5m = 60 * 5;

	public static final int cache_expire_time_10m = 60 * 10;

	public static final int cache_expire_time_1h = 60 * 60;

	public static final int cache_expire_time_12h = 60 * 60 * 12;

	public static final int cache_expire_time_1d = 60 * 60 * 24;

	public static final String ADAPAY_MEMBER_ACCOUNT = "adapay_member_account:";

	public static final String PILE_PROGRAM_VERSION = "pile_program_version_";

	public static final String QUERY_ORDER_CALLBACK = "query_order_callback:";

	public static final String ADAPAY_ORDER_PARAM = "adapay_order_param:";

	public static final String WECHAT_PAY_ORDER_PARAM = "wechat_pay_order_param:";

	public static final String ACCESS_TOKEN = "AccessToken_";

	public static final String ORDER_MONITOR_DATA_BY_TRANSACTION_CODE = "order_monitor_data_by_transaction_code:";

	public static final String ORDER_MONITOR_DATA_BY_ORDER_CODE = "order_monitor_data_by_order_code:";

	/**
	 * 通过订单号查询订单信息Key
	 */
	public static final String GET_ORDER_INFO_BY_ORDER_CODE = "get_order_info_by_order_code:";

	public static final String GET_ORDER_INFO_BY_TRANSACTION_CODE = "get_order_info_by_transaction_code:";

	/**
	 * 充电枪口实时监控数据
	 */
	public static final String PILE_REAL_TIME_MONITOR_DATA = "pile_real_time_monitor_data:";

	public static final String PILE_IS_CHARGING = "pile_is_charging:";

	/**
	 * 充电桩最后连接时间
	 */
	public static final String PILE_LAST_CONNECTION = "pile_last_connection:";

	/**
	 * 查询枪口信息列表前缀
	 */
	public static final String SELECT_PILE_CONNECTOR_INFO_LIST = "select_pile_connector_info_list:";

	/**
	 * 充电桩枪口状态前缀
	 */
	public static final String PILE_CONNECTOR_STATUS_KEY = "pile_connector_status:";

	/**
	 * 查询设备管理
	 */
	public static final String SELECT_PILE_BASIC_INFO_BY_SN = "select_pile_basic_info_by_sn:";

	/**
	 * 查询站点信息
	 */
	public static final String SELECT_PILE_STATION_INFO_BY_ID = "select_pile_station_info_by_id:";

	/**
	 * uniApp通过站点id查询枪口列表信息
	 */
	public static final String GET_UNIAPP_CONNECTOR_LIST_BY_STATION_ID = "GET_UNIAPP_CONNECTOR_LIST_BY_STATION_ID:";
	/**
	 * 充电桩sn生成 key
	 */
	public static final String PILE_SN_GENERATE_KEY = "pile_sn_generate_";

	/**
	 * 充电桩详情key
	 */
	public static final String PILE_DETAIL_KEY = "pile_detail:";

	/**
	 * 登录用户 redis key
	 */
	public static final String LOGIN_TOKEN_KEY = "login_tokens:";

	/**
	 * 验证码 redis key
	 */
	public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

	/**
	 * 参数管理 cache key
	 */
	public static final String SYS_CONFIG_KEY = "sys_config:";

	/**
	 * 字典管理 cache key
	 */
	public static final String SYS_DICT_KEY = "sys_dict:";

	/**
	 * 防重提交 redis key
	 */
	public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

	/**
	 * 限流 redis key
	 */
	public static final String RATE_LIMIT_KEY = "rate_limit:";

	/**
	 * 登录账户密码错误次数 redis key
	 */
	public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

	/**
	 * 验证码有效期时长 redis key
	 */
	public static final String SMS_VERIFICATION_CODE_KEY = "sms_verification_code:";
}
