guohongjin
2024-05-15 5b7639f0bd9e056738ec15100ed0532e965c6cd5
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
31
32
33
34
package cn.stylefeng.roses.kernel.rule.enums;
 
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
 
/**
 * 删除标记枚举
 * 1已删除,0未删除
 */
@Getter
public enum DeleteEnum {
 
    // 1已删除,0未删除
    NOT_DELETE(0, "未删除"),
    DELETE(1, "已删除");
 
    @EnumValue
    @JsonValue
    private final Integer code;
 
    private final String name;
 
    DeleteEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
 
    @Override
    public String toString() {
        return "删除标记(" + code + ", " + name + ")";
    }
 
}