diff --git a/controller/blog.go b/controller/blog.go index 50ec92f..1965d87 100644 --- a/controller/blog.go +++ b/controller/blog.go @@ -447,6 +447,7 @@ func UpdateBook(c *gin.Context) { e := c.BindJSON(&req) if nil != e { resp.Msg = "wrong input" + log.Print(e.Error()) return } e = db.GetOrm().Model(&model.Book{}).Update(&req).Error diff --git a/main.go b/main.go index 5c67911..2d1b3a6 100644 --- a/main.go +++ b/main.go @@ -174,7 +174,6 @@ func main() { api.POST("/getbooks", controller.GetPageBook) // 批量书籍 api.POST("/delbook", controller.Delbook) // 删除书籍 api.GET("/bookcount", controller.BookCount) // 删除书籍 - } openapi := r.Group("openapi")