文章删除功能完善

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}")
public GlobalResult delete(@PathVariable Integer id){
articleService.deleteById(id.toString());
return GlobalResultGenerator.genSuccessResult();
Map map = articleService.delete(id);
return GlobalResultGenerator.genSuccessResult(map);
}
}