1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| package cc.mrbird.febs.mall;
|
| import com.baomidou.mybatisplus.annotation.EnumValue;
| import com.fasterxml.jackson.annotation.JsonValue;
|
| public enum GenderEnum {
| UNKNOWN("0", "未知"),
| MALE("1", "男"),
| FEMALE("2", "女");
|
| @EnumValue
| @JsonValue
| private final String code;
| private final String info;
|
| private GenderEnum(String code, String info) {
| this.code = code;
| this.info = info;
| }
|
| public String getCode() {
| return this.code;
| }
|
| public String getInfo() {
| return this.info;
| }
| }
|
|