diff --git a/src/main/java/com/rymcu/vertical/web/api/article/ArticleController.java b/src/main/java/com/rymcu/vertical/web/api/article/ArticleController.java index a911e6e..3331d8a 100644 --- a/src/main/java/com/rymcu/vertical/web/api/article/ArticleController.java +++ b/src/main/java/com/rymcu/vertical/web/api/article/ArticleController.java @@ -36,8 +36,8 @@ public class ArticleController { @DeleteMapping("/delete/{id}") public GlobalResult delete(@PathVariable Integer id){ - articleService.deleteById(id.toString()); - return GlobalResultGenerator.genSuccessResult(); + Map map = articleService.delete(id); + return GlobalResultGenerator.genSuccessResult(map); } }