framework/src/main/java/cn/lili/modules/lmk/enums/general/PrizeUserActionEnum.java
@@ -10,10 +10,20 @@ /** * 获取优惠卷的方式 */ SYSTEM("系统赠送"), BUY("购买"), SHARE("分享"), SEE_SHOP("看商城"), SEE_VIDEO("看视频"); SYSTEM("系统赠送",1), BUY("购买",1), SHARE("分享",1), SEE_SHOP("看商城",1), SEE_VIDEO("看视频",1); private final String description; private final Integer sendNumber; public static PrizeUserActionEnum select(String name) { for (PrizeUserActionEnum prizeUserActionEnum : values()) { if (prizeUserActionEnum.name().equals(name)) { return prizeUserActionEnum; } } return null; } }