package com.jeesharp.business.modules.pay.paypufaconfig.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 浦发配置记录状态枚举。
 *
 * @author jeesharp
 * @since 2026-05-25
 */
@Getter
@AllArgsConstructor
public enum PayPufaConfigStatusEnum {

    DISABLED(0, "禁用"),
    ENABLED(1, "启用");

    private final Integer value;
    private final String desc;

    public static String getDescByValue(Integer value) {
        if (value == null) {
            return "";
        }
        for (PayPufaConfigStatusEnum e : values()) {
            if (e.getValue().equals(value)) {
                return e.getDesc();
            }
        }
        return "";
    }
}
