mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed gofmt tests
This commit is contained in:
parent
e5931e264b
commit
f5db9950f8
@ -37,14 +37,14 @@ func AdminCreateUser(c *middleware.Context, form dtos.AdminCreateUserForm) {
|
|||||||
|
|
||||||
metrics.M_Api_Admin_User_Create.Inc(1)
|
metrics.M_Api_Admin_User_Create.Inc(1)
|
||||||
|
|
||||||
user := cmd.Result
|
user := cmd.Result
|
||||||
|
|
||||||
result := m.UserIdDTO{
|
result := m.UserIdDTO{
|
||||||
Message: "User created",
|
Message: "User created",
|
||||||
Id: user.Id,
|
Id: user.Id,
|
||||||
}
|
}
|
||||||
|
|
||||||
c.JSON(200, result)
|
c.JSON(200, result)
|
||||||
}
|
}
|
||||||
|
|
||||||
func AdminUpdateUserPassword(c *middleware.Context, form dtos.AdminUpdateUserPasswordForm) {
|
func AdminUpdateUserPassword(c *middleware.Context, form dtos.AdminUpdateUserPasswordForm) {
|
||||||
@ -103,5 +103,5 @@ func AdminDeleteUser(c *middleware.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
c.JsonOK("User deleted")
|
c.JsonOK("User deleted")
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,6 @@ type UserSearchHitDTO struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UserIdDTO struct {
|
type UserIdDTO struct {
|
||||||
Id int64 `json:"id"`
|
Id int64 `json:"id"`
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user