All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spring.boxes.dollar.enums.IntegralSceneEnum Maven / Gradle / Ivy

package com.spring.boxes.dollar.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import com.google.common.collect.Lists;
import com.spring.boxes.dollar.support.EnumType;
import com.spring.boxes.dollar.support.EnumWrap;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

// 积分消耗场景
@Getter
@AllArgsConstructor
public enum IntegralSceneEnum implements EnumType, IEnum {

    PUNCH_INTEGRAL(1, "每日签到", TradeTypeEnum.INCOME),
    PAYMENT_OBTAIN(2, "支付购买", TradeTypeEnum.INCOME),
    ADVERT_GRATUITY(3, "广告奖励", TradeTypeEnum.INCOME),
    PEOPLE_REGISTRY(4, "新人注册", TradeTypeEnum.INCOME),
    BOTTLE_INPUT(5, "盲盒奖励", TradeTypeEnum.INCOME),

    GRANT_PRESENT(21, "礼物赠送", TradeTypeEnum.EXPEND),
    SHINY_PUBLISH(22, "发布闪照", TradeTypeEnum.EXPEND),
    BOTTLE_OBTAIN(23, "盲盒抽取", TradeTypeEnum.EXPEND),
    EXPAND_PUBLISH(25, "发布扩列", TradeTypeEnum.EXPEND),;

    private final int value;
    private final String label;

    private final TradeTypeEnum tradeType;

    @Override
    public String getLabel() {
        return this.label;
    }

    @Override
    public String getName() {
        return this.name();
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public static class Opt extends EnumWrap {

        @Override
        public List valueList() {
            return Lists.newArrayList(values());
        }

        public static Opt INSTANCE() {
            return SingleHold.opt;
        }

        private static class SingleHold {
            public static Opt opt = new Opt();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy