Added dtos and UI for more metadata

This commit is contained in:
utkarshcmu
2016-01-28 00:52:52 -08:00
parent 58121d89fc
commit b30dcce4bc
2 changed files with 78 additions and 28 deletions
+17 -13
View File
@@ -30,19 +30,23 @@ type CurrentUser struct {
}
type DashboardMeta struct {
IsStarred bool `json:"isStarred,omitempty"`
IsHome bool `json:"isHome,omitempty"`
IsSnapshot bool `json:"isSnapshot,omitempty"`
Type string `json:"type,omitempty"`
CanSave bool `json:"canSave"`
CanEdit bool `json:"canEdit"`
CanStar bool `json:"canStar"`
Slug string `json:"slug"`
Expires time.Time `json:"expires"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
UpdatedBy string `json:"updatedBy"`
CreatedBy string `json:"createdBy"`
IsStarred bool `json:"isStarred,omitempty"`
IsHome bool `json:"isHome,omitempty"`
IsSnapshot bool `json:"isSnapshot,omitempty"`
Type string `json:"type,omitempty"`
CanSave bool `json:"canSave"`
CanEdit bool `json:"canEdit"`
CanStar bool `json:"canStar"`
Slug string `json:"slug"`
Expires time.Time `json:"expires"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
UpdatedBy string `json:"updatedBy"`
CreatedBy string `json:"createdBy"`
TotalRows int64 `json:"totalRows"`
TotalPanels int64 `json:"totalPanels"`
TotalQueries int64 `json:"totalQueries"`
Version int `json:"version"`
}
type DashboardFullWithMeta struct {