- 添加 DeleteStatusEnum 状态
This commit is contained in:
parent
ed26110a7f
commit
8e5efc430a
|
@ -0,0 +1,37 @@
|
|||
package cn.iocoder.common.framework.constant;
|
||||
|
||||
import cn.iocoder.common.framework.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* {@link BaseDO#getDeleted()} delete 状态
|
||||
*
|
||||
* @author Sin
|
||||
* @time 2019-03-22 21:15
|
||||
*/
|
||||
public enum DeleteStatusEnum {
|
||||
|
||||
NOT_DELETE(0, "正常(未删除)"),
|
||||
DELETE(1, "删除");
|
||||
|
||||
/**
|
||||
* 状态值
|
||||
*/
|
||||
private Integer value;
|
||||
/**
|
||||
* 状态名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
DeleteStatusEnum(Integer value, String name) {
|
||||
this.value = value;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue