예제 #1
0
 /**
  * 删除
  * DELETE /books/123
  * @method GET_infoAction
  * @param  integer        $id [资源id]
  * @author NewFuture
  */
 public function DELETE_infoAction($id = 0)
 {
     $pid = $this->authPrinter();
     if (BookModel::delete($id)) {
         $this->response(1, '删除成功!');
     } else {
         $this->response(0, '信息不存在或者无权访问');
     }
 }