无关风月
2025-01-16 ec7528bb6cc65d3bce1c33d59e48ea5bc81c7782
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.ruoyi.other.enums;
 
import lombok.Getter;
 
@Getter
public enum GoodsStatus {
    DOWN(1, "下架"),
    UP(2, "上架");
 
    private final Integer code;
    private final String desc;
 
    GoodsStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
 
}