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