refactor(接口测试): case详情增加协议

This commit is contained in:
wxg0103 2024-03-18 12:23:08 +08:00 committed by Craftsman
parent 265ba55977
commit 7d9147e8e2
2 changed files with 4 additions and 0 deletions

View File

@ -92,4 +92,7 @@ public class ApiTestCaseDTO {
@Schema(description = "模块id")
private String moduleId;
@Schema(description = "协议")
private String protocol;
}

View File

@ -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<ApiTestCaseFollower> followers = apiTestCaseFollowerMapper.selectByExample(example);