refactor(接口测试): case详情增加协议
This commit is contained in:
parent
265ba55977
commit
7d9147e8e2
|
@ -92,4 +92,7 @@ public class ApiTestCaseDTO {
|
|||
@Schema(description = "模块id")
|
||||
private String moduleId;
|
||||
|
||||
@Schema(description = "协议")
|
||||
private String protocol;
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue