package com.jsowell.common.constant;

/**
 * 缓存的key 常量
 *
 * @author jsowell
 */
public class CacheConstants {
	// 缓存时间 1分钟
	public static final int cache_expire_time_1m = 60;

	// 缓存时间 3分钟
	public static final int cache_expire_time_3m = cache_expire_time_1m * 3;

	// 缓存时间 5分钟
	public static final int cache_expire_time_5m = cache_expire_time_1m * 5;

	// 缓存时间 10分钟
	public static final int cache_expire_time_10m = cache_expire_time_1m * 10;

	// 缓存时间 30分钟
	public static final int cache_expire_time_30m = cache_expire_time_1m * 30;

	// 缓存时间 60分钟
	public static final int cache_expire_time_1h = cache_expire_time_1m * 60;

	// 缓存时间 12小时
	public static final int cache_expire_time_12h = cache_expire_time_1h * 12;

	// 缓存时间 1天 24小时
	public static final int cache_expire_time_1d = cache_expire_time_1h * 24;

	// 缓存时间 3天
	public static final int cache_expire_time_3d = cache_expire_time_1d * 3;

	// 缓存时间 7天
	public static final int cache_expire_time_7d = cache_expire_time_1d * 7;

	// 缓存时间 10天
	public static final int cache_expire_time_10d = cache_expire_time_1d * 10;

	// 缓存时间 30天
	public static final int cache_expire_time_30d = cache_expire_time_1d * 30;

	// 第三方平台密钥配置
	public static final String THIRD_PARTY_SECRET_INFO_BY_ID = "third_party_secret_info_by_id:";
	public static final String THIRD_PARTY_SECRET_INFO_BY_TYPE = "third_party_secret_info_by_type:";

	// 保存order_monitor_data
	public static final String INSERT_ORDER_MONITOR_DATA = "insert_order_monitor_data:";

	// 需要推送的站点id
	public static final String PUSH_STATION_CONNECTOR = "push_station_connector";

	// 订单的微信支付参数
	public static final String ORDER_WECHAT_PAY_PARAMETERS = "order_wechat_pay_parameters:";

	// 支付确认列表
	public static final String PAYMENT_CONFIRM_LIST = "payment_confirm_list:";

	// 订单分账信息
	public static final String CLEARING_BILL_DETAIL_BY_ORDER_CODE = "clearing_bill_detail_by_order_code:";

	// 会员余额退款正在进行中
	public static final String MEMBER_BALANCE_REFUNDS_ARE_IN_PROGRESS = "member_balance_refunds_are_in_progress:";

	// 平台测试员
	public static final String PLATFORM_TESTER = "platform_tester:";

	// 枪口插枪状态 缓存前缀
	public static final String CHARGER_PLUGGED_IN_STATUS = "charger_plugged_in_status:";

	// 查询桩型号信息
	public static final String GET_PILE_MODEL_INFO_BY_MODEL_ID = "get_pile_model_info_by_model_id:";

	// 地锁数据
	public static final String GROUND_LOCK_DATA = "ground_lock_data:";

	// 地锁订单数据
	public static final String GROUND_LOCK_OCCUPY_ORDER = "ground_lock_occupy_order:";

	// 根据站点id查询充电桩列表
	public static final String GET_PILE_LIST_BY_STATION_ID = "get_pile_list_by_station_id:";

	// 查询计费模板详情
	public static final String QUERY_BILLING_DETAIL_BY_ID = "query_billing_detail_by_id:";

	// 计费模板
	public static final String SELECT_PILE_BILLING_TEMPLATE_BY_ID = "select_Pile_Billing_Template_By_Id:";

	// 站点计费模板列表
	public static final String QUERY_STATION_BILLING_TEMPLATE_LIST = "query_station_billing_template_list:";

	// 汇付会员账户
	public static final String ADAPAY_MEMBER_ACCOUNT = "adapay_member_account:";

	// 充电桩固件版本
	public static final String PILE_PROGRAM_VERSION = "pile_program_version_";

	// 查询订单支付信息
	public static final String SELECT_ORDER_PAY_INFO_LIST = "select_order_pay_info_list:";

	// 查询订单微信支付回调
	public static final String QUERY_ORDER_WECHAT_CALLBACK = "query_order_wechat_callback:";

	// 查询订单汇付支付回调
	public static final String QUERY_ORDER_ADAPAY_CALLBACK = "query_order_adapay_callback:";

	// 通过paymentId 查询汇付支付回调
	public static final String QUERY_ADAPAY_CALLBACK_RECORD_BY_PAYMENT_ID = "query_adapay_callback_record_by_payment_id:";

	// 汇付支付参数
	public static final String ADAPAY_ORDER_PARAM = "adapay_order_param:";

	// 微信支付参数
	public static final String WECHAT_PAY_ORDER_PARAM = "wechat_pay_order_param:";

	// AccessToken
	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:";

	/**
	 * 微信第三方平台 票据
	 */
	public static final String COMPONENT_VERIFY_TICKET = "component_verify_ticket:";

	/**
	 * 微信第三方平台 用户授权码
	 */
	public static final String COMPONENT_AUTHORIZATION_CODE = "component_authorization_code:";

	/**
	 * 微信第三方平台 用户预授权码
	 */
	// public static final String COMPONENT_PRE_AUTHORIZATION_CODE = "component_pre_authorization_code:";

	/**
	 * 微信第三方平台 用户预授权码
	 */
	public static final String PLATFORM_PRE_AUTH_CODE = "platform_pre_auth_code:";

	/**
	 * 微信第三方平台 token
	 */
	public static final String COMPONENT_ACCESS_TOKEN = "component_access_token:";

	/**
	 * 微信第三方平台 接口调用令牌
	 */
	public static final String AUTHORIZER_ACCESS_TOKEN = "authorizer_access_token:";

	/**
	 * 微信第三方平台 刷新令牌
	 */
	public static final String AUTHORIZER_REFRESH_TOKEN = "authorizer_refresh_token:";

	/**
	 * 路通云停系统 通过appid获取的接口调用令牌
	 */
	public static final String LTYT_TOKEN_BY_APPID = "ltyt_token_by_appid:";

	/**
	 * 甬城泊车系统Token
	 */
	public static final String YCBC_TOKEN_BY_OPERATORID = "yong_cheng_bo_che_token_by_operatorId:";

	/**
	 * 相机拍摄入场/出场照片
	 */
	public static final String CAMERA_IMAGE_BY_PLATE_NUMBER = "CAMERA_IMAGE_BY_PLATE_NUMBER_";

	/**
	 * 相机心跳数据
	 */
	public static final String CAMERA_HEARTBEAT = "CAMERA_HEARTBEAT_IP:";

	/**
	 * 发送降锁指令
	 */
	public static final String SEND_DROP_LOCK_COMMOND = "CONTROLLED_LOCK_DROP_LOCK_COMMAND:";

	/**
	 * 相机设备回复
	 */
	public static final String GROUND_LOCK_DEVICE_REPORT = "GROUND_LOCK_DEVICE_REPORT:";

	/**
	 * 相机设备 sn 和 channelId 进行绑定
	 */
	public static final String MQTT_CONNECT_SN = "MQTT_CONNECT_SN:";

	/**
	 * 江苏省推送桩状态信息
	 */
	public static final String JIANGSU_PUSH_PILE_STATUS = "JIANGSU_PUSH_PILE_STATUS:";

	/**
	 * 华为获取令牌
	 */
	public static final String HUAWEI_GET_TOKEN = "HUAWEI_GET_TOKEN:";

	/**
	 * 华为保存实时设备充电状态信息
	 */
	public static final String HUA_WEI_REAL_TIME_INFO_BY_ORDER_CODE = "HUA_WEI_REAL_TIME_INFO_BY_ORDER_CODE:";

	/**
	 * 华为订单信息
	 */
	public static final String HUA_WEI_ORDER_INFO_BY_ORDER_CODE = "HUA_WEI_ORDER_INFO_BY_ORDER_CODE:";

	/**
	 * 桩硬件故障 根据枪口号查询故障原因
	 */
	public static final String PILE_HARDWARE_FAULT = "pile_hardware_fault:";

	/**
	 * 充电桩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:";
}
