From 82eb4a4e7ae8cbc12aa22116ba226f518e9c10ea Mon Sep 17 00:00:00 2001 From: wenyann <64353056+wenyann@users.noreply.github.com> Date: Mon, 3 Aug 2020 18:44:14 +0800 Subject: [PATCH] =?UTF-8?q?style(api):=20=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/api/controller/APITestController.java | 4 ---- .../main/java/io/metersphere/api/service/APITestService.java | 3 --- 2 files changed, 7 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/controller/APITestController.java b/backend/src/main/java/io/metersphere/api/controller/APITestController.java index 82e9a2819f..b95c35cce8 100644 --- a/backend/src/main/java/io/metersphere/api/controller/APITestController.java +++ b/backend/src/main/java/io/metersphere/api/controller/APITestController.java @@ -47,10 +47,6 @@ public class APITestController { return apiTestService.getApiTestByProjectId(projectId); } - @GetMapping("/state/get/{testId}") - public ApiTest apiState(@PathVariable String testId) { - return apiTestService.getApiTestByTestId(testId); - } @PostMapping(value = "/schedule/update") public void updateSchedule(@RequestBody Schedule request) { diff --git a/backend/src/main/java/io/metersphere/api/service/APITestService.java b/backend/src/main/java/io/metersphere/api/service/APITestService.java index 44a25e32d9..13f41da08b 100644 --- a/backend/src/main/java/io/metersphere/api/service/APITestService.java +++ b/backend/src/main/java/io/metersphere/api/service/APITestService.java @@ -126,9 +126,6 @@ public class APITestService { return null; } - public ApiTest getApiTestByTestId(String testId) { - return apiTestMapper.selectByPrimaryKey(testId); - } public List getApiTestByProjectId(String projectId) { return extApiTestMapper.getApiTestByProjectId(projectId);