mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 16:05:53 +08:00
29 lines
526 B
Go
29 lines
526 B
Go
package api
|
|
|
|
type saveDashboardCommand struct {
|
|
Id string `json:"id"`
|
|
Title string `json:"title"`
|
|
Dashboard map[string]interface{}
|
|
}
|
|
|
|
type errorResponse struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type IndexDto struct {
|
|
User CurrentUserDto
|
|
}
|
|
|
|
type CurrentUserDto struct {
|
|
Login string `json:"login"`
|
|
}
|
|
|
|
type LoginResultDto struct {
|
|
Status string `json:"status"`
|
|
User CurrentUserDto `json:"user"`
|
|
}
|
|
|
|
func newErrorResponse(message string) *errorResponse {
|
|
return &errorResponse{Message: message}
|
|
}
|