no message

master
DESKTOP-4RNDQIC\29019 2021-02-14 21:31:10 +08:00
parent c11a88e9f2
commit f6f418e44f
2 changed files with 1 additions and 1 deletions

View File

@ -447,6 +447,7 @@ func UpdateBook(c *gin.Context) {
e := c.BindJSON(&req) e := c.BindJSON(&req)
if nil != e { if nil != e {
resp.Msg = "wrong input" resp.Msg = "wrong input"
log.Print(e.Error())
return return
} }
e = db.GetOrm().Model(&model.Book{}).Update(&req).Error e = db.GetOrm().Model(&model.Book{}).Update(&req).Error

View File

@ -174,7 +174,6 @@ func main() {
api.POST("/getbooks", controller.GetPageBook) // 批量书籍 api.POST("/getbooks", controller.GetPageBook) // 批量书籍
api.POST("/delbook", controller.Delbook) // 删除书籍 api.POST("/delbook", controller.Delbook) // 删除书籍
api.GET("/bookcount", controller.BookCount) // 删除书籍 api.GET("/bookcount", controller.BookCount) // 删除书籍
} }
openapi := r.Group("openapi") openapi := r.Group("openapi")