refactor: 删掉不用的controller

This commit is contained in:
Captain.B 2020-08-14 12:37:48 +08:00
parent 69bac33aa1
commit 9ba78978c0
1 changed files with 0 additions and 36 deletions

View File

@ -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<TestResource> 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);
}
}