api_models.go 526 B

12345678910111213141516171819202122232425262728
  1. package api
  2. type saveDashboardCommand struct {
  3. Id string `json:"id"`
  4. Title string `json:"title"`
  5. Dashboard map[string]interface{}
  6. }
  7. type errorResponse struct {
  8. Message string `json:"message"`
  9. }
  10. type IndexDto struct {
  11. User CurrentUserDto
  12. }
  13. type CurrentUserDto struct {
  14. Login string `json:"login"`
  15. }
  16. type LoginResultDto struct {
  17. Status string `json:"status"`
  18. User CurrentUserDto `json:"user"`
  19. }
  20. func newErrorResponse(message string) *errorResponse {
  21. return &errorResponse{Message: message}
  22. }