refactor(client): 重构服务类继承关系并统一使用QueryService
重构所有服务类,使其继承自QueryService接口,统一数据查询逻辑。同时为服务类添加@Service注解,确保Spring容器管理。更新相关FXML文件的控制器路径,从manager.ds调整为controller目录结构。调整pom.xml版本号至0.0.84-SNAPSHOT。新增MessageNotitfication和SimpleMessage消息类,提供基础消息结构支持。
This commit is contained in:
@@ -254,6 +254,11 @@ public class OkHttpLoginController implements MessageHolder {
|
||||
CompletableFuture<Void> future = new CompletableFuture<>();
|
||||
|
||||
try {
|
||||
while (!SpringApp.isRunning()) {
|
||||
holder.info("环境准备中,请稍后...");
|
||||
Thread.sleep(1000);
|
||||
}
|
||||
|
||||
ObjectMapper objectMapper = SpringApp.getBean(ObjectMapper.class);
|
||||
ObjectNode objectNode = objectMapper.createObjectNode();
|
||||
objectNode.put("username", username);
|
||||
@@ -367,7 +372,6 @@ public class OkHttpLoginController implements MessageHolder {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// WebSocket消息发送方法
|
||||
public void sendMessage(String message) {
|
||||
if (webSocket != null) {
|
||||
|
||||
Reference in New Issue
Block a user