2015-02-10 08:36:51 -06:00
|
|
|
package dtos
|
|
|
|
|
2015-08-27 06:59:58 -05:00
|
|
|
type SignUpForm struct {
|
|
|
|
Email string `json:"email" binding:"Required"`
|
|
|
|
}
|
|
|
|
|
2015-08-28 02:24:30 -05:00
|
|
|
type SignUpStep2Form struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Username string `json:"username"`
|
2015-08-28 08:14:24 -05:00
|
|
|
Password string `json:"password"`
|
2015-08-28 02:24:30 -05:00
|
|
|
Code string `json:"code"`
|
|
|
|
OrgName string `json:"orgName"`
|
|
|
|
}
|
|
|
|
|
2015-02-10 08:36:51 -06:00
|
|
|
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"`
|
|
|
|
}
|
2015-02-23 04:24:22 -06:00
|
|
|
|
|
|
|
type AdminUpdateUserPasswordForm struct {
|
|
|
|
Password string `json:"password" binding:"Required"`
|
|
|
|
}
|
2015-02-26 08:43:48 -06:00
|
|
|
|
|
|
|
type AdminUpdateUserPermissionsForm struct {
|
2017-08-03 01:56:34 -05:00
|
|
|
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
|
2015-02-26 08:43:48 -06:00
|
|
|
}
|
2015-02-28 07:30:08 -06:00
|
|
|
|
|
|
|
type AdminUserListItem struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Login string `json:"login"`
|
|
|
|
IsGrafanaAdmin bool `json:"isGrafanaAdmin"`
|
|
|
|
}
|
2015-06-08 03:57:01 -05:00
|
|
|
|
|
|
|
type SendResetPasswordEmailForm struct {
|
|
|
|
UserOrEmail string `json:"userOrEmail" binding:"Required"`
|
|
|
|
}
|
2015-06-08 06:39:02 -05:00
|
|
|
|
|
|
|
type ResetUserPasswordForm struct {
|
|
|
|
Code string `json:"code"`
|
|
|
|
NewPassword string `json:"newPassword"`
|
|
|
|
ConfirmPassword string `json:"confirmPassword"`
|
|
|
|
}
|
2019-08-12 13:03:48 -05:00
|
|
|
|
|
|
|
type UserLookupDTO struct {
|
|
|
|
UserID int64 `json:"userId"`
|
|
|
|
Login string `json:"login"`
|
|
|
|
AvatarURL string `json:"avatarUrl"`
|
|
|
|
}
|