Refactoring of auth middleware, and starting work on account admin

This commit is contained in:
Torkel Ödegaard
2015-01-15 12:16:54 +01:00
parent 67b935188b
commit 5ec07db143
6 changed files with 128 additions and 72 deletions

View File

@@ -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"`