dashboard_snapshot.go 512 B

123456789101112131415161718192021222324252627282930313233
  1. package models
  2. import "time"
  3. // DashboardSnapshot model
  4. type DashboardSnapshot struct {
  5. Id int64
  6. Name string
  7. Key string
  8. Expires time.Time
  9. Created time.Time
  10. Updated time.Time
  11. Dashboard map[string]interface{}
  12. }
  13. // -----------------
  14. // COMMANDS
  15. type CreateDashboardSnapshotCommand struct {
  16. Dashboard map[string]interface{} `json:"dashboard" binding:"Required"`
  17. Key string `json:"-"`
  18. Result *DashboardSnapshot
  19. }
  20. type GetDashboardSnapshotQuery struct {
  21. Key string
  22. Result *DashboardSnapshot
  23. }