Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
kt-keystone
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
kt-keystone
Commits
e8bfada3
提交
e8bfada3
authored
1月 14, 2022
作者:
mry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(web): 测试系统的crud
上级
68e3430a
隐藏空白字符变更
内嵌
并排
正在显示
37 个修改的文件
包含
2076 行增加
和
1 行删除
+2076
-1
pom.xml
kt-web/pom.xml
+15
-0
SwaggerController.java
...va/org/matrix/autotest/SwaggerData/SwaggerController.java
+1
-1
ActionController.java
...java/org/matrix/autotest/controller/ActionController.java
+90
-0
ConnectController.java
...ava/org/matrix/autotest/controller/ConnectController.java
+89
-0
DynamicVariableController.java
...matrix/autotest/controller/DynamicVariableController.java
+89
-0
ExampleController.java
...ava/org/matrix/autotest/controller/ExampleController.java
+89
-0
MoveController.java
...n/java/org/matrix/autotest/controller/MoveController.java
+89
-0
ProjectController.java
...ava/org/matrix/autotest/controller/ProjectController.java
+89
-0
TestCaseController.java
...va/org/matrix/autotest/controller/TestCaseController.java
+89
-0
ActionMapper.java
...b/src/main/java/org/matrix/autotest/dao/ActionMapper.java
+18
-0
ConnectMapper.java
.../src/main/java/org/matrix/autotest/dao/ConnectMapper.java
+18
-0
DynamicVariableMapper.java
...n/java/org/matrix/autotest/dao/DynamicVariableMapper.java
+18
-0
ExampleMapper.java
.../src/main/java/org/matrix/autotest/dao/ExampleMapper.java
+18
-0
MoveMapper.java
kt-web/src/main/java/org/matrix/autotest/dao/MoveMapper.java
+18
-0
ProjectMapper.java
.../src/main/java/org/matrix/autotest/dao/ProjectMapper.java
+18
-0
TestCaseMapper.java
...src/main/java/org/matrix/autotest/dao/TestCaseMapper.java
+18
-0
Action.java
kt-web/src/main/java/org/matrix/autotest/entity/Action.java
+79
-0
Connect.java
kt-web/src/main/java/org/matrix/autotest/entity/Connect.java
+73
-0
DynamicVariable.java
...main/java/org/matrix/autotest/entity/DynamicVariable.java
+79
-0
Example.java
kt-web/src/main/java/org/matrix/autotest/entity/Example.java
+73
-0
Move.java
kt-web/src/main/java/org/matrix/autotest/entity/Move.java
+61
-0
Project.java
kt-web/src/main/java/org/matrix/autotest/entity/Project.java
+49
-0
TestCase.java
...eb/src/main/java/org/matrix/autotest/entity/TestCase.java
+121
-0
ActionService.java
.../main/java/org/matrix/autotest/service/ActionService.java
+57
-0
ConnectService.java
...main/java/org/matrix/autotest/service/ConnectService.java
+55
-0
DynamicVariableService.java
...a/org/matrix/autotest/service/DynamicVariableService.java
+55
-0
ExampleService.java
...main/java/org/matrix/autotest/service/ExampleService.java
+55
-0
ActionServiceImpl.java
...a/org/matrix/autotest/service/Impl/ActionServiceImpl.java
+56
-0
ConnectServiceImpl.java
.../org/matrix/autotest/service/Impl/ConnectServiceImpl.java
+56
-0
DynamicVariableServiceImpl.java
...rix/autotest/service/Impl/DynamicVariableServiceImpl.java
+56
-0
ExampleServiceImpl.java
.../org/matrix/autotest/service/Impl/ExampleServiceImpl.java
+55
-0
MoveServiceImpl.java
...ava/org/matrix/autotest/service/Impl/MoveServiceImpl.java
+55
-0
ProjectServiceImpl.java
.../org/matrix/autotest/service/Impl/ProjectServiceImpl.java
+55
-0
TestCaseServiceImpl.java
...org/matrix/autotest/service/Impl/TestCaseServiceImpl.java
+55
-0
MoveService.java
...rc/main/java/org/matrix/autotest/service/MoveService.java
+55
-0
ProjectService.java
...main/java/org/matrix/autotest/service/ProjectService.java
+55
-0
TestCaseService.java
...ain/java/org/matrix/autotest/service/TestCaseService.java
+55
-0
没有找到文件。
kt-web/pom.xml
浏览文件 @
e8bfada3
...
...
@@ -18,6 +18,21 @@
<groupId>
org.matrix
</groupId>
<artifactId>
kt-base
</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
1.18.22
</version>
<scope>
provided
</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<version>
3.3.0
</version>
</dependency>
</dependencies>
</project>
kt-
base/src/main/java/org/matrix/s
waggerData/SwaggerController.java
→
kt-
web/src/main/java/org/matrix/autotest/S
waggerData/SwaggerController.java
浏览文件 @
e8bfada3
package
org
.
matrix
.
s
waggerData
;
package
org
.
matrix
.
autotest
.
S
waggerData
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
...
...
kt-web/src/main/java/org/matrix/autotest/controller/ActionController.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.matrix.autotest.entity.Action
;
import
org.matrix.autotest.service.ActionService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 动作 前端控制器
* </p>
*
* @author mry
* @since 2022-01-07
*/
@RestController
@RequestMapping
(
"/actions"
)
@Api
(
tags
=
"对动作表action的基本操作"
)
public
class
ActionController
{
private
final
ActionService
actionService
;
public
ActionController
(
ActionService
actionService
)
{
this
.
actionService
=
actionService
;
}
/**
* 查询所有动作
*
* @return 查询到的所有动作
*/
@ApiOperation
(
value
=
"查询所有动作"
)
@GetMapping
public
List
<
Action
>
findAllAction
()
{
return
actionService
.
findAllAction
();
}
/**
* 根据id查询动作
*
* @param id 动作Id
* @return 动作
*/
@ApiOperation
(
value
=
"根据id查询动作"
)
@GetMapping
(
"/{id}"
)
public
Action
findByIdAction
(
@PathVariable
Integer
id
)
{
return
actionService
.
findByIdAction
(
id
);
}
/**
* 添加动作
*
* @param action 动作
* @return 添加的动作
*/
@ApiOperation
(
value
=
"添加动作"
)
@PostMapping
public
Action
insertAction
(
@RequestBody
Action
action
)
{
return
actionService
.
insertAction
(
action
);
}
/**
* 修改动作
*
* @param action 动作
* @return 修改后的动作
*/
@ApiOperation
(
value
=
"根据id修改动作"
)
@PutMapping
(
"/{id}"
)
public
Action
updateAction
(
@RequestBody
Action
action
)
{
return
actionService
.
updateAction
(
action
);
}
/**
* 删除动作
*
* @param action 动作
* @return 删除的动作
*/
@ApiOperation
(
value
=
"根据id删除动作"
)
@DeleteMapping
(
"/{id}"
)
public
Action
deleteAction
(
@RequestBody
Action
action
)
{
return
actionService
.
deleteAction
(
action
);
}
}
kt-web/src/main/java/org/matrix/autotest/controller/ConnectController.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.matrix.autotest.entity.Connect
;
import
org.matrix.autotest.service.ConnectService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 前端控制器
* </p>
*
* @author mry
* @since 2022-01-07
*/
@RestController
@RequestMapping
(
"/connects"
)
@Api
(
tags
=
"对连接池表connect的基本操作"
)
public
class
ConnectController
{
private
final
ConnectService
connectService
;
public
ConnectController
(
ConnectService
connectService
)
{
this
.
connectService
=
connectService
;
}
/**
* 查询所有连接池
*
* @return 连接池
*/
@ApiOperation
(
value
=
"查询所有连接池"
)
@GetMapping
public
List
<
Connect
>
findAllConnect
()
{
return
connectService
.
findAllConnect
();
}
/**
* 根据id查询连接池
*
* @param id 连接池Id
* @return 连接池
*/
@ApiOperation
(
value
=
"根据id查询连接池"
)
@GetMapping
(
"/{id}"
)
public
Connect
findByIdConnect
(
@PathVariable
Integer
id
)
{
return
connectService
.
findByIdConnect
(
id
);
}
/**
* 添加连接池
*
* @param connect 连接池
* @return 添加的连接池
*/
@ApiOperation
(
value
=
"添加连接池"
)
@PostMapping
public
Connect
insertConnect
(
@RequestBody
Connect
connect
)
{
return
connectService
.
insertConnect
(
connect
);
}
/**
* 修改连接池
*
* @param connect 连接池
* @return 修改后的连接池
*/
@ApiOperation
(
value
=
"根据id修改连接池"
)
@PutMapping
(
"/{id}"
)
public
Connect
updateConnect
(
@RequestBody
Connect
connect
)
{
return
connectService
.
updateConnect
(
connect
);
}
/**
* 删除连接池
*
* @param connect 连接池
* @return 删除的连接池
*/
@ApiOperation
(
value
=
"根据id删除连接池"
)
@DeleteMapping
(
"/{id}"
)
public
Connect
deleteConnect
(
@RequestBody
Connect
connect
)
{
return
connectService
.
deleteConnect
(
connect
);
}
}
kt-web/src/main/java/org/matrix/autotest/controller/DynamicVariableController.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.matrix.autotest.entity.DynamicVariable
;
import
org.matrix.autotest.service.DynamicVariableService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 前端控制器
* </p>
*
* @author mry
* @since 2022-01-07
*/
@RestController
@RequestMapping
(
"/dynamicVariables"
)
@Api
(
tags
=
"对动态变量表dynamic_variable的基本操作"
)
public
class
DynamicVariableController
{
private
final
DynamicVariableService
dynamicVariableService
;
public
DynamicVariableController
(
DynamicVariableService
dynamicVariableService
)
{
this
.
dynamicVariableService
=
dynamicVariableService
;
}
/**
* 查询所有动态变量
*
* @return 动态变量
*/
@ApiOperation
(
value
=
"查询所有动态变量"
)
@GetMapping
public
List
<
DynamicVariable
>
findAllDynamicVariable
()
{
return
dynamicVariableService
.
findAllDynamicVariable
();
}
/**
* 根据id查询动态变量
*
* @param id 动态变量Id
* @return 动态变量
*/
@ApiOperation
(
value
=
"根据id查询动态变量"
)
@GetMapping
(
"/{id}"
)
public
DynamicVariable
findByIdDynamicVariable
(
@PathVariable
Integer
id
)
{
return
dynamicVariableService
.
findByIdDynamicVariable
(
id
);
}
/**
* 添加动态变量
*
* @param dynamicVariable 动态变量
* @return 添加的动态变量
*/
@ApiOperation
(
value
=
"添加动态变量"
)
@PostMapping
public
DynamicVariable
insertDynamicVariable
(
@RequestBody
DynamicVariable
dynamicVariable
)
{
return
dynamicVariableService
.
insertDynamicVariable
(
dynamicVariable
);
}
/**
* 修改动态变量
*
* @param dynamicVariable 动态变量
* @return 修改后的动态变量
*/
@ApiOperation
(
value
=
"根据id修改动态变量"
)
@PutMapping
(
"/{id}"
)
public
DynamicVariable
updateDynamicVariable
(
@RequestBody
DynamicVariable
dynamicVariable
)
{
return
dynamicVariableService
.
updateDynamicVariable
(
dynamicVariable
);
}
/**
* 删除动态变量
*
* @param dynamicVariable 动态变量
* @return 删除的动态变量
*/
@ApiOperation
(
value
=
"根据id删除动态变量"
)
@DeleteMapping
(
"/{id}"
)
public
DynamicVariable
deleteDynamicVariable
(
@RequestBody
DynamicVariable
dynamicVariable
)
{
return
dynamicVariableService
.
deleteDynamicVariable
(
dynamicVariable
);
}
}
kt-web/src/main/java/org/matrix/autotest/controller/ExampleController.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.matrix.autotest.entity.Example
;
import
org.matrix.autotest.service.ExampleService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 实例表,项目对应的环境实例,例如:实验室环境,开发环境等 前端控制器
* </p>
*
* @author mry
* @since 2022-01-07
*/
@RestController
@RequestMapping
(
"/examples"
)
@Api
(
tags
=
"对实例表example的基本操作"
)
public
class
ExampleController
{
private
final
ExampleService
exampleService
;
public
ExampleController
(
ExampleService
exampleService
)
{
this
.
exampleService
=
exampleService
;
}
/**
* 查询所有实例
*
* @return 实例
*/
@ApiOperation
(
value
=
"查询所有实例"
)
@GetMapping
public
List
<
Example
>
findAllExample
()
{
return
exampleService
.
findAllExample
();
}
/**
* 根据id查询实例
*
* @param id 实例Id
* @return 实例
*/
@ApiOperation
(
value
=
"根据id查询实例"
)
@GetMapping
(
"/{id}"
)
public
Example
findByIdExample
(
@PathVariable
Integer
id
)
{
return
exampleService
.
findByIdExample
(
id
);
}
/**
* 添加实例
*
* @param example 实例
* @return 添加的实例
*/
@ApiOperation
(
value
=
"添加实例"
)
@PostMapping
public
Example
insertExample
(
@RequestBody
Example
example
)
{
return
exampleService
.
insertExample
(
example
);
}
/**
* 修改实例
*
* @param example 实例
* @return 修改后的实例
*/
@ApiOperation
(
value
=
"根据id修改实例"
)
@PutMapping
(
"/{id}"
)
public
Example
updateExample
(
@RequestBody
Example
example
)
{
return
exampleService
.
updateExample
(
example
);
}
/**
* 删除实例
*
* @param example 实例
* @return 删除的实例
*/
@ApiOperation
(
value
=
"根据id删除实例"
)
@DeleteMapping
(
"/{id}"
)
public
Example
deleteExample
(
@RequestBody
Example
example
)
{
return
exampleService
.
deleteExample
(
example
);
}
}
kt-web/src/main/java/org/matrix/autotest/controller/MoveController.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.matrix.autotest.entity.Move
;
import
org.matrix.autotest.service.MoveService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 前端控制器
* </p>
*
* @author mry
* @since 2022-01-07
*/
@RestController
@RequestMapping
(
"/moves"
)
@Api
(
tags
=
"对行为表move的基本操作"
)
public
class
MoveController
{
private
final
MoveService
moveService
;
public
MoveController
(
MoveService
moveService
)
{
this
.
moveService
=
moveService
;
}
/**
* 查询所有行为
*
* @return 行为
*/
@ApiOperation
(
value
=
"查询所有行为"
)
@GetMapping
public
List
<
Move
>
findAllMove
()
{
return
moveService
.
findAllMove
();
}
/**
* 根据id查询行为
*
* @param id 行为Id
* @return 行为
*/
@ApiOperation
(
value
=
"根据id查询行为"
)
@GetMapping
(
"/{id}"
)
public
Move
findByIdMove
(
@PathVariable
Integer
id
)
{
return
moveService
.
findByIdMove
(
id
);
}
/**
* 添加行为
*
* @param move 行为
* @return 添加的行为
*/
@ApiOperation
(
value
=
"添加行为"
)
@PostMapping
public
Move
insertMove
(
@RequestBody
Move
move
)
{
return
moveService
.
insertMove
(
move
);
}
/**
* 修改行为
*
* @param move 行为
* @return 修改后的行为
*/
@ApiOperation
(
value
=
"根据id修改行为"
)
@PutMapping
(
"/{id}"
)
public
Move
updateMove
(
@RequestBody
Move
move
)
{
return
moveService
.
updateMove
(
move
);
}
/**
* 删除行为
*
* @param move 行为
* @return 删除的行为
*/
@ApiOperation
(
value
=
"根据id删除行为"
)
@DeleteMapping
(
"/{id}"
)
public
Move
deleteMove
(
@RequestBody
Move
move
)
{
return
moveService
.
deleteMove
(
move
);
}
}
kt-web/src/main/java/org/matrix/autotest/controller/ProjectController.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.matrix.autotest.entity.Project
;
import
org.matrix.autotest.service.ProjectService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 前端控制器
* </p>
*
* @author mry
* @since 2022-01-07
*/
@RestController
@RequestMapping
(
"/projects"
)
@Api
(
tags
=
"对项目表project的基本操作"
)
public
class
ProjectController
{
private
final
ProjectService
projectService
;
public
ProjectController
(
ProjectService
projectService
)
{
this
.
projectService
=
projectService
;
}
/**
* 查询所有项目
*
* @return 项目
*/
@ApiOperation
(
value
=
"查询所有项目"
)
@GetMapping
public
List
<
Project
>
findAllProject
()
{
return
projectService
.
findAllProject
();
}
/**
* 根据id查询项目
*
* @param id 项目Id
* @return 项目
*/
@ApiOperation
(
value
=
"根据id查询项目"
)
@GetMapping
(
"/{id}"
)
public
Project
findByIdProject
(
@PathVariable
Integer
id
)
{
return
projectService
.
findByIdProject
(
id
);
}
/**
* 添加项目
*
* @param project 项目
* @return 添加的项目
*/
@ApiOperation
(
value
=
"添加项目"
)
@PostMapping
public
Project
insertProject
(
@RequestBody
Project
project
)
{
return
projectService
.
insertProject
(
project
);
}
/**
* 修改项目
*
* @param project 项目
* @return 修改后的项目
*/
@ApiOperation
(
value
=
"根据id修改项目"
)
@PutMapping
(
"/{id}"
)
public
Project
updateProject
(
@RequestBody
Project
project
)
{
return
projectService
.
updateProject
(
project
);
}
/**
* 删除项目
*
* @param project 项目
* @return 删除的项目
*/
@ApiOperation
(
value
=
"根据id删除项目"
)
@DeleteMapping
(
"/{id}"
)
public
Project
deleteProject
(
@RequestBody
Project
project
)
{
return
projectService
.
deleteProject
(
project
);
}
}
kt-web/src/main/java/org/matrix/autotest/controller/TestCaseController.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
controller
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.matrix.autotest.entity.TestCase
;
import
org.matrix.autotest.service.TestCaseService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
/**
* <p>
* 前端控制器
* </p>
*
* @author mry
* @since 2022-01-07
*/
@RestController
@RequestMapping
(
"/testCases"
)
@Api
(
tags
=
"对用例表test_case的基本操作"
)
public
class
TestCaseController
{
private
final
TestCaseService
testCaseService
;
public
TestCaseController
(
TestCaseService
testCaseService
)
{
this
.
testCaseService
=
testCaseService
;
}
/**
* 查询所有用例
*
* @return 用例
*/
@ApiOperation
(
value
=
"查询所有用例"
)
@GetMapping
public
List
<
TestCase
>
findAllTestCase
()
{
return
testCaseService
.
findAllTestCase
();
}
/**
* 根据id查询用例
*
* @param id 用例Id
* @return 用例
*/
@ApiOperation
(
value
=
"根据id查询用例"
)
@GetMapping
(
"/{id}"
)
public
TestCase
findByIdTestCase
(
@PathVariable
Integer
id
)
{
return
testCaseService
.
findByIdTestCase
(
id
);
}
/**
* 添加用例
*
* @param testCase 用例
* @return 添加的用例
*/
@ApiOperation
(
value
=
"添加用例"
)
@PostMapping
public
TestCase
insertTestCase
(
@RequestBody
TestCase
testCase
)
{
return
testCaseService
.
insertTestCase
(
testCase
);
}
/**
* 修改用例
*
* @param testCase 用例
* @return 修改后的用例
*/
@ApiOperation
(
value
=
"根据id修改用例"
)
@PutMapping
(
"/{id}"
)
public
TestCase
updateTestCase
(
@RequestBody
TestCase
testCase
)
{
return
testCaseService
.
updateTestCase
(
testCase
);
}
/**
* 删除用例
*
* @param testCase 用例
* @return 删除的用例
*/
@ApiOperation
(
value
=
"根据id删除用例"
)
@DeleteMapping
(
"/{id}"
)
public
TestCase
deleteTestCase
(
@RequestBody
TestCase
testCase
)
{
return
testCaseService
.
deleteTestCase
(
testCase
);
}
}
kt-web/src/main/java/org/matrix/autotest/dao/ActionMapper.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.matrix.autotest.entity.Action
;
/**
* <p>
* 动作 Mapper 接口
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Mapper
public
interface
ActionMapper
extends
BaseMapper
<
Action
>
{
}
kt-web/src/main/java/org/matrix/autotest/dao/ConnectMapper.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.matrix.autotest.entity.Connect
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Mapper
public
interface
ConnectMapper
extends
BaseMapper
<
Connect
>
{
}
kt-web/src/main/java/org/matrix/autotest/dao/DynamicVariableMapper.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.matrix.autotest.entity.DynamicVariable
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Mapper
public
interface
DynamicVariableMapper
extends
BaseMapper
<
DynamicVariable
>
{
}
kt-web/src/main/java/org/matrix/autotest/dao/ExampleMapper.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.matrix.autotest.entity.Example
;
/**
* <p>
* 实例表,项目对应的环境实例,例如:实验室环境,开发环境等 Mapper 接口
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Mapper
public
interface
ExampleMapper
extends
BaseMapper
<
Example
>
{
}
kt-web/src/main/java/org/matrix/autotest/dao/MoveMapper.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.matrix.autotest.entity.Move
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Mapper
public
interface
MoveMapper
extends
BaseMapper
<
Move
>
{
}
kt-web/src/main/java/org/matrix/autotest/dao/ProjectMapper.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.matrix.autotest.entity.Project
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Mapper
public
interface
ProjectMapper
extends
BaseMapper
<
Project
>
{
}
kt-web/src/main/java/org/matrix/autotest/dao/TestCaseMapper.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.matrix.autotest.entity.TestCase
;
/**
* <p>
* Mapper 接口
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Mapper
public
interface
TestCaseMapper
extends
BaseMapper
<
TestCase
>
{
}
kt-web/src/main/java/org/matrix/autotest/entity/Action.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
/**
* <p>
* 动作
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"动作表"
)
@TableName
(
value
=
"action"
)
public
class
Action
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* ID
*/
@ApiModelProperty
(
value
=
"ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 名称
*/
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
/**
* 行为ID
*/
@ApiModelProperty
(
value
=
"行为ID"
)
private
Integer
moveId
;
/**
* 项目ID
*/
@ApiModelProperty
(
value
=
"项目ID"
)
private
Integer
projectId
;
/**
* 备注
*/
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
/**
* 类型 1为SQL,2为HTTP,3为CASE,4为WAIT_TIME
*/
@ApiModelProperty
(
value
=
"类型 1为SQL,2为HTTP,3为CASE,4为WAIT_TIME"
)
private
Integer
type
;
/**
* 详细参数
*/
@ApiModelProperty
(
value
=
"详细参数"
)
private
String
detail
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
kt-web/src/main/java/org/matrix/autotest/entity/Connect.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
/**
* <p>
*
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"连接池表"
)
@TableName
(
value
=
"connect"
)
public
class
Connect
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* ID
*/
@ApiModelProperty
(
value
=
"ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 名称
*/
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
/**
* URL
*/
@ApiModelProperty
(
value
=
"URL"
)
private
String
url
;
/**
* 账号
*/
@ApiModelProperty
(
value
=
"账号"
)
private
String
username
;
/**
* 密码
*/
@ApiModelProperty
(
value
=
"密码"
)
private
String
password
;
/**
* 所用驱动
*/
@ApiModelProperty
(
value
=
"所用驱动"
)
private
String
driver
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
kt-web/src/main/java/org/matrix/autotest/entity/DynamicVariable.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
/**
* <p>
*
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"动态变量表"
)
@TableName
(
value
=
"dynamic_variable"
)
public
class
DynamicVariable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* ID
*/
@ApiModelProperty
(
value
=
"ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 所属项目
*/
@ApiModelProperty
(
value
=
"所属项目"
)
private
Integer
projectId
;
/**
* 取用字段
*/
@ApiModelProperty
(
value
=
"取用字段"
)
private
String
takenField
;
/**
* 名称
*/
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
/**
* 动态变量类型 1为KV,2为SQL,3为CASE,4为HTTP
*/
@ApiModelProperty
(
value
=
"动态变量类型 1为KV,2为SQL,3为CASE,4为HTTP"
)
private
Integer
type
;
/**
* 备注
*/
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
/**
* 详细内容
*/
@ApiModelProperty
(
value
=
"详细内容"
)
private
String
detail
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
kt-web/src/main/java/org/matrix/autotest/entity/Example.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
/**
* <p>
* 实例表,项目对应的环境实例,例如:实验室环境,开发环境等
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"实例表"
)
@TableName
(
value
=
"example"
)
public
class
Example
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* ID
*/
@ApiModelProperty
(
value
=
"ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 实例名称
*/
@ApiModelProperty
(
value
=
"实例名称"
)
private
String
name
;
/**
* 参数名 (例如:env)
*/
@ApiModelProperty
(
value
=
"参数名 (例如:env)"
)
private
String
parameterName
;
/**
* 项目ID
*/
@ApiModelProperty
(
value
=
"项目ID"
)
private
Integer
projectId
;
/**
* 静态变量,以JSON的形式存储,例如({"name":"张三"})
*/
@ApiModelProperty
(
value
=
"静态变量,以JSON的形式存储,例如({\"name\":\"张三\"})"
)
private
String
variable
;
/**
* ip,例如(http:www.abc.com)
*/
@ApiModelProperty
(
value
=
"ip,例如(http:www.abc.com)"
)
private
String
ip
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
kt-web/src/main/java/org/matrix/autotest/entity/Move.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
/**
* <p>
*
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"行为表"
)
@TableName
(
value
=
"move"
)
public
class
Move
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* ID
*/
@ApiModelProperty
(
value
=
"ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 名称
*/
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
/**
* 所属项目
*/
@ApiModelProperty
(
value
=
"所属项目"
)
private
Integer
projectId
;
/**
* 备注
*/
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
kt-web/src/main/java/org/matrix/autotest/entity/Project.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
/**
* <p>
*
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"项目表"
)
@TableName
(
value
=
"project"
)
public
class
Project
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* ID
*/
@ApiModelProperty
(
value
=
"ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 名称
*/
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
kt-web/src/main/java/org/matrix/autotest/entity/TestCase.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.time.LocalDateTime
;
/**
* <p>
*
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"用例表"
)
@TableName
(
value
=
"test_case"
)
public
class
TestCase
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* ID
*/
@ApiModelProperty
(
value
=
"ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 名称
*/
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
/**
* 所属项目
*/
@ApiModelProperty
(
value
=
"所属项目"
)
private
Integer
projectId
;
/**
* 用例类型 1为http
*/
@ApiModelProperty
(
value
=
"用例类型 1为http"
)
private
Integer
type
;
/**
* 前置行动ID组,例如:1,2,3
*/
@ApiModelProperty
(
value
=
"前置行动ID组,例如:1,2,3"
)
private
String
moveBefore
;
/**
* 后置行动ID组,例如:1,2,3
*/
@ApiModelProperty
(
value
=
"后置行动ID组,例如:1,2,3"
)
private
String
moveAferCase
;
/**
* 测试执行后行动ID组,例如:1,2,3
*/
@ApiModelProperty
(
value
=
"测试执行后行动ID组,例如:1,2,3"
)
private
String
moveAferTest
;
/**
* 是否进行异常检验,0为否,1为是
*/
@ApiModelProperty
(
value
=
"是否进行异常检验,0为否,1为是"
)
private
Integer
abnormalCheckpoint
;
/**
* 是否进行非空检验,0为否,1为是
*/
@ApiModelProperty
(
value
=
"是否进行非空检验,0为否,1为是"
)
private
Integer
noEmptyCheckpoint
;
/**
* 包含某字段检验(例如 张三,李四) 则对检查结果中是否包含张三或者李四
*/
@ApiModelProperty
(
value
=
"包含某字段检验(例如 张三,李四) 则对检查结果中是否包含张三或者李四"
)
private
String
containCheckpoint
;
/**
* 不包含某字段检验(例如 张三,李四) 则对检查结果中是否不包含张三或者李四
*/
@ApiModelProperty
(
value
=
"不包含某字段检验(例如 张三,李四) 则对检查结果中是否不包含张三或者李四"
)
private
String
noContainCheckpoint
;
/**
* 数据库检验点,以JSON形式存放
*/
@ApiModelProperty
(
value
=
"数据库检验点,以JSON形式存放"
)
private
String
databaseCheckpoint
;
/**
* jsonpath检验点,以json形式存放
*/
@ApiModelProperty
(
value
=
"jsonpath检验点,以json形式存放"
)
private
String
jsonpathCheckpoint
;
/**
* 详细参数
*/
@ApiModelProperty
(
value
=
"详细参数"
)
private
String
detail
;
@ApiModelProperty
(
value
=
"添加时间"
)
private
LocalDateTime
createTime
;
@ApiModelProperty
(
value
=
"更新时间"
)
private
LocalDateTime
updateTime
;
}
kt-web/src/main/java/org/matrix/autotest/service/ActionService.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.matrix.autotest.entity.Action
;
import
java.util.List
;
/**
* <p>
* 动作 服务类
* </p>
*
* @author mry
* @since 2022-01-07
*/
public
interface
ActionService
extends
IService
<
Action
>
{
/**
* 查询所有动作
*
* @return 查询到的所有动作
*/
List
<
Action
>
findAllAction
();
/**
* 根据id查询动作
*
* @param id 动作id
* @return 动作
*/
Action
findByIdAction
(
Integer
id
);
/**
* 添加动作
*
* @param action 动作
* @return 添加的动作
*/
Action
insertAction
(
Action
action
);
/**
* 修改动作
*
* @param action 动作
* @return 修改后的动作
*/
Action
updateAction
(
Action
action
);
/**
* 删除动作
*
* @param action 动作
* @return 删除的动作
*/
Action
deleteAction
(
Action
action
);
}
kt-web/src/main/java/org/matrix/autotest/service/ConnectService.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.matrix.autotest.entity.Connect
;
import
java.util.List
;
/**
* <p>
* 服务类
* </p>
*
* @author mry
* @since 2022-01-07
*/
public
interface
ConnectService
extends
IService
<
Connect
>
{
/**
* 查询所有连接池
*
* @return 连接池
*/
List
<
Connect
>
findAllConnect
();
/**
* 根据id查询连接池
*
* @param id 连接池Id
* @return 连接池
*/
Connect
findByIdConnect
(
Integer
id
);
/**
* 添加连接池
*
* @param connect 连接池
* @return 添加的连接池
*/
Connect
insertConnect
(
Connect
connect
);
/**
* 修改连接池
*
* @param connect 连接池
* @return 修改后的连接池
*/
Connect
updateConnect
(
Connect
connect
);
/**
* 删除连接池
*
* @param connect 连接池
* @return 删除的连接池
*/
Connect
deleteConnect
(
Connect
connect
);
}
kt-web/src/main/java/org/matrix/autotest/service/DynamicVariableService.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.matrix.autotest.entity.DynamicVariable
;
import
java.util.List
;
/**
* <p>
* 服务类
* </p>
*
* @author mry
* @since 2022-01-07
*/
public
interface
DynamicVariableService
extends
IService
<
DynamicVariable
>
{
/**
* 查询所有动态变量
*
* @return 动态变量
*/
List
<
DynamicVariable
>
findAllDynamicVariable
();
/**
* 根据id查询动态变量
*
* @param id 动态变量id
* @return 动态变量
*/
DynamicVariable
findByIdDynamicVariable
(
Integer
id
);
/**
* 添加动态变量
*
* @param dynamicVariable 动态变量
* @return 添加的动态变量
*/
DynamicVariable
insertDynamicVariable
(
DynamicVariable
dynamicVariable
);
/**
* 修改动态变量
*
* @param dynamicVariable 动态变量
* @return 修改后的动态变量
*/
DynamicVariable
updateDynamicVariable
(
DynamicVariable
dynamicVariable
);
/**
* 删除动态变量
*
* @param dynamicVariable 动态变量
* @return 删除的动态变量
*/
DynamicVariable
deleteDynamicVariable
(
DynamicVariable
dynamicVariable
);
}
kt-web/src/main/java/org/matrix/autotest/service/ExampleService.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.matrix.autotest.entity.Example
;
import
java.util.List
;
/**
* <p>
* 实例表,项目对应的环境实例,例如:实验室环境,开发环境等 服务类
* </p>
*
* @author mry
* @since 2022-01-07
*/
public
interface
ExampleService
extends
IService
<
Example
>
{
/**
* 查询所有实例
*
* @return 实例
*/
List
<
Example
>
findAllExample
();
/**
* 根据id查询实例
*
* @param id 实例id
* @return 实例
*/
Example
findByIdExample
(
Integer
id
);
/**
* 添加实例
*
* @param example 实例
* @return 添加的实例
*/
Example
insertExample
(
Example
example
);
/**
* 修改实例
*
* @param example 实例
* @return 修改后的实例
*/
Example
updateExample
(
Example
example
);
/**
* 删除实例
*
* @param example 实例
* @return 删除的实例
*/
Example
deleteExample
(
Example
example
);
}
kt-web/src/main/java/org/matrix/autotest/service/Impl/ActionServiceImpl.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
.
Impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.matrix.autotest.dao.ActionMapper
;
import
org.matrix.autotest.entity.Action
;
import
org.matrix.autotest.service.ActionService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 动作 服务实现类
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Service
public
class
ActionServiceImpl
extends
ServiceImpl
<
ActionMapper
,
Action
>
implements
ActionService
{
private
final
ActionMapper
actionMapper
;
public
ActionServiceImpl
(
ActionMapper
actionMapper
)
{
this
.
actionMapper
=
actionMapper
;
}
@Override
public
List
<
Action
>
findAllAction
()
{
return
actionMapper
.
selectList
(
null
);
}
@Override
public
Action
findByIdAction
(
Integer
id
)
{
return
actionMapper
.
selectById
(
id
);
}
@Override
public
Action
insertAction
(
Action
action
)
{
actionMapper
.
insert
(
action
);
return
action
;
}
@Override
public
Action
updateAction
(
Action
action
)
{
actionMapper
.
updateById
(
action
);
return
action
;
}
@Override
public
Action
deleteAction
(
Action
action
)
{
actionMapper
.
deleteById
(
action
.
getId
());
return
action
;
}
}
kt-web/src/main/java/org/matrix/autotest/service/Impl/ConnectServiceImpl.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
.
Impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.matrix.autotest.dao.ConnectMapper
;
import
org.matrix.autotest.entity.Connect
;
import
org.matrix.autotest.service.ConnectService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 服务实现类
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Service
public
class
ConnectServiceImpl
extends
ServiceImpl
<
ConnectMapper
,
Connect
>
implements
ConnectService
{
private
final
ConnectMapper
connectMapper
;
public
ConnectServiceImpl
(
ConnectMapper
connectMapper
)
{
this
.
connectMapper
=
connectMapper
;
}
@Override
public
List
<
Connect
>
findAllConnect
()
{
return
connectMapper
.
selectList
(
null
);
}
@Override
public
Connect
findByIdConnect
(
Integer
id
)
{
return
connectMapper
.
selectById
(
id
);
}
@Override
public
Connect
insertConnect
(
Connect
connect
)
{
connectMapper
.
insert
(
connect
);
return
connect
;
}
@Override
public
Connect
updateConnect
(
Connect
connect
)
{
connectMapper
.
updateById
(
connect
);
return
connect
;
}
@Override
public
Connect
deleteConnect
(
Connect
connect
)
{
connectMapper
.
deleteById
(
connect
.
getId
());
return
connect
;
}
}
kt-web/src/main/java/org/matrix/autotest/service/Impl/DynamicVariableServiceImpl.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
.
Impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.matrix.autotest.dao.DynamicVariableMapper
;
import
org.matrix.autotest.entity.DynamicVariable
;
import
org.matrix.autotest.service.DynamicVariableService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 服务实现类
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Service
public
class
DynamicVariableServiceImpl
extends
ServiceImpl
<
DynamicVariableMapper
,
DynamicVariable
>
implements
DynamicVariableService
{
private
final
DynamicVariableMapper
dynamicVariableMapper
;
public
DynamicVariableServiceImpl
(
DynamicVariableMapper
dynamicVariableMapper
)
{
this
.
dynamicVariableMapper
=
dynamicVariableMapper
;
}
@Override
public
List
<
DynamicVariable
>
findAllDynamicVariable
()
{
return
dynamicVariableMapper
.
selectList
(
null
);
}
@Override
public
DynamicVariable
findByIdDynamicVariable
(
Integer
id
)
{
return
dynamicVariableMapper
.
selectById
(
id
);
}
@Override
public
DynamicVariable
insertDynamicVariable
(
DynamicVariable
dynamicVariable
)
{
dynamicVariableMapper
.
insert
(
dynamicVariable
);
return
dynamicVariable
;
}
@Override
public
DynamicVariable
updateDynamicVariable
(
DynamicVariable
dynamicVariable
)
{
dynamicVariableMapper
.
updateById
(
dynamicVariable
);
return
dynamicVariable
;
}
@Override
public
DynamicVariable
deleteDynamicVariable
(
DynamicVariable
dynamicVariable
)
{
dynamicVariableMapper
.
deleteById
(
dynamicVariable
.
getId
());
return
dynamicVariable
;
}
}
kt-web/src/main/java/org/matrix/autotest/service/Impl/ExampleServiceImpl.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
.
Impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.matrix.autotest.dao.ExampleMapper
;
import
org.matrix.autotest.entity.Example
;
import
org.matrix.autotest.service.ExampleService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 实例表,项目对应的环境实例,例如:实验室环境,开发环境等 服务实现类
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Service
public
class
ExampleServiceImpl
extends
ServiceImpl
<
ExampleMapper
,
Example
>
implements
ExampleService
{
private
final
ExampleMapper
exampleMapper
;
public
ExampleServiceImpl
(
ExampleMapper
exampleMapper
)
{
this
.
exampleMapper
=
exampleMapper
;
}
@Override
public
List
<
Example
>
findAllExample
()
{
return
exampleMapper
.
selectList
(
null
);
}
@Override
public
Example
findByIdExample
(
Integer
id
)
{
return
exampleMapper
.
selectById
(
id
);
}
@Override
public
Example
insertExample
(
Example
example
)
{
exampleMapper
.
insert
(
example
);
return
example
;
}
@Override
public
Example
updateExample
(
Example
example
)
{
exampleMapper
.
updateById
(
example
);
return
example
;
}
@Override
public
Example
deleteExample
(
Example
example
)
{
exampleMapper
.
deleteById
(
example
.
getId
());
return
example
;
}
}
kt-web/src/main/java/org/matrix/autotest/service/Impl/MoveServiceImpl.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
.
Impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.matrix.autotest.dao.MoveMapper
;
import
org.matrix.autotest.entity.Move
;
import
org.matrix.autotest.service.MoveService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 服务实现类
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Service
public
class
MoveServiceImpl
extends
ServiceImpl
<
MoveMapper
,
Move
>
implements
MoveService
{
private
final
MoveMapper
moveMapper
;
public
MoveServiceImpl
(
MoveMapper
moveMapper
)
{
this
.
moveMapper
=
moveMapper
;
}
@Override
public
List
<
Move
>
findAllMove
()
{
return
moveMapper
.
selectList
(
null
);
}
@Override
public
Move
findByIdMove
(
Integer
id
)
{
return
moveMapper
.
selectById
(
id
);
}
@Override
public
Move
insertMove
(
Move
move
)
{
moveMapper
.
insert
(
move
);
return
move
;
}
@Override
public
Move
updateMove
(
Move
move
)
{
moveMapper
.
updateById
(
move
);
return
move
;
}
@Override
public
Move
deleteMove
(
Move
move
)
{
moveMapper
.
deleteById
(
move
.
getId
());
return
move
;
}
}
kt-web/src/main/java/org/matrix/autotest/service/Impl/ProjectServiceImpl.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
.
Impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.matrix.autotest.dao.ProjectMapper
;
import
org.matrix.autotest.entity.Project
;
import
org.matrix.autotest.service.ProjectService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 服务实现类
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Service
public
class
ProjectServiceImpl
extends
ServiceImpl
<
ProjectMapper
,
Project
>
implements
ProjectService
{
private
final
ProjectMapper
projectMapper
;
public
ProjectServiceImpl
(
ProjectMapper
projectMapper
)
{
this
.
projectMapper
=
projectMapper
;
}
@Override
public
List
<
Project
>
findAllProject
()
{
return
projectMapper
.
selectList
(
null
);
}
@Override
public
Project
findByIdProject
(
Integer
id
)
{
return
projectMapper
.
selectById
(
id
);
}
@Override
public
Project
insertProject
(
Project
project
)
{
projectMapper
.
insert
(
project
);
return
project
;
}
@Override
public
Project
updateProject
(
Project
project
)
{
projectMapper
.
updateById
(
project
);
return
project
;
}
@Override
public
Project
deleteProject
(
Project
project
)
{
projectMapper
.
deleteById
(
project
.
getId
());
return
project
;
}
}
kt-web/src/main/java/org/matrix/autotest/service/Impl/TestCaseServiceImpl.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
.
Impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.matrix.autotest.dao.TestCaseMapper
;
import
org.matrix.autotest.entity.TestCase
;
import
org.matrix.autotest.service.TestCaseService
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* <p>
* 服务实现类
* </p>
*
* @author mry
* @since 2022-01-07
*/
@Service
public
class
TestCaseServiceImpl
extends
ServiceImpl
<
TestCaseMapper
,
TestCase
>
implements
TestCaseService
{
private
final
TestCaseMapper
testCaseMapper
;
public
TestCaseServiceImpl
(
TestCaseMapper
testCaseMapper
)
{
this
.
testCaseMapper
=
testCaseMapper
;
}
@Override
public
List
<
TestCase
>
findAllTestCase
()
{
return
testCaseMapper
.
selectList
(
null
);
}
@Override
public
TestCase
findByIdTestCase
(
Integer
id
)
{
return
testCaseMapper
.
selectById
(
id
);
}
@Override
public
TestCase
insertTestCase
(
TestCase
testCase
)
{
testCaseMapper
.
insert
(
testCase
);
return
testCase
;
}
@Override
public
TestCase
updateTestCase
(
TestCase
testCase
)
{
testCaseMapper
.
updateById
(
testCase
);
return
testCase
;
}
@Override
public
TestCase
deleteTestCase
(
TestCase
testCase
)
{
testCaseMapper
.
deleteById
(
testCase
.
getId
());
return
testCase
;
}
}
kt-web/src/main/java/org/matrix/autotest/service/MoveService.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.matrix.autotest.entity.Move
;
import
java.util.List
;
/**
* <p>
* 服务类
* </p>
*
* @author mry
* @since 2022-01-07
*/
public
interface
MoveService
extends
IService
<
Move
>
{
/**
* 查询所有行为
*
* @return 行为
*/
List
<
Move
>
findAllMove
();
/**
* 根据id查询行为
*
* @param id 行为id
* @return 行为
*/
Move
findByIdMove
(
Integer
id
);
/**
* 添加行为
*
* @param move 行为
* @return 添加的行为
*/
Move
insertMove
(
Move
move
);
/**
* 修改行为
*
* @param move 行为
* @return 修改后的行为
*/
Move
updateMove
(
Move
move
);
/**
* 删除行为
*
* @param move 行为
* @return 删除的行为
*/
Move
deleteMove
(
Move
move
);
}
kt-web/src/main/java/org/matrix/autotest/service/ProjectService.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.matrix.autotest.entity.Project
;
import
java.util.List
;
/**
* <p>
* 服务类
* </p>
*
* @author mry
* @since 2022-01-07
*/
public
interface
ProjectService
extends
IService
<
Project
>
{
/**
* 查询所有项目
*
* @return 项目
*/
List
<
Project
>
findAllProject
();
/**
* 根据id查询项目
*
* @param id 项目id
* @return 项目
*/
Project
findByIdProject
(
Integer
id
);
/**
* 添加项目
*
* @param project 项目
* @return 添加的项目
*/
Project
insertProject
(
Project
project
);
/**
* 修改项目
*
* @param project 项目
* @return 修改后的项目
*/
Project
updateProject
(
Project
project
);
/**
* 删除项目
*
* @param project 项目
* @return 删除的项目
*/
Project
deleteProject
(
Project
project
);
}
kt-web/src/main/java/org/matrix/autotest/service/TestCaseService.java
0 → 100644
浏览文件 @
e8bfada3
package
org
.
matrix
.
autotest
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
org.matrix.autotest.entity.TestCase
;
import
java.util.List
;
/**
* <p>
* 服务类
* </p>
*
* @author mry
* @since 2022-01-07
*/
public
interface
TestCaseService
extends
IService
<
TestCase
>
{
/**
* 查询所有用例
*
* @return 用例
*/
List
<
TestCase
>
findAllTestCase
();
/**
* 根据id查询用例
*
* @param id 用例Id
* @return 用例
*/
TestCase
findByIdTestCase
(
Integer
id
);
/**
* 添加用例
*
* @param testCase 用例
* @return 添加的用例
*/
TestCase
insertTestCase
(
TestCase
testCase
);
/**
* 修改用例
*
* @param testCase 用例
* @return 修改后的用例
*/
TestCase
updateTestCase
(
TestCase
testCase
);
/**
* 删除用例
*
* @param testCase 用例
* @return 删除的用例
*/
TestCase
deleteTestCase
(
TestCase
testCase
);
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论