package com.ruoyi.system.service;
|
|
import java.time.Instant;
|
import java.util.List;
|
import java.util.Map;
|
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
|
/** 提供测试控制台的双状态实时事实与鉴权 SSE。 */
|
public interface ITestLiveService
|
{
|
LiveState current(Long testId);
|
SseEmitter stream(Long testId);
|
record LiveState(Long testId, String testStatus, String receptionStatus, Instant updatedAt,
|
List<LiveSource> sources, List<Map<String, Object>> exceptions) { }
|
record LiveSource(String sourceType, Long sourceId, String batteryNo, String deviceStatus,
|
Map<String, Object> latestSnapshot) { }
|
}
|