From e6124a14187aeb41f62ee9415a203f3c39e589be Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 29 十月 2025 10:36:21 +0800
Subject: [PATCH] 修改bug
---
server/system_service/src/main/java/com/doumee/core/utils/Constants.java | 71 +++++++++++++++++++++++++++++++++++
1 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java
index 2d14098..eed258c 100644
--- a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -1,6 +1,7 @@
package com.doumee.core.utils;
+import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -19,6 +20,7 @@
public class Constants {
public static final String HEADER_USER_TOKEN = "dm_user_token";
+ public static final String REDIS_USER_KEY = "user_token_list_";
public static final String REDIS_TOKEN_KEY = "token_";
public static final String REDIS_HK_TOKEN_KEY = "hk_token_";
public static final String HK_TOKEN_VALIDITY = "HK_TOKEN_VALIDITY";
@@ -55,6 +57,26 @@
public static final String SIGN_IN_ATTENTION ="SIGN_IN_ATTENTION" ;
public static final String SIGN_IN_QRCODE_PREFIX ="SIGN_IN_QRCODE_PREFIX" ;
+ /**
+ * 鎿嶄綔绫诲瀷锛岀敤浜庡仛鎺ュ彛楠岃瘉鍒嗙粍
+ */
+ public interface OperaType {
+
+ /**
+ * 鍒涘缓
+ */
+ interface Create {}
+
+ /**
+ * 淇敼
+ */
+ interface Update {}
+
+ /**
+ * 淇敼鐘舵��
+ */
+ interface UpdateStatus {}
+ }
public static final String WEATHER_CONFIG ="WEATHER_CONFIG" ;
public static final String REQUEST_URL ="REQUEST_URL" ;
@@ -65,6 +87,7 @@
public static final String PRESSURE ="PRESSURE" ;
public static final String CONCENTRATION ="CONCENTRATION" ;
public static final String THRESHOLD ="THRESHOLD" ;
+ public static final String LINK_PHONE ="LINK_PHONE" ;
//琚嫓璁夸汉淇℃伅鏍¢獙鏂瑰紡锛�0鎵嬫満鍙峰崟鐙牎楠� 1鎵嬫満鍙峰拰濮撳悕缁勫悎鏍¢獙锛�
public static final String BEVISITED_USER_VALID = "BEVISITED_USER_VALID";
public static final String LW_BEVISITED_USER_VALID = "LW_BEVISITED_USER_VALID";
@@ -526,6 +549,11 @@
+
+ public static final String PROHIBIT_TIME = "PROHIBIT_TIME";
+ public static final String ERR_TIMES = "ERR_TIMES";
+ public static final String PROHIBIT_LOGIN_OPEN = "PROHIBIT_LOGIN_OPEN";
+ public static final String OPEN_JOINT_ACCOUNT = "OPEN_JOINT_ACCOUNT";
@@ -1462,8 +1490,51 @@
public String getNoteinfo() {
return noteinfo;
}
+ }
+ public static String strToJson(String key,String val){
+ Map<String,Object> map = new HashMap<>();
+ map.put(key,val);
+ return JSONObject.toJSONString(map);
+ }
+
+
+
+ public enum WarningConfig {
+ ALARM_TEST(10002, "閰掔簿娴嬭瘯"),
+ GRID_TIME_OUT_INFO(10003, "寮�闂ㄨ秴鏃舵湭鍏抽棴"),
+ KEY_TIME_OUT_BACK(10004, "閽ュ寵瓒呮椂鏈綊杩�"),
+ ;
+ // 鎴愬憳鍙橀噺
+ private int key;
+ private String info;
+
+ // 鏋勯�犳柟娉�
+ WarningConfig(int key,String info) {
+ this.key = key;
+ this.info = info;
+ }
+
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getInfo() {
+ return info;
+ }
+
+ public void setInfo(String info) {
+ this.info = info;
+ }
}
+
+
+
}
--
Gitblit v1.9.3