package jnpf.enums.attendance;

import lombok.Getter;

@Getter
public enum CloudAlbumTypeEnum {
    FIELD_PERSONNEL(1, "外勤");
    final Integer code;
    final String msg;

    CloudAlbumTypeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static String getByCode(Integer code) {
        CloudAlbumTypeEnum[] values = values();
        for (CloudAlbumTypeEnum value : values) {
            if (code.equals(value.code)) {
                return value.msg;
            }
        }
        return null;
    }
}
