mirror of
https://github.com/dataease/dataease.git
synced 2026-05-19 02:08:10 +08:00
perf(X-Pack): 定时报告使用websocket机制实时刷新页面
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package io.dataease.websocket;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class WsMessage<T> implements Serializable {
|
||||
private Long userId;
|
||||
|
||||
private String topic;
|
||||
|
||||
private T data;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package io.dataease.websocket;
|
||||
|
||||
|
||||
|
||||
public interface WsService {
|
||||
|
||||
void releaseMessage(WsMessage wsMessage);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user