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