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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| package com.consum.base.core.type;
|
| /**
| * 状态枚举
| *
| * @author asus
| * @version 2023/12/14 13:41
| **/
| public enum StatesType {
| /**
| * 正常
| */
| NORMAL(1, "正常"),
| /**
| * 禁用
| */
| DISABLED(2, "禁用"),
| /**
| * 已删除
| */
| DELETE(3, "已删除");
|
| private Integer value;
|
| private String desc;
|
| StatesType(Integer value, String desc) {
| this.value = value;
| this.desc = desc;
| }
|
| public Integer getValue() {
| return value;
| }
|
| public void setValue(Integer value) {
| this.value = value;
| }
|
| public String getDesc() {
| return desc;
| }
|
| public void setDesc(String desc) {
| this.desc = desc;
| }
| }
|
|