package jnpf.tmsEntity.enums; /** * 试题题型。 *

字典:{@code tmsQuestionType};字段:{@code tms_question.question_type}

*/ 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); } }