remove put del
This commit is contained in:
@@ -66,7 +66,7 @@ public class TestApiController extends BaseController {
|
|||||||
@Log(title = "接口", businessType = BusinessType.INSERT)
|
@Log(title = "接口", businessType = BusinessType.INSERT)
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public AjaxResult add(@RequestBody TestApi testApi) {
|
public AjaxResult add(@RequestBody TestApi testApi) {
|
||||||
return success(testApiService.insertTestApi(testApi));
|
return toAjax(testApiService.insertTestApi(testApi));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -75,7 +75,7 @@ public class TestApiController extends BaseController {
|
|||||||
@Log(title = "接口", businessType = BusinessType.UPDATE)
|
@Log(title = "接口", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
public AjaxResult edit(@RequestBody TestApi testApi) {
|
public AjaxResult edit(@RequestBody TestApi testApi) {
|
||||||
return success(testApiService.updateTestApi(testApi));
|
return toAjax(testApiService.updateTestApi(testApi));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -84,6 +84,6 @@ public class TestApiController extends BaseController {
|
|||||||
@Log(title = "接口", businessType = BusinessType.DELETE)
|
@Log(title = "接口", businessType = BusinessType.DELETE)
|
||||||
@PostMapping("/del/{ids}")
|
@PostMapping("/del/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
return success(testApiService.deleteTestApiByIds(ids));
|
return toAjax(testApiService.deleteTestApiByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user