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
package cn.wisenergy.chnmuseum.party.common.enums;
/**
* 审核状态
*/
public enum AuditOperationEnum {
ADD(1, "新增"),
EDIT(2, "修改"),
REMOVE(3, "删除"),
DISABLE(4, "禁用"),
ENABLE(5, "启用"),
UPPER(6,"上架"),
LOWER(7,"下架")
;
// 错误编码
private Integer code;
// 信息
private String operation;
// 相应编码有参构造函数
AuditOperationEnum(Integer code, String operation) {
this.code = code;
this.operation = operation;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getOperation() {
return operation;
}
public void setOperation(String operation) {
this.operation = operation;
}
}