From 4a814a16fa1df8853d0372f39f2d2a2c6aae9abc Mon Sep 17 00:00:00 2001 From: x ronger Date: Wed, 18 Dec 2019 01:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E5=88=A0=E9=99=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/rymcu/vertical/web/api/article/ArticleController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }