mirror of
https://github.com/grafana/grafana.git
synced 2025-02-04 12:41:12 -06:00
30 lines
738 B
Go
30 lines
738 B
Go
package api
|
|
|
|
type accountInfoDto struct {
|
|
Email string `json:"email"`
|
|
Name string `json:"name"`
|
|
AccountName string `json:"accountName"`
|
|
Collaborators []*collaboratorInfoDto `json:"collaborators"`
|
|
}
|
|
|
|
type collaboratorInfoDto struct {
|
|
AccountId int `json:"accountId"`
|
|
Email string `json:"email"`
|
|
Role string `json:"role"`
|
|
}
|
|
|
|
type addCollaboratorDto struct {
|
|
Email string `json:"email" binding:"required"`
|
|
}
|
|
|
|
type removeCollaboratorDto struct {
|
|
AccountId int `json:"accountId" binding:"required"`
|
|
}
|
|
|
|
type otherAccountDto struct {
|
|
Id int `json:"id"`
|
|
Name string `json:"name"`
|
|
Role string `json:"role"`
|
|
IsUsing bool `json:"isUsing"`
|
|
}
|