From 5fce4e825f5d1726a4202f6cb8b659cbf7fb52e2 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期二, 14 一月 2025 16:28:51 +0800
Subject: [PATCH] 修改bug
---
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