no message

master
DESKTOP-4RNDQIC\29019 2021-01-26 00:25:18 +08:00
parent da77cb86d5
commit 2030042f8f
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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) // 删除书籍
}