Worked on user admin features, can now create and edit users as a grafana admin user, #1446

This commit is contained in:
Torkel Ödegaard
2015-02-10 15:36:51 +01:00
parent 088ad881e0
commit e165e2af95
11 changed files with 246 additions and 7 deletions

14
pkg/api/dtos/user.go Normal file
View File

@@ -0,0 +1,14 @@
package dtos
type AdminCreateUserForm struct {
Email string `json:"email"`
Login string `json:"login"`
Name string `json:"name"`
Password string `json:"password" binding:"Required"`
}
type AdminUpdateUserForm struct {
Email string `json:"email"`
Login string `json:"login"`
Name string `json:"name"`
}