提交 d45fccad authored 作者: mry's avatar mry

perf(web): 数据库字段修改

上级 d60c375e
...@@ -106,10 +106,10 @@ public class ActionController { ...@@ -106,10 +106,10 @@ public class ActionController {
*/ */
@ApiOperation(value = "根据id删除动作") @ApiOperation(value = "根据id删除动作")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<CommonResultObj<Action>> deleteAction(@PathVariable Integer id) { public ResponseEntity<CommonResultObj<String>> deleteAction(@PathVariable Integer id) {
int i = actionService.deleteAction(id); int i = actionService.deleteAction(id);
if (i != 0) { if (i != 0) {
return CommonResult.success("删除成功"); return CommonResult.success("id: " + id + "已删除","删除成功");
} else { } else {
return CommonResult.failed("删除失败,或不存在需要删除的数据"); return CommonResult.failed("删除失败,或不存在需要删除的数据");
} }
......
...@@ -106,10 +106,10 @@ public class ConnectController { ...@@ -106,10 +106,10 @@ public class ConnectController {
*/ */
@ApiOperation(value = "根据id删除连接池") @ApiOperation(value = "根据id删除连接池")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<CommonResultObj<Connect>> deleteConnect(@PathVariable Integer id) { public ResponseEntity<CommonResultObj<String>> deleteConnect(@PathVariable Integer id) {
int i = connectService.deleteConnect(id); int i = connectService.deleteConnect(id);
if (i != 0) { if (i != 0) {
return CommonResult.success("删除成功"); return CommonResult.success("id: " + id + "已删除","删除成功");
} else { } else {
return CommonResult.failed("删除失败,或不存在需要删除的数据"); return CommonResult.failed("删除失败,或不存在需要删除的数据");
} }
......
...@@ -106,10 +106,10 @@ public class DynamicVariableController { ...@@ -106,10 +106,10 @@ public class DynamicVariableController {
*/ */
@ApiOperation(value = "根据id删除动态变量") @ApiOperation(value = "根据id删除动态变量")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<CommonResultObj<DynamicVariable>> deleteDynamicVariable(@PathVariable Integer id) { public ResponseEntity<CommonResultObj<String>> deleteDynamicVariable(@PathVariable Integer id) {
int i = dynamicVariableService.deleteDynamicVariable(id); int i = dynamicVariableService.deleteDynamicVariable(id);
if (i != 0) { if (i != 0) {
return CommonResult.success("删除成功"); return CommonResult.success("id: " + id + "已删除","删除成功");
} else { } else {
return CommonResult.failed("删除失败,或不存在需要删除的数据"); return CommonResult.failed("删除失败,或不存在需要删除的数据");
} }
......
...@@ -106,10 +106,10 @@ public class EnvironmentController { ...@@ -106,10 +106,10 @@ public class EnvironmentController {
*/ */
@ApiOperation(value = "根据id删除实例") @ApiOperation(value = "根据id删除实例")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<CommonResultObj<Environment>> deleteEnvironment(@PathVariable Integer id) { public ResponseEntity<CommonResultObj<String>> deleteEnvironment(@PathVariable Integer id) {
int i = environmentService.deleteEnvironment(id); int i = environmentService.deleteEnvironment(id);
if (i != 0) { if (i != 0) {
return CommonResult.success("删除成功"); return CommonResult.success("id: " + id + "已删除","删除成功");
} else { } else {
return CommonResult.failed("删除失败,或不存在需要删除的数据"); return CommonResult.failed("删除失败,或不存在需要删除的数据");
} }
......
...@@ -106,10 +106,10 @@ public class MoveController { ...@@ -106,10 +106,10 @@ public class MoveController {
*/ */
@ApiOperation(value = "根据id删除行为") @ApiOperation(value = "根据id删除行为")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<CommonResultObj<Move>> deleteMove(@PathVariable Integer id) { public ResponseEntity<CommonResultObj<String>> deleteMove(@PathVariable Integer id) {
int i = moveService.deleteMove(id); int i = moveService.deleteMove(id);
if (i != 0) { if (i != 0) {
return CommonResult.success("删除成功"); return CommonResult.success("id: " + id + "已删除","删除成功");
} else { } else {
return CommonResult.failed("删除失败,或不存在需要删除的数据"); return CommonResult.failed("删除失败,或不存在需要删除的数据");
} }
......
...@@ -106,10 +106,10 @@ public class ProjectController { ...@@ -106,10 +106,10 @@ public class ProjectController {
*/ */
@ApiOperation(value = "根据id删除项目") @ApiOperation(value = "根据id删除项目")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<CommonResultObj<Project>> deleteProject(@PathVariable Integer id) { public ResponseEntity<CommonResultObj<String>> deleteProject(@PathVariable Integer id) {
int i = projectService.deleteProject(id); int i = projectService.deleteProject(id);
if (i != 0){ if (i != 0){
return CommonResult.success("删除成功"); return CommonResult.success("id: " + id + "已删除","删除成功");
}else { }else {
return CommonResult.failed("删除失败,或不存在需要删除的数据"); return CommonResult.failed("删除失败,或不存在需要删除的数据");
} }
......
...@@ -106,10 +106,10 @@ public class TestCaseController { ...@@ -106,10 +106,10 @@ public class TestCaseController {
*/ */
@ApiOperation(value = "根据id删除用例") @ApiOperation(value = "根据id删除用例")
@DeleteMapping("/{id}") @DeleteMapping("/{id}")
public ResponseEntity<CommonResultObj<TestCase>> deleteTestCase(@PathVariable Integer id) { public ResponseEntity<CommonResultObj<String>> deleteTestCase(@PathVariable Integer id) {
int i = testCaseService.deleteTestCase(id); int i = testCaseService.deleteTestCase(id);
if (i != 0) { if (i != 0) {
return CommonResult.success("删除成功"); return CommonResult.success("id: " + id + "已删除","删除成功");
} else { } else {
return CommonResult.failed("删除失败,或不存在需要删除的数据"); return CommonResult.failed("删除失败,或不存在需要删除的数据");
} }
......
...@@ -93,12 +93,6 @@ public class TestCase { ...@@ -93,12 +93,6 @@ public class TestCase {
@ApiModelProperty(value = "不包含某字段检验(例如 张三,李四) 则对检查结果中是否不包含张三或者李四") @ApiModelProperty(value = "不包含某字段检验(例如 张三,李四) 则对检查结果中是否不包含张三或者李四")
private String noContainCheckpoint; private String noContainCheckpoint;
/**
* 数据库检验点,以JSON形式存放
*/
@ApiModelProperty(value = "数据库检验点,以JSON形式存放")
private String databaseCheckpoint;
/** /**
* jsonpath检验点,以json形式存放 * jsonpath检验点,以json形式存放
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论