ソースを参照

set get方法替换为lombok注解

lixing 4 年 前
コミット
2a18b2a0b0

+ 6 - 16
src/main/java/com/persagy/apm/energy/report/monthly/outline/constants/enums/ReportStateEnum.java

@@ -1,6 +1,8 @@
 package com.persagy.apm.energy.report.monthly.outline.constants.enums;
 
 import com.persagy.apm.common.model.annotation.SwaggerDisplayEnum;
+import lombok.Getter;
+import lombok.Setter;
 
 /**
  * 报告状态
@@ -17,27 +19,15 @@ public enum ReportStateEnum {
     GENERATED("1", "已生成"),
     BUILD_FAILED("2", "生成失败");
 
+    @Setter
+    @Getter
     private String type;
+    @Setter
+    @Getter
     private String desc;
 
     ReportStateEnum(String type, String desc) {
         this.type = type;
         this.desc = desc;
     }
-
-    public String getType() {
-        return type;
-    }
-
-    public void setType(String type) {
-        this.type = type;
-    }
-
-    public String getDesc() {
-        return desc;
-    }
-
-    public void setDesc(String desc) {
-        this.desc = desc;
-    }
 }