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