调整Perms字段

This commit is contained in:
TsMask
2023-08-29 17:23:20 +08:00
parent 90602eb831
commit ef40998139

View File

@@ -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)
}