package com.hzs.common.core.enums;

import com.hzs.common.core.constant.EnumsPrefixConstants;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 奖项配置枚举
 */
@AllArgsConstructor
@Getter
public enum EBonusItems {

    /**
     * 见点收益
     */
    SEE_POINT_INCOME(2, "见点收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 2),

    /**
     * 直推收益
     */
    DIRECT_INCOME(3, "直推收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 3),
    /**
     * 拓展收益
     */
    EXPANSION_INCOME(4, "拓展收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 4),
    /**
     * 辅导收益
     */
    COACHING_INCOME(5, "辅导收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 5),
    /**
     * 领袖收益
     */
    DIVIDEND_INCOME(6, "领袖收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 6),
    /**
     * 报单收益
     */
    SERVICE_INCOME(7, "报单收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 7),
    /**
     * 复销极差收益
     */
    RESALE_RANGE_INCOME(8, "复销极差收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 8),
    /**
     * 复销同级收益
     */
    RESALE_SAME_LEVEL_INCOME(9, "复销同级收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 9),
    /**
     * 商城重销
     */
    RESALE_IN_THE_MALL(10, "商城重销", 0, EnumsPrefixConstants.BONUS_ITEMS + 10),
    /**
     * 加权积分
     */
    POINT_SHARE_INCOME(11, "加权积分", 0, EnumsPrefixConstants.BONUS_ITEMS + 11),
    /**
     * 环球积分
     */
    GLOBAL_POINTS(12, "环球积分", 0, EnumsPrefixConstants.BONUS_ITEMS + 12),
    /**
     * 店铺收益
     */
    STORE_INCOME(13, "店铺收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 13),
    /**
     * 店铺极差收益
     */
    STORE_RANGE_INCOME(14, "店铺极差收益", 0, EnumsPrefixConstants.BONUS_ITEMS + 14),
    ;

    public static EBonusItems getEnumByValue(int value) {
        for (EBonusItems eBonusItems : EBonusItems.values()) {
            if (eBonusItems.getValue() == value) {
                return eBonusItems;
            }
        }
        return null;
    }

    /**
     * 实际值
     */
    private final int value;
    /**
     * 显示标签
     */
    private final String label;
    /**
     * 是否启用（0=是,1=否） -- 来源EYesNo
     */
    private final int enable;
    /**
     * 国际化翻译key值
     */
    private final String key;
}
