ソースを参照

WIP: add parentid to getdashboard query result

Daniel Lee 8 年 前
コミット
82afe8228f
2 ファイル変更2 行追加0 行削除
  1. 1 0
      pkg/api/dashboard.go
  2. 1 0
      pkg/api/dtos/dashboard.go

+ 1 - 0
pkg/api/dashboard.go

@@ -81,6 +81,7 @@ func GetDashboard(c *middleware.Context) {
 			Version:   dash.Version,
 			HasAcl:    dash.HasAcl,
 			IsFolder:  dash.IsFolder,
+			ParentId:  dash.ParentId,
 		},
 	}
 

+ 1 - 0
pkg/api/dtos/dashboard.go

@@ -23,6 +23,7 @@ type DashboardMeta struct {
 	Version    int       `json:"version"`
 	HasAcl     bool      `json:"hasAcl"`
 	IsFolder   bool      `json:"isFolder"`
+	ParentId   int64     `json:"parentId"`
 }
 
 type DashboardFullWithMeta struct {