package jnpf.tmsEntity.enums;
|
|
/**
|
* 在线考试答卷状态。
|
* <p>字典:{@code tmsExamStatus};字段:{@code tms_exam.exam_status}</p>
|
* <p>编码说明:</p>
|
* <ul>
|
* <li>{@code notStarted} — 未开考(待考壳已生成,学员尚未点开考)</li>
|
* <li>{@code doing} — 答题中(已开考未交卷)</li>
|
* <li>{@code submitted} — 已交卷</li>
|
* <li>{@code cancelled} — 已取消</li>
|
* </ul>
|
*/
|
public enum TmsExamStatus implements TmsDictEnum {
|
|
/** notStarted:未开考(待考壳,尚未进入答题) */
|
NOT_STARTED("notStarted", "未开考"),
|
/** doing:答题中 */
|
DOING("doing", "答题中"),
|
/** submitted:已交卷 */
|
SUBMITTED("submitted", "已交卷"),
|
/** cancelled:已取消 */
|
CANCELLED("cancelled", "已取消");
|
|
private final String code;
|
private final String label;
|
|
TmsExamStatus(String code, String label) {
|
this.code = code;
|
this.label = label;
|
}
|
|
@Override
|
public String getCode() {
|
return code;
|
}
|
|
@Override
|
public String getLabel() {
|
return label;
|
}
|
|
public static TmsExamStatus of(String code) {
|
return TmsDictEnum.of(TmsExamStatus.class, code);
|
}
|
}
|