yeg
2026-08-30 ff458109478abbc015d93d6b48a323e0d23fa94e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) { }
}