From 09834ffaf607e52dc905bffb7b2f58635a144a7a Mon Sep 17 00:00:00 2001 From: Eamon Date: Mon, 27 Apr 2020 15:59:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E7=AB=AF=E4=BD=BF?= =?UTF-8?q?=E7=94=A8postgres=E6=97=B6=EF=BC=8C=E4=BB=BB=E5=8A=A1=E5=85=B3?= =?UTF-8?q?=E9=97=AD/=E6=89=93=E5=BC=80=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 任务状态Status 改为 status postgres 数据库 字段区分大小写 --- internal/routers/task/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/routers/task/task.go b/internal/routers/task/task.go index aabdd52..42865a1 100644 --- a/internal/routers/task/task.go +++ b/internal/routers/task/task.go @@ -251,7 +251,7 @@ func changeStatus(ctx *macaron.Context, status models.Status) string { json := utils.JsonResponse{} taskModel := new(models.Task) _, err := taskModel.Update(id, models.CommonMap{ - "Status": status, + "status": status, }) if err != nil { return json.CommonFailure(utils.FailureContent, err)