From c27c1f2beb4ca89a94eaa854fce6b4553db8f2f8 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期三, 15 一月 2025 19:58:12 +0800 Subject: [PATCH] 修改 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/enums/GoodsStatus.java | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/enums/GoodsStatus.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/enums/GoodsStatus.java index c17d2e1..8f5dd6c 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/enums/GoodsStatus.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/enums/GoodsStatus.java @@ -1,22 +1,18 @@ package com.ruoyi.other.enums; -public enum GoodsStatus { - DOWN(0, "下架"), - UP(1, "上架"); +import lombok.Getter; - private Integer code; - private String desc; +@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; } - public Integer getCode() { - return code; - } - - public String getDesc() { - return desc; - } } -- Gitblit v1.7.1