From 18813ca83b94c807e35756a8a5f52effa5b99ba8 Mon Sep 17 00:00:00 2001
From: zepengdev <lzpsmith@outlook.com>
Date: Tue, 17 Jun 2025 16:00:42 +0800
Subject: [PATCH] feat(product): 新增商品批量查询接口

---
 oying-system/src/main/java/com/oying/modules/pc/category/domain/enums/PlatformCategoryEnum.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/pc/category/domain/enums/PlatformCategoryEnum.java b/oying-system/src/main/java/com/oying/modules/pc/category/domain/enums/PlatformCategoryEnum.java
new file mode 100644
index 0000000..7c5f9fd
--- /dev/null
+++ b/oying-system/src/main/java/com/oying/modules/pc/category/domain/enums/PlatformCategoryEnum.java
@@ -0,0 +1,28 @@
+package com.oying.modules.pc.category.domain.enums;
+
+import lombok.Getter;
+
+@Getter
+public enum PlatformCategoryEnum {
+
+    NOT(0, "已禁用"),
+    YES(1, "已启用");
+
+    private final Integer value;
+    private final String reasonPhrase;
+
+    PlatformCategoryEnum(int value, String reasonPhrase) {
+        this.value = value;
+        this.reasonPhrase = reasonPhrase;
+    }
+
+    public static PlatformCategoryEnum get(Integer code) {
+        for (PlatformCategoryEnum value : values()) {
+            if (value.value.equals(code)) {
+                return value;
+            }
+        }
+        return null;
+    }
+
+}

--
Gitblit v1.9.3