刘光辉
7 小时以前 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 tmsSignRule};字段:{@code tms_train_mode.sign_rule}</p>
 */
public enum TmsSignRule implements TmsDictEnum {
 
    /** 仅扫码 */
    SCAN("scan", "仅扫码"),
    /** 扫码 + 在线 */
    BOTH("both", "扫码+在线");
 
    private final String code;
    private final String label;
 
    TmsSignRule(String code, String label) {
        this.code = code;
        this.label = label;
    }
 
    @Override
    public String getCode() {
        return code;
    }
 
    @Override
    public String getLabel() {
        return label;
    }
 
    public static TmsSignRule of(String code) {
        return TmsDictEnum.of(TmsSignRule.class, code);
    }
}