From a2275ab37e3e7b27ab02b9f318cfd3bba1d6643b Mon Sep 17 00:00:00 2001 From: "DESKTOP-4RNDQIC\\29019" <290198252@qq.com> Date: Sat, 27 Jun 2020 00:52:15 +0800 Subject: [PATCH] no message --- controller/blog.go | 3 --- main.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/controller/blog.go b/controller/blog.go index 48260f4..63653e7 100644 --- a/controller/blog.go +++ b/controller/blog.go @@ -435,9 +435,6 @@ func GetMemo(c *gin.Context) { defer func() { c.JSON(200,rsp) }() - type ReqMemos struct { - title string `json:"title"` - } id := c.Query("id") dat, e := model.ReadMemo(int32(db.Atoi(id))) if nil != e{ diff --git a/main.go b/main.go index d1624f6..df37e03 100644 --- a/main.go +++ b/main.go @@ -159,7 +159,7 @@ func main() { api.PUT("/memo", controller.CreateMemo) // 备忘录新建 api.POST("/memo", controller.UpdateMemo) // 备忘录更新 api.POST("/memos", controller.GetMemos) // 备忘录批量 - api.DELETE("/memo", controller.DeleteMemos) //删除备忘录 + api.POST("/delmemo", controller.DeleteMemos) //删除备忘录 api.GET("/memo", controller.GetMemo) // 单独读取 } hookapi := r.Group("hookapi")