From b044d9fbf64ebf7e7beae0b7c49e5f39c6ac620c Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期一, 09 十二月 2024 15:30:59 +0800 Subject: [PATCH] 12.9 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/enums/GoodsStatus.java | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 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 new file mode 100644 index 0000000..8f5dd6c --- /dev/null +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/enums/GoodsStatus.java @@ -0,0 +1,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; + } + +} -- Gitblit v1.7.1