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
| package jnpf.tmsEntity.enums;
|
| /**
| * 试题时效类型。
| * <p>字典:{@code tmsQuestionLifeType};字段:{@code life_type}</p>
| */
| public enum TmsQuestionLifeType implements TmsDictEnum {
|
| /** 长期:无过期时间 */
| LONG("long", "长期"),
| /** 临时:须填过期时间 */
| TEMP("temp", "临时");
|
| private final String code;
| private final String label;
|
| TmsQuestionLifeType(String code, String label) {
| this.code = code;
| this.label = label;
| }
|
| @Override
| public String getCode() {
| return code;
| }
|
| @Override
| public String getLabel() {
| return label;
| }
|
| public static TmsQuestionLifeType of(String code) {
| return TmsDictEnum.of(TmsQuestionLifeType.class, code);
| }
| }
|
|