diff --git a/common/common-framework/src/main/java/cn/iocoder/common/framework/constant/DeleteStatusEnum.java b/common/common-framework/src/main/java/cn/iocoder/common/framework/constant/DeleteStatusEnum.java new file mode 100644 index 000000000..9a00cc54d --- /dev/null +++ b/common/common-framework/src/main/java/cn/iocoder/common/framework/constant/DeleteStatusEnum.java @@ -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; + } +}