From ac2f01f144a547ccbcbd95f6feb52d0763412a70 Mon Sep 17 00:00:00 2001 From: EamonZhang Date: Mon, 27 Apr 2020 16:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=80=E5=BD=93=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E4=BD=BF=E7=94=A8postgres=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=97=B6=E3=80=80=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E6=88=96?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=8A=B6=E6=80=81=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82postgres=E5=AD=97=E6=AE=B5=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/routers/user/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/routers/user/user.go b/internal/routers/user/user.go index 7742037..c612b9f 100644 --- a/internal/routers/user/user.go +++ b/internal/routers/user/user.go @@ -163,7 +163,7 @@ func changeStatus(ctx *macaron.Context, status models.Status) string { json := utils.JsonResponse{} userModel := new(models.User) _, err := userModel.Update(id, models.CommonMap{ - "Status": status, + "status": status, }) if err != nil { return json.CommonFailure(utils.FailureContent, err)