liuyu
21 小时以前 8534025c45b4736975730678b9ccf23570a75f95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/** 试卷状态(字典 tmsOpenClosedInvalid) */
export type PaperStatus = 'open' | 'closed' | 'invalid';
 
/** 试题排序(字典 tmsPaperSortMode) */
export type PaperSortMode = 'paper' | 'random';
 
export interface PaperQuestionItem {
  id?: string;
  sectionId?: string;
  questionId: string;
  questionNo?: string;
  stem?: string;
  questionType?: string;
  bankName?: string;
  score?: number | null;
  sortNo?: number;
}
 
export interface PaperSectionItem {
  /** 前端临时 key 或已保存 ID */
  id: string;
  sectionName: string;
  questionType?: string;
  sortNo?: number;
  questions: PaperQuestionItem[];
}
 
export interface PaperEntity {
  id?: string;
  /** 试卷编号,如 260001 */
  paperNo?: string;
  paperName: string;
  bizStatus: PaperStatus;
  durationMin?: number | null;
  examStart?: string | number | null;
  examEnd?: string | number | null;
  scorePublishTime?: string | number | null;
  passScore?: number | null;
  totalScore?: number | null;
  sortMode: PaperSortMode;
  hasSubjective?: string;
  remark?: string;
  creatorTime?: string;
  questionCount?: number;
  sections?: PaperSectionItem[];
}
 
export interface PaperPageQuery {
  currentPage?: number;
  pageSize?: number;
  bizStatus?: PaperStatus | '';
  keyword?: string;
}