From 9ba78978c08dc7328a5066e3c0a4db5f3bbc9307 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Fri, 14 Aug 2020 12:37:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=A0=E6=8E=89=E4=B8=8D?= =?UTF-8?q?=E7=94=A8=E7=9A=84controller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/TestResourceController.java | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 backend/src/main/java/io/metersphere/controller/TestResourceController.java diff --git a/backend/src/main/java/io/metersphere/controller/TestResourceController.java b/backend/src/main/java/io/metersphere/controller/TestResourceController.java deleted file mode 100644 index 2f2b50b9ba..0000000000 --- a/backend/src/main/java/io/metersphere/controller/TestResourceController.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.metersphere.controller; - -import io.metersphere.base.domain.TestResource; -import io.metersphere.service.TestResourceService; -import org.springframework.web.bind.annotation.*; - -import javax.annotation.Resource; -import java.util.List; - -@RequestMapping("testresource") -@RestController -public class TestResourceController { - - @Resource - private TestResourceService testResourceService; - - @PostMapping("/add") - public TestResource addTestResource(@RequestBody TestResource testResource) { - return testResourceService.addTestResource(testResource); - } - - @GetMapping("/list/{testResourcePoolId}") - public List getTestResourceList(@PathVariable(value = "testResourcePoolId") String testResourcePoolId) { - return testResourceService.getTestResourceList(testResourcePoolId); - } - - @GetMapping("/delete/{testResourceId}") - public void deleteTestResource(@PathVariable(value = "testResourceId") String testResourceId) { - testResourceService.deleteTestResource(testResourceId); - } - - @PostMapping("/update") - public void updateTestResource(@RequestBody TestResource testResource) { - testResourceService.updateTestResource(testResource); - } -}