liuyu
22 小时以前 93c133349a5ccd7a328371fa113dce69d5611f21
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;
}