package jnpf.enums.cultivate;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum BusinessScenarioTypeEnum {
    JND_PZ(1, "技能点配置", "skill:config");
    private final Integer code;
    private final String text;
    private final String redisKeyPrefix;

    public static BusinessScenarioTypeEnum convert(Integer code) {
        for (BusinessScenarioTypeEnum item : values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }
}

