From 3521716370d9d98ba899e5d32f9a24741eacbce3 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Thu, 25 Mar 2021 18:10:02 +0800 Subject: [PATCH] no message --- README.md | 2 -- controller/plan.go | 2 +- main.go | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3111e0f..9e6ad48 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,8 @@ 基于golang gin 博客系统后台http接口,提供了简易可用的博客系统后台api服务,设计文档全面。

前台展示界面git地址: https://gitee.com/290198252/api
-
后台管理后端接口的git地址: https://gitee.com/290198252/background
-
后台管理前端界面的git地址: https://gitee.com/290198252/background-front
#### 介绍 开源的后台管理前后端 diff --git a/controller/plan.go b/controller/plan.go index 89e8fd1..757fc8f 100644 --- a/controller/plan.go +++ b/controller/plan.go @@ -191,7 +191,7 @@ func (this *PlanController) GetUndo(c *gin.Context) { c.JSON(200, resp) }() undos := []model.Undo{} - e := db.GetOrm().Model(&model.Undo{}).Find(&undos).Error + e := db.GetOrm().Model(&model.Undo{}).Where("done = 0").Find(&undos).Error if nil != e { log.Print(e.Error()) return diff --git a/main.go b/main.go index dacb0cf..f71ea4d 100644 --- a/main.go +++ b/main.go @@ -186,6 +186,7 @@ func main() { api.POST("/undo", planController.UpdateUndo) api.GET("/undo", planController.GetUndo) api.DELETE("/undo/:id", planController.DeleteUndo) + } openapi := r.Group("openapi")