文章删除功能完善
This commit is contained in:
parent
54c613f641
commit
4a814a16fa
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user