From 93c133349a5ccd7a328371fa113dce69d5611f21 Mon Sep 17 00:00:00 2001
From: liuyu <yu.liu@cqgbkj.com>
Date: 星期二, 22 九月 2026 09:25:39 +0800
Subject: [PATCH] feat(tms): 完成课程考试自测等页面与接口对接
---
apps/jnpf-web-apps-main/src/views/x/tms/selfTest/types.ts | 36 +++++++++++++++++++++++++++++++++++-
1 files changed, 35 insertions(+), 1 deletions(-)
diff --git a/apps/jnpf-web-apps-main/src/views/x/tms/selfTest/types.ts b/apps/jnpf-web-apps-main/src/views/x/tms/selfTest/types.ts
index 2fce373..0f705e9 100644
--- a/apps/jnpf-web-apps-main/src/views/x/tms/selfTest/types.ts
+++ b/apps/jnpf-web-apps-main/src/views/x/tms/selfTest/types.ts
@@ -22,11 +22,17 @@
judge: SelfTestTypeSetting;
}
-/** 鎶介缁撴灉锛堣�冭瘯椤碉級 */
+/** 鎶介缁撴灉 / 妫�娴嬭鎯� */
export interface SelfTestPaper {
paperId: string;
bankId: string;
bankName: string;
+ testStatus?: string;
+ totalCount?: number;
+ correctCount?: number;
+ scoreRate?: number;
+ startTime?: string;
+ submitTime?: string;
questions: SelfTestQuestionItem[];
}
@@ -37,4 +43,32 @@
difficulty?: Difficulty;
stem: string;
options: { optionLabel: string; optionContent: string; isCorrect: '0' | '1' }[];
+ /** 鍥為【瀛楁 */
+ correctAnswer?: string;
+ userAnswer?: string;
+ isRight?: '0' | '1';
+ sortNo?: number;
+}
+
+export interface SelfTestSubmitPayload {
+ answers: Record<string, string | string[]>;
+}
+
+export interface SelfTestSubmitResult {
+ paperId: string;
+ totalCount: number;
+ correctCount: number;
+ scoreRate: number;
+}
+
+export interface SelfTestRecordItem {
+ id: string;
+ bankId: string;
+ bankName: string;
+ totalCount: number;
+ correctCount?: number;
+ scoreRate?: number;
+ testStatus: string;
+ startTime?: string;
+ submitTime?: string;
}
--
Gitblit v1.8.0