刘光辉
8 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
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 tmsPaperSortMode};字段:{@code sort_mode}</p>
 */
public enum TmsPaperSortMode implements TmsDictEnum {
 
    /** 按试卷固定顺序 */
    PAPER("paper", "固定顺序"),
    /** 随机抽题/乱序 */
    RANDOM("random", "随机");
 
    private final String code;
    private final String label;
 
    TmsPaperSortMode(String code, String label) {
        this.code = code;
        this.label = label;
    }
 
    @Override
    public String getCode() {
        return code;
    }
 
    @Override
    public String getLabel() {
        return label;
    }
 
    public static TmsPaperSortMode of(String code) {
        return TmsDictEnum.of(TmsPaperSortMode.class, code);
    }
}