xiangpei
2024-07-09 9a7ee496344f044c89deddb70600b7e4d6017e1f
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
29
30
package com.ycl.jxkg.enums.general;
 
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
 
/**
 * 是否
 *
 * @author:xp
 * @date:2024/6/4 9:35
 */
@Getter
public enum YesOrNoEnum {
 
    NO(0, "否"),
    YES(1, "是"),
    ;
 
    @EnumValue
    private final Integer value;
 
    @JsonValue
    private final String desc;
 
    YesOrNoEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}