commit: 添加罗库版本

This commit is contained in:
republicline 2024-12-23 15:26:54 +08:00
parent d6c9089e00
commit 9578e2ee1f
3 changed files with 3 additions and 5 deletions

View File

@ -50,6 +50,7 @@
<groupId>com.rax</groupId>
<artifactId>common-log</artifactId>
</dependency>
<!--日常计划模块-->
<dependency>
<groupId>com.rax</groupId>
<artifactId>daily-plan</artifactId>

View File

@ -1,19 +1,16 @@
package com.rax.vital.v1.config;
import com.rax.vital.v1.handler.AddMedicineHandler;
import com.rax.vital.v1.handler.ChatHandler;
import com.rax.vital.v1.handler.MachineFeedbackHandler;
import com.rax.vital.v1.handler.MedicineHandler;
import com.rax.vital.v1.interceptor.WebSocketInterceptors;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
import org.springframework.web.socket.server.HandshakeInterceptor;
import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor;
@EnableWebSocket
@Configuration

View File

@ -263,7 +263,7 @@ public class ChatHandler implements WebSocketHandler {
// JSONObject param = new JSONObject();
// param.put("history", history);
// param.put("msgType", "msg");
//// session.sendMessage(new TextMessage(param.toJSONString().getBytes()));
// session.sendMessage(new TextMessage(param.toJSONString().getBytes()));
// for (WebSocketSession webSocketSession : webSocketSessionList) {
// webSocketSession.sendMessage(new TextMessage(param.toJSONString().getBytes()));
// }