2023-03-04 16:29:55 +08:00
|
|
|
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;
|
|
|
|
|
|
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-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-06-19 10:52:12 +08:00
|
|
|
// 查询订单回调
|
2023-05-30 16:20:03 +08:00
|
|
|
public static final String QUERY_ORDER_CALLBACK = "query_order_callback:";
|
|
|
|
|
|
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-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:";
|
|
|
|
|
}
|