From 6dee6010eb330d60406ce17521604cf059ca81b0 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 3 Jul 2024 14:56:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=AF=84=E5=AE=A1=E8=84=91=E5=9B=BE=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=94=A8=E4=BE=8B=E7=AD=89=E7=BA=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/functional/dto/FunctionalCaseMindDTO.java | 5 +++++ .../functional/mapper/ExtFunctionalCaseMapper.xml | 4 +++- .../functional/service/FunctionalCaseMinderService.java | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java index 0953d01576..c55c1c7b8f 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/FunctionalCaseMindDTO.java @@ -18,6 +18,11 @@ public class FunctionalCaseMindDTO { @Size(min = 1, max = 50, message = "{functional_case.id.length_range}", groups = {Created.class, Updated.class}) private String id; + @Schema(description = "caseID", requiredMode = Schema.RequiredMode.REQUIRED) + @NotBlank(message = "{functional_case.id.not_blank}", groups = {Updated.class}) + @Size(min = 1, max = 50, message = "{functional_case.id.length_range}", groups = {Created.class, Updated.class}) + private String caseId; + @Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank(message = "{functional_case.module_id.not_blank}", groups = {Created.class}) @Size(min = 1, max = 50, message = "{functional_case.module_id.length_range}", groups = {Created.class, Updated.class}) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml index c3fa4448b0..ff9b760d43 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtFunctionalCaseMapper.xml @@ -793,7 +793,7 @@