api_models.go 356 B

12345678910111213141516171819
  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 indexViewModel struct {
  11. title string
  12. }
  13. func newErrorResponse(message string) *errorResponse {
  14. return &errorResponse{Message: message}
  15. }