def api_delete_comments(id, request):
check_admin(request) #???????????
c = yield from Comment.find(id) # ?????????
if c is None:
raise APIResourceNotFoundError('Comment')
yield from c.remove() # ????
return dict(id=id) # ????????id
# day14??
# API:????
评论列表
文章目录