diff --git a/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/constant/CacheConstants.java b/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/constant/CacheConstants.java index 719cb2b7..b1b13394 100644 --- a/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/constant/CacheConstants.java +++ b/yanzhu-common/yanzhu-common-core/src/main/java/com/yanzhu/common/core/constant/CacheConstants.java @@ -84,4 +84,9 @@ public class CacheConstants public static final String DEV_AI_CONFIG = "dev_ai_config:"; public static final String UNI_AUTH = "pro_project_uni_auth3:"; + + /** + * yanzhu设备塔吊检测 redis key + */ + public static final String YANZHU_DEVICE_TOWER = "device.tower_cfg:"; } diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/constant/CacheConstants.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/constant/CacheConstants.java deleted file mode 100644 index 448c8a52..00000000 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/constant/CacheConstants.java +++ /dev/null @@ -1,99 +0,0 @@ -package com.yanzhu.manage.constant; - -/** - * 缓存的key 常量 - * - * @author ruoyi - */ -public class CacheConstants -{ - /** - * 登录用户 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:"; - - /** - * yanzhu系统应用注册 redis key - */ - public static final String YANZHU_SYSTEM_CONFIG = "yanzhu_system_config:"; - - /** - * yanzhu设备塔吊检测 redis key - */ - public static final String YANZHU_DEVICE_TOWER = "device.tower_cfg:"; - - /** - * yanzhu设备塔吊检测 redis key - */ - public static final String YANZHU_DEVICE_AI = "device.aibox_cfg:"; - - /** - * 微信公众号模板消息 redis key - */ - public static final String WX_MPMESSAGE_KEY = "wx.mpmessage.key::"; - - /** - * 微信消息推送openId - */ - public static final String WX_MPMESSAGE_OPENID = "wx.mpmessage.openId::"; - - /** - * 微信消息推送通知人名称 - */ - public static final String WX_MPMESSAGE_UNAME = "wx.mpmessage.uname::"; - - /** - * 微信消息推送项目名称 - */ - public static final String WX_MPMESSAGE_PNAME = "wx.mpmessage.pname::"; - - /** - * 微信消息推送单位名称 - */ - public static final String WX_MPMESSAGE_DNAME = "wx.mpmessage.dname::"; - - /** - * 微信消息推送项目总监 - */ - public static final String WX_MPMESSAGE_P_SUP = "wx.mpmessage.p.sup::"; - - /** - * 微信消息推送项目甲代 - */ - public static final String WX_MPMESSAGE_P_MAG = "wx.mpmessage.p.mag::"; - - /** - * 微信消息推送项目经理 - */ - public static final String WX_MPMESSAGE_P_ORG = "wx.mpmessage.p.org::"; -} diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java index 5ae7b3d8..f4e4ed72 100644 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java +++ b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/device/TowerCraneApiController.java @@ -2,6 +2,7 @@ package com.yanzhu.manage.controller.device; import com.alibaba.fastjson2.JSON; import com.yanzhu.common.core.annotation.RateLimiter; +import com.yanzhu.common.core.constant.CacheConstants; import com.yanzhu.common.core.enums.LimitType; import com.yanzhu.common.core.exception.ServiceException; import com.yanzhu.common.core.text.Convert; @@ -9,7 +10,6 @@ import com.yanzhu.common.core.utils.StringUtils; import com.yanzhu.common.core.web.domain.AjaxResult; import com.yanzhu.common.redis.service.RedisService; import com.yanzhu.device.domain.*; -import com.yanzhu.manage.constant.CacheConstants; import com.yanzhu.manage.domain.TowerReqVo; import com.yanzhu.manage.enums.HttpStatusEnum; import com.yanzhu.manage.enums.TowerTypeEnums;