diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseDTO.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseDTO.java index 4ab18b1703..a113306384 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseDTO.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/definition/ApiTestCaseDTO.java @@ -92,4 +92,7 @@ public class ApiTestCaseDTO { @Schema(description = "模块id") private String moduleId; + @Schema(description = "协议") + private String protocol; + } diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java index bc82a779d4..1274d8c4ca 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/definition/ApiTestCaseService.java @@ -216,6 +216,7 @@ public class ApiTestCaseService extends MoveNodeService { ApiDefinition apiDefinition = getApiDefinition(testCase.getApiDefinitionId()); apiTestCaseDTO.setMethod(apiDefinition.getMethod()); apiTestCaseDTO.setPath(apiDefinition.getPath()); + apiTestCaseDTO.setProtocol(apiDefinition.getProtocol()); ApiTestCaseFollowerExample example = new ApiTestCaseFollowerExample(); example.createCriteria().andCaseIdEqualTo(id).andUserIdEqualTo(userId); List followers = apiTestCaseFollowerMapper.selectByExample(example);