- 添加 DeleteStatusEnum 状态

This commit is contained in:
sin 2019-03-22 21:24:04 +08:00
parent ed26110a7f
commit 8e5efc430a
1 changed files with 37 additions and 0 deletions

View File

@ -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;
}
}