From ef40998139fdf41ebd7ea5761bdb7167585f3442 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 29 Aug 2023 17:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4Perms=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/services/services.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/services.go b/lib/services/services.go index d3082f80..a4a25203 100644 --- a/lib/services/services.go +++ b/lib/services/services.go @@ -58,7 +58,7 @@ type SucceedOAuthResponse struct { ChangePasswordFlag int `json:"changePasswordFlag"` GroupName string `json:"groupName"` Roles []string `json:"roles"` - Permissions []string `json:"permissions"` + Perms []string `json:"perms"` } type ServiceResponse struct { @@ -580,7 +580,7 @@ func ResponseStatusOK200LoginWhitRP(w http.ResponseWriter, token string, user *d oAuthResponse.ChangePasswordFlag = user.ChangePasswordFlag oAuthResponse.GroupName = user.GroupName oAuthResponse.Roles = roles - oAuthResponse.Permissions = perms + oAuthResponse.Perms = perms ResponseWithJson(w, http.StatusOK, oAuthResponse) }