mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-04 01:52:21 +08:00
feat(GenderEnum.java): 添加性别枚举
This commit is contained in:
parent
a3dc098885
commit
de8dc09cdf
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user