From f6f418e44f3b853d4895fca65000164d9b2aa410 Mon Sep 17 00:00:00 2001 From: "DESKTOP-4RNDQIC\\29019" <290198252@qq.com> Date: Sun, 14 Feb 2021 21:31:10 +0800 Subject: [PATCH] no message --- controller/blog.go | 1 + main.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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")