From 8283a06e31c82d3052ef4fdba761cbee87fb77b1 Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期日, 30 八月 2026 20:37:48 +0800
Subject: [PATCH] 接入 Ticket12 人工结束与顺序接入
---
src/api/tests.ts | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/api/tests.ts b/src/api/tests.ts
index 80ca267..b56249b 100644
--- a/src/api/tests.ts
+++ b/src/api/tests.ts
@@ -79,6 +79,18 @@
fieldValue: string | null
}>
runtimeAttach?: boolean
+ receptionIntervals?: Array<{
+ intervalId: number
+ bindingId: number | null
+ sourceType: 'CABINET_CHANNEL' | 'COLLECTOR_CHANNEL' | string
+ sourceId: number
+ sourceChannelCode: string | null
+ actionAtUtc: string
+ startBoundaryAtUtc: string
+ endBoundaryAtUtc: string | null
+ boundaryNote: string | null
+ intervalStatus: 'OPEN' | 'CLOSED' | string
+ }>
}
export interface TestConfigurationOptions {
@@ -184,6 +196,11 @@
return (await request<TestDetailResponse>(`/system/test/${testId}/stop`, { method: 'POST' })).data
}
+/** 人工结束接收的独立动作接口;保留 stopTest 兼容旧页面调用。 */
+export async function endTestReception(testId: number): Promise<TestConfigurationDetail> {
+ return (await request<TestDetailResponse>(`/system/test/${testId}/reception/end`, { method: 'POST' })).data
+}
+
export interface LiveSource {
sourceType: 'CABINET_CHANNEL' | 'COLLECTOR' | string
sourceId: number
--
Gitblit v1.7.1