From 8e5efc430a1c3c7db998b96b7cfacff2b43293b1 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Fri, 22 Mar 2019 21:24:04 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=B7=BB=E5=8A=A0=20DeleteStatusEnum=20?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/constant/DeleteStatusEnum.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 common/common-framework/src/main/java/cn/iocoder/common/framework/constant/DeleteStatusEnum.java 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; + } +}