diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/constants/AssociateCaseType.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/constants/AssociateCaseType.java index 7e8a185eb4..7f2b3f6c19 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/constants/AssociateCaseType.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/constants/AssociateCaseType.java @@ -2,9 +2,13 @@ package io.metersphere.plan.constants; public class AssociateCaseType { /** - * 接口用例 + * 接口 */ public static final String API = "API"; + /** + * 接口用例 + */ + public static final String API_CASE = "API_CASE"; /** * 场景用例 */ diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/BaseCollectionAssociateRequest.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/BaseCollectionAssociateRequest.java index 50e5ee7fa9..c3175fddc1 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/BaseCollectionAssociateRequest.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/dto/request/BaseCollectionAssociateRequest.java @@ -8,12 +8,10 @@ import java.util.List; @Data public class BaseCollectionAssociateRequest { - @Schema(description = "测试集ID") - private String collectionId; + @Schema(description = "测试集ID") + private String collectionId; - @Schema(description = "关联的用例ID集合") - private List ids; + @Schema(description = "关联的用例ID集合") + private List ids; - @Schema(description = "测试集类型") - private String type; } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml index 9ecd35d1eb..9f1cd3d948 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml @@ -21,7 +21,7 @@