调整Perms字段
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user