|
@@ -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;
|
|
|
+ }
|
|
|
}
|