1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| package cn.lili.modules.lmk.enums.general;
|
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| @Getter
| @AllArgsConstructor
| public enum PrizeUserActionEnum {
| //todo 后续走后台配置获取
| /**
| * 获取优惠卷的方式
| */
| 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;
| }
| }
|
|