mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Refactoring of auth middleware, and starting work on account admin
This commit is contained in:
@@ -68,6 +68,14 @@ type GetAccountByLoginQuery struct {
|
||||
Result *Account
|
||||
}
|
||||
|
||||
type SearchAccountsQuery struct {
|
||||
Query string
|
||||
Page int
|
||||
Limit int
|
||||
|
||||
Result []*AccountSearchHitDTO
|
||||
}
|
||||
|
||||
// ------------------------
|
||||
// DTO & Projections
|
||||
|
||||
@@ -84,6 +92,12 @@ type CollaboratorDTO struct {
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
type AccountSearchHitDTO struct {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
}
|
||||
|
||||
type AccountDTO struct {
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
|
||||
Reference in New Issue
Block a user