提交增加运维管理

This commit is contained in:
LEED
2025-04-29 22:30:18 +08:00
parent 4201690d93
commit 360b630306
98 changed files with 6300 additions and 45 deletions

View File

@@ -49,6 +49,7 @@ public enum TopicType {
/*** webSocket转发前端使用 ***/
WS_SERVICE_INVOKE(2,16,"/ws/service", "WS服务调用"),
WS_LOG_INVOKE(2,17,"/ws/log","ws下发指令日志"),
WS_SERVICE_ALERT(2,16,"/ws/alert", "WS告警推送"),
/*** 模拟设备使用 ***/

View File

@@ -82,6 +82,9 @@ public class SecurityUtils
return SecurityContextHolder.getContext().getAuthentication();
}
public static void setAuthentication(Authentication authentication) {
SecurityContextHolder.getContext().setAuthentication(authentication);
}
/**
* 生成BCryptPasswordEncoder密码
*
@@ -136,4 +139,7 @@ public class SecurityUtils
return "en-US";
}
}
}