feat(GenderEnum.java): 添加性别枚举

This commit is contained in:
郝先瑞 2022-04-11 00:09:06 +08:00
parent a3dc098885
commit de8dc09cdf

View File

@ -0,0 +1,28 @@
package com.youlai.admin.common.enums;
import com.youlai.common.base.IBaseEnum;
import lombok.Getter;
/**
* 性别枚举
*
* @author <a href="mailto:xianrui0365@163.com">haoxr</a>
* @date 2022/4/10 22:34
*/
public enum GenderEnum implements IBaseEnum<Integer> {
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;
}
}