remove put del

This commit is contained in:
2025-02-08 13:59:10 +08:00
parent 622fb0dc89
commit 3030b13227

View File

@@ -66,7 +66,7 @@ public class TestApiController extends BaseController {
@Log(title = "接口", businessType = BusinessType.INSERT)
@PostMapping(value = "/add")
public AjaxResult add(@RequestBody TestApi testApi) {
return toAjax(testApiService.insertTestApi(testApi));
return success(testApiService.insertTestApi(testApi));
}
/**
@@ -75,7 +75,7 @@ public class TestApiController extends BaseController {
@Log(title = "接口", businessType = BusinessType.UPDATE)
@PostMapping(value = "/edit")
public AjaxResult edit(@RequestBody TestApi testApi) {
return toAjax(testApiService.updateTestApi(testApi));
return success(testApiService.updateTestApi(testApi));
}
/**
@@ -84,6 +84,6 @@ public class TestApiController extends BaseController {
@Log(title = "接口", businessType = BusinessType.DELETE)
@PostMapping("/del/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(testApiService.deleteTestApiByIds(ids));
return success(testApiService.deleteTestApiByIds(ids));
}
}