| | |
| | | @Getter |
| | | @AllArgsConstructor |
| | | public enum PrizeUserActionEnum { |
| | | //todo 后续走后台配置获取 |
| | | /** |
| | | * 获取优惠卷的方式 |
| | | */ |
| | | 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; |
| | | } |
| | | } |