package jnpf.enums.attendance;

/**
 * 考勤机枚举
 *
 * @author yanwenfu
 * @create 2023-09-18
 */
public enum ActionEnum {

    /** 打卡 */
    DA_KA("dk", "打卡"),
    /** 下发成员 */
    XIA_FA("xfcy", "下发成员"),
    /** 删除成员 */
    SHAN_CHU("sccy", "删除成员"),
    ;

    private final String value;

    private final String description;

    ActionEnum(String value, String description) {
        this.value = value;
        this.description = description;
    }

    public static ActionEnum getMachineEnum(String value) {

        ActionEnum[] values = ActionEnum.values();
        for (ActionEnum v : values) {
            if (v.getValue().equals(value)) {
                return v;
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }
}
