文章删除功能完善

This commit is contained in:
x ronger 2019-12-18 01:16:00 +08:00
parent 54c613f641
commit 4a814a16fa

View File

@ -36,8 +36,8 @@ public class ArticleController {
@DeleteMapping("/delete/{id}") @DeleteMapping("/delete/{id}")
public GlobalResult delete(@PathVariable Integer id){ public GlobalResult delete(@PathVariable Integer id){
articleService.deleteById(id.toString()); Map map = articleService.delete(id);
return GlobalResultGenerator.genSuccessResult(); return GlobalResultGenerator.genSuccessResult(map);
} }
} }