2023-03-04 16:29:55 +08:00
|
|
|
package com.jsowell.common.constant;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 缓存的key 常量
|
|
|
|
|
*
|
|
|
|
|
* @author jsowell
|
|
|
|
|
*/
|
|
|
|
|
public class CacheConstants {
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 1分钟
|
2023-03-04 16:29:55 +08:00
|
|
|
public static final int cache_expire_time_1m = 60;
|
|
|
|
|
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 3分钟
|
|
|
|
|
public static final int cache_expire_time_3m = cache_expire_time_1m * 3;
|
|
|
|
|
|
|
|
|
|
// 缓存时间 5分钟
|
2023-08-22 09:42:30 +08:00
|
|
|
public static final int cache_expire_time_5m = cache_expire_time_1m * 5;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 10分钟
|
2023-08-22 09:42:30 +08:00
|
|
|
public static final int cache_expire_time_10m = cache_expire_time_1m * 10;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 30分钟
|
2023-08-23 16:26:02 +08:00
|
|
|
public static final int cache_expire_time_30m = cache_expire_time_1m * 30;
|
|
|
|
|
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 60分钟
|
2023-08-22 09:42:30 +08:00
|
|
|
public static final int cache_expire_time_1h = cache_expire_time_1m * 60;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 12小时
|
2023-08-22 09:42:30 +08:00
|
|
|
public static final int cache_expire_time_12h = cache_expire_time_1h * 12;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 24小时
|
2023-08-22 09:42:30 +08:00
|
|
|
public static final int cache_expire_time_1d = cache_expire_time_1h * 24;
|
|
|
|
|
|
2023-09-12 08:33:45 +08:00
|
|
|
// 缓存时间 10天
|
2023-08-22 09:42:30 +08:00
|
|
|
public static final int cache_expire_time_10d = cache_expire_time_1d * 10;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
2023-07-17 16:44:04 +08:00
|
|
|
public static final String PUSH_STATION_CONNECTOR = "push_station_connector";
|
|
|
|
|
|
2023-10-16 10:18:06 +08:00
|
|
|
// 支付确认列表
|
|
|
|
|
public static final String PAYMENT_CONFIRM_LIST = "payment_confirm_list:";
|
|
|
|
|
|
2023-08-23 16:26:02 +08:00
|
|
|
// 会员余额退款正在进行中
|
2023-08-23 16:46:07 +08:00
|
|
|
public static final String MEMBER_BALANCE_REFUNDS_ARE_IN_PROGRESS = "member_balance_refunds_are_in_progress:";
|
2023-08-23 16:26:02 +08:00
|
|
|
|
2023-07-04 14:03:11 +08:00
|
|
|
public static final String PLATFORM_TESTER = "platform_tester:";
|
|
|
|
|
|
2023-06-21 15:55:40 +08:00
|
|
|
public static final String GET_PILE_MODEL_INFO_BY_MODEL_ID = "get_pile_model_info_by_model_id:";
|
|
|
|
|
|
2023-08-02 14:43:34 +08:00
|
|
|
// 地锁数据
|
|
|
|
|
public static final String GROUND_LOCK_DATA = "ground_lock_data:";
|
|
|
|
|
|
2023-09-09 15:53:49 +08:00
|
|
|
// 地锁订单数据
|
|
|
|
|
public static final String GROUND_LOCK_OCCUPY_ORDER = "ground_lock_occupy_order:";
|
|
|
|
|
|
2023-06-21 16:04:47 +08:00
|
|
|
// 根据站点id查询充电桩列表
|
|
|
|
|
public static final String GET_PILE_LIST_BY_STATION_ID = "get_pile_list_by_station_id:";
|
|
|
|
|
|
2023-06-21 11:19:51 +08:00
|
|
|
public static final String QUERY_BILLING_DETAIL_BY_ID = "query_billing_detail_by_id:";
|
|
|
|
|
|
2023-06-21 09:02:56 +08:00
|
|
|
//
|
|
|
|
|
public static final String SELECT_PILE_BILLING_TEMPLATE_BY_ID = "select_Pile_Billing_Template_By_Id:";
|
|
|
|
|
|
2023-06-19 10:52:12 +08:00
|
|
|
// 站点计费模板列表
|
|
|
|
|
public static final String QUERY_STATION_BILLING_TEMPLATE_LIST = "query_station_billing_template_list:";
|
|
|
|
|
|
|
|
|
|
// 汇付会员账户
|
2023-06-15 14:40:11 +08:00
|
|
|
public static final String ADAPAY_MEMBER_ACCOUNT = "adapay_member_account:";
|
2023-06-09 16:10:25 +08:00
|
|
|
|
|
|
|
|
public static final String PILE_PROGRAM_VERSION = "pile_program_version_";
|
2023-03-04 16:29:55 +08:00
|
|
|
|
2023-08-25 17:21:39 +08:00
|
|
|
// 查询订单微信支付回调
|
2023-07-07 11:22:10 +08:00
|
|
|
public static final String QUERY_ORDER_WECHAT_CALLBACK = "query_order_wechat_callback:";
|
|
|
|
|
|
2023-08-25 17:21:39 +08:00
|
|
|
// 查询订单汇付支付回调
|
2023-07-07 11:22:10 +08:00
|
|
|
public static final String QUERY_ORDER_ADAPAY_CALLBACK = "query_order_adapay_callback:";
|
2023-05-30 16:20:03 +08:00
|
|
|
|
2023-08-25 17:21:39 +08:00
|
|
|
// 通过paymentId 查询汇付支付回调
|
|
|
|
|
public static final String QUERY_ADAPAY_CALLBACK_RECORD_BY_PAYMENT_ID = "query_adapay_callback_record_by_payment_id:";
|
|
|
|
|
|
2023-06-19 10:52:12 +08:00
|
|
|
// 汇付支付参数
|
2023-05-30 16:20:03 +08:00
|
|
|
public static final String ADAPAY_ORDER_PARAM = "adapay_order_param:";
|
|
|
|
|
|
2023-06-19 10:52:12 +08:00
|
|
|
// 微信支付参数
|
2023-05-30 16:20:03 +08:00
|
|
|
public static final String WECHAT_PAY_ORDER_PARAM = "wechat_pay_order_param:";
|
|
|
|
|
|
|
|
|
|
public static final String ACCESS_TOKEN = "AccessToken_";
|
|
|
|
|
|
2023-06-19 10:52:12 +08:00
|
|
|
// 通过交易流水号查询订单实时数据
|
2023-06-02 16:51:23 +08:00
|
|
|
public static final String ORDER_MONITOR_DATA_BY_TRANSACTION_CODE = "order_monitor_data_by_transaction_code:";
|
|
|
|
|
|
2023-06-19 10:52:12 +08:00
|
|
|
// 通过订单编号查询订单实时数据
|
2023-06-02 16:51:23 +08:00
|
|
|
public static final String ORDER_MONITOR_DATA_BY_ORDER_CODE = "order_monitor_data_by_order_code:";
|
|
|
|
|
|
2023-03-04 16:29:55 +08:00
|
|
|
/**
|
|
|
|
|
* 通过订单号查询订单信息Key
|
|
|
|
|
*/
|
|
|
|
|
public static final String GET_ORDER_INFO_BY_ORDER_CODE = "get_order_info_by_order_code:";
|
|
|
|
|
|
2023-06-19 10:52:12 +08:00
|
|
|
// 通过交易流水号查询订单信息
|
2023-03-13 16:06:18 +08:00
|
|
|
public static final String GET_ORDER_INFO_BY_TRANSACTION_CODE = "get_order_info_by_transaction_code:";
|
|
|
|
|
|
2023-03-04 16:29:55 +08:00
|
|
|
/**
|
|
|
|
|
* 充电枪口实时监控数据
|
|
|
|
|
*/
|
|
|
|
|
public static final String PILE_REAL_TIME_MONITOR_DATA = "pile_real_time_monitor_data:";
|
|
|
|
|
|
2023-03-29 16:35:25 +08:00
|
|
|
public static final String PILE_IS_CHARGING = "pile_is_charging:";
|
|
|
|
|
|
2023-03-04 16:29:55 +08:00
|
|
|
/**
|
|
|
|
|
* 充电桩最后连接时间
|
|
|
|
|
*/
|
|
|
|
|
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:";
|
|
|
|
|
|
2023-04-06 16:09:07 +08:00
|
|
|
/**
|
|
|
|
|
* 查询设备管理
|
|
|
|
|
*/
|
|
|
|
|
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:";
|
|
|
|
|
|
2023-04-11 17:04:17 +08:00
|
|
|
/**
|
|
|
|
|
* uniApp通过站点id查询枪口列表信息
|
|
|
|
|
*/
|
|
|
|
|
public static final String GET_UNIAPP_CONNECTOR_LIST_BY_STATION_ID = "GET_UNIAPP_CONNECTOR_LIST_BY_STATION_ID:";
|
2023-07-27 16:44:48 +08:00
|
|
|
|
|
|
|
|
/**
|
2023-07-28 14:47:26 +08:00
|
|
|
* 微信第三方平台 票据
|
2023-07-27 16:44:48 +08:00
|
|
|
*/
|
|
|
|
|
public static final String COMPONENT_VERIFY_TICKET = "component_verify_ticket:";
|
|
|
|
|
|
2023-07-28 17:03:10 +08:00
|
|
|
/**
|
|
|
|
|
* 微信第三方平台 用户授权码
|
|
|
|
|
*/
|
2023-07-29 11:42:01 +08:00
|
|
|
public static final String COMPONENT_AUTHORIZATION_CODE = "component_authorization_code:";
|
2023-07-28 17:03:10 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 微信第三方平台 用户预授权码
|
|
|
|
|
*/
|
2023-07-31 13:58:14 +08:00
|
|
|
// public static final String COMPONENT_PRE_AUTHORIZATION_CODE = "component_pre_authorization_code:";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 微信第三方平台 用户预授权码
|
|
|
|
|
*/
|
|
|
|
|
public static final String PLATFORM_PRE_AUTH_CODE = "platform_pre_auth_code:";
|
2023-07-28 17:03:10 +08:00
|
|
|
|
2023-07-28 14:47:26 +08:00
|
|
|
/**
|
|
|
|
|
* 微信第三方平台 token
|
|
|
|
|
*/
|
|
|
|
|
public static final String COMPONENT_ACCESS_TOKEN = "component_access_token:";
|
|
|
|
|
|
2023-07-29 11:42:01 +08:00
|
|
|
/**
|
2023-08-23 14:13:11 +08:00
|
|
|
* 微信第三方平台 接口调用令牌
|
2023-07-29 11:42:01 +08:00
|
|
|
*/
|
|
|
|
|
public static final String AUTHORIZER_ACCESS_TOKEN = "authorizer_access_token:";
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-23 14:13:11 +08:00
|
|
|
* 微信第三方平台 刷新令牌
|
2023-07-29 11:42:01 +08:00
|
|
|
*/
|
|
|
|
|
public static final String AUTHORIZER_REFRESH_TOKEN = "authorizer_refresh_token:";
|
|
|
|
|
|
2023-08-23 14:13:11 +08:00
|
|
|
/**
|
|
|
|
|
* 路通云停系统 通过appid获取的接口调用令牌
|
|
|
|
|
*/
|
|
|
|
|
public static final String LTYT_TOKEN_BY_APPID = "ltyt_token_by_appid:";
|
|
|
|
|
|
2023-08-14 11:41:23 +08:00
|
|
|
/**
|
|
|
|
|
* 桩硬件故障
|
|
|
|
|
*/
|
|
|
|
|
public static final String PILE_HARDWARE_FAULT = "pile_hardware_fault:";
|
|
|
|
|
|
2023-03-04 16:29:55 +08:00
|
|
|
/**
|
|
|
|
|
* 充电桩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:";
|
|
|
|
|
}
|