mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
30 lines
736 B
Plaintext
30 lines
736 B
Plaintext
|
package api
|
||
|
|
||
|
type accountInfoDto struct {
|
||
|
Login string `json:"login"`
|
||
|
Email string `json:"email"`
|
||
|
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 usingAccountDto struct {
|
||
|
AccountId int `json:"accountId"`
|
||
|
Email string `json:"email"`
|
||
|
Role string `json:"role"`
|
||
|
IsUsing bool
|
||
|
}
|