Ver código fonte

图书详情和预约用户列表

5 anos atrás
pai
commit
4438b0ce16

+ 13 - 0
bms/src/main/java/com/hssx/bms/controller/BookController.java

@@ -118,6 +118,19 @@ public class BookController {
         HttpRespMsg msg = bookCategoryService.addOrUpdateRank(BookCategory);
         HttpRespMsg msg = bookCategoryService.addOrUpdateRank(BookCategory);
         return msg;
         return msg;
     }
     }
+    /**
+     * 图书目录的删除
+     * 修改时:需要传 id 目录的id
+     * @return
+     */
+    @ApiOperation(value = "图书目录的删除", notes = "图书目录的删除方法")
+    @RequestMapping("/delRank")
+    @ResponseBody
+    public HttpRespMsg delRank(BookCategory BookCategory){
+        HttpRespMsg msg = new HttpRespMsg();
+        bookCategoryService.removeById(BookCategory.getId());
+        return msg;
+    }
     /**
     /**
      * 图书详情
      * 图书详情
      * 参数 id 图书id
      * 参数 id 图书id