From 7d9147e8e2eddd442813c21791f911f2e188d2cf Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 18 Mar 2024 12:23:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20case=E8=AF=A6=E6=83=85=E5=A2=9E=E5=8A=A0=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/dto/definition/ApiTestCaseDTO.java | 3 +++ .../metersphere/api/service/definition/ApiTestCaseService.java | 1 + 2 files changed, 4 insertions(+) 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);