package com.sckw.payment.model.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 *
 */
@Getter
@AllArgsConstructor
public enum CashActionEnum {

    CASH(1, "提现"),
    ;

    private final Integer code;
    private final String label;


    public static String getByCode(Integer code) {
        for (CashActionEnum value : CashActionEnum.values()) {
            if (Objects.equals(value.getCode(), code)) {
                return value.getLabel();
            }
        }
        return "";
    }

}
