package jnpf.tmsEntity.enums; /** * 签到规则(培训方式配置)。 *
字典:{@code tmsSignRule};字段:{@code tms_train_mode.sign_rule}
*/ 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); } }