Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
holmes
Commits
768cca8f
Commit
768cca8f
authored
May 08, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增根据接口id获取用例列表的接口
parent
8c197936
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
TestcaseController.java
...java/cn/qg/holmes/controller/auto/TestcaseController.java
+12
-1
No files found.
src/main/java/cn/qg/holmes/controller/auto/TestcaseController.java
View file @
768cca8f
...
...
@@ -5,7 +5,6 @@ import cn.qg.holmes.entity.auto.Testcase;
import
cn.qg.holmes.service.auto.TestcaseService
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -43,6 +42,18 @@ public class TestcaseController {
return
JsonResult
.
buildSuccessResult
(
map
);
}
/**
* 根据接口id获取对应的用例列表
* @param interfaceId 接口id
* @return
*/
@GetMapping
(
"/byInterface"
)
public
JsonResult
getTestcaseListByInterface
(
Integer
interfaceId
)
{
QueryWrapper
<
Testcase
>
testcaseQueryWrapper
=
new
QueryWrapper
<>();
testcaseQueryWrapper
.
eq
(
"interface_id"
,
interfaceId
);
return
JsonResult
.
buildSuccessResult
(
testcaseService
.
list
(
testcaseQueryWrapper
));
}
/**
* 新增单接口用例
* @param testcase
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment