mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
27 lines
777 B
Go
27 lines
777 B
Go
package dtos
|
|
|
|
import m "github.com/grafana/grafana/pkg/models"
|
|
|
|
type AddInviteForm struct {
|
|
LoginOrEmail string `json:"loginOrEmail" binding:"Required"`
|
|
Name string `json:"name"`
|
|
Role m.RoleType `json:"role" binding:"Required"`
|
|
SkipEmails bool `json:"skipEmails"`
|
|
}
|
|
|
|
type InviteInfo struct {
|
|
Email string `json:"email"`
|
|
Name string `json:"name"`
|
|
Username string `json:"username"`
|
|
InvitedBy string `json:"invitedBy"`
|
|
}
|
|
|
|
type CompleteInviteForm struct {
|
|
InviteCode string `json:"inviteCode"`
|
|
Email string `json:"email" binding:"Required"`
|
|
Name string `json:"name"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
ConfirmPassword string `json:"confirmPassword"`
|
|
}
|