From 5a18d863778ffabcc45da185f7f77e7462289bb9 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期四, 27 八月 2026 20:45:31 +0800
Subject: [PATCH] feat(test): implement test configuration and channel binding

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/ITTestService.java |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITTestService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITTestService.java
index f0fe0b0..ff54c93 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ITTestService.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ITTestService.java
@@ -3,14 +3,25 @@
 import java.util.List;
 import com.ruoyi.system.domain.TTest;
 import com.ruoyi.system.domain.TTestResult;
+import com.ruoyi.system.domain.vo.TestConfigurationOptionsVo;
 
-/** 测试管理服务接口。 */
+/** 测试配置业务接口。 */
 public interface ITTestService
 {
+    /** 返回测试配置、正式测试状态和独立监测状态。 */
     TTest selectTestById(Long testId);
+
     List<TTest> selectTestList(TTest test);
-    int insertTest(TTest test);
+
+    /** 返回当前启用且已正式登记的测试配置选项。 */
+    TestConfigurationOptionsVo selectConfigurationOptions();
+
+    /** 创建未监测的待测试记录并返回测试标识。 */
+    Long createTest(TTest test);
+
+    /** 仅在尚未开始监测时替换测试配置。 */
     int updateTest(TTest test);
+
     int startTest(Long testId, String updateBy);
     int deleteTestByIds(Long[] testIds, String updateBy);
     List<TTestResult> selectTestResults(TTestResult result);

--
Gitblit v1.7.1