diff --git a/controller/blog.go b/controller/blog.go index 53860c4..addb329 100644 --- a/controller/blog.go +++ b/controller/blog.go @@ -458,10 +458,12 @@ func GetPageBook(c *gin.Context) { iLmit, e := strconv.Atoi(limit) if nil != e { + log.Print(e.Error()) return } iOffset, e := strconv.Atoi(offset) if nil != e { + log.Print(e.Error()) return } e = c.BindJSON(&req) diff --git a/main.go b/main.go index b5c9f40..94fc8fb 100644 --- a/main.go +++ b/main.go @@ -171,7 +171,7 @@ func main() { api.PUT("/book", controller.CreateBook) // api.POST("/book", controller.UpdateBook) // api.POST("/getbook", controller.GetBook) // 单书籍数据 - api.POST("/books", controller.GetPageBook) // 批量书籍 + api.POST("/getbooks", controller.GetPageBook) // 批量书籍 api.POST("/delbook", controller.DeleteMemos) // 删除书籍 }