1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| package cn.lili.modules.lmk.enums.general;
|
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| @AllArgsConstructor
| public enum StoreCouponStausEnum {
| ENABLE("启用"),
| DISABLE("禁用");
|
| private String des;
|
| public static StoreCouponStausEnum select(String name){
| for (StoreCouponStausEnum value : StoreCouponStausEnum.values()) {
| if (value.name().equals(name)) {
| return value;
| }
| }
| return null;
| }
|
|
| }
|
|