From a5e311c3376a448ba70c226130bf28a4b291a7e3 Mon Sep 17 00:00:00 2001 From: hupeh Date: Tue, 3 Jan 2023 02:03:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E5=90=91=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=9A=B4=E9=9C=B2=E7=94=A8=E6=88=B7=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/db.go b/app/db.go index d5262b8..e2ead0e 100644 --- a/app/db.go +++ b/app/db.go @@ -43,7 +43,7 @@ type User struct { Name string `json:"name"` // 用户名称 PhoneNumber string `json:"phone_number"` // 用户手机 Password string `json:"-"` // 登录密码 - Admin bool `json:"-"` // 是不是管理员 + Admin bool `json:"admin"` // 是不是管理员 } // UserToken 用户令牌