From de8dc09cdfd97c958523520ea555207c1e6b9f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Mon, 11 Apr 2022 00:09:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(GenderEnum.java):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=80=A7=E5=88=AB=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../youlai/admin/common/enums/GenderEnum.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 youlai-admin/admin-boot/src/main/java/com/youlai/admin/common/enums/GenderEnum.java diff --git a/youlai-admin/admin-boot/src/main/java/com/youlai/admin/common/enums/GenderEnum.java b/youlai-admin/admin-boot/src/main/java/com/youlai/admin/common/enums/GenderEnum.java new file mode 100644 index 000000000..5b278d088 --- /dev/null +++ b/youlai-admin/admin-boot/src/main/java/com/youlai/admin/common/enums/GenderEnum.java @@ -0,0 +1,28 @@ +package com.youlai.admin.common.enums; + +import com.youlai.common.base.IBaseEnum; +import lombok.Getter; + +/** + * 性别枚举 + * + * @author haoxr + * @date 2022/4/10 22:34 + */ +public enum GenderEnum implements IBaseEnum { + + MALE(1, "男"), + FEMALE(2, "女"), + UNKNOWN(0, "未知"); + + @Getter + private Integer value; + + @Getter + private String label; + + GenderEnum(Integer value, String label) { + this.value = value; + this.label = label; + } +}