mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
8fd153edb7
Existing /api/alert-notifications now requires at least editor access. Existing /api/alert-notifiers now requires at least editor access. New /api/alert-notifications/lookup returns less information than /api/alert-notifications and can be access by any authenticated user. Existing /api/org/users now requires org admin role. New /api/org/users/lookup returns less information than /api/org/users and can be access by users that are org admins, admin in any folder or admin of any team. UserPicker component now uses /api/org/users/lookup instead of /api/org/users. Fixes #17318
59 lines
1.4 KiB
Go
59 lines
1.4 KiB
Go
package dtos
|
|
|
|
type SignUpForm struct {
|
|
Email string `json:"email" binding:"Required"`
|
|
}
|
|
|
|
type SignUpStep2Form struct {
|
|
Email string `json:"email"`
|
|
Name string `json:"name"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Code string `json:"code"`
|
|
OrgName string `json:"orgName"`
|
|
}
|
|
|
|
type AdminCreateUserForm struct {
|
|
Email string `json:"email"`
|
|
Login string `json:"login"`
|
|
Name string `json:"name"`
|
|
Password string `json:"password" binding:"Required"`
|
|
}
|
|
|
|
type AdminUpdateUserForm struct {
|
|
Email string `json:"email"`
|
|
Login string `json:"login"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type AdminUpdateUserPasswordForm struct {
|
|
Password string `json:"password" binding:"Required"`
|
|
}
|
|
|
|
type AdminUpdateUserPermissionsForm struct {
|
|
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
|
|
}
|
|
|
|
type AdminUserListItem struct {
|
|
Email string `json:"email"`
|
|
Name string `json:"name"`
|
|
Login string `json:"login"`
|
|
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
|
|
}
|
|
|
|
type SendResetPasswordEmailForm struct {
|
|
UserOrEmail string `json:"userOrEmail" binding:"Required"`
|
|
}
|
|
|
|
type ResetUserPasswordForm struct {
|
|
Code string `json:"code"`
|
|
NewPassword string `json:"newPassword"`
|
|
ConfirmPassword string `json:"confirmPassword"`
|
|
}
|
|
|
|
type UserLookupDTO struct {
|
|
UserID int64 `json:"userId"`
|
|
Login string `json:"login"`
|
|
AvatarURL string `json:"avatarUrl"`
|
|
}
|