From 7f7819af8988c642659b1593f4c96945c52ac2f6 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 13 Jun 2024 16:43:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A4=84=E7=90=86lombok=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/metersphere/plan/dto/CaseCount.java | 5 +++++ .../io/metersphere/plan/dto/TestPlanReportModuleParam.java | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/CaseCount.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/CaseCount.java index 59540f3e86..d2f19a449d 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/CaseCount.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/CaseCount.java @@ -16,13 +16,18 @@ import lombok.NoArgsConstructor; public class CaseCount { @Schema(description = "成功用例数量") + @Builder.Default private Integer success = 0; @Schema(description = "失败用例数量") + @Builder.Default private Integer error = 0; @Schema(description = "误报用例数量") + @Builder.Default private Integer fakeError = 0; @Schema(description = "阻塞用例数量") + @Builder.Default private Integer block = 0; @Schema(description = "未执行用例数量") + @Builder.Default private Integer pending = 0; } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanReportModuleParam.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanReportModuleParam.java index ee45b8fc3d..86be9baddf 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanReportModuleParam.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/TestPlanReportModuleParam.java @@ -13,10 +13,12 @@ import java.util.Map; @NoArgsConstructor @AllArgsConstructor public class TestPlanReportModuleParam { - + @Builder.Default private Map functionalModuleMap = new HashMap<>(); + @Builder.Default private Map apiModuleMap = new HashMap<>(); + @Builder.Default private Map scenarioModuleMap = new HashMap<>(); }