Эх сурвалжийг харах

添加文件类型
新车判断单位字典

wks 2 жил өмнө
parent
commit
3354eda5e6

+ 1 - 0
src/main/java/com/ydtech/constants/enums/FileType.java

@@ -14,6 +14,7 @@ import lombok.Getter;
 public enum FileType {
 
     IMAGE("image"),
+    PERSONNEL("personnel"),
     APK("apk");
 
     private final String type;

+ 30 - 0
src/main/java/com/ydtech/constants/enums/dict/products/NewCarJudgingUnit.java

@@ -0,0 +1,30 @@
+package com.ydtech.constants.enums.dict.products;
+
+import com.ydtech.aop.request.DictEnum;
+import com.ydtech.constants.enums.dict.IBaseEnum;
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+
+/**
+ * @description: 新车判断单位
+ * @author: wenks
+ * @date: 2023/11/23 17:41
+ **/
+@AllArgsConstructor
+@Getter
+@DictEnum(key = "newCarJudgingUnit", desc = "新车判断单位")
+public enum NewCarJudgingUnit implements IBaseEnum {
+
+    MONTH("month", "月", 0, 0),
+    DAY("day", "天", 1, 0);
+
+    // 编号
+    private final String code;
+    // 说明
+    private final String desc;
+    // 排序
+    private final Integer sort;
+    // 状态  0 启用  1 不启用
+    private final Integer status;
+
+}