瀏覽代碼

新增广告相关枚举

woody 1 年之前
父節點
當前提交
2cf8b15f5e

+ 27 - 0
vehicle-api/src/main/java/com/chelvc/cloud/vehicle/api/constant/Adpage.java

@@ -0,0 +1,27 @@
+package com.chelvc.cloud.vehicle.api.constant;
+
+import com.chelvc.framework.base.model.Enumerable;
+import lombok.Getter;
+
+/**
+ * 广告页枚举
+ *
+ * @author Woody
+ * @date 2023/5/7
+ */
+@Getter
+public enum Adpage implements Enumerable {
+    /**
+     * 职位首页
+     */
+    CUSTOMER_INDEX("顾客首页");
+
+    /**
+     * 页面描述
+     */
+    private final String description;
+
+    Adpage(String description) {
+        this.description = description;
+    }
+}

+ 32 - 0
vehicle-api/src/main/java/com/chelvc/cloud/vehicle/api/constant/Adsource.java

@@ -0,0 +1,32 @@
+package com.chelvc.cloud.vehicle.api.constant;
+
+import com.chelvc.framework.base.model.Enumerable;
+import lombok.Getter;
+
+/**
+ * 广告来源枚举
+ *
+ * @author Woody
+ * @date 2023/5/7
+ */
+@Getter
+public enum Adsource implements Enumerable {
+    /**
+     * 腾讯
+     */
+    TENCENT("腾讯"),
+
+    /**
+     * 平台
+     */
+    PLATFORM("平台");
+
+    /**
+     * 来源描述
+     */
+    private final String description;
+
+    Adsource(String description) {
+        this.description = description;
+    }
+}

+ 32 - 0
vehicle-api/src/main/java/com/chelvc/cloud/vehicle/api/constant/Adtype.java

@@ -0,0 +1,32 @@
+package com.chelvc.cloud.vehicle.api.constant;
+
+import com.chelvc.framework.base.model.Enumerable;
+import lombok.Getter;
+
+/**
+ * 广告类型
+ *
+ * @author Woody
+ * @date 2023/5/7
+ */
+@Getter
+public enum Adtype implements Enumerable {
+    /**
+     * 图片
+     */
+    IMAGE("图片"),
+
+    /**
+     * 视频
+     */
+    VIDEO("视频");
+
+    /**
+     * 类型描述
+     */
+    private final String description;
+
+    Adtype(String description) {
+        this.description = description;
+    }
+}

+ 17 - 4
vehicle-api/src/main/java/com/chelvc/cloud/vehicle/api/constant/ContentStatus.java

@@ -1,24 +1,37 @@
 package com.chelvc.cloud.vehicle.api.constant;
 
+import com.chelvc.framework.base.model.Enumerable;
+import lombok.Getter;
+
 /**
  * 内容状态枚举
  *
  * @author Woody
  * @date 2023/5/2
  */
-public enum ContentStatus {
+@Getter
+public enum ContentStatus implements Enumerable {
     /**
      * 待审核
      */
-    AUDIT,
+    AUDIT("待审核"),
 
     /**
      * 已上线
      */
-    ONLINE,
+    ONLINE("已上线"),
 
     /**
      * 已下线
      */
-    OFFLINE;
+    OFFLINE("已下线");
+
+    /**
+     * 状态描述
+     */
+    private final String description;
+
+    ContentStatus(String description) {
+        this.description = description;
+    }
 }