/** 我的试卷 / 在线考试状态(列表展示) */
|
export type MyPaperStatus = 'notStarted' | 'doing' | 'submitted';
|
|
/** 列表行:我的试卷 */
|
export interface MyPaperListItem {
|
id: string;
|
paperId: string;
|
paperName: string;
|
/** 考生侧状态 */
|
status: MyPaperStatus;
|
examStart?: string;
|
examEnd?: string;
|
/** 展示用考试时间文案 */
|
examTimeText?: string;
|
totalScore: number;
|
passScore?: number;
|
durationMin?: number;
|
/** 已交卷时的得分 */
|
gotScore?: number;
|
examId?: string;
|
}
|
|
export interface MyPaperPageQuery {
|
currentPage?: number;
|
pageSize?: number;
|
keyword?: string;
|
status?: MyPaperStatus | '';
|
}
|
|
/** 开考后试卷内容 */
|
export interface OnlineExamPaper {
|
examId: string;
|
paperId: string;
|
paperName: string;
|
totalScore: number;
|
passScore?: number;
|
durationMin?: number;
|
questions: OnlineExamQuestionItem[];
|
}
|
|
export interface OnlineExamQuestionItem {
|
id: string;
|
questionNo?: string;
|
questionType: 'single' | 'multi' | 'judge';
|
stem: string;
|
score: number;
|
options: { optionLabel: string; optionContent: string; isCorrect: '0' | '1' }[];
|
}
|
|
export interface OnlineExamDetail {
|
id: string;
|
paperId: string;
|
paperName: string;
|
status: MyPaperStatus;
|
examTimeText?: string;
|
totalScore: number;
|
passScore?: number;
|
durationMin?: number;
|
gotScore?: number;
|
startTime?: string;
|
submitTime?: string;
|
passFlag?: '0' | '1';
|
}
|