fuliqi
2024-09-03 461ec2d155d8dd35d8f73c35e7c2a33e040bf862
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 enumeration.general;
 
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
 
/**
 * @author:xp
 * @date:2023/11/28 18:04
 */
@Getter
public enum YesOrNoEnum {
 
    YES("0", "是"),
    NO("1", "否")
    ;
 
    @EnumValue
    @JsonValue
    private String code;
 
    private String desc;
 
    YesOrNoEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}