no message

master
DESKTOP-4RNDQIC\29019 2020-06-27 00:52:15 +08:00
parent 5482310fb2
commit a2275ab37e
2 changed files with 1 additions and 4 deletions

View File

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

View File

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