From 8c2a413d2574151a2bc762aa0779f766de48160b Mon Sep 17 00:00:00 2001 From: phpcjl <phpcjl@gmail.com> Date: 星期一, 16 十二月 2024 18:14:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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