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
| package jnpf.tmsEntity.enums;
|
| /**
| * 试题题型。
| * <p>字典:{@code tmsQuestionType};字段:{@code tms_question.question_type}</p>
| */
| public enum TmsQuestionType implements TmsDictEnum {
|
| /** 单选题 */
| SINGLE("single", "单选"),
| /** 多选题 */
| MULTI("multi", "多选"),
| /** 判断题 */
| JUDGE("judge", "判断"),
| /** 填空题 */
| BLANK("blank", "填空"),
| /** 问答题(主观题) */
| ESSAY("essay", "问答");
|
| private final String code;
| private final String label;
|
| TmsQuestionType(String code, String label) {
| this.code = code;
| this.label = label;
| }
|
| @Override
| public String getCode() {
| return code;
| }
|
| @Override
| public String getLabel() {
| return label;
| }
|
| /** 是否主观题(需人工阅卷) */
| public boolean isSubjective() {
| return this == ESSAY;
| }
|
| public static TmsQuestionType of(String code) {
| return TmsDictEnum.of(TmsQuestionType.class, code);
| }
| }
|
|